Skip to main content

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/password
METHOD
PATCH

Path params

FieldTypeDescriptionCharacters
CARD_KEY *stringCard identification key.uuid
Request Body
{
"pin": "2143"
}

Body params

FieldTypeDescriptionCharacters
pin *stringCard password to authorize a transaction.4

Response

STATUS SUCCESS
200

Erros

STATUS
4XX
Response 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"
}
CodeStatus codeDescription
QIT000001400Invalid Json schema.
CARD000011404It was not possible to fetch the Card for the card_key {card_key}.
CARD000023406The card type is invalid for this operation. Only plastic cards are allowed.
CARD000024400We're sorry, but the card could not be update password. Please try again later.
CARD000025406The status {status} is invalid for the operation.

Webhook

WEBHOOK_TYPE
baas.prepaid_card.card.updated.password
Webhook 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"
}
}