Skip to main content
Migo Docs

Card-to-Card Transfers

Move money between two Migo-issued cards. Useful for wallet features: send money to a contact, split a bill, top up someone else's card.

Transfer types​

Transfer types classify movements by transfer category, channel, movement direction, and processing model. Create them in a single batched call (CreateTransferTypeDto wraps an array of TransferTypeDto):

curl -X POST https://api.ali.app/rest/card-transfers/types \
-H "Authorization: Bearer <token>" \
-H "x-application-id: YOUR_APP_ID" \
-H "Content-Type: application/json" \
-d '{
"types": [
{
"name": "POS Purchase",
"type": "posPurchase",
"channel": "financialNetwork",
"movementType": "debit",
"model": "settlement"
}
]
}'
FieldRequiredNotes
typeyesTransferType (e.g. posPurchase, ecommercePurchase, balanceTransfertoUser, topUp, ...)
channelyesChannelType: financialNetwork or webService
movementTypeyesMovementType: debit or credit
modelyesModelType: settlement or reversed
namenoDescriptive label for the transfer type

Execute a transfer​

curl -X POST https://api.ali.app/rest/cards/transfer \
-H "Authorization: Bearer <token>" \
-H "x-application-id: YOUR_APP_ID" \
-H "Content-Type: application/json" \
-d '{
"fromCardId": 12345,
"toCardId": 67890,
"amount": 50.00,
"observations": "Lunch split"
}'
FieldRequiredNotes
fromCardIdyesInternal numeric identifier of the source card
toCardIdyesInternal numeric identifier of the destination card
amountyesMonetary amount to transfer
observationsnoOptional note describing the reason of the transfer

Query a transfer​

curl https://api.ali.app/rest/card-transfers/{id} \
-H "Authorization: Bearer <token>"

List transfers on a card​

curl "https://api.ali.app/rest/cards/{cardId}/transfers/{month}/{year}" \
-H "Authorization: Bearer <token>"

Returns both incoming and outgoing transfers for the given month.

Errors​

CodeNameMeaning
7300ERROR_CREATING_TRANSFERThe transfer could not be created
7301ERROR_UPDATING_TRANSFERThe transfer could not be updated
7302ERROR_GETTING_HISTORYMovement/transfer history could not be retrieved
7303INSUFFICIENT_FUNDSSource card balance too low
7304INVALID_TRANSFER_STATUSTransfer is in a status that does not allow the operation
7305ERROR_CREATING_TRANSFER_TYPEA transfer type could not be created
7306CARD_TRANSFER_NOT_FOUNDThe referenced transfer does not exist

See the full Error Catalog for the complete list.