Docs
llms.txt for AI agents Download OpenAPI spec

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.com with X-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, a 409 error, fiat_wallet_missing or fiat_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_enabled and forward_trading_enabled are true once BRL to USD can be quoted; usd_virtual_account_ready is true once USD pay-in corridors (USD to BRL, USD to EUR) work.
json, response (403) code sample
json, response (403)
{
  "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.

HTTP code sample
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"}'
json, response (201) code sample
json, response (201)
{
  "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.

HTTP code sample
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"
json, response code sample
json, response
{
  "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"
    }
  ]
}
FieldMeaning
product_modefiat or both when Crebit has approved the member for fiat; crypto_lock otherwise
spot_trading_enabled / forward_trading_enabledBRL to USD (PIX pay-in) can be quoted
virtual_account_statusUSD deposit account review: pending_review, verifying, approved or rejected
usd_virtual_account_readyUSD pay-in corridors (USD_TO_BRL, USD_TO_EUR) are available
virtual_account_credentialsFull USD deposit details per rail (ach, wire, swift); the same details appear on order payment instructions
supported_directionsBRL_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:

DirectionPayout bank typeNotes
BRL_TO_USDach, wire or swiftMust equal the order's usd_receive_method
USD_TO_BRLpix
USD_TO_EURsepaSpot only

List Bank Accounts

HTTP code sample
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"
json, response code sample
json, response
{
  "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.

typeRequired fields
pixname, pix_key
ach / wirename, 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
sepaname, 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_id or phone_number (E.164, e.g. +5511999999999), and some SWIFT bank countries require swift_payment_code. The 422 response names exactly which.
  • SWIFT to a third party (relationship other than first_party) also needs transaction_document_type and transaction_document_file (see SWIFT documents).
HTTP code sample
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"}'
json, response (201) code sample
json, response (201)
{
  "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:

HTTP code sample
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"}'
json, response (201) code sample
json, response (201)
{
  "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.

HTTP code sample
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"
json, response code sample
json, response
{
  "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.
HTTP code sample
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…"}'
json, response code sample
json, response
{
  "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_usd and details.max_usd.
  • Daily and monthly:the member's total fiat volume. 400 fiat_daily_limit_exceeded and 400 fiat_monthly_limit_exceeded include used_usd, proposed_usd, cap_usd and remaining_usd in details.
  • 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 parameterMeaning
statusFilter by order status (e.g. settled)
productspot, or forward (also deliverable_forward, df)
created_afterISO 8601 timestamp
qSearch order id or direction (max 128 chars)
customer_reference_idOnly orders for this customer reference
limit1-200, default 20
cursornext_cursor from the previous page (invalid cursor → 400 invalid_cursor)
HTTP code sample
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"
json, response code sample
json, response
{
  "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)

Crebit does not send webhooks for fiat orders. Poll 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:

StatuscodeWhen
403fiat_spot_not_enabledMember not approved for fiat by Crebit yet (bank accounts, SWIFT documents, spot and forward quotes and orders)
403fiat_profile_not_configuredMember's fiat account setup with Crebit is not complete
400fiat_wallet_missingMember's fiat account setup with Crebit is not complete
403fiat_virtual_account_not_readyUSD pay-in corridor requested before the member's USD deposit account is approved
400fiat_va_credentials_missingThe member's USD deposit account has no details for the chosen rail
404partner_not_foundThe member partner does not exist on this host
400fiat_payout_bank_account_requiredpayout_destination.bank_account_id missing or not a bank account id
400fiat_payout_bank_account_not_foundBank account does not belong to the member
400fiat_payout_bank_rail_mismatchBank type does not match the corridor / usd_receive_method
400fiat_daily_limit_exceededMember's daily fiat volume cap reached
400fiat_monthly_limit_exceededMember's monthly fiat volume cap reached
400bad_requestInvalid direction, usd_receive_method, payer_role or amount, or BRL amount below 5.00
422validation_errorBody failed schema validation (unknown or missing fields)
404not_foundcustomer_reference_id is not registered for the member
404fiat_spot_order_not_found / fiat_forward_order_not_foundOrder does not exist or belongs to another partner
502live_spot_rate_unavailable / pricing_unavailableLive FX rate temporarily unavailable; retry
404bank_account_not_foundSWIFT document upload on a bank account the member doesn't have
400not_swift_bank_account / document_not_requiredSWIFT document upload on a non-SWIFT or first-party SWIFT account
409idempotency_mismatch / idempotency_in_progressIdempotency-Key reuse
400acting_as_self / bad_requestActing-as header is your own id / not a UUID
403acting_as_not_allowedThe partner is not an active member of your organization
400invalid_spread_percentspread_percent not a number, negative, above 5 or over 8 decimal places
403client_spread_not_allowedNon-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.