Checkouts
Create a checkout
Create a payment checkout session.
Related webhooks:
- checkout_completed: sent when the checkout process is completed with a successful payment.
- checkout_failed: sent when the checkout lifetime is reached without a successful payment attempt, and at least one payment was attempted but none were successful.
- checkout_in_progress: sent when the checkout lifetime reaches its expiration, but a payment attempt is still in progress.
- checkout_unattempted: sent when the checkout lifetime is reached without a payment.
- For each payment attempt:
- payment_captured: sent when the payment funds are captured and secured.
- payment_failed: sent when a payment fails due to business (decline) or technical issues.
post/v2/checkouts
Request
- Base URLhttps://api.getpaid.io
- AuthOAuth 2Client credentialsToken URLhttps://auth.getpaid.io/oauth/tokenScopespayments:read_write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Getpaid-Idempotency-Keystring required
Example:5c255194-30ec-11ed-a261-0242ac120002
A unique idempotency key to allow safe retrying. See Getpaid API idempotency for more details.
Request body
Example request
{
"reference": "ORD-202510-0232",
"amount": 1000,
"currency": "EUR",
"description": "Order 202510-0232",
"expires_in": "1.12:00",
"payment_methods": {
"options": {
"cards": {
"dynamic_descriptor": "TITAN*202510-0232"
},
"sepa_direct_debit": {
"remittance_info": "Titan Auto Parts Ord. #0232 Inv. #202500632"
}
}
},
"splits": {
"accounts": [
{
"id": "acc_44678r08jtm8zbt227tzhc4nw5",
"split": {
"amount": 1000
},
"processing_fee": {
"percentage": 100
}
}
]
},
"buyer": {
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@company.com",
"address": {
"line1": "Immermannstraße",
"line2": "Haus 2, Wohnung 3A",
"street_number": "40",
"city": "Düsseldorf",
"region": "Nordrhein-Westfalen",
"postal_code": "40210",
"country": "DE"
},
"birth": {
"date": "2023-09-01",
"place": "Düsseldorf"
},
"nationality": "DE",
"business": {
"legal_name": "Motorbikes Düsseldorf GmbH",
"country": "DE",
"registration_number": {
"type": "vat",
"value": "DE123456789"
}
}
},
"redirect": {
"default": "https://titanauto.com/checkout/complete?order=202510-0232",
"completed": "https://titanauto.com/checkout/complete?order=202510-0232",
"failed": "https://titanauto.com/checkout/payment-failed?order=202510-0232"
},
"integration": {
"site_url": "https://shop.titanauto.com"
},
"webhooks": {
"url": "https://webhooks.titanauto.com/getpaid"
}
}Response
Created
Example response
{
"id": "cko_4kf9v6xp00hzc99rdwr5m97wce",
"reference": "ORD-202510-0232",
"created_at": "2025-09-01T22:05:48.479Z",
"updated_at": "2025-09-01T22:05:48.479Z",
"expires_at": "2025-09-01T22:05:48.479Z",
"splits": {
"accounts": [
{
"id": "acc_44678r08jtm8zbt227tzhc4nw5",
"version": "2",
"split": {
"amount": 1000
},
"processing_fee": {
"percentage": 100
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.