Skip to content

Orders

Orders, transactions, refunds and abandoned checkouts (the last 60 days without read_all_orders). Every example sets SOOQUNA_TOKEN from the environment; see authentication. Responses are from a test store, cut to two items per list.

Endpoint Method Path
List orders GET /orders
Get an order GET /orders/{id}
Update an order PATCH /orders/{id}
Record payment of an order POST /orders/{id}/mark-paid
Calculate a refund POST /orders/{id}/refunds/calculate
Refund an order POST /orders/{id}/refunds
Cancel an order POST /orders/{id}/cancel
Archive an order POST /orders/{id}/close
Unarchive an order POST /orders/{id}/reopen
Confirm a cash-on-delivery order POST /orders/{id}/cod-confirm
List an order’s tax invoices GET /orders/{id}/invoices
Issue a tax invoice for an order POST /orders/{id}/invoices
List abandoned checkouts GET /abandoned-checkouts
Get an abandoned checkout GET /abandoned-checkouts/{id}
List tax invoices GET /invoices
Get a tax invoice GET /invoices/{id}
Download a tax invoice as PDF GET /invoices/{id}/pdf

GET /orders · Scope: read_orders

Parameter In Description
financial_status query For example pending.
fulfillment_status query For example unfulfilled.
limit query For example 20.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/orders?financial_status=pending&fulfillment_status=unfulfilled&limit=20" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"data": [
{
"cancelled_at": null,
"currency": "QAR",
"customer": {
"email": "[email protected]",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000007",
"name": "Noora Al-Kuwari",
"orders_count": 1,
"phone": "+97455123456"
},
"delivery_method": "shipping",
"delivery_title": "Doha delivery",
"email": "[email protected]",
"financial_status": "pending",
"fulfillment_status": "unfulfilled",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000035",
"item_count": 1,
"name": "#1001",
"number": 1001,
"payment_method": "manual",
"phone": "+97455123456",
"processed_at": "2026-10-18T09:30:00Z",
"sample": false,
"source": "draft",
"state": "open",
"tags": [],
"total": "420.00",
"total_outstanding": "420.00"
}
],
"page_info": {"has_next_page": false}
}

GET /orders/{id} · Scope: read_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"attributes": {},
"billing_address": null,
"buyer_accepts_marketing": false,
"cancel_reason": "",
"cancelled_at": null,
"checkout_id": null,
"closed_at": null,
"cod_status": "",
"created_at": "2026-10-18T09:30:00Z",
"currency": "QAR",
"customer": {
"email": "[email protected]",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000007",
"name": "Noora Al-Kuwari",
"orders_count": 1,
"phone": "+97455123456"
},
"delivery_method": "shipping",
"delivery_title": "Doha delivery",
"discount_applications": [],
"discount_codes": [],
"draft_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000013",
"email": "[email protected]",
"financial_status": "pending",
"fulfillment_orders": [
{
"delivery_method": "shipping",
"hold_reason": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1,
"remaining": 1
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"status": "open"
}
],
"fulfillment_status": "unfulfilled",
"fulfillments": [],
"gift": false,
"gift_message": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000035",
"item_count": 1,
"lines": [
{
"discount_allocations": [{"amount": 4500, "class": "order", "title": "Loyal customer"}],
"fulfilled_quantity": 0,
"gift_card": false,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"image": "",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"original_price": "520.00",
"price": "450.00",
"product_id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"properties": {},
"quantity": 1,
"refunded_quantity": 0,
"requires_shipping": true,
"sku": "ABY-LIN-M",
"tax": "0.00",
"tax_lines": [],
"taxable": true,
"title": "Embroidered linen abaya",
"total": "405.00",
"total_discount": "45.00",
"variant_id": "0193a1b2-c3d4-7e5f-8a6b-000000000014",
"variant_title": "M",
"vendor": "Layla",
"weight_grams": 0
}
],
"locale": "en",
"name": "#1001",
"net_payment": "0.00",
"note": "",
"number": 1001,
"order_discount": "45.00",
"payment_fee": "0.00",
"payment_method": "manual",
"phone": "+97455123456",
"processed_at": "2026-10-18T09:30:00Z",
"refunds": [],
"sample": false,
"shipping_address": null,
"shipping_line": {
"final": 1500,
"kind": "shipping",
"price": 1500,
"title": "Doha delivery"
},
"source": "draft",
"state": "open",
"status_url": "https://shop.sooquna.test/orders/01a14f9f314a7de682d35010a325f162",
"subtotal": "450.00",
"tags": [],
"tax_lines": [],
"taxes_included": true,
"tip": "0.00",
"token": "01a14f9f314a7de682d35010a325f162",
"total": "420.00",
"total_discounts": "45.00",
"total_outstanding": "420.00",
"total_received": "0.00",
"total_refunded": "0.00",
"total_shipping": "15.00",
"total_tax": "0.00",
"transactions": [],
"updated_at": "2026-10-18T09:30:00Z",
"version": 2
}

