Borderless Docs
  • Get Started
    • Welcome to Borderless
    • Quick Start
  • About us
    • About us
      • Supported countries
  • Reference
    • API Reference
      • Authentication
      • Users
      • KYC
      • Rates
      • Orders
      • Webhooks
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Rates

PreviousKYCNextOrders

Last updated 1 year ago

Create a Rate

  • Create a Rate
  • POSTCreate a Rate

Create a Rate

post
Authorizations
Body
fiatInstring · enumRequired

The FIAT currency to be sent by the user

Example: CADPossible values:
fiatOutstring · enumRequired

The FIAT currency to be received

Example: PHPPossible values:
amountInnumberRequired

The Amount of fiatIn to be sent by the user

Example: 100
Responses
200
The created rate
application/json
401
Unauthorized
500
Internal server error
post
POST /rates HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 47

{
  "fiatIn": "CAD",
  "fiatOut": "PHP",
  "amountIn": 100
}
{
  "fiatIn": "CAD",
  "fiatOut": "PHP",
  "amountIn": 100,
  "amountOut": 100,
  "rate": 1,
  "code": "APIWQRQWKZXV",
  "expirationDate": "2024-04-15T12:37:34.794Z"
}