Update password
Every physical card has a password to authorize transactions, and it can be updated if necessary.
To update the card's password, the card status must be of type Active or Temporary block. (For information about status types, refer to here)
Caution
For security reasons, be careful when updating a password, as it can impact card authorization.
Create rules to enhance password authorization security, such as avoiding using birthdates or repeated numbers (e.g., 3333).
Request
ENDPOINT
/prepaid/card/CARD_KEY/passwordMETHOD
PATCHPath params
Field | Type | Description | Characters |
---|---|---|---|
CARD_KEY * | string | Card identification key. | uuid |
Request Body
{
"pin": "2143"
}
Body params
Field | Type | Description | Characters |
---|---|---|---|
pin * | string | Card password to authorize a transaction. | 4 |
Response
STATUS SUCCESS
200Erros
STATUS
4XXResponse Body
{
"title": "Bad Request",
"description": "We're sorry, but the card could not be update password. Please try again later.",
"translation": "Unexpected error update password card",
"code": "CARD000024"
}
Code | Status code | Description |
---|---|---|
QIT000001 | 400 | Invalid Json schema. |
CARD000011 | 404 | It was not possible to fetch the Card for the card_key {card_key}. |
CARD000023 | 406 | The card type is invalid for this operation. Only plastic cards are allowed. |
CARD000024 | 400 | We're sorry, but the card could not be update password. Please try again later. |
CARD000025 | 406 | The status {status} is invalid for the operation. |
Webhook
WEBHOOK_TYPE
baas.prepaid_card.card.updated.passwordWebhook Body
{
"webhook_type": "baas.prepaid_card.card.updated.password",
"event_datetime": "2023-07-25T12:00:00.000Z",
"data": {
"card_key": "9bd93e97-bb6d-410f-8981-06b2765f12a1"
}
}