Light Mode
Duplicate Order
POST
/orders/duplicateLast modified: 22 days ago
This endpoint allows you to duplicate the details of a specific order
Request
Body Params application/json
Example
{
"order_id": 212342
}
Request samples
Responses
Created Successfully(201)
Error Validation(422)
Created Successfully
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"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."
}
}
}
Last modified: 22 days ago