Skip to main content

Exchange (New) - Overview

Introduction

The Exchange (New) API provides a comprehensive set of endpoints for managing FX (foreign exchange) trades across developed and emerging markets. This API enables seamless cross-border payment experiences with support for wallet-to-wallet and wallet-to-account conversions.

Features

  • FX Trade Management: Create and retrieve individual or bulk FX trades
  • Real-Time Rates: Get live exchange rates with a short-lived token for executing trades
  • Flexible Payment Modes: Choose between immediate and deferred settlement
  • Markup Configuration: Set and retrieve FX markup configurations per currency pair or universally
  • Sender Information: Pass underlying sender details for compliance and AML requirements
  • POBO Support: Pay on behalf of another entity

Authentication

All API requests require authentication using a Bearer token in the Authorization header.

Authorization: Bearer <your_jwt_token>

Base URL

Production: https://api.ahrvo.network
Staging: https://gateway.ahrvo.network

Common Headers

HeaderValueRequiredDescription
AuthorizationBearer {token}YesJWT authentication token
Content-Typeapplication/jsonYesRequest content type
Acceptapplication/jsonYesResponse content type
x-api-keystringNoAPI key for additional authentication

Getting Started

  1. Get FX Rate: Call the Get Rates endpoint to receive a real-time exchange rate and a vfx_token
  2. Create FX Trade: Use the vfx_token (valid for 30 seconds) to execute a currency conversion
  3. Track Trades: Use the Get an FX Trade or Get All FX Trades endpoints to monitor trade status
  4. Configure Markup: Optionally configure per-company FX markup using the markup configuration endpoints

API Endpoints

Rate

Trade

Markup Configuration

Trade States

StateDescription
confirmedTrade confirmed and pending settlement
inwardSettlementDoneSender's account has been debited
outwardSettlementDoneReceiver's account has been credited
inwardSettlementPendingAwaiting inward settlement
outwardSettlementPendingAwaiting outward settlement

Payment Modes

ModeDescription
immediateFunds are deducted from your wallet instantly
laterSettle within up to 24 hours

Support

For API support and questions, please contact the Ahrvo FX support team.