Sandbox Balance Top-Up

The Balance Top-Up endpoint allows you to add funds to your account balance in the sandbox environment. This endpoint is exclusively available in the sandbox environment and enables you to simulate balance increases for testing purposes.

Note: This endpoint is only available in the sandbox environment and cannot be used in production.

Request

POSThttps://sandbox.api.harpfi.com/v1/balances/sandbox/top-up

Request Body Specification

Field KeyTypeLengthDescriptionRequired
amountnumber-The amount to add to the balanceYes
currencystring3ISO currency code for the balance to top up (e.g. "USD", "GBP", "EUR")Yes

Example Request

Bash
curl -X POST \
  'https://sandbox.api.harpfi.com/v1/balances/sandbox/top-up' \
  -H 'Authorization: ApiKey YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": 1000.00,
    "currency": "USD"
  }'

Response

JSON
{
    "success": true,
    "message": "Balance top up successful",
    "data": {}
}