Duplicate Order
POST
/orders/duplicateThis endpoint allows you to duplicate the details of a specific order
Request
{
"order_id": 212342
}
Request samples
Responses
Response status code, a numeric or alphanumeric identifier used to convey the outcome or status of a request, operation, or transaction in various systems and applications, typically indicating whether the action was successful, encountered an error, or resulted in a specific condition.
Response flag, boolean indicator used to signal a particular condition or state in the response of a system or application, often representing the presence or absence of certain conditions or outcomes.
Detailed structure of the Order model object showing its fields and data types.
A unique alphanumeric code or identifier assigned to a specific order. List of orders can be found here
A unique alphanumeric code or identifier assigned to a specific order cart.
A specific alphanumeric identifier associated with an order.
Customer and Admin urls.
Date and Time of the order.
The source of the order.
Whether or not the order 's status is set to draft
Whether or not the Merchant has read the order
The machine or device used when the customer placed the order.
Order source details.
Order status.
The option to quote order price.
The specific payment option or financial mechanism chosen and used by a customer to pay for a product or service as part of an order, encompassing various methods.
Order's image receipt
The currency in which order costs and prices are expressed and processed, based on the customer's preferences or the business's operational currency.
Order amounts.
The order exchange rate.
The option to enable order cancellation by the store customer.True
value should be set if the order status is in under review and in progress, as according to the store settings.
Whether or not to show the weight value.
Whether or not to enable reorder .
The option of displaying order is pending payment to the customer when the order status is payment_pending
.
Last date allowed to customer to pay the order.
Total weight value
Order Rating Link.
Note that the order has to be of either of the following statuses: completed
, delivered
, or shipped
. The merchant has to allow the product to be rated from the Store Settings > Rating Settings
Order Shipping details.
Order shipment details.
Order pickup branch details.
Order shipment branch details.
Customer details.
Order Tag details.
Order store details.
{
"status": 201,
"success": true,
"data": {
"id": 1773697839,
"cart_reference_id": null,
"reference_id": 140,
"urls": {
"customer": "https://store.test/ar/theoriginalstore/order/Bl4xzL8g3nAq5paqQ8aRVY0D7oJZ2ebN",
"admin": "/orders/order/Bl4xzL8g3nAq5paqQ8aRVY0D7oJZ2ebN"
},
"date": {
"date": "2024-05-08 11:05:59.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"updated_at": {
"date": "2024-05-08 11:05:59.481304",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"source": "dashboard",
"draft": true,
"read": true,
"source_device": "desktop",
"source_details": {
"type": "dashboard",
"value": null,
"device": "desktop",
"user-agent": "HTTPie",
"ip": null
},
"status": [],
"is_price_quote": false,
"payment_method": null,
"receipt_image": null,
"currency": "SAR",
"amounts": {
"sub_total": {
"amount": 0,
"currency": "SAR"
},
"shipping_cost": {
"amount": 0,
"currency": "SAR"
},
"cash_on_delivery": {
"amount": 0,
"currency": "SAR"
},
"tax": {
"percent": "0.00",
"amount": {
"amount": 0,
"currency": "SAR"
}
},
"discounts": [],
"total": {
"amount": 0,
"currency": "SAR"
}
},
"can_cancel": false,
"show_weight": false,
"can_reorder": false,
"is_pending_payment": true,
"pending_payment_ends_at": 283766,
"total_weight": null,
"rating_link": null,
"shipping": null,
"shipments": null,
"checkout_url": "https://store.test/ar/theoriginalstore/order_complete/LvZZ",
"pending_payment_start_at": {
"date": "2024-05-08 17:55:26.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"shipment_branch": [],
"customer": {
"id": 2079537577,
"first_name": "اويس",
"last_name": "الشيخ",
"mobile": 544519727,
"mobile_code": "+966",
"email": "[email protected]",
"urls": {
"customer": "https://store.test/ar/theoriginalstore/profile",
"admin": "/customers/AkKqLmyR78Zjn9WxZ132pGevzVB0QOox"
},
"avatar": "https://s3-us-west-1.amazonaws.com/salla/Hf3zWgOwlxd9H8KEKY3beI34HiUuzLFvfFkObBUI.jpeg",
"gender": "male",
"birthday": {
"date": "1984-05-19 00:00:00.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"city": "مكة",
"country": "السعودية",
"country_code": "SA",
"currency": "SAR",
"location": "Near the skies",
"updated_at": {
"date": "2024-05-05 17:50:13.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"groups": []
},
"items": [],
"bank": null,
"tags": [],
"store": {
"id": 1764372897,
"store_id": 1764372897,
"user_id": 525144736,
"user_email": "[email protected]",
"username": "theoriginalstore",
"name": {
"ar": "متجر الاصلي",
"en": null
},
"avatar": "https://s3-eu-central-1.amazonaws.com/salla-cdn/Q5fH1B1EoWCVwX0KFxvLPuiG8yUomtnjr3yem358."
}
}
}