🇬🇧
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

Freeze and Unfreeze Card

Endpoint

POST {{baseUrl}}/customer/virtual/cards/update/{{card_id}}

Description

This endpoint allows you to freeze or unfreeze a virtual card using the card's unique identifier. Freezing a card prevents any transactions from being processed until it is unfrozen.

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 action you want to perform on the virtual card. It can either be "freeze" or "unfreeze".

Example Request Body

{
    "action": "freeze"
}

or

{
    "action": "unfreeze"
}

Response

The response will include the status of the request, a relevant message, and details about the action performed if the request is successful. If there is an error, a message indicating the issue will be returned.

Successful Unfreeze Response

{
    "status": "success",
    "status_code": 200,
    "message": "Request successful",
    "data": {
        "action": "unfreeze card successful"
    }
}

Successful Freeze Response

{
    "status": "success",
    "status_code": 200,
    "message": "Request successful",
    "data": {
        "action": "freeze card successfully"
    }
}

Error Response

If the request is invalid or there are issues processing the request, the following error response will be returned:

{
    "status": "success",
    "status_code": 200,
    "message": "Request successful",
    "data": {
        "error": "Error encountered, please check your request"
    }
}

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 action performed on the virtual card.

    • action: A message indicating the action that was successfully performed (e.g., "unfreeze card successful" or "freeze card successfully").

Fields in Error Response

  • status: Indicates the success status of the request (in this case, still "success" but with an error in the data).

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

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

  • data: Contains details about the error encountered.

    • error: A message indicating the issue (e.g., "Error encountered, please check your request").

By following the above details, you can successfully freeze or unfreeze a virtual card.

PreviousGet TransactionsNextVirtual Accounts

Last updated 3 months ago

  • Endpoint
  • Description
  • Headers
  • Request Body
  • PUTFreeze/UnFreeze Card
  • Response
  • Fields in Successful Response
  • Fields in Error Response

Freeze/UnFreeze Card

put
Authorizations
Body
all ofOptional
and
anyOptionalExample: {"action":"freeze"}
Responses
200Success
put
PUT /api/v1/customer/virtual/cards/update/c9aa5757-c22d-48ca-a08b-aebdee325fde HTTP/1.1
Host: smtp.yativo.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "action": "freeze"
}
200Success

No content