跳到主要内容

更新状态

Request

ENDPOINT
/prepaid/card/CARD_KEY
MÉTODO
PATCH

路径参数

字段类型描述字符数
CARD_KEY *string卡片识别密钥。uuid
Request Body
{
"status": "blocked"
}

请求体参数

字段类型描述字符数
status *string卡片状态。枚举值

card_status 枚举值

枚举值说明类型
created已申请创建Initial
building创建中Initial
active可进行交易Active
embossing生产中Temporary block
blocked已封锁Temporary block
warning有可疑情况Temporary block
pending待处理Temporary block
lost已丢失Terminated
robbed被抢劫Terminated
fraud欺诈Terminated
canceled已取消Terminated
theft被盗Terminated

错误

STATUS
4XX
Response Body
{
"title": "Not Acceptable",
"description": "The operation is not valid for the current status of the card [canceled]",
"translation": "Unable to transition",
"code": "CARD000014"
}
CodeStatus code描述
QIT000001400Invalid Json schema.
CARD000011404It was not possible to fetch the Card for the card_key {card_key}.
CARD000013406Unable to transition from {old_status} to {new_status}.
CARD000014406The operation is not valid for the current status of the card [{card_status}].
CARD000015400We're sorry, but the card could not be update. Please try again later

Webhook

WEBHOOK_TYPE
baas.prepaid_card.card
Webhook Body
{
"webhook_type": "baas.prepaid_card.card",
"event_datetime": "2023-07-25T12:00:00.000Z",
"data": {
"card_key": "9bd93e97-bb6d-410f-8981-06b2765f12a1",
"type": "virtual",
"status": "active",
"old_status": "created"
}
}