API ReferenceExchange
Create a quote
POST /v1/exchange/quotes : lock an exchange rate for a short window.
POST /v1/exchange/quotes
Headers
| Header | Required | Value |
|---|---|---|
Authorization | yes | Bearer sk_... |
Content-Type | yes | application/json |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
from_currency | string | yes | ISO 4217 source currency |
to_currency | string | yes | ISO 4217 target currency |
from_amount_minor | int | yes | Amount in source minor units |
Request
curl https://api.ouipay.com/v1/exchange/quotes \
-H "Authorization: Bearer sk_test_..." \
-H "Content-Type: application/json" \
-d '{
"from_currency": "NGN",
"to_currency": "GHS",
"from_amount_minor": 500000
}'Response 201
Returns the quote object with
expires_at. Execute before expiry; rates move.
Errors
| HTTP | error.code | Cause |
|---|---|---|
| 400 | VALIDATION | Invalid field or unsupported pair |