Skip to content

Link Card PAN

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

Use this endpoint to link a previously generated or floating Card PAN to a specific user account. Floating cards can be initially created by generating a card with a blank Username and a 0 amount via /createCardPAN, or generated in bulk (with funded value) via the Disbursement API’s card-issuing capabilities.

FieldTypeRequirementDescription
CardPANStringRequiredThe unique PAN of the card.
ReferenceStringOptionalA unique transaction reference number.
UsernameStringRequiredThe username of the user to link the card to.
IDNumberStringOptionalThe ID number of the user.
VoucherTypeStringOptionalThe voucher type to assign to the card (overrides existing if specified).
MetadataStringOptionalAny other detail to store with this transaction.
{
"CardPAN": "5003456789012",
"Reference": "REF-123456",
"Username": "27820000000",
"IDNumber": "",
"VoucherType": "",
"Metadata": ""
}
Terminal window
curl -X POST '{api-url}/linkCardPAN?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"CardPAN":"5003456789012","Reference":"REF-123456","Username":"27820000000","IDNumber":"","VoucherType":"","Metadata":""}'