Payments
Create a payment
Create a payment initiated by the platform on behalf of a buyer.
Related webhooks:
- 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/payments
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",
"method": {
"dynamic_descriptor": "TITAN*202510-0232"
},
"splits": {
"accounts": [
{
"id": "acc_44678r08jtm8zbt227tzhc4nw5",
"split": {
"amount": 1000
},
"processing_fee": {
"percentage": 100
}
}
]
},
"standing_instruction": {
"id": "sti_4tbftjwzxja1h71nzas1g0g1xm"
},
"webhooks": {
"url": "https://webhooks.titanauto.com/getpaid"
}
}Response
Created
Example response
{
"id": "pay_4a4m2pjycdb1jbj68h1rvk9kcz",
"reference": "ORD-202510-0232",
"created_at": "2025-09-01T22:05:48.479Z",
"updated_at": "2025-09-01T22:05:48.479Z",
"statement_descriptor": "GPD*TITAN*202510-0232",
"method": {
"dynamic_descriptor": "TITAN*202510-0232",
"card": {
"holder_name": "Jane Doe",
"first_digits": "424242",
"last_digits": "4242",
"expiry_month": 12,
"expiry_year": 2025,
"kind": "credit",
"segment": "consumer"
}
},
"splits": {
"accounts": [
{
"id": "acc_44678r08jtm8zbt227tzhc4nw5",
"version": "2",
"split": {
"amount": 1000
},
"processing_fee": {
"percentage": 100,
"amount": 1000
}
}
]
},
"totals": {
"net": 1000,
"captured": 1000,
"refunded": 1000,
"refundable": 1000,
"processing_fees": 1000,
"accounts": [
{
"id": "acc_44678r08jtm8zbt227tzhc4nw5",
"version": "2",
"net": 1000,
"captured": 1000,
"refunded": 1000,
"refundable": 1000,
"processing_fees": 1000
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.