Creates a new cart by duplicating the current reserved cart.This endpoint only works when the cart is reserved (i.e., payment has already been initiated).It’s typically used to:
The current cart must be reserved (is_reserved = true)
Payment initiation must have occurred
If these conditions are not met, the operation may fail.
Request
None
Request Code 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.zid.sa//cart/clone'
Responses
🟢201Success
application/json
Body
Example
{"id":"cart_new_123","session_id":"sess_new_abc","phase":"cart","is_reserved":false,"products_count":2,"total_value":250,"basket_url":"https://store.example.com/cart","...":"All other cart fields identical to GET /cart"}