Skip to content

Merge Card PANs

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

Use this endpoint to merge funds from one or more source cards into a single target card. The arrays for CardPANs and Amounts must align. Passing 0 as an amount will transfer the full available balance of that card. The Currency parameter determines which wallet pocket gets merged.

FieldTypeRequirementDescription
TargetCardPANStringRequiredThe destination PAN receiving the funds.
CardPANsStringRequiredComma-separated list of source Card PANs.
AmountsStringRequiredComma-separated list of amounts in cents to transfer from each source card. Use 0 to transfer the full balance.
CurrencyStringOptionalThe currency to execute the transfer in. Defaults to the community currency.
MetadataStringOptionalAny other detail to store with this transaction.
{
"TargetCardPAN": "5007499757700",
"CardPANs": "5000049941625,5001090055835,5007414135662",
"Amounts": "2500,5000,7500",
"Currency": "ZAR",
"Metadata": ""
}
Terminal window
curl -X POST '{api-url}/mergeCardPANs?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"TargetCardPAN":"5007499757700","CardPANs":"5000049941625,5001090055835,5007414135662","Amounts":"2500,5000,7500","Currency":"ZAR","Metadata":""}'