Payment intents
Change a payment intent amount
Changes the payment intent's amount. This is available when amount changes are enabled on the payment intent. Allowed before card authorization for increment/decrement operations, and also for eligible Authorized status online pre-authorizations for increment only, subject to merchant-category and card-scheme eligibility.
post/payment-intents/{paymentIntentId}/amount
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.
Request body
Example request
{
"amount": {
"value": 5500,
"currencyCode": "GBP"
}
}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.