Update a vault instrument
To update card expiry date of a vault instrument, you can perform a PATCH request providing the vault instrument id and the new expiry_month and expiry_year values.
Please note that all our API endpoints have rate limiting and throttling policies. For more information, please see our Rate limiting page.
note
Details on authorization and headers can be found in our Open API specification.
- Production
- Sandbox
PATCH https://api.paytently.io/instruments/{instrument_id}
PATCH https://sandbox.api.paytently.io/instruments/{instrument_id}
Request:
curl --location -X PATCH 'https://sandbox.api.paytently.io/instruments/{instrument_id}'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer token_here'
--data-raw '{
"card": {
"expiry_month": "12",
"expiry_year": "30"
}
}'
Response:
- 204
- 422
- 400
- 403
- 404
- 500
No body returned for response
{
"trace_id": "12345",
"errors": [
{
"property": "card.expiry_month",
"code": "expiry_month_invalid",
"reason": "expiry month must be in MM format",
"docs": "https://docs.v2.paytently.io/api/reference"
}
]
}
{
"trace_id": "12345",
"errors": [
{
"code": "malformed_id",
"reason": "",
"docs": ""
}
]
}
No body returned for response
No body returned for response
{
"title": "Server error",
"status": 500,
"trace_id": "12345"
}