Card Issuance Flow
Migo's prepaid card vertical is a white-label program: a company can issue its own branded physical prepaid cards to its users (for example, corporate cards for employees). The program is configured per tenant/company, so the cards, branding, and limits belong to the issuing company.
This page describes the end-to-end flow to put a working card in a cardholder's hands. Each step links to the detailed reference.
At a glanceβ
1. Company environment provisioned for cards (done at onboarding by Migo)
β
βΌ
2. Create the cardholder POST /users βββΊ userId
β
βΌ
3. Deliver the physical card (plastic) logistics
β
βΌ
4. Cardholder activates the card activation webview
β
βΌ
5. Card management enabled block Β· unblock Β· movements Β· details Β· PIN Β· CVV Β· funds
1. Environment provisioned for cardsβ
Card issuance is enabled for your company during onboarding β Migo provisions the card program for your tenant (branding, currency, and product limits). There is no public endpoint for this step; coordinate it with your account manager before you start creating cardholders.
2. Create the cardholderβ
Each card belongs to a cardholder β a user in your company's environment. Register the cardholder with POST /users (passing their personal information); the response returns the userId you will use for the rest of the flow.
curl -X POST https://api.ali.app/rest/users \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{ "firstName": "Example", "lastName": "User", "...": "..." }'
Cardholder management is the canonical reference for this endpoint β it documents both registration modes, the full field schema, and validations.
3. Deliver the physical cardβ
The printed plastic is delivered to the cardholder through your distribution process. The card arrives inactive β it cannot transact until the cardholder activates it.
4. Activate the cardβ
The cardholder activates their card through Migo's hosted card-activation webview. Open it with the cardholder's userId:
https://web.migopayments.com/card-activation?client=migoDeveloper&userId=YOUR_USER_ID
| Query param | Required | Purpose |
|---|---|---|
userId | Yes | The cardholder created in step 2 |
client | No | Branding hint for the activation screen (your client slug) |
On the webview the cardholder enters the card number and the cardholder name printed on the plastic, and confirms. The webview associates the card with the user and activates it β no API integration is required on your side for this step.
Use the sandbox host for testing: https://sandbox.migopayments.com/card-activation?client=migoDeveloper&userId=YOUR_USER_ID.
If you prefer to activate the card from your own backend instead of the webview, an API activation endpoint is also available. See Card lifecycle β Activate a card for both activation paths.
5. Manage the cardβ
Once the card is active, the management API is enabled for it. From here you can:
- Card lifecycle β read card details, block / unblock, update the alias, generate statements
- PIN management β set, rotate, and verify the card PIN
- Assign funds β load or withdraw balance on the card
- Card-to-card transfers β move money between Migo-issued cards
- Third-party card linking β associate external cards to a cardholder