🇬🇧
Yativo Documentation
Spanish
English
English
  • Yativo
  • Introduction to Yativo
    • Financial Infrastructure
    • About Us
  • Dashboard
  • Business Plans
  • Getting Started with Yativo API
  • Yativo API Glossary
  • API reference
    • Misc.
      • Countries
      • States
      • City
  • Security and Authentication
    • Security
    • Authentication
    • Idempotency in API Requests
  • Environment
    • Environments
  • Notifications
    • Webhook
  • Compliance
    • Verification
      • KYC
      • KYB
      • KYC/KYB Update
      • KYC Status
      • Global Business Search
    • Supported Jurisdiction
    • Supported Countries, Currencies and Payment Method
  • User Management
    • Customer
      • Get Customers
      • Retrieve customer
      • Add Customer
  • Payments
    • Currencies
    • Crypto Wallets
      • Generate Wallet Address
      • Fetch Wallet Address
      • Crypto Deposit History
      • Single crypto deposit history
    • Payout
      • Payout
      • Get Payouts
      • Get Payout
      • Beneficiaries
        • Get Beneficiaries
        • Add Beneficiary Payment Details
        • Update Beneficiary
        • Archive Beneficiary
        • Add Beneficiary
    • Payin
    • Virtual Cards
      • Supported Currency, Country
      • Create card
      • Fetch card
      • Top up card
      • Get Transactions
      • Freeze and Unfreeze Card
    • Virtual Accounts
      • Create VIrtual Accounts
        • USD Virtual Account
        • Mexico Virtual Account
        • Brazil PIX QR
      • Virtual Account Management
      • Transaction History
  • Foreign Exchange
    • Exchange Rate
      • Request Quote
  • Transactions
    • Transaction Summary
    • Get Single Transaction
  • Crypto System
    • Yativo Crypto Platform API
Powered by GitBook
On this page
  1. Payments
  2. Virtual Cards

Top up card

PreviousFetch cardNextGet Transactions

Last updated 3 months ago

Endpoint

POST {{baseUrl}}/customer/virtual/cards/topup

Description

This endpoint allows you to top up a virtual card with a specified amount for a customer.

Card Issuing Fees

These fees apply to both MasterCard and Visa Virtual USD cards.

Action
Cost

Card Creation

$1 for every newly issued card

Top Up

$1 if funding is below $100 and 1% if funding is equal to or above $100

Chargeback

$60 flat rate for Visa Card

Termination

no fee is charged for the termination of cards, you get back the balance on the card

Cross Border Fees

2.5% + $0.5 per transaction settled outside the USA

Card Declined

$1 for automatic termination after 3 Insufficient funds Transactions

Headers

No specific headers are required for this endpoint, but typically, you might need to include authorization tokens or other headers as per your API's authentication requirements.

Request Body

The request body must include the following fields:

  • customer_id: (string) The unique identifier of the customer.

  • cardId: (string) The unique identifier of the virtual card.

  • amount: (number) The amount to top up the virtual card.

Example Request Body

{
    "customer_id": "{{customer_id}}",
    "cardId": "{{card_id}}",
    "amount": 2
}

Response

The response will include the status of the request, a relevant message, and details about the top-up operation.

Insufficient Balance Error Response

If the customer's wallet is empty and the top-up cannot be completed, the following error response will be returned:

{
    "status": "failed",
    "status_code": 400,
    "message": "Request failed",
    "data": {
        "error": "Wallet is empty"
    }
}

Or if there is an error confirming the card's activation status, the following error response will be returned:

{
    "status": "failed",
    "status_code": 400,
    "message": "Request failed",
    "data": {
        "error": "Error please confirm card is active, or contact support if error persist"
    }
}

Successful Response

If the top-up request is successful and in progress, the following success response will be returned:

{
    "status": "success",
    "status_code": 200,
    "message": "Request successful",
    "data": {
        "message": "card topup in progress"
    }
}

Fields in Error Response

  • status: Indicates the failure status of the request (e.g., "failed").

  • status_code: HTTP status code of the response (e.g., 400 for client errors).

  • message: A message describing the result of the request (e.g., "Request failed").

  • data: Contains details about the error encountered.

    • error: A message indicating the specific error (e.g., "Wallet is empty" or "Error please confirm card is active, or contact support if error persist").

Fields in Successful Response

  • status: Indicates the success status of the request (e.g., "success").

  • status_code: HTTP status code of the response (e.g., 200 for success).

  • message: A message describing the result of the request (e.g., "Request successful").

  • data: Contains details about the top-up operation.

    • message: A message indicating that the card top-up is in progress.

By following the above details, you can successfully top up a virtual card for a customer.

  • Endpoint
  • Description
  • Card Issuing Fees
  • Headers
  • POSTFund Card
  • Request Body
  • Response
  • Fields in Error Response
  • Fields in Successful Response

Fund Card

post
Authorizations
Body
all ofOptional
and
anyOptionalExample: {"customer_id":"uuid","cardId":"uuid","amount":1000}
Responses
200Success
post
POST /api/v1/customer/virtual/cards/topup HTTP/1.1
Host: smtp.yativo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 52

{
  "customer_id": "uuid",
  "cardId": "uuid",
  "amount": 1000
}
200Success

No content