PATCH /orders/{id} · Scope: write_orders

Change the note, tags, contact details, addresses or attributes; leave out what doesn’t change.

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X PATCH "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"note": "Call before delivery",
"tags": ["phone", "priority"],
"version": 2
}'
Response 200
{
"attributes": {},
"billing_address": null,
"buyer_accepts_marketing": false,
"cancel_reason": "",
"cancelled_at": null,
"checkout_id": null,
"closed_at": null,
"cod_status": "",
"created_at": "2026-10-18T09:30:00Z",
"currency": "QAR",
"customer": {
"email": "[email protected]",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000007",
"name": "Noora Al-Kuwari",
"orders_count": 1,
"phone": "+97455123456"
},
"delivery_method": "shipping",
"delivery_title": "Doha delivery",
"discount_applications": [],
"discount_codes": [],
"draft_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000013",
"email": "[email protected]",
"financial_status": "pending",
"fulfillment_orders": [
{
"delivery_method": "shipping",
"hold_reason": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1,
"remaining": 1
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"status": "open"
}
],
"fulfillment_status": "unfulfilled",
"fulfillments": [],
"gift": false,
"gift_message": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000035",
"item_count": 1,
"lines": [
{
"discount_allocations": [{"amount": 4500, "class": "order", "title": "Loyal customer"}],
"fulfilled_quantity": 0,
"gift_card": false,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"image": "",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"original_price": "520.00",
"price": "450.00",
"product_id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"properties": {},
"quantity": 1,
"refunded_quantity": 0,
"requires_shipping": true,
"sku": "ABY-LIN-M",
"tax": "0.00",
"tax_lines": [],
"taxable": true,
"title": "Embroidered linen abaya",
"total": "405.00",
"total_discount": "45.00",
"variant_id": "0193a1b2-c3d4-7e5f-8a6b-000000000014",
"variant_title": "M",
"vendor": "Layla",
"weight_grams": 0
}
],
"locale": "en",
"name": "#1001",
"net_payment": "0.00",
"note": "Call before delivery",
"number": 1001,
"order_discount": "45.00",
"payment_fee": "0.00",
"payment_method": "manual",
"phone": "+97455123456",
"processed_at": "2026-10-18T09:30:00Z",
"refunds": [],
"sample": false,
"shipping_address": null,
"shipping_line": {
"final": 1500,
"kind": "shipping",
"price": 1500,
"title": "Doha delivery"
},
"source": "draft",
"state": "open",
"status_url": "https://shop.sooquna.test/orders/01a14f9f314a7de682d35010a325f162",
"subtotal": "450.00",
"tags": ["phone", "priority"],
"tax_lines": [],
"taxes_included": true,
"tip": "0.00",
"token": "01a14f9f314a7de682d35010a325f162",
"total": "420.00",
"total_discounts": "45.00",
"total_outstanding": "420.00",
"total_received": "0.00",
"total_refunded": "0.00",
"total_shipping": "15.00",
"total_tax": "0.00",
"transactions": [],
"updated_at": "2026-10-18T09:30:00Z",
"version": 3
}

