Payment intents
Update a client session secret
Updates a client session secret if the current secret key has been consumed or expired. These tokens are one-time use only. If you need to retry a payment, you must generate a new token.
post/payment-intents/{paymentIntentId}/refresh-client-session-secret
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.