Create Refund Orders
Request
Method: POST
Endpoint: /orders/refund
Content-Type: application/json
Request Body
| Field Name | Required | Type | Description |
|---|---|---|---|
customer | Yes | object | An object containing the customer's details as per the Customer Details table. |
products | Yes | array of objects | An array of product objects, each structured as per the Product Details table. At least one product is required. |
type | Yes | string | The type of order, must be "REFUND". |
notes | No | string | Any additional notes or special instructions for the order. |
refundedAmount | Yes | number | The total amount to be refunded (in EGP). |
handlesShipping | Yes | string | Who handles shipping, "CUSTOMER" or "BRAND". |
Customer Details
| Field Name | Required | Type | Description |
|---|---|---|---|
name | Yes | string | The customer's full name (min 2 characters). |
phone | Yes | string | Phone number starting with 01, digits only, exactly 11 digits. |
address | Yes | string | The customer's full address (min 2 characters). |
governorate | Yes | string | The customer's governorate, one of the Valid Governorate Syntaxes. |
Valid Governorate Syntaxes
6th of OctoberAlexandriaAswanAsyutBeheiraBeni SuefCairoDakahliaDamiettaFayedFayoumGharbeyaGizaHelwanIsmailiaKafr El SheikhLuxorMatrouhMenoufiaMinyaNew ValleyNorth SinaiPort SaidQalyubiaQenaRed SeaSharkeyaSohagSouth SinaiSuez
Product Details
Please make sure all products provided to this route have their SKUs mapped with their Turuq counterparts.
| Field Name | Required | Type | Description |
|---|---|---|---|
UID | Yes | string | Turuq's 13-digit identifier or a client SKU mapped to that product. An identifier that doesn't match one of the client's products is rejected. |
quantity | Yes | number | Quantity of the product (min 1). |
price | Yes | number | Price per unit (in EGP). |
weight | Yes | number | Weight per unit (in KG). |
defectiveQuantity | No | integer | Number of defective units among the returned quantity. Must be a non-negative integer. The limit applies to each line, so a line's defectiveQuantity cannot exceed that line's quantity. |
Example Payload
Response
✅ 201 Created
The refund order was successfully created.
Response Body
❌ 400 Bad Request
Invalid request, schema validation failed, client not found, or creation failure.
issues is only returned for schema validation failures. An empty products list is a schema validation failure, with "At least one product is required." inside issues.
