Checkout
Set Shipping Info
Sets the shipping address and gets available shipping methods
POST
Overview
Sets the shipping address for the cart and automatically retrieves available shipping methods. If no shipping method was previously selected, the lowest cost option is automatically selected.Authentication
Device authentication token from browser session
Path Parameters
Merchant domain (e.g.,
staging.luma.gift)Request Body
Customer’s first name
Customer’s last name
Customer’s email address
Customer’s phone number (required by some merchants)
Street address line 1
Street address line 2 (apartment, suite, etc.)
Shipping city
Postal/ZIP code
State or province
Country name (e.g., “United States”)
Response
Returns the cart with shipping information and available shipping methods.Response Fields
Same as Get Cart response, plus:The shipping address that was set
The selected shipping method (auto-selected if none was previously set)
Available shipping methods for the given address
Error Responses
400 Bad Request
- Missing or invalid authentication header
- No items in cart that require shipping
- Invalid email format
- Invalid state for the given country