Skip to main content

Link and manage a customer's card

The card API links a card that already exists at a provider to a bank account. It does not order or manufacture a new card. The bank must enable the provider and give your integration access before you can use these operations.

Find an enabled provider​

Call GET /api/card/v1/providers. Use the exact provider value from the response and check its supported operations. When no enabled provider is marked as the default, supply the provider explicitly. Discovery does not confirm that the provider is reachable; handle errors from each operation.

Arrange card creation with the bank or provider, then obtain its cardId. This is different from the numeric id assigned when CoreWave stores the link.

Send POST /api/card/v1/addcardtoaccount with the bank-client bearer token and a new request-reference header:

{
"accountNumber": "0123456789",
"provider": "providus",
"cardId": "PROVIDER-CARD-001",
"nameOnCard": "Ada Okafor",
"additionalMetadata": {
"onboardingReference": "ONBOARD-001",
"verified": true
}
}

Replace the sample account, provider card ID and name with the bank's staging values. The bank's card-linking fee may apply. A duplicate provider card ID is rejected before another fee is charged.

For this operation, additionalMetadata is an optional JSON object. Its fields can contain strings, numbers, booleans, null, arrays or nested objects. Omit the field or use null when you have no extra data; a top-level array is not accepted. Extra data does not change the card's permissions or status.

If the request times out, search for the original provider card ID before trying to link it again. Do not delete and recreate a link to work around an uncertain result; contact the bank with the original request reference if its state is unclear.

Keep the two card identifiers separate​

GET /api/card/v1/searchcards?accountNumber=0123456789&provider=providus returns the bank's stored links. You can also filter by the original cardId.

ValueUse
idNumeric CoreWave card-link ID. Use it for the general block, unblock and delete operations.
cardIdProvider's card identifier. Use it for Providus PIN/status requests and Interswitch channel settings.
accountNumberBank account linked to the card. It is neither of the card identifiers above.

To block a linked card, send PUT /api/card/v1/block with its numeric id:

{
"id": 123
}

Replace 123 with the ID from card search. PUT /api/card/v1/unblock uses the same body shape. Read the response and retrieve the stored link again before showing the new status to the customer.

Provider-specific changes​

OperationIdentifier and fields
PUT /api/card/v1/interswitch/updatecardchannelaccessProvider cardId and the enableATM, enablePOS or enableWeb settings to change.
PUT /api/card/v1/providus/setcardpinProvider cardId and pin. Follow the bank's PIN-handling requirements and keep PINs out of logs and support messages.
PUT /api/card/v1/providus/blockunblockcardProvider cardId and status: 1 blocks; 2 unblocks.

Use an operation only for its named provider. Check the full fields and responses in the API explorer; provider errors do not mean the requested change was applied.

DELETE /api/card/v1/delete/{id} removes the local link using its numeric ID. It does not cancel the card at the provider. Agree cancellation and any outstanding transactions with the bank before removing the link.

Card lifecycle callbacks can update an existing link's status. They use separate callback credentials and do not create a missing link. See provider callbacks if your integration also delivers provider events.