Skip to main content
GET
/
action
/
card
/
transaction
/
{id}
Card Operations
curl --request GET \
  --url https://getmipay.com/api/v1/action/card/transaction/{id} \
  --header 'Authorization: <authorization>' \
  --header 'X-API-KEY: <api-key>' \
  --header 'x-sp-auth-token: <x-sp-auth-token>'
{
  "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

Headers

Authorization
string
required

Bearer token from authentication

Example:

"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

x-sp-auth-token
string
required

getmipay authentication token

Example:

"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Path Parameters

cardId
string
required

Virtual card ID

Example:

"CARD_123456"

Query Parameters

action
enum<string>
required

Operation to perform

Available options:
topup,
withdraw,
disabled,
enabled,
transactions,
terminate
Example:

"topup"

currency
enum<string>

Currency for amount operations

Available options:
USD,
EUR,
XAF
Example:

"USD"

amount
number

Amount for topup/withdraw operations

Required range: x >= 0.01
Example:

10

Response

Operation completed successfully

success
boolean
Example:

true

data
object