Skip to main content
PUT
Update checkout data
This endpoint is currently shown as a preview of what’s currently in development and is subject to change.

Overview

This endpoint updates checkout information such as billing/shipping addresses, payment method, or shipping method. Both PUT and PATCH methods are supported and function identically.

Body

application/json

Checkout data to update

billing_address
object
shipping_address
object
payment_method
string

Payment method ID

shipping_method
string

Shipping method ID

currency
string

Currency code for the order (e.g., USD, EUR, GBP). If not provided, store default will be used.

Pattern: ^[A-Z]{3}$
Example:

"EUR"

Response

Checkout data updated successfully

cart_key
string | null

Unique identifier for the cart session

cart_hash
string

MD5 hash of cart contents

currency
object

Currency information including code, symbol, and exchange rate

customer_id
integer

Customer ID, if logged in

billing_address
object
shipping_address
object
cart_contents
object

Cart contents with product details

cart_totals
object
shipping_methods
object

Available shipping methods

needs_payment
boolean

Whether the cart needs payment

needs_shipping
boolean

Whether the cart needs shipping

payment_method
string

Selected payment method