Checkout Sessions API
Get Checkout Session
Changed onπ§ Beta feature
This feature is currently in beta.
The shipping and requiredCustomerDetails properties are still in private beta.
Retrieve a Checkout Session to view its details and status to inform your customers about the checkout process.
π Access with
API key
Advanced access token with sessions.read
OAuth access with sessions.read
get/sessions/{sessionId}
Request
- Base URLhttps://api.mollie.com/v2
- URLhttps://api.mollie.com/v2/sessions/{sessionId}
- Auth
- HTTP bearer
- or HTTP bearer
- or OAuth 2Authorization code: https://my.mollie.com/oauth2/authorizeToken URL: https://api.mollie.com/oauth2/tokens scopes: sessions.read
Response
The Checkout Session object.
Example response
{
"id": "sess_82jFYDTrLcCQV68NLDvMJ",
"mode": "live",
"clientAccessToken": "ewogICJzZXNzaW9uVG9rZW4i...",
"status": "open",
"amount": {
"currency": "EUR",
"value": "10.00"
},
"description": "Order #12345",
"lines": [
{
"type": "physical",
"description": "LEGO 4440 Forest Police Station",
"quantity": 1,
"quantityUnit": "pcs",
"unitPrice": {
"currency": "EUR",
"value": "10.00"
},
"discountAmount": {
"currency": "EUR",
"value": "10.00"
},
"totalAmount": {
"currency": "EUR",
"value": "10.00"
},
"vatRate": "21.00",
"vatAmount": {
"currency": "EUR",
"value": "10.00"
},
"sku": "9780241661628",
"imageUrl": "https://...",
"productUrl": "https://..."
}
],
"redirectUrl": "https://example.org/redirect",
"requiredCustomerDetails": [
"billing-address"
],
"billingAddress": {
"title": "Mr.",
"givenName": "Piet",
"familyName": "Mondriaan",
"organizationName": "Mollie B.V.",
"streetAndNumber": "Keizersgracht 126",
"streetAdditional": "Apt. 1",
"postalCode": "1234AB",
"email": "piet@example.org",
"city": "Amsterdam",
"region": "Noord-Holland",
"country": "NL"
},
"shippingAddress": {
"title": "Mr.",
"givenName": "Piet",
"familyName": "Mondriaan",
"organizationName": "Mollie B.V.",
"streetAndNumber": "Keizersgracht 126",
"streetAdditional": "Apt. 1",
"postalCode": "1234AB",
"email": "piet@example.org",
"city": "Amsterdam",
"region": "Noord-Holland",
"country": "NL"
},
"shipping": {
"options": [
{
"description": "Next day delivery",
"reference": "express",
"amount": {
"currency": "EUR",
"value": "10.00"
}
}
],
"callbackUrl": "https://example.org/shipping-options"
},
"customerId": "cst_5B8cwPMGnU",
"sequenceType": "oneoff",
"payment": {
"webhookUrl": "https://example.org/webhook"
},
"profileId": "pfl_5B8cwPMGnU",
"createdAt": "2024-03-20T09:13:37+00:00",
"expiredAt": "2024-03-20T10:13:37+00:00",
"completedAt": "2024-03-20T11:13:37+00:00",
"_links": {
"self": {
"href": "https://...",
"type": "application/hal+json"
}
}
}Changes
- info
api tag
Checkout Sessions APIadded - info
api tag
Sessions APIremoved - info
added
subschema #1subschema #2to the response bodyallOflist for the response status - info
removed
subschema #1subschema #2from the response bodyallOflist for the response status
- info