Skip to main content
POST
/
virtual-cards
/
cards
/
{cardId}
/
operation
Card Operation
curl --request POST \
  --url https://getmipay.com/api/v1/virtual-cards/cards/{cardId}/operation \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "action": "topup",
  "amount": 50,
  "currency": "USD"
}'
{
  "success": true,
  "data": {
    "operation": "topup",
    "card_id": "CARD_123456",
    "new_balance": 20,
    "currency": "USD",
    "status": "success",
    "transactions": [
      {
        "id": "TXN_123",
        "amount": 10,
        "currency": "USD",
        "type": "topup",
        "status": "completed",
        "created_at": "2023-11-07T05:31:56Z"
      }
    ]
  }
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

cardId
string
required

Virtual card ID

Example:

"CARD_123456"

Body

application/json

Operation details

action
enum<string>
required
Available options:
topup,
withdraw,
enable,
disable,
get_balance,
get_transactions
Example:

"topup"

amount
number
Required range: x >= 0.01
Example:

50

currency
enum<string>
Available options:
USD,
EUR,
XAF
Example:

"USD"

Response

200 - application/json

Operation completed successfully

success
boolean
Example:

true

data
object