Skip to content

Update Card PAN

POST {api-url}/updateCardPAN?ns={community}

Use this endpoint to update the operating configuration of a card, such as blocking/unblocking it, changing its Voucher Type, or toggling its auto-top-up behavior.

Providing null for any field will retain its current value and safely merge the update, while providing an empty string "" will explicitly clear the value from the card.

FieldTypeRequirementDescription
CardPANStringRequiredThe PAN of the card to update.
VoucherTypeStringOptionalThe new Voucher Type to assign to the card.
StatusStringOptionalThe new status of the card (Open or Blocked).
AutoCreateVoucherStringOptionalWhether the card automatically tops up funds (true or false).
MetadataStringOptionalAny other detail to store with this transaction.
{
"CardPAN": "5003456789012",
"VoucherType": null,
"Status": "Blocked",
"AutoCreateVoucher": "false",
"Metadata": ""
}
Terminal window
curl -X POST '{api-url}/updateCardPAN?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"CardPAN":"5003456789012","VoucherType":null,"Status":"Blocked","AutoCreateVoucher":"false","Metadata":""}'