Skip to main content

Documentation

Update Requested Currency

Define, change, or cancel the currency to which funds received by a virtual account are converted.

The status of the virtual account must be ACT (active) or PEN (pending).

To cancel a previously defined currency conversion, set requested_currency to null.

Note

This endpoint replaces the deprecated endpoint - POST v1/issuing/bankaccounts/:virtual_account

Rapyd will continue to support the deprecated endpoint until December 31, 2024.

Prerequisites

    • virtual_account

    • ID of the virtual account number object. String starting with issuing_.

    • requested_currency

    • The currency to which funds received by a virtual account are converted. Three-letter ISO 4217 code.

  • /v1/virtual_accounts/:virtual_account

  • Update Requested Currency

  • curl - X post
    https: //sandboxapi.rapyd.net/v1/virtual_accounts/issuing_2392a9fc4ec990838da111bd8ce6c825
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'idempotency: your-idempotency-parameter-here'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    -d '{
    "requested_currency": "USD"
    }
    '
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "d2150cbd-40ba-476e-8b1a-a8a2596f6e2e"
        },
        "data": {
            "id": "issuing_36feaa027745f08b4691636d8d3fd07e",
            "merchant_reference_id": "issuing_36feaa027745f08b4691636d8d3fd07e",
            "ewallet": "ewallet_5c148fcf040282f80907026f6030cce9",
            "bank_account": {
                "beneficiary_name": "Rapyd Holdings Pte Ltd",
                "address": "G/F, The Center, 99 Queen's Road Central, Central, Hong Kong",
                "country_iso": "HK",
                "bank": "DBS Bank (Hong Kong) Limited",
                "country": "Hong Kong",
                "bank_code": "016",
                "account_id": "7981397317776192",
                "account_id_type": "",
                "local_bank_code_type": "",
                "swift_bic": "DHBKHKHH",
                "branch_code": "478"
            },
            "metadata": {},
            "status": "ACT",
            "description": "K DBS HK",
            "funding_instructions": null,
            "currency": "HKD",
            "requested_currency": "USD",
            "transactions": []
        }
    } 
    
  • Cancel Requested Currency

  • curl - X post
    https: //sandboxapi.rapyd.net/v1/virtual_accounts/issuing_2392a9fc4ec990838da111bd8ce6c825
    -H 'access_key: your-access-key-here'
    -H 'Content-Type: application/json'
    -H 'idempotency: your-idempotency-parameter-here'
    -H 'salt: your-random-string-here'
    -H 'signature: your-calculated-signature-here'
    -H 'timestamp: your-unix-timestamp-here'
    -d '{
    "requested_currency": null
    }
    '
    
  • {
        "status": {
            "error_code": "",
            "status": "SUCCESS",
            "message": "",
            "response_code": "",
            "operation_id": "5b105124-30e8-440e-a5b9-01d01fcbf67e"
        },
        "data": {
            "id": "issuing_2392a9fc4ec990838da111bd8ce6c825",
            "merchant_reference_id": "5rtfgk897ter0df0m",
            "ewallet": "ewallet_f95ed68265974e0af57675a5c2f24fcc",
            "bank_account": {
                "beneficiary_name": "John Doe",
                "address": "99 Queen's Road Central, Central, Hong Kong",
                "country_iso": "HK",
                "bank": "DBS Bank (Hong Kong) Limited",
                "country": "Hong Kong",
                "bank_code": "016",
                "account_number": "7981304591201301",
                "bic": "DHBKHKHH"
            },
            "metadata": {
                "merchant_defined": true
            },
            "status": "ACT",
            "description": "Issue virtual account to wallet with receiving currency",
            "funding_instructions": null,
            "currency": "HKD",
            "requested_currency": null,
            "transactions": []
        }
    }