POST
/
checkout-links
/
{id}
/
cart

Authorizations

Authorization
string
headerrequired

Value for the Authorization header parameter.

Path Parameters

id
string
required

CheckoutLink identifier

Body

customerId
string | null

The ID of the customer which should be pre-authenticated for the cart. The receiver of the cart link can see and select the customers payment methods and addresses. If the customer is not provided, the cart will be anonymous.

metadata
string[]

A collection of key-value pairs that can be linked to an object. This feature is beneficial for storing extra details regarding the object in an organized manner. To remove all keys, simply submit an empty value to the metadata. The metadata is shown in webhooks and api responses.

Response

201 - application/json
cartId
string

The ID of the cart

customerId
string | null

The ID of the customer.

url
string

The public URL to the cart