Organizations / Fiat
Fiat for Members
As an organization admin you can run the fiat API for any member partner: payout bank accounts, spot conversions and deliverable forwards. Every call uses your own API keys plus X-Crebit-Acting-As-Partner-Id, and everything it creates belongs to the member.
This page covers what Spot and Deliverable Forward have in common. For the end-to-end flows see Spot and Deliverable Forward. Member management and the acting-as header are explained on Organizations.
Host and Environments
- The examples on the fiat pages use the production host
https://lock-apis.crebitpay.comwithX-Crebit-Environment: production, because real members, real bank accounts and real money live there. - The sandbox host
https://lock-apis-sandbox.crebitpay.comaccepts the same fiat calls with sandbox keys for testing. There, pay-ins can be simulated and fiat amount limits may be skipped, so don't use it to validate limits. - Each host only accepts its own environment header. The member must be in your organization and approved for fiat on the host you call.
Fiat Readiness
- You don't need fiat approval yourself. What counts is the member's status.
- The member must be approved for fiat by Crebit. Approval follows Crebit's review of the member's KYB, which you can submit for it with KYB via API.
- Until then, bank account list and create, SWIFT document upload, and every spot and forward quote and order call (including forward execute and confirm payout) return
403 fiat_spot_not_enabled, with or without acting-as. The fiat profile, bank directory and order reads (list and get) still answer, so you can check readiness at any time. - After approval Crebit finishes the member's fiat account setup. While that is in progress the same calls can return
fiat_profile_not_configured, a409error,fiat_wallet_missingorfiat_virtual_account_not_ready. They mean the member's fiat account setup with Crebit is not complete; retry later or contact Crebit. - Check readiness with GET /api/v1/fiat/profile:
spot_trading_enabledandforward_trading_enabledare true once BRL to USD can be quoted;usd_virtual_account_readyis true once USD pay-in corridors (USD to BRL, USD to EUR) work.
{
"code": "fiat_spot_not_enabled",
"message": "Fiat spot is not enabled for this partner",
"details": {
"product_mode": "crypto_lock"
}
}Customer References
Every spot and forward order names the end customer with customer_reference_id, an opaque id you choose. Register it for the member first (the same endpoint the crypto flow uses). Re-posting an existing id returns it with 200.
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fx/customer-references" \
-H "Content-Type: application/json" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b" \
-d '{"customer_reference_id":"cust_7781"}'{
"id": "0c9d8e7f-6a5b-4c3d-9e2f-1a0b9c8d7e6f",
"customer_reference_id": "cust_7781",
"created_at": "2026-09-28T13:55:12Z"
}Orders that name an unregistered reference fail with 404 not_found.
Fiat Profile
The member's fiat readiness, supported corridors and the USD deposit account used for USD pay-ins.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/profile" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b"{
"partner_id": "8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b",
"product_mode": "fiat",
"spot_trading_enabled": true,
"forward_trading_enabled": true,
"virtual_account_status": "approved",
"usd_virtual_account_ready": true,
"virtual_account_credentials": {
"ach": {
"routing_number": "021000021",
"account_number": "000123456789",
"beneficiary_name": "Member Co Ltda"
}
},
"supported_directions": [
"BRL_TO_USD",
"USD_TO_BRL",
"USD_TO_EUR"
],
"usd_receive_methods": [
"ach",
"wire",
"swift"
],
"supported_products": [
"spot",
"deliverable_forward"
],
"gbp_offramp_enabled": false,
"enabled_settlement_chains": [
"solana",
"tron"
],
"funded_settlement_pairs": [
{
"chain": "solana",
"currency": "USDC"
},
{
"chain": "tron",
"currency": "USDT"
}
]
}| Field | Meaning |
|---|---|
| product_mode | fiat or both when Crebit has approved the member for fiat; crypto_lock otherwise |
| spot_trading_enabled / forward_trading_enabled | BRL to USD (PIX pay-in) can be quoted |
| virtual_account_status | USD deposit account review: pending_review, verifying, approved or rejected |
| usd_virtual_account_ready | USD pay-in corridors (USD_TO_BRL, USD_TO_EUR) are available |
| virtual_account_credentials | Full USD deposit details per rail (ach, wire, swift); the same details appear on order payment instructions |
| supported_directions | BRL_TO_USD, USD_TO_BRL, USD_TO_EUR (Deliverable Forward supports BRL_TO_USD and USD_TO_BRL) |
Payout Bank Accounts
Every order pays out to one of the member's saved bank accounts, passed as payout_destination.bank_account_id. The rail must match the corridor:
| Direction | Payout bank type | Notes |
|---|---|---|
| BRL_TO_USD | ach, wire or swift | Must equal the order's usd_receive_method |
| USD_TO_BRL | pix | |
| USD_TO_EUR | sepa | Spot only |
List Bank Accounts
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/bank-accounts" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b"{
"bank_accounts": [
{
"id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"type": "wire",
"currency": "USD",
"last4": "6789",
"label": "Member Co operating · WIRE · ••••6789",
"recipient_relationship": "first_party",
"has_swift_document": false
},
{
"id": "ba_9a1e5c7b3d2f",
"name": "Member Co PIX",
"type": "pix",
"currency": "BRL",
"last4": null,
"label": "Member Co PIX · PIX",
"recipient_relationship": null,
"has_swift_document": false
}
]
}Create a Bank Account
Accepts an optional Idempotency-Key. Required fields depend on type; missing fields return 422 validation_error listing them.
| type | Required fields |
|---|---|
| pix | name, pix_key |
| ach / wire | name, beneficiary_name, routing_number (9-digit ABA), account_number, account_type (checking | saving), account_class (individual | business), address_line_1, city, state_province_region, country, postal_code, recipient_relationship; business_industry (NAICS, 2-6 digits) when account_class is business |
| swift (or international_swift) | name, account_class, recipient_relationship, swift_code_bic (8 or 11 chars), swift_account_holder_name, swift_account_number_iban, swift_beneficiary_address_line_1, swift_beneficiary_country, swift_beneficiary_city, swift_beneficiary_state_province_region (2 letters), swift_beneficiary_postal_code, swift_bank_name, swift_bank_address_line_1, swift_bank_country, swift_bank_city, swift_bank_state_province_region, swift_bank_postal_code; business_industry when business |
| sepa | name, account_class, sepa_iban, sepa_beneficiary_bic, sepa_beneficiary_legal_name, sepa_beneficiary_address_line_1, sepa_beneficiary_city, sepa_beneficiary_postal_code, sepa_beneficiary_country (must match the IBAN country prefix) |
recipient_relationship: first_party, employee, independent_contractor, vendor_or_supplier, subsidiary_or_affiliate, merchant_or_partner, customer, landlord, family or other.- Some beneficiary countries also require
tax_idorphone_number(E.164, e.g. +5511999999999), and some SWIFT bank countries requireswift_payment_code. The 422 response names exactly which. - SWIFT to a third party (relationship other than first_party) also needs
transaction_document_typeandtransaction_document_file(see SWIFT documents).
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/bank-accounts" \
-H "Content-Type: application/json" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"type":"wire","name":"Member Co operating","beneficiary_name":"Member Co LLC","routing_number":"021000021","account_number":"000123456789","account_type":"checking","account_class":"business","business_industry":"522320","address_line_1":"100 Main St","city":"New York","state_province_region":"NY","country":"US","postal_code":"10001","recipient_relationship":"first_party"}'{
"id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"type": "wire",
"currency": "USD",
"last4": "6789",
"label": "Member Co operating · WIRE · ••••6789",
"recipient_relationship": "first_party",
"has_swift_document": false
}A PIX account for USD to BRL payouts only needs a key:
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/bank-accounts" \
-H "Content-Type: application/json" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"type":"pix","name":"Member Co PIX","pix_key":"12.345.678/0001-90"}'{
"id": "ba_9a1e5c7b3d2f",
"name": "Member Co PIX",
"type": "pix",
"currency": "BRL",
"last4": null,
"label": "Member Co PIX · PIX",
"recipient_relationship": null,
"has_swift_document": false
}Bank Directory
A static list of US banks with headquarters address and routing number, handy for pre-filling ACH, wire and SWIFT bank forms.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/bank-directory" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b"{
"banks": [
{
"key": "chase",
"bank_name": "JPMorgan Chase Bank",
"address": "383 Madison Ave",
"city": "New York",
"state": "NY",
"postal_code": "10179",
"routing_number": "021000021"
}
]
}SWIFT Documents
SWIFT payouts to a third party need a document showing the relationship between payer and recipient. Provide it when you create the bank account, or attach or replace it later. Crebit reuses the stored document automatically at payout time.
transaction_document_type: invoice, purchase_order, delivery_slip, contract, customs_declaration, bill_of_lading or others.transaction_document_file: a PDF, JPEG or PNG as a data URL or an HTTPS URL, under about 8 MB.
curl -sS -X PUT "https://lock-apis.crebitpay.com/api/v1/fiat/bank-accounts/ba_2b8d6f0a4c1e/swift-document" \
-H "Content-Type: application/json" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b" \
-d '{"transaction_document_type":"invoice","transaction_document_id":"INV-2026-0042","transaction_document_file":"data:application/pdf;base64,JVBERi0xLjQK…"}'{
"id": "ba_2b8d6f0a4c1e",
"name": "Supplier GmbH",
"type": "international_swift",
"currency": "USD",
"last4": "3000",
"label": "Supplier GmbH · INTERNATIONAL_SWIFT · ••••3000",
"recipient_relationship": "vendor_or_supplier",
"has_swift_document": true
}Errors: 404 bank_account_not_found, 400 not_swift_bank_account, 400 document_not_required(first-party SWIFT accounts need no document). If a SWIFT payout still asks for a document after it is submitted, use the order's compliance-documents endpoint (see the Spot and Deliverable Forward pages).
Limits
Fiat limits are the member's, measured in USD, and checked on every quote and order (and on forward previews):
- Per transaction: a minimum and a maximum USD amount. Out-of-range amounts return 400 with
details.min_usdanddetails.max_usd. - Daily and monthly:the member's total fiat volume.
400 fiat_daily_limit_exceededand400 fiat_monthly_limit_exceededincludeused_usd,proposed_usd,cap_usdandremaining_usdindetails. - There is no endpoint to read limits. To raise a member's limits, contact Crebit support.
List All Fiat Orders
One cursor-paginated list of the member's spot and forward orders, newest first.
| Query parameter | Meaning |
|---|---|
| status | Filter by order status (e.g. settled) |
| product | spot, or forward (also deliverable_forward, df) |
| created_after | ISO 8601 timestamp |
| q | Search order id or direction (max 128 chars) |
| customer_reference_id | Only orders for this customer reference |
| limit | 1-200, default 20 |
| cursor | next_cursor from the previous page (invalid cursor → 400 invalid_cursor) |
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/orders?limit=20&customer_reference_id=cust_7781" \
-H "X-Crebit-Key-Id: ADMIN_KEY_ID" \
-H "X-Crebit-Key-Secret: ADMIN_KEY_SECRET" \
-H "X-Crebit-Environment: production" \
-H "X-Crebit-Acting-As-Partner-Id: 8f3c2a1e-4b5d-4e6f-9a7b-1c2d3e4f5a6b"{
"spot_items": [
{
"id": "7e1f2a3b-4c5d-4e6f-8a9b-0c1d2e3f4a5b",
"direction": "BRL_TO_USD",
"status": "settled",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"payin_amount": "50000.00",
"payin_currency": "BRL",
"payout_amount": "9140.77",
"payout_currency": "USD",
"locked_rate": "5.4700",
"spread_bps": 0,
"usd_receive_method": "wire",
"failure_reason": null,
"share_token": "q3V9xk…",
"share_url": "https://developers.crebitpay.com/fiat/pay/q3V9xk…",
"payment_instructions": [],
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-09-28T14:21:40Z"
}
],
"forward_items": [],
"next_cursor": "eyJjcmVhdGVkX2F0Ijoi…"
}Idempotency
- Optional
Idempotency-Key(8-128 printable ASCII characters) on: create bank account, spot quote, spot order, forward quote, forward order, forward execute and forward confirm payout. - Keys are scoped to the member (the acting-as partner) and route, and kept for 24 hours. A retry with the same key and body returns the original response.
- Same key with a different body:
409 idempotency_mismatch. Same key while the first request is still running:409 idempotency_in_progress. Malformed key:400 invalid_idempotency_key.
Status Updates (Polling)
GET /api/v1/fiat/spot/orders/{id} or GET /api/v1/fiat/forward/orders/{id} with the acting-as header, or the combined GET /api/v1/fiat/orders list, until the order reaches settled, expired or failed.Poll every 15-60 seconds while a pay-in or payout is in flight. For deliverable forwards, polling the order also moves it forward (for example from hedging to active), so keep polling rather than relying on list calls alone.
Errors
Errors use the standard body { "code", "message", "details" }. Codes shared by the fiat endpoints:
| Status | code | When |
|---|---|---|
| 403 | fiat_spot_not_enabled | Member not approved for fiat by Crebit yet (bank accounts, SWIFT documents, spot and forward quotes and orders) |
| 403 | fiat_profile_not_configured | Member's fiat account setup with Crebit is not complete |
| 400 | fiat_wallet_missing | Member's fiat account setup with Crebit is not complete |
| 403 | fiat_virtual_account_not_ready | USD pay-in corridor requested before the member's USD deposit account is approved |
| 400 | fiat_va_credentials_missing | The member's USD deposit account has no details for the chosen rail |
| 404 | partner_not_found | The member partner does not exist on this host |
| 400 | fiat_payout_bank_account_required | payout_destination.bank_account_id missing or not a bank account id |
| 400 | fiat_payout_bank_account_not_found | Bank account does not belong to the member |
| 400 | fiat_payout_bank_rail_mismatch | Bank type does not match the corridor / usd_receive_method |
| 400 | fiat_daily_limit_exceeded | Member's daily fiat volume cap reached |
| 400 | fiat_monthly_limit_exceeded | Member's monthly fiat volume cap reached |
| 400 | bad_request | Invalid direction, usd_receive_method, payer_role or amount, or BRL amount below 5.00 |
| 422 | validation_error | Body failed schema validation (unknown or missing fields) |
| 404 | not_found | customer_reference_id is not registered for the member |
| 404 | fiat_spot_order_not_found / fiat_forward_order_not_found | Order does not exist or belongs to another partner |
| 502 | live_spot_rate_unavailable / pricing_unavailable | Live FX rate temporarily unavailable; retry |
| 404 | bank_account_not_found | SWIFT document upload on a bank account the member doesn't have |
| 400 | not_swift_bank_account / document_not_required | SWIFT document upload on a non-SWIFT or first-party SWIFT account |
| 409 | idempotency_mismatch / idempotency_in_progress | Idempotency-Key reuse |
| 400 | acting_as_self / bad_request | Acting-as header is your own id / not a UUID |
| 403 | acting_as_not_allowed | The partner is not an active member of your organization |
| 400 | invalid_spread_percent | spread_percent not a number, negative, above 5 or over 8 decimal places |
| 403 | client_spread_not_allowed | Non-zero spread_percent without the acting-as header (see Client spread) |
Product-specific errors (quote expiry, execution window, payout confirmation, compliance documents) are listed on the Spot and Deliverable Forward pages.
Next: Spot and Deliverable Forward
- Spot: convert now at the live rate. Quote, order, pay in, Crebit pays out automatically.
- Deliverable Forward: lock a rate today, fund an upfront amount, execute inside a 24-hour window, pay the remainder, then confirm the payout.
- Client spread: add your own markup to a member's Spot or Deliverable Forward rate and earn the difference.