arrows-repeatCards

The Cards API allows you to create and manage virtual cards, allocate balances, retrieve card details, and access transaction history.

Each card is linked to a specific user and operates with an independent balance.


/users/{userId}/cards

Base URL:

https://aurex.cash/api/dashboard

Card Entity

A card object includes:

  • cardId Unique identifier

  • cardName Custom name assigned during creation

  • cardNumber Full card number

  • expiryDate Expiration date

  • cvv Card security code

  • balance Current card balance

  • status Card status

Example:


Create Card

Creates a new virtual card for a user.

Endpoint

Request Body

Fee Rules

  • Issue fee Fixed card issuance fee

  • Service fee Percentage applied to allocated amount

  • Minimum balance 25 USD

  • Maximum balance 100000 USD

Total deducted from wallet:

Initial balance + service fee + issue fee

Success Response

Card creation deducts funds from the user wallet, including all applicable fees.


List User Cards

Returns all cards associated with a user.

Endpoint

Success Response


Get Card Details

Returns full card details by card ID.

Endpoint

Success Response

Card details must be handled securely and never exposed in client-side environments.


Top Up Card

Transfers funds from wallet to card balance.

Endpoint

Request Body

Rules

  • Minimum top-up amount 10 USD

  • Maximum top-up amount 10000 USD

  • Service fee 3 percent

Total deducted from wallet:

Amount + service fee

Success Response


Card Transactions

Returns transaction history for a specific card.

Endpoint

Success Response

Transaction Status Values

  • pending

  • completed

  • declined

  • failed


Get OTP Code

Returns a one-time password for card authentication.

Endpoint

Success Response

circle-info

OTP codes are time-limited and must be used immediately.


Card Status Values

A card may have one of the following statuses:

  • active

  • frozen

  • blocked

  • expired


Error Responses

All endpoints return errors in the following format:

Common HTTP status codes:

  • 400 Invalid request parameters

  • 401 Invalid or missing API key

  • 404 Resource not found

  • 409 Insufficient balance

  • 429 Rate limit exceeded

Last updated