PUT
/
public
/
checkout
/
cart
/
{id}
/
confirm
curl -X PUT \
 /public/checkout/cart/{id}/confirm \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer <token>" \
 --data '{
    "email": "",
    "phone": "",
    "invoiceAddressId": "https:\/\/example.com\/",
    "paymentMethodId": "https:\/\/example.com\/"
}'
{
  "action": "redirect",
  "redirectUrl": "<string>",
  "status": "open",
  "confirmationMessage": "<string>"
}

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Path Parameters

id
string
required

Cart identifier

Body

The updated Cart resource
email
string | null

The customer email to be used for the cart. This is required when the cart is not attached to a customer.

phone
string | null

The customer phone to be used for the cart. This is required when the cart is not attached to a customer.

newInvoiceAddress
object | null

The new customer address to be used for the cart.

invoiceAddressId
string | null

The customer address to be used for the cart.

newPaymentMethod
object | null

The new payment method to be used for the cart.

paymentMethodId
string | null

The payment method to be used for the cart.

Response

200
application/json
Cart resource updated
action
enum<string>

The action to perform after the cart confirmation.

Available options:
redirect,
none,
confirmation_message
redirectUrl
string | null

The URL to redirect to after the cart confirmation.

status
enum<string>

The status of the cart after the cart confirmation.

Available options:
open,
confirming,
redirect_to_payment,
expired,
completed,
paid
confirmationMessage
string | null

The message to show to the user after the cart confirmation.