Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.17 KB

clone-order-request.md

File metadata and controls

28 lines (19 loc) · 1.17 KB

Clone Order Request

Defines the fields that are included in requests to the CloneOrder endpoint.

Structure

CloneOrderRequest

Fields

Name Type Tags Description
orderId string Required The ID of the order to clone.
version number | undefined Optional An optional order version for concurrency protection.

If a version is provided, it must match the latest stored version of the order to clone.
If a version is not provided, the API clones the latest version.
idempotencyKey string | undefined Optional A value you specify that uniquely identifies this clone request.

If you are unsure whether a particular order was cloned successfully,
you can reattempt the call with the same idempotency key without
worrying about creating duplicate cloned orders.
The originally cloned order is returned.

For more information, see Idempotency.

Example (as JSON)

{
  "idempotency_key": "UNIQUE_STRING",
  "order_id": "ZAISEM52YcpmcWAzERDOyiWS123",
  "version": 3
}