Payment intents
Create a payment intent
Creates a payment intent.
post/payment-intents
Request
- Base URLhttps://api.dojo.tech
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
versionstring date required
The API version with format yyyy-mm-dd. The current version is 2026-02-27.
Request body
Example request
{
"customer": {
"emailAddress": "support@dojo.com",
"phoneNumber": "+448000443550"
},
"billingAddress": {
"address1": "The Brunel Building",
"address2": "2 Canalside Walk",
"city": "London",
"postcode": "W2 1DG",
"countryCode": "GB",
"county": "UK"
},
"shippingDetails": {
"address": {
"address1": "The Brunel Building",
"address2": "2 Canalside Walk",
"city": "London",
"postcode": "W2 1DG",
"countryCode": "GB",
"county": "UK"
}
},
"requestSecurity": {
"userAgent": null,
"ipAddress": null,
"device": null
},
"actionLink": {
"url": "https://docs.dojo.tech/payments/getting-started",
"label": "docs-link"
}
}Response
OK
Example response
{
"customer": {
"emailAddress": "support@dojo.com",
"phoneNumber": "+448000443550"
},
"requestSecurity": {
"userAgent": null,
"ipAddress": null,
"device": null
},
"billingAddress": {
"address1": "The Brunel Building",
"address2": "2 Canalside Walk",
"city": "London",
"postcode": "W2 1DG",
"countryCode": "GB",
"county": "UK"
},
"shippingDetails": {
"address": {
"address1": "The Brunel Building",
"address2": "2 Canalside Walk",
"city": "London",
"postcode": "W2 1DG",
"countryCode": "GB",
"county": "UK"
}
},
"actionLink": {
"url": "https://docs.dojo.tech/payments/getting-started",
"label": "docs-link"
},
"terminalSessionHistory": [
{
"terminalSession": {
"details": {
"sale": {
"paymentIntentId": "pi_sandbox_RBMHTJ4fIkmSppDILZVCGw"
}
}
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.