Cart

Prerequisites

Create a Cart

Parameters

  • cultureCode, e.g. en-US (string)

  • currency, e.g. DKK (string)

Request

curl -D- -X POST <base_url>/api/v1/carts \
    -H 'Authorization: Bearer <ACCESS_TOKEN>'
    -H 'Content-Type: application/json' \
    -d '{
        "cultureCode": "<cultureCode>",
        "currency": "<currency>"
    }'

Response

Get Cart

Parameters

Request

Response

Converting a Cart to an Order

Parameters

Request

Response

Error Handling

Error
Description

BadRequest (400)

Execution of the pipeline fails; the Billing address is missing from the order; the Cart does not belong to the Store, etc.

Unauthorized (401)

The token is expired.

Forbidden (403)

The token does not have access to this endpoint.

Error Response Example

Error Handling

Last updated

Was this helpful?