curl --location 'https://api.techrar.com/order/v1/merchant/orders//' \
--header 'app-id: 4' \
--header 'Authorization: Bearer <token>'{
"id": 279,
"custom_fields": {
"merchant_id": 1
},
"customer": {
"id": 1,
"country_code": "966",
"username": "0534501056",
"mobile_number": "966534501056",
"email": "[email protected]",
"name": "Safwan Saigh",
"lang": "en",
"current_city_id": 1,
"is_email_verified": true,
"is_mobile_verified": true,
"is_blocked": false,
"is_deleted": false,
"is_verified": true,
"national_id": "1111782031",
"secondary_mobile_number": "0534501056",
"date_of_birth": "1999-02-25",
"avatar": "/media/uploads/customer/avatars/2024/07/29/12048986-a1b6-4e1d-9b8a-216331f3cd71.png",
"joined_at": "2022-03-12T14:51:15.115924Z",
"custom_fields": null
},
"receiver": {
"id": 1,
"country_code": "966",
"username": "0534501056",
"mobile_number": "966534501056",
"email": "[email protected]",
"name": "Safwan Saigh",
"lang": "en",
"current_city_id": 1,
"is_email_verified": true,
"is_mobile_verified": true,
"is_blocked": false,
"is_deleted": false,
"is_verified": true,
"national_id": "1111782031",
"secondary_mobile_number": "0534501056",
"date_of_birth": "1999-02-25",
"avatar": "/media/uploads/customer/avatars/2024/07/29/12048986-a1b6-4e1d-9b8a-216331f3cd71.png",
"joined_at": "2022-03-12T14:51:15.115924Z",
"custom_fields": null
},
"items": [
{
"id": 356,
"custom_fields": null,
"item": {
"id": 108,
"custom_fields": null,
"images": [
{
"ordering": 0,
"lang": "en",
"full_size": "/media/uploads/items/full_size/2025/05/14/5a8747e6-f1ae-4dfd-b812-66cfdf9e2803.png",
"thumbnail": "/media/uploads/items/thumbnail/2025/05/14/ecf22fe0-0509-482c-bbca-63f13a6d3cec.png",
"large": null,
"medium": null,
"small": null
},
{
"ordering": 12,
"lang": "en",
"full_size": "/media/uploads/items/full_size/2025/05/14/db0b5126-84ee-499d-8dbe-2183ad549a8b.png",
"thumbnail": "/media/uploads/items/thumbnail/2025/05/14/6bcd31cb-e570-40a6-88ec-39ef97822c95.png",
"large": null,
"medium": null,
"small": null
}
],
"discount": {
"is_applied": false,
"is_trial_applied": false,
"is_usage_price": false,
"price_after_discount_no_trial": 100,
"price_after_discount": 100
},
"stock": {
"in_stock": true,
"qty": 100
},
"modifiers": [
{
"id": 3,
"ordering": 0,
"name_en": "mod",
"name_ar": "mod",
"values": [
{
"id": 5,
"ordering": 0,
"name_en": "one",
"name_ar": "one"
},
{
"id": 6,
"ordering": 0,
"name_en": "two",
"name_ar": "two"
}
]
}
],
"variants": [
{
"id": 108,
"custom_fields": null,
"images": [
{
"ordering": 0,
"lang": "en",
"full_size": "/media/uploads/items/full_size/2025/05/14/5a8747e6-f1ae-4dfd-b812-66cfdf9e2803.png",
"thumbnail": "/media/uploads/items/thumbnail/2025/05/14/ecf22fe0-0509-482c-bbca-63f13a6d3cec.png",
"large": null,
"medium": null,
"small": null
},
{
"ordering": 12,
"lang": "en",
"full_size": "/media/uploads/items/full_size/2025/05/14/db0b5126-84ee-499d-8dbe-2183ad549a8b.png",
"thumbnail": "/media/uploads/items/thumbnail/2025/05/14/6bcd31cb-e570-40a6-88ec-39ef97822c95.png",
"large": null,
"medium": null,
"small": null
}
],
"discount": {
"is_applied": false,
"is_trial_applied": false,
"is_usage_price": false,
"price_after_discount_no_trial": 100,
"price_after_discount": 100
},
"stock": {
"in_stock": true,
"qty": 100
},
"plan_config": null,
"off_days": [],
"off_dates": [],
"variant_title_en": "one2",
"variant_title_ar": "one2",
"modifier_values": [
5
],
"app_id": 86,
"ordering": 0,
"type": "product",
"service_type": "digital",
"sku": "1744877612311",
"price": 100,
"name_en": "test",
"name_ar": "test",
"description_en": "",
"description_ar": "",
"is_plan_only": false,
"is_plan_enabled": false,
"served_from_date": null,
"served_to_date": null,
"served_from_time": null,
"served_to_time": null
},
{
"id": 111,
"custom_fields": null,
"images": [],
"discount": {
"is_applied": true,
"is_trial_applied": false,
"is_usage_price": false,
"price_after_discount_no_trial": 180,
"price_after_discount": 180
},
"stock": {
"in_stock": true,
"qty": 100
},
"plan_config": null,
"off_days": [],
"off_dates": [],
"variant_title_en": "two_updated",
"variant_title_ar": "two_updated",
"modifier_values": [
6
],
"app_id": 86,
"ordering": 0,
"type": "product",
"service_type": "digital",
"sku": "1746546599705",
"price": 200,
"name_en": "test",
"name_ar": "test",
"description_en": "",
"description_ar": "",
"is_plan_only": false,
"is_plan_enabled": false,
"served_from_date": null,
"served_to_date": null,
"served_from_time": null,
"served_to_time": null
}
],
"varies_on": "modifiers",
"bundle_categories": [],
"plan_config": null,
"off_days": [],
"off_dates": [],
"app_id": 86,
"ordering": 0,
"type": "product",
"service_type": "digital",
"sku": "1744877612311",
"price": 100,
"name_en": "test",
"name_ar": "test",
"description_en": "",
"description_ar": "",
"is_plan_only": false,
"is_plan_enabled": false,
"served_from_date": null,
"served_to_date": null,
"served_from_time": null,
"served_to_time": null,
"categories": [
12
]
},
"app_id": 86,
"created_at": "2025-05-21T11:01:37.635125+03:00",
"item_id": 108,
"name_en": "test",
"name_ar": "test",
"price_before_discount": 100,
"price_after_discount": 100,
"qty": 1,
"net_price": 100,
"voucher_discounts_amount": 10,
"total_price": 90,
"auto_renew": false,
"date": "2025-03-11",
"time": null,
"parent_order_item": null,
"discounts": [
8
]
}
],
"history": [
{
"created_at": "2025-05-21T11:01:37.599955+03:00",
"status": "pending"
},
{
"created_at": "2025-05-21T11:01:37.885015+03:00",
"status": "processing"
},
{
"created_at": "2025-05-21T11:01:38.058837+03:00",
"status": "completed"
}
],
"discounts": [
{
"id": 8,
"custom_fields": null,
"app_id": 86,
"created_at": "2025-05-21T11:01:37.601960+03:00",
"voucher_id": 39194,
"code": "testtest",
"title": "testtest",
"amount": 10,
"cashback_amount": 0,
"currency": "SAR",
"discount_on": "total"
}
],
"is_gifted": false,
"invoices": [
{
"id": 245,
"custom_fields": {
"merchant_id": 1
},
"items": [
{
"id": 277,
"custom_fields": null,
"item": {
"id": 108,
"custom_fields": null,
"images": [
{
"ordering": 0,
"lang": "en",
"full_size": "/media/uploads/items/full_size/2025/05/14/5a8747e6-f1ae-4dfd-b812-66cfdf9e2803.png",
"thumbnail": "/media/uploads/items/thumbnail/2025/05/14/ecf22fe0-0509-482c-bbca-63f13a6d3cec.png",
"large": null,
"medium": null,
"small": null
},
{
"ordering": 12,
"lang": "en",
"full_size": "/media/uploads/items/full_size/2025/05/14/db0b5126-84ee-499d-8dbe-2183ad549a8b.png",
"thumbnail": "/media/uploads/items/thumbnail/2025/05/14/6bcd31cb-e570-40a6-88ec-39ef97822c95.png",
"large": null,
"medium": null,
"small": null
}
],
"discount": {
"is_applied": false,
"is_trial_applied": false,
"is_usage_price": false,
"price_after_discount_no_trial": 100,
"price_after_discount": 100
},
"stock": {
"in_stock": true,
"qty": 100
},
"modifiers": [
{
"id": 3,
"ordering": 0,
"name_en": "mod",
"name_ar": "mod",
"values": [
{
"id": 5,
"ordering": 0,
"name_en": "one",
"name_ar": "one"
},
{
"id": 6,
"ordering": 0,
"name_en": "two",
"name_ar": "two"
}
]
}
],
"variants": [
{
"id": 108,
"custom_fields": null,
"images": [
{
"ordering": 0,
"lang": "en",
"full_size": "/media/uploads/items/full_size/2025/05/14/5a8747e6-f1ae-4dfd-b812-66cfdf9e2803.png",
"thumbnail": "/media/uploads/items/thumbnail/2025/05/14/ecf22fe0-0509-482c-bbca-63f13a6d3cec.png",
"large": null,
"medium": null,
"small": null
},
{
"ordering": 12,
"lang": "en",
"full_size": "/media/uploads/items/full_size/2025/05/14/db0b5126-84ee-499d-8dbe-2183ad549a8b.png",
"thumbnail": "/media/uploads/items/thumbnail/2025/05/14/6bcd31cb-e570-40a6-88ec-39ef97822c95.png",
"large": null,
"medium": null,
"small": null
}
],
"discount": {
"is_applied": false,
"is_trial_applied": false,
"is_usage_price": false,
"price_after_discount_no_trial": 100,
"price_after_discount": 100
},
"stock": {
"in_stock": true,
"qty": 100
},
"plan_config": null,
"off_days": [],
"off_dates": [],
"variant_title_en": "one2",
"variant_title_ar": "one2",
"modifier_values": [
5
],
"app_id": 86,
"ordering": 0,
"type": "product",
"service_type": "digital",
"sku": "1744877612311",
"price": 100,
"name_en": "test",
"name_ar": "test",
"description_en": "",
"description_ar": "",
"is_plan_only": false,
"is_plan_enabled": false,
"served_from_date": null,
"served_to_date": null,
"served_from_time": null,
"served_to_time": null
},
{
"id": 111,
"custom_fields": null,
"images": [],
"discount": {
"is_applied": true,
"is_trial_applied": false,
"is_usage_price": false,
"price_after_discount_no_trial": 180,
"price_after_discount": 180
},
"stock": {
"in_stock": true,
"qty": 100
},
"plan_config": null,
"off_days": [],
"off_dates": [],
"variant_title_en": "two_updated",
"variant_title_ar": "two_updated",
"modifier_values": [
6
],
"app_id": 86,
"ordering": 0,
"type": "product",
"service_type": "digital",
"sku": "1746546599705",
"price": 200,
"name_en": "test",
"name_ar": "test",
"description_en": "",
"description_ar": "",
"is_plan_only": false,
"is_plan_enabled": false,
"served_from_date": null,
"served_to_date": null,
"served_from_time": null,
"served_to_time": null
}
],
"varies_on": "modifiers",
"bundle_categories": [],
"plan_config": null,
"off_days": [],
"off_dates": [],
"app_id": 86,
"ordering": 0,
"type": "product",
"service_type": "digital",
"sku": "1744877612311",
"price": 100,
"name_en": "test",
"name_ar": "test",
"description_en": "",
"description_ar": "",
"is_plan_only": false,
"is_plan_enabled": false,
"served_from_date": null,
"served_to_date": null,
"served_from_time": null,
"served_to_time": null,
"categories": [
12
]
},
"app_id": 86,
"created_at": "2025-05-21T11:01:37.653699+03:00",
"item_id": 108,
"name_en": "test",
"name_ar": "test",
"refund_reason": null,
"amount": 100,
"qty": 1,
"net_amount": 100,
"voucher_discounts_amount": 10,
"total_amount_excluding_tax": 78.26,
"tax_percentage": 15,
"tax_amount": 11.74,
"total_amount": 90,
"auto_renew": false,
"date": "2025-03-11",
"time": null,
"order_item": 356,
"parent_invoice_item": null
}
],
"transactions": [
{
"id": 116,
"custom_fields": null,
"invoice_id": 245,
"provider_details": {
"is_success": true,
"redeem_discounts": 90,
"total_amount": 0,
"redeemed_point_id": 36494,
"redeem_flag": false
},
"app_id": 86,
"created_at": "2025-05-21T11:01:37.715713+03:00",
"type": "payment",
"reason": null,
"currency": "SAR",
"received_amount": 90,
"quoted_amount": 90,
"status": "captured",
"method": "wallet",
"provider": "techrar",
"provider_auth_code": null,
"provider_status": "captured",
"provider_method": "wallet",
"provider_transaction_id": "36494",
"provider_invoice_id": null,
"provider_order_id": null,
"fraud_detected": false,
"fraud_reason": null,
"attachment": null
}
],
"order_id": 279,
"customer": {
"id": 1,
"country_code": "966",
"username": "0534501056",
"mobile_number": "966534501056",
"email": "[email protected]",
"name": "Safwan Saigh",
"lang": "en",
"current_city_id": 1,
"is_email_verified": true,
"is_mobile_verified": true,
"is_blocked": false,
"is_deleted": false,
"is_verified": true,
"national_id": "1111782031",
"secondary_mobile_number": "0534501056",
"date_of_birth": "1999-02-25",
"avatar": "/media/uploads/customer/avatars/2024/07/29/12048986-a1b6-4e1d-9b8a-216331f3cd71.png",
"joined_at": "2022-03-12T14:51:15.115924Z",
"custom_fields": null
},
"app_id": 86,
"created_at": "2025-05-21T11:01:37.646544+03:00",
"serial": "INV-202500091",
"pdf": null,
"invoice_reference_id": null,
"invoice_reference_serial": null,
"invoice_reference_pdf": null,
"type": "normal",
"status": "paid",
"refund_reason": null,
"issued_at": "2025-05-21T11:01:37.645725+03:00",
"due_at": "2025-05-21T11:01:37.645728+03:00",
"sub_total_amount": 100,
"shipping_amount": 0,
"setup_amount": 0,
"net_amount": 100,
"sub_total_discounts_amount": 10,
"shipping_discounts_amount": 0,
"total_discounts_amount": 10,
"total_amount_excluding_tax": 78.26,
"tax_percentage": 15,
"tax_amount": 11.74,
"total_amount": 90,
"wallet_redeem_amount": 90,
"total_amount_with_redeem": 0,
"currency": "SAR",
"payment_method": "wallet",
"payment_provider": "techrar",
"is_auto_renewal": false,
"parent_invoice": null
}
],
"app_id": 86,
"created_at": "2025-05-21T11:01:37.596207+03:00",
"customer_buyer_id": 1,
"customer_receiver_id": null,
"status": "completed",
"source": "other",
"location_id": null,
"branch_id": null,
"branch_details": null,
"sub_total_amount": 100,
"shipping_amount": 0,
"setup_amount": 0,
"net_amount": 100,
"sub_total_discounts_amount": 10,
"shipping_discounts_amount": 0,
"total_discounts_amount": 10,
"total_amount": 90,
"wallet_redeem_amount": 90,
"total_amount_with_redeem": 0,
"currency": "SAR",
"payment_method": "wallet",
"payment_provider": "techrar",
"notes": "",
"order_reference_id": null
}