POST /orders/{id}/mark-paid · Scope: write_orders · Needs an Idempotency-Key header

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/mark-paid" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)"
Response 200
{
"attributes": {},
"billing_address": null,
"buyer_accepts_marketing": false,
"cancel_reason": "",
"cancelled_at": null,
"checkout_id": null,
"closed_at": null,
"cod_status": "",
"created_at": "2026-10-18T09:30:00Z",
"currency": "QAR",
"customer": {
"email": "[email protected]",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000007",
"name": "Noora Al-Kuwari",
"orders_count": 1,
"phone": "+97455123456"
},
"delivery_method": "shipping",
"delivery_title": "Doha delivery",
"discount_applications": [],
"discount_codes": [],
"draft_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000013",
"email": "[email protected]",
"financial_status": "paid",
"fulfillment_orders": [
{
"delivery_method": "shipping",
"hold_reason": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1,
"remaining": 1
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"status": "open"
}
],
"fulfillment_status": "unfulfilled",
"fulfillments": [],
"gift": false,
"gift_message": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000035",
"item_count": 1,
"lines": [
{
"discount_allocations": [{"amount": 4500, "class": "order", "title": "Loyal customer"}],
"fulfilled_quantity": 0,
"gift_card": false,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"image": "",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"original_price": "520.00",
"price": "450.00",
"product_id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"properties": {},
"quantity": 1,
"refunded_quantity": 0,
"requires_shipping": true,
"sku": "ABY-LIN-M",
"tax": "0.00",
"tax_lines": [],
"taxable": true,
"title": "Embroidered linen abaya",
"total": "405.00",
"total_discount": "45.00",
"variant_id": "0193a1b2-c3d4-7e5f-8a6b-000000000014",
"variant_title": "M",
"vendor": "Layla",
"weight_grams": 0
}
],
"locale": "en",
"name": "#1001",
"net_payment": "420.00",
"note": "Call before delivery",
"number": 1001,
"order_discount": "45.00",
"payment_fee": "0.00",
"payment_method": "manual",
"phone": "+97455123456",
"processed_at": "2026-10-18T09:30:00Z",
"refunds": [],
"sample": false,
"shipping_address": null,
"shipping_line": {
"final": 1500,
"kind": "shipping",
"price": 1500,
"title": "Doha delivery"
},
"source": "draft",
"state": "open",
"status_url": "https://shop.sooquna.test/orders/01a14f9f314a7de682d35010a325f162",
"subtotal": "450.00",
"tags": ["phone", "priority"],
"tax_lines": [],
"taxes_included": true,
"tip": "0.00",
"token": "01a14f9f314a7de682d35010a325f162",
"total": "420.00",
"total_discounts": "45.00",
"total_outstanding": "0.00",
"total_received": "420.00",
"total_refunded": "0.00",
"total_shipping": "15.00",
"total_tax": "0.00",
"transactions": [
{
"actor": "Docs",
"amount": "420.00",
"created_at": "2026-10-18T09:30:00Z",
"error_code": "",
"gateway_ref": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000051",
"kind": "sale",
"method": "manual",
"provider": "manual",
"status": "success",
"test": false
}
],
"updated_at": "2026-10-18T09:30:00Z",
"version": 4
}

POST /orders/{id}/refunds/calculate · Scope: write_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/refunds/calculate" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"lines": [{"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037", "quantity": 1}],
"restock": true
}'
Response 200
{
"available": "420.00",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1,
"subtotal": "405.00",
"tax": "0.00"
}
],
"shipping": "0.00",
"shipping_refundable": "15.00",
"subtotal": "405.00",
"suggested": "405.00",
"tax": "0.00"
}

POST /orders/{id}/refunds · Scope: write_orders · Needs an Idempotency-Key header

