Skip to main content
POST
/
payment
/
create
create payment
curl --request POST \
  --url https://ramp-sandbox.hexarails.ai/payment/create \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form deductCurrency=USDT \
  --form amount=100 \
  --form currency=USD \
  --form bankAccountId=d33cb6ae-cc67-40e7-b92d-babb255f1774 \
  --form reference=payment-123456 \
  --form supportingDocument='@example-file'
{
  "status": "SUCCESS",
  "data": {
    "id": "12209d2d-47b4-4a07-8a01-b49052cd8204",
    "status": "CONFIRMED",
    "rate": "0.9950",
    "deductAmount": "180.50",
    "deductCurrency": "USDT",
    "receivedCurrency": "USD",
    "receivedAmount": "100.00",
    "bankCharge": "80.00",
    "reference": "payment-123456",
    "createTime": "2026-03-12 17:22:04",
    "bankAccount": {
      "bankName": "New York Bank",
      "accountNo": "123451097890",
      "swift": "CHASUS33",
      "beneficiaryName": "John Doe",
      "beneficiaryAddress": "123 Main St",
      "bankCountry": "SG",
      "bankAddress": "1 Marina Blvd"
    }
  }
}

Authorizations

X-API-Key
string
header
required

Body

multipart/form-data
deductCurrency
string
required

currency to deduct from your balance

Example:

"USDT"

amount
string
required

Amount to pay

Example:

"100"

currency
string
required

Currency to pay

Example:

"USD"

bankAccountId
string
required

The ID of the bank account to pay

Example:

"d33cb6ae-cc67-40e7-b92d-babb255f1774"

reference
string
required

Payment Reference

Example:

"payment-123456"

supportingDocument
file

Supporting document

Response

Get payment detail successful

status
enum<string>
required

Success response status

Available options:
SUCCESS
Example:

"SUCCESS"

data
object
required

Response data