Freeze Card
POST/api/cards/:cardId/freeze
Temporarily disable a card to decline all new payment requests.
Request
Path Parameters
cardId stringrequired
ID of card
Responses
- 202
- 400
- 403
Successful operation
Request fields are invalid
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
statusCode integerrequired
statusName stringrequired
errorCode stringrequired
errors
object[]
message string
path string
The location of the invalid path param, query param or payload attribute.
{
"statusCode": 400,
"statusName": "Bad Request",
"errorCode": "INVALID_REQUEST_INPUT",
"errors": [
{
"message": "Invalid type",
"path": "items[1].attributes.invalidField"
}
]
}
CARD_ALREADY_FROZEN Card is already frozen.
- application/json
- Schema
- Example (from schema)
Schema
statusCode integerrequired
statusName stringrequired
errorCode stringrequired
reason string
{
"statusCode": 403,
"statusName": "Forbidden",
"errorCode": "FORBIDDEN",
"reason": "Unauthorized"
}
Loading...