Refund lines (with restock), shipping, or an amount. Send an idempotency_key so a retried request isn’t refunded twice.

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/refunds" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"lines": [{"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037", "quantity": 1}],
"restock": true,
"notify_customer": true,
"note": "Wrong size",
"idempotency_key": "refund-1001-1"
}'
Response 201
{
"attributes": {},
"billing_address": null,
"buyer_accepts_marketing": false,
"cancel_reason": "",
"cancelled_at": null,
"checkout_id": null,
"closed_at": null,
"cod_status": "",
"created_at": "2026-10-18T09:30:00Z",
"currency": "QAR",
"customer": {
"email": "[email protected]",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000007",
"name": "Noora Al-Kuwari",
"orders_count": 1,
"phone": "+97455123456"
},
"delivery_method": "shipping",
"delivery_title": "Doha delivery",
"discount_applications": [],
"discount_codes": [],
"draft_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000013",
"email": "[email protected]",
"financial_status": "partially_refunded",
"fulfillment_orders": [
{
"delivery_method": "shipping",
"hold_reason": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1,
"remaining": 0
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"status": "closed"
}
],
"fulfillment_status": "fulfilled",
"fulfillments": [
{
"created_at": "2026-10-18T09:30:00Z",
"fulfillment_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000050",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"name": "#1001-F1",
"shipment_status": "in_transit",
"status": "success",
"tracking_company": "Aramex",
"tracking_number": "47012233442",
"tracking_url": "https://www.aramex.com/track/results?ShipmentNumber=47012233442"
}
],
"gift": false,
"gift_message": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000035",
"item_count": 1,
"lines": [
{
"discount_allocations": [{"amount": 4500, "class": "order", "title": "Loyal customer"}],
"fulfilled_quantity": 1,
"gift_card": false,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"image": "",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"original_price": "520.00",
"price": "450.00",
"product_id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"properties": {},
"quantity": 1,
"refunded_quantity": 1,
"requires_shipping": true,
"sku": "ABY-LIN-M",
"tax": "0.00",
"tax_lines": [],
"taxable": true,
"title": "Embroidered linen abaya",
"total": "405.00",
"total_discount": "45.00",
"variant_id": "0193a1b2-c3d4-7e5f-8a6b-000000000014",
"variant_title": "M",
"vendor": "Layla",
"weight_grams": 0
}
],
"locale": "en",
"name": "#1001",
"net_payment": "15.00",
"note": "Call before delivery",
"number": 1001,
"order_discount": "45.00",
"payment_fee": "0.00",
"payment_method": "manual",
"phone": "+97455123456",
"processed_at": "2026-10-18T09:30:00Z",
"refunds": [
{
"amount": "405.00",
"created_at": "2026-10-18T09:30:00Z",
"created_by": "Docs",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000055",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"quantity": 1,
"restock_type": "return",
"subtotal": "405.00",
"tax": "0.00"
}
],
"note": "Wrong size",
"restock": true,
"shipping": "0.00"
}
],
"sample": false,
"shipping_address": null,
"shipping_line": {
"final": 1500,
"kind": "shipping",
"price": 1500,
"title": "Doha delivery"
},
"source": "draft",
"state": "open",
"status_url": "https://shop.sooquna.test/orders/01a14f9f314a7de682d35010a325f162",
"subtotal": "450.00",
"tags": ["phone", "priority"],
"tax_lines": [],
"taxes_included": true,
"tip": "0.00",
"token": "01a14f9f314a7de682d35010a325f162",
"total": "420.00",
"total_discounts": "45.00",
"total_outstanding": "0.00",
"total_received": "420.00",
"total_refunded": "405.00",
"total_shipping": "15.00",
"total_tax": "0.00",
"transactions": [
{
"actor": "Docs",
"amount": "420.00",
"created_at": "2026-10-18T09:30:00Z",
"error_code": "",
"gateway_ref": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000051",
"kind": "sale",
"method": "manual",
"provider": "manual",
"status": "success",
"test": false
},
{
"actor": "Docs",
"amount": "405.00",
"created_at": "2026-10-18T09:30:00Z",
"error_code": "",
"gateway_ref": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000056",
"kind": "refund",
"method": "manual",
"provider": "manual",
"status": "success",
"test": false
}
],
"updated_at": "2026-10-18T09:30:00Z",
"version": 6
}

POST /orders/{id}/cancel · Scope: write_orders · Needs an Idempotency-Key header

Reasons: customer, inventory, fraud, declined, staff, other.

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/cancel" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"reason": "customer",
"refund": true,
"restock": true,
"notify_customer": true
}'

