Skip to main content
POST
/
v1
/
global-payout
/
exchange
/
authorize
cURL
curl --request POST \
  --url https://api.nomba.com/v1/global-payout/exchange/authorize \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'accountId: <accountid>' \
  --data '
{
  "amount": 1,
  "sourceCurrency": "USD",
  "destinationCurrency": "CDF",
  "senderName": "John Doe",
  "receiverName": "John Doe",
  "sourceCountryIsoCode": "CD",
  "destinationCountryIsoCode": "CD",
  "authCode": "5555",
  "narration": "Transfer between my accounts",
  "lockedExchangeRateId": "01kkk4b7rh8pcvtw1s1nxs144s"
}
'
{
  "code": "00",
  "description": "Successful",
  "data": {
    "wtTransactionId": "01kkk8cjk0fpw9jx2n01wd8yfw",
    "coreTransactionId": "API-P2P-CB9EC-0c2d962e-4730-48e7-b522-d65cac511549",
    "status": "PROCESSING",
    "coreStatus": "SUCCESS",
    "type": "EXCHANGE"
  }
}

Headers

Authorization
string
required

Bearer token for authentication.

Example:

"Bearer <token>"

accountId
string
required

The parent accountId of the business.

Example:

"890022ce-bae0-45c1-9b9d-ee7872e6ca27"

Body

application/json

Exchange authorization payload

amount
number
required
Example:

1

sourceCurrency
string
required
Example:

"USD"

destinationCurrency
string
required
Example:

"CDF"

senderName
string
required
Example:

"John Doe"

receiverName
string
required
Example:

"John Doe"

sourceCountryIsoCode
string
required
Example:

"CD"

destinationCountryIsoCode
string
required
Example:

"CD"

authCode
string<password>
required
Example:

"5555"

narration
string
Example:

"Transfer between my accounts"

lockedExchangeRateId
string

The exchangeRateId from a prior Fetch Exchange Rates call. When provided, the exchange is fulfilled at that exact rate.

Example:

"01kkk4b7rh8pcvtw1s1nxs144s"

Response

200 - application/json

Exchange authorized successfully.

code
string
Example:

"00"

description
string
Example:

"Successful"

data
object