Guides
Card issuing

Card issuing

Issue virtual and disposable cards to your users, each backed by an isolated account so balances are never pooled. Cards are USD-denominated.

Scope required: psp:nuvion-merchant

Issue a card

curl -X POST https://engine.swahilies.net/api/psp/nuvion/cards \
  -H "Authorization: Bearer swh_live_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Erick Justin",
    "card_type": "virtual"
  }'
FieldTypeNotes
namestringCardholder label, shown in listings.
card_typestringvirtual (reusable) or disposable (single-merchant).
{
  "card_id": "01M59EF0VT36XRRGHBWAZFE0ZR",
  "name": "Erick Justin",
  "card_type": "virtual",
  "status": "active",
  "last4": "3981",
  "currency": "USD"
}

Provision a user's card

To create a dedicated account for your user and issue their card in one call, use provisioning. This keeps ownership explicit (Swahilies → your merchant → your user) and ring-fences the user's funds.

curl -X POST https://engine.swahilies.net/api/psp/nuvion/provision \
  -H "Authorization: Bearer swh_live_<prefix>_<secret>" \
  -H "Content-Type: application/json" \
  -d '{
    "user_ref": "erick",
    "name": "Erick Justin",
    "card_type": "virtual"
  }'

Manage a card

# Card details
curl .../api/psp/nuvion/cards/<card_id>          -H "Authorization: Bearer <key>"
# Sensitive PAN/CVV (decrypted)
curl .../api/psp/nuvion/cards/<card_id>/details  -H "Authorization: Bearer <key>"
# Transactions
curl .../api/psp/nuvion/cards/<card_id>/transactions -H "Authorization: Bearer <key>"
# Freeze / unfreeze
curl -X POST .../api/psp/nuvion/cards/<card_id>/freeze   -H "Authorization: Bearer <key>"
curl -X POST .../api/psp/nuvion/cards/<card_id>/unfreeze -H "Authorization: Bearer <key>"
# Delete
curl -X DELETE .../api/psp/nuvion/cards/<card_id> -H "Authorization: Bearer <key>"

Full card numbers are returned only from the /details endpoint and are sensitive — never log or cache them client-side. Everywhere else you get the last4 only.

Lifecycle

Issue or provision

Create the card (optionally with a dedicated account).

Use

The card transacts in USD; pull /transactions to reconcile.

Freeze / delete

Freeze to pause temporarily, delete to close permanently.