- Welcome 👋
- Get Started
- Create Your First App
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- APIs
- Orders
- Order Status
- Order Histories
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Abandoned Carts
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
Duplicate Order
Production
Production
POST
https://api.salla.dev/admin/v2/orders/duplicate
Orders
Last modified:2025-03-24 08:57:10
Deprecation Notice
items.codes
and items.files
, are deprecated. We recommend using instead the data.urls.digital_content
variable.Scopes
orders.read_write
- Orders Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Body Params application/json
Example
{
"order_id": 212342
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.salla.dev/admin/v2/orders/duplicate' \
--header 'Content-Type: application/json' \
--data-raw '{
"order_id": 212342
}'
Responses
🟢201Created Successfully
application/json
Body
status
number
optional
success
boolean
optional
data
object (Order)
optional
id
number
required
cart_reference_id
number
required
reference_id
number
required
urls
object (Urls)
required
date
object (Date)
required
updated_at
object (Date)
required
source
enum<string>
required
Allowed values:
storelandingforgotten_basketabandoned-cartcampaigndashboardbuy_as_giftmahly-appbuy_nowone-clickcomplete_order
draft
boolean
required
draft
read
boolean
required
source_device
string
required
source_details
object
required
status
object (NewOrderStatus)
required
is_price_quote
boolean
required
payment_method
string
required
receipt_image
string
required
currency
string
required
amounts
object
required
exchange_rate
object
required
can_cancel
boolean
required
True
value should be set if the order status is in under review and in progress, as according to the store settings.show_weight
boolean
required
can_reorder
boolean
required
is_pending_payment
boolean
required
payment_pending
.pending_payment_ends_at
integer
required
total_weight
string
required
rating_link
string | null
required
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 Settingsshipping
object
required
shipments
array [object {22}]
required
pickup_branch
object (Branch)
required
shipment_branch
object (ShipmentBranch)
required
customer
object (Customer)
required
items
array [object {16}]
required
bank
object
required
tags
object (OrderTag)
required
store
object
required
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."
}
}
}
🟠422Error Validation
🟠401Unauthorised
Modified at 2025-03-24 08:57:10