Vendor card
Change card PIN
Sets a new 4-digit PIN on a physical card. Authorized for admins, holders of the vendor_cards_manage permission, or the cardholder.
The pin parameter is required (missing → 412, from params.require(:pin)). It must match ^\d\d\d\d$ and the card's vendor must support PIN updates; otherwise the endpoint returns 422 with { "error_code": "vendor_cards/pin_not_supported" }. Vendor-side failures return 500 with the vendor's message.
patch/v1/vendor_cards/{vendor_card_id}/pin
Request
- Base URLhttps://api.cardda.com
- URLhttps://api.cardda.com/v1/vendor_cards/{vendor_card_id}/pin
- AuthHTTP bearer
Path parameters
vendor_card_idstring required
The id of the vendor card
Parameters
#/paths/~1v1~1merchants/get/parameters/0 (unresolved $ref)
Request body
Example request
{
"pin": "1234"
}Response
The vendor card, after the PIN was updated.
Example response
{
"id": "Q2FyZDoxMDIwNjQ5Mw==",
"user_id": "U2MGkNZT6zNPKtB85OpJi9SjFvG2",
"type": "PomeloCard",
"name": "AWS",
"last4": "4163",
"status_preference": "inactive",
"migrated": true,
"limit_amount": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"limit_interval": "daily",
"limit_amount_preference": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"allocated_amount": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"allocated_amount_preference": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"recurring_allocation_amount_cents": 50000,
"remaining_balance": "2000.0",
"spent": 472025,
"company_expendable_balance_in_limit_currency": "3200000.0",
"spent_in_interval_with_limit_currency": 472025,
"vendor_max_allocation": {
"amount": "3000.0",
"formatted": "$3.000 CLP",
"cents": "3000.0",
"currency_iso": "CLP"
},
"preference_restricted_spendable": "2000.0",
"spent_in_interval": 472025,
"spent_in_vendor_interval": 472025
}Changes
No recorded changes to this operation across all 1 revision of this API.