POST /orders/{id}/close · Scope: write_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/close" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"attributes": {},
"billing_address": null,
"buyer_accepts_marketing": false,
"cancel_reason": "",
"cancelled_at": null,
"checkout_id": null,
"closed_at": "2026-10-18T09:30:00Z",
"cod_status": "",
"created_at": "2026-10-18T09:30:00Z",
"currency": "QAR",
"customer": {
"email": "[email protected]",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000007",
"name": "Noora Al-Kuwari",
"orders_count": 1,
"phone": "+97455123456"
},
"delivery_method": "shipping",
"delivery_title": "Doha delivery",
"discount_applications": [],
"discount_codes": [],
"draft_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000013",
"email": "[email protected]",
"financial_status": "partially_refunded",
"fulfillment_orders": [
{
"delivery_method": "shipping",
"hold_reason": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1,
"remaining": 0
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"status": "closed"
}
],
"fulfillment_status": "fulfilled",
"fulfillments": [
{
"created_at": "2026-10-18T09:30:00Z",
"fulfillment_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000050",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"name": "#1001-F1",
"shipment_status": "in_transit",
"status": "success",
"tracking_company": "Aramex",
"tracking_number": "47012233442",
"tracking_url": "https://www.aramex.com/track/results?ShipmentNumber=47012233442"
}
],
"gift": false,
"gift_message": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000035",
"item_count": 1,
"lines": [
{
"discount_allocations": [{"amount": 4500, "class": "order", "title": "Loyal customer"}],
"fulfilled_quantity": 1,
"gift_card": false,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"image": "",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"original_price": "520.00",
"price": "450.00",
"product_id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"properties": {},
"quantity": 1,
"refunded_quantity": 1,
"requires_shipping": true,
"sku": "ABY-LIN-M",
"tax": "0.00",
"tax_lines": [],
"taxable": true,
"title": "Embroidered linen abaya",
"total": "405.00",
"total_discount": "45.00",
"variant_id": "0193a1b2-c3d4-7e5f-8a6b-000000000014",
"variant_title": "M",
"vendor": "Layla",
"weight_grams": 0
}
],
"locale": "en",
"name": "#1001",
"net_payment": "15.00",
"note": "Call before delivery",
"number": 1001,
"order_discount": "45.00",
"payment_fee": "0.00",
"payment_method": "manual",
"phone": "+97455123456",
"processed_at": "2026-10-18T09:30:00Z",
"refunds": [
{
"amount": "405.00",
"created_at": "2026-10-18T09:30:00Z",
"created_by": "Docs",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000055",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"quantity": 1,
"restock_type": "return",
"subtotal": "405.00",
"tax": "0.00"
}
],
"note": "Wrong size",
"restock": true,
"shipping": "0.00"
}
],
"sample": false,
"shipping_address": null,
"shipping_line": {
"final": 1500,
"kind": "shipping",
"price": 1500,
"title": "Doha delivery"
},
"source": "draft",
"state": "archived",
"status_url": "https://shop.sooquna.test/orders/01a14f9f314a7de682d35010a325f162",
"subtotal": "450.00",
"tags": ["phone", "priority"],
"tax_lines": [],
"taxes_included": true,
"tip": "0.00",
"token": "01a14f9f314a7de682d35010a325f162",
"total": "420.00",
"total_discounts": "45.00",
"total_outstanding": "0.00",
"total_received": "420.00",
"total_refunded": "405.00",
"total_shipping": "15.00",
"total_tax": "0.00",
"transactions": [
{
"actor": "Docs",
"amount": "420.00",
"created_at": "2026-10-18T09:30:00Z",
"error_code": "",
"gateway_ref": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000051",
"kind": "sale",
"method": "manual",
"provider": "manual",
"status": "success",
"test": false
},
{
"actor": "Docs",
"amount": "405.00",
"created_at": "2026-10-18T09:30:00Z",
"error_code": "",
"gateway_ref": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000056",
"kind": "refund",
"method": "manual",
"provider": "manual",
"status": "success",
"test": false
}
],
"updated_at": "2026-10-18T09:30:00Z",
"version": 7
}

