Create Checkout Session
🚧 Beta feature
This feature is currently in private beta, and the final specification may still change.
Create a Checkout Session to start a checkout process with Mollie Components.
Headers
A unique key to ensure idempotent requests. This key should be a UUID v4 string.
Request body
Example request
{
"resource": "session",
"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"
},
"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"
}
}
}Response
The newly created Checkout Session object.
Changes
Changed in 4 of the 79 revisions of this API.7
- ○
api tag
Checkout Sessions APIaddedapi-tag-added
- ○
api tag
Sessions APIremovedapi-tag-removed
- ○
- ○
added the new optional request property
////new-optional-request-property
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
- ○
the endpoint scheme security
advancedAccessTokenwas added to the APIapi-security-added
- ○
the endpoint scheme security
organizationAccessTokenwas removed from the APIapi-security-removed
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 79 revisions, 9 have no diff computed.