order_copies

Create an order copy

Changed on

Create an order copy

post/order_copies

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/order_copies
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "place_target_order": true,
      "reuse_wallet": true,
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      },
      "cancel_source_order": true,
      "apply_promotions": true,
      "skip_errors": true,
      "ignore_invalid_coupon": true
    },
    "relationships": {
      "source_order": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      }
    }
  }
}

Response

The created order copy object

Changes

    • breaking

      added the new required request property ///

    • breaking

      request property / was restricted to a list of enum values

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      added the new optional request property //

    • info

      the request property default value order_copies was removed

    • info

      added the new order_copies enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status