POST /orders/{id}/reopen · Scope: write_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/reopen" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{
"attributes": {},
"billing_address": null,
"buyer_accepts_marketing": false,
"cancel_reason": "",
"cancelled_at": null,
"checkout_id": null,
"closed_at": null,
"cod_status": "",
"created_at": "2026-10-18T09:30:00Z",
"currency": "QAR",
"customer": {
"email": "[email protected]",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000007",
"name": "Noora Al-Kuwari",
"orders_count": 1,
"phone": "+97455123456"
},
"delivery_method": "shipping",
"delivery_title": "Doha delivery",
"discount_applications": [],
"discount_codes": [],
"draft_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000013",
"email": "[email protected]",
"financial_status": "partially_refunded",
"fulfillment_orders": [
{
"delivery_method": "shipping",
"hold_reason": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1,
"remaining": 0
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"status": "closed"
}
],
"fulfillment_status": "fulfilled",
"fulfillments": [
{
"created_at": "2026-10-18T09:30:00Z",
"fulfillment_order_id": "0193a1b2-c3d4-7e5f-8a6b-000000000036",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000050",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"quantity": 1
}
],
"location": {
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"name": "West Bay shop"
},
"name": "#1001-F1",
"shipment_status": "in_transit",
"status": "success",
"tracking_company": "Aramex",
"tracking_number": "47012233442",
"tracking_url": "https://www.aramex.com/track/results?ShipmentNumber=47012233442"
}
],
"gift": false,
"gift_message": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000035",
"item_count": 1,
"lines": [
{
"discount_allocations": [{"amount": 4500, "class": "order", "title": "Loyal customer"}],
"fulfilled_quantity": 1,
"gift_card": false,
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"image": "",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"original_price": "520.00",
"price": "450.00",
"product_id": "0193a1b2-c3d4-7e5f-8a6b-000000000005",
"properties": {},
"quantity": 1,
"refunded_quantity": 1,
"requires_shipping": true,
"sku": "ABY-LIN-M",
"tax": "0.00",
"tax_lines": [],
"taxable": true,
"title": "Embroidered linen abaya",
"total": "405.00",
"total_discount": "45.00",
"variant_id": "0193a1b2-c3d4-7e5f-8a6b-000000000014",
"variant_title": "M",
"vendor": "Layla",
"weight_grams": 0
}
],
"locale": "en",
"name": "#1001",
"net_payment": "15.00",
"note": "Call before delivery",
"number": 1001,
"order_discount": "45.00",
"payment_fee": "0.00",
"payment_method": "manual",
"phone": "+97455123456",
"processed_at": "2026-10-18T09:30:00Z",
"refunds": [
{
"amount": "405.00",
"created_at": "2026-10-18T09:30:00Z",
"created_by": "Docs",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000055",
"lines": [
{
"line_id": "0193a1b2-c3d4-7e5f-8a6b-000000000037",
"location_id": "0193a1b2-c3d4-7e5f-8a6b-000000000023",
"quantity": 1,
"restock_type": "return",
"subtotal": "405.00",
"tax": "0.00"
}
],
"note": "Wrong size",
"restock": true,
"shipping": "0.00"
}
],
"sample": false,
"shipping_address": null,
"shipping_line": {
"final": 1500,
"kind": "shipping",
"price": 1500,
"title": "Doha delivery"
},
"source": "draft",
"state": "open",
"status_url": "https://shop.sooquna.test/orders/01a14f9f314a7de682d35010a325f162",
"subtotal": "450.00",
"tags": ["phone", "priority"],
"tax_lines": [],
"taxes_included": true,
"tip": "0.00",
"token": "01a14f9f314a7de682d35010a325f162",
"total": "420.00",
"total_discounts": "45.00",
"total_outstanding": "0.00",
"total_received": "420.00",
"total_refunded": "405.00",
"total_shipping": "15.00",
"total_tax": "0.00",
"transactions": [
{
"actor": "Docs",
"amount": "420.00",
"created_at": "2026-10-18T09:30:00Z",
"error_code": "",
"gateway_ref": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000051",
"kind": "sale",
"method": "manual",
"provider": "manual",
"status": "success",
"test": false
},
{
"actor": "Docs",
"amount": "405.00",
"created_at": "2026-10-18T09:30:00Z",
"error_code": "",
"gateway_ref": "",
"id": "0193a1b2-c3d4-7e5f-8a6b-000000000056",
"kind": "refund",
"method": "manual",
"provider": "manual",
"status": "success",
"test": false
}
],
"updated_at": "2026-10-18T09:30:00Z",
"version": 8
}

POST /orders/{id}/cod-confirm · Scope: write_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/cod-confirm" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"

GET /orders/{id}/invoices · Scope: read_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/invoices" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{"data": []}

POST /orders/{id}/invoices · Scope: write_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X POST "https://api.sooquna.com/admin/api/2026-10/orders/0193a1b2-c3d4-7e5f-8a6b-000000000035/invoices" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"

GET /abandoned-checkouts · Scope: read_orders

Parameter In Description
limit query For example 20.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/abandoned-checkouts?limit=20" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{"data": [], "page_info": {"end_cursor": "", "has_next_page": false}}

GET /abandoned-checkouts/{id} · Scope: read_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/abandoned-checkouts/0193a1b2-6e4e-7021-831d-c062f3224a2f" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"

GET /invoices · Scope: read_orders

Parameter In Description
from query For example 2026-10-01.
to query For example 2026-10-31.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/invoices?from=2026-10-01&to=2026-10-31" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"
Response 200
{"data": []}

GET /invoices/{id} · Scope: read_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/invoices/0193a1b2-fcce-7039-8c02-ad9a810b3006" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN"

GET /invoices/{id}/pdf · Scope: read_orders

Parameter In Description
id path The resource’s ID.
Terminal window
curl -X GET "https://api.sooquna.com/admin/api/2026-10/invoices/0193a1b2-a106-72b4-8b5d-6a45297a2d2b/pdf" \
-H "X-Sooquna-Access-Token: $SOOQUNA_TOKEN" \
-o invoice.pdf

Was this page helpful?