Create a checkout session
View as MarkdownCreate a checkout session for the authenticated customer.
Full description
Create a checkout session for the authenticated customer. Provide at least one selected product in
line_items[]. Buyer contact details, context, and payment selection are optional. The response isincompleteuntil it has purchasable line items and a selected eligible saved payment instrument. For POS and hardware products, useinputwith acommerce_locationtype and the required business and store IDs.
Authorization
bearerAuth Personal Access Token presented through Authorization: Bearer $GODADDY_PAT.
The PAT must include the scope documented for the operation.
In: header
Header Parameters
For tracing the request across network layers and components.
uuidEnsures duplicate operations don't happen during retries.
Request Body
application/json
Shared UCP 2026-04-08 writable Checkout fields for create and update requests.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/checkout-sessions" \ -H "Request-Id: 6ba7b810-9dad-41d1-80b4-00c04fd430c8" \ -H "Idempotency-Key: 2f6f5b2b-6764-4a62-93f0-703980f08180" \ -H "Content-Type: application/json" \ -d '{ "line_items": [ { "item": { "id": "hosting-deluxeapi:1mo" }, "quantity": 1 } ] }'{ "ucp": { "version": "2026-04-08", "capabilities": { "dev.ucp.shopping.checkout": [ { "version": "2026-04-08" } ], "com.godaddy.shopping.input": [ { "version": "2026-04-08" } ], "com.godaddy.shopping.catalog_offer": [ { "version": "2026-04-08" } ] }, "payment_handlers": { "com.godaddy.payments": [ { "id": "com.godaddy.payments", "version": "2026-04-08" } ] } }, "id": "d9cf79e3-b39b-4e58-8f30-ddfe1619e969", "line_items": [ { "id": "li_1", "item": { "id": "hosting-deluxeapi:1mo", "title": "Web Hosting Deluxe — 1 Month", "price": 1099 }, "quantity": 1, "totals": [ { "type": "subtotal", "amount": 1099 }, { "type": "total", "amount": 1099 } ] } ], "status": "incomplete", "currency": "USD", "totals": [ { "type": "subtotal", "amount": 1099 }, { "type": "total", "amount": 1099 } ], "links": [ { "type": "privacy_policy", "url": "https://www.godaddy.com/legal/agreements/privacy-policy" }, { "type": "terms_of_service", "url": "https://www.godaddy.com/legal/agreements/terms-of-service" } ]}Last updated on
How is this guide?