Payment intents
Cancel a payment intent
Cancels a payment intent. If a payment intent's status is Created, it can be canceled. After cancellation, the payment intent status will change to Canceled and any operations will fail with an error.
delete/payment-intents/{paymentIntentId}
Request
- Base URLhttps://api.dojo.tech
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
paymentIntentIdstring nullable required
The unique identifier of the payment intent.
Headers
versionstring date required
The API version with format yyyy-mm-dd. The current version is 2026-02-27.
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.