Organizations / Fiat / Deliverable Forward
Fiat Deliverable Forward for Members
Lock a BRL/USD rate today for a member and deliver later: fund an upfront amount now, execute inside a 24-hour window, fund the rest, then confirm the payout to the member's bank account. Every request below uses your admin keys plus X-Crebit-Acting-As-Partner-Id.
Readiness, bank accounts, customer references, limits and idempotency work as described on the fiat overview. Examples use the production host https://lock-apis.crebitpay.com.
How It Works
| Amount | Meaning |
|---|---|
| notional_amount | Full amount in the pay-in currency (BRL for BRL_TO_USD, USD for USD_TO_BRL) |
| premium_amount | Price of the rate lock |
| deposit_amount | Part of the notional paid now |
| upfront_amount | premium_amount + deposit_amount, paid after order create (total_upfront_amount adds the rail cover fee) |
| remaining_notional | notional_amount - deposit_amount, paid after execute |
| guaranteed_payout_amount | What the member's bank receives at locked_rate |
- Directions:
BRL_TO_USD(PIX pay-ins, payout to an ach, wire or swift bank matchingusd_receive_method) andUSD_TO_BRL(USD deposit account pay-ins on theusd_receive_methodrail, payout to a PIX bank). - There are no fiat webhooks. Poll the order after every step.
Execution Window
- The window is always 24 hours. Send
execution_window_startas UTC midnight of the execute day; the server setsexecution_window_endto start + 24h and ignores a longer end. - If that midnight has already passed (execute today), the window starts now and ends 24 hours later.
- You can only execute inside the window. If the window ends before you execute (or before the remaining notional is paid), the order expires.
1. Preview
Optional. The locked economics for an amount and window, without rail or cover fee. Limits are checked. Results are cached for about 5 minutes per set of parameters.
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/forward/quote-preview" \
-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 '{"direction":"BRL_TO_USD","amount":"100000.00","amount_side":"payin","execution_window_start":"2026-10-15T00:00:00Z","execution_window_end":"2026-10-16T00:00:00Z"}'{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"direction": "BRL_TO_USD",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"pricing_source": "crebit_pricer"
}2. Quote
Adds usd_receive_method and the cover fee on the upfront pay-in. The quote is valid until quote_expires_at (about 5 minutes).
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/forward/quotes" \
-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 '{"direction":"BRL_TO_USD","amount":"100000.00","amount_side":"payin","execution_window_start":"2026-10-15T00:00:00Z","execution_window_end":"2026-10-16T00:00:00Z","usd_receive_method":"wire"}'{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"direction": "BRL_TO_USD",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"usd_receive_method": "wire",
"pricing_source": "crebit_pricer",
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80"
}3. Create the Order
| Field | Required | Notes |
|---|---|---|
| direction | yes | BRL_TO_USD or USD_TO_BRL |
| amount / amount_side | yes / no | Fixed amount; amount_side payin (default) or payout |
| execution_window_start / execution_window_end | yes | See Execution window |
| usd_receive_method | yes | ach, wire or swift |
| customer_reference_id | yes | Registered customer reference |
| payout_destination.bank_account_id | yes | Member's bank on the matching rail |
| payer_role | no | self (default) or third_party |
| spread_percent | no | Your markup as a percent (0.25 = 0.25%); see Client spread |
spread_percent on the preview, quote and order. See Client spread.curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders" \
-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 '{"direction":"BRL_TO_USD","amount":"100000.00","amount_side":"payin","execution_window_start":"2026-10-15T00:00:00Z","execution_window_end":"2026-10-16T00:00:00Z","payer_role":"self","usd_receive_method":"wire","customer_reference_id":"cust_7781","payout_destination":{"bank_account_id":"ba_4f7c2d9e1a3b"}}'{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"direction": "BRL_TO_USD",
"status": "awaiting_upfront",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"upfront_payin_expires_at": "2026-10-03T14:00:00Z",
"remaining_payin_expires_at": null,
"usd_receive_method": "wire",
"payout_destination": {
"bank_account_id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"beneficiary_name": "Member Co LLC"
},
"hedge_usdc_amount": null,
"hedge_completed_at": null,
"exercise_spot_rate": null,
"top_up_usdc_amount": null,
"top_up_completed_at": null,
"top_up_pending": false,
"failure_reason": null,
"upfront_share_token": "Uf7kP2wQ9zR4…",
"remaining_share_token": null,
"upfront_share_url": "https://developers.crebitpay.com/fiat/pay/Uf7kP2wQ9zR4…",
"remaining_share_url": null,
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80",
"payment_instructions": [
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"instruction_kind": "upfront_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540811282.805802BR…6304C3D4"
},
"display_text": "Pay 11282.80 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-03T14:00:00Z"
}
],
"activated_at": null,
"executed_at": null,
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-09-28T14:00:00Z",
"swift_compliance": null
}4. Fund the Upfront Amount
The payer sends total_upfront_amount using the upfront_payin instruction (PIX code for BRL_TO_USD, USD deposit account details for USD_TO_BRL) before upfront_payin_expires_at (120 hours by default). Minimum BRL pay-in is 5.00. Poll the order: it moves through upfront_detected and hedging to active.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders/9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d" \
-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"{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"direction": "BRL_TO_USD",
"status": "active",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"upfront_payin_expires_at": "2026-10-03T14:00:00Z",
"remaining_payin_expires_at": null,
"usd_receive_method": "wire",
"payout_destination": {
"bank_account_id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"beneficiary_name": "Member Co LLC"
},
"hedge_usdc_amount": null,
"hedge_completed_at": null,
"exercise_spot_rate": null,
"top_up_usdc_amount": null,
"top_up_completed_at": null,
"top_up_pending": false,
"failure_reason": null,
"upfront_share_token": "Uf7kP2wQ9zR4…",
"remaining_share_token": null,
"upfront_share_url": "https://developers.crebitpay.com/fiat/pay/Uf7kP2wQ9zR4…",
"remaining_share_url": null,
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80",
"payment_instructions": [
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"instruction_kind": "upfront_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540811282.805802BR…6304C3D4"
},
"display_text": "Pay 11282.80 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-03T14:00:00Z"
}
],
"activated_at": "2026-09-28T14:12:30Z",
"executed_at": null,
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-09-28T14:12:30Z",
"swift_compliance": null
}5. Execute
Once the order is active and the execution window has started, execute to open the remaining-notional pay-in. No body. Accepts an optional Idempotency-Key.
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders/9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d/execute" \
-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)"{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"direction": "BRL_TO_USD",
"status": "awaiting_remaining",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"upfront_payin_expires_at": "2026-10-03T14:00:00Z",
"remaining_payin_expires_at": "2026-10-20T09:15:00Z",
"usd_receive_method": "wire",
"payout_destination": {
"bank_account_id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"beneficiary_name": "Member Co LLC"
},
"hedge_usdc_amount": null,
"hedge_completed_at": null,
"exercise_spot_rate": null,
"top_up_usdc_amount": null,
"top_up_completed_at": null,
"top_up_pending": false,
"failure_reason": null,
"upfront_share_token": "Uf7kP2wQ9zR4…",
"remaining_share_token": "Rm3nX8vB5tY1…",
"upfront_share_url": "https://developers.crebitpay.com/fiat/pay/Uf7kP2wQ9zR4…",
"remaining_share_url": "https://developers.crebitpay.com/fiat/pay/Rm3nX8vB5tY1…",
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80",
"payment_instructions": [
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"instruction_kind": "upfront_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540811282.805802BR…6304C3D4"
},
"display_text": "Pay 11282.80 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-03T14:00:00Z"
},
{
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"instruction_kind": "remaining_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540890000.005802BR…6304E5F6"
},
"display_text": "Pay 90000.00 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-20T09:15:00Z"
}
],
"activated_at": "2026-09-28T14:12:30Z",
"executed_at": "2026-10-15T09:15:00Z",
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-10-15T09:15:00Z",
"swift_compliance": null
}- Not active yet (or already executed):
409 forward_not_executable. - Before the window:
409 execution_window_not_started; after it:409 execution_window_ended.
6. Fund the Remaining Notional
The payer sends remaining_notional with the remaining_payin instruction before remaining_payin_expires_at and before the window ends. Poll the order: it moves through remaining_detected and converting (Crebit settles any rate difference against the locked rate; top_up_pending is true while that runs) to ready_to_payout.
{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"direction": "BRL_TO_USD",
"status": "ready_to_payout",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"upfront_payin_expires_at": "2026-10-03T14:00:00Z",
"remaining_payin_expires_at": "2026-10-20T09:15:00Z",
"usd_receive_method": "wire",
"payout_destination": {
"bank_account_id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"beneficiary_name": "Member Co LLC"
},
"hedge_usdc_amount": null,
"hedge_completed_at": null,
"exercise_spot_rate": "5.4900",
"top_up_usdc_amount": null,
"top_up_completed_at": null,
"top_up_pending": false,
"failure_reason": null,
"upfront_share_token": "Uf7kP2wQ9zR4…",
"remaining_share_token": "Rm3nX8vB5tY1…",
"upfront_share_url": "https://developers.crebitpay.com/fiat/pay/Uf7kP2wQ9zR4…",
"remaining_share_url": "https://developers.crebitpay.com/fiat/pay/Rm3nX8vB5tY1…",
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80",
"payment_instructions": [
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"instruction_kind": "upfront_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540811282.805802BR…6304C3D4"
},
"display_text": "Pay 11282.80 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-03T14:00:00Z"
},
{
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"instruction_kind": "remaining_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540890000.005802BR…6304E5F6"
},
"display_text": "Pay 90000.00 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-20T09:15:00Z"
}
],
"activated_at": "2026-09-28T14:12:30Z",
"executed_at": "2026-10-15T09:15:00Z",
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-10-15T10:02:11Z",
"swift_compliance": null
}7. Confirm the Payout
Payout is not automatic for forwards. When the order is ready_to_payout, confirm it to send guaranteed_payout_amountto the member's bank account. No body. Accepts an optional Idempotency-Key.
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders/9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d/confirm-payout" \
-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)"{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"direction": "BRL_TO_USD",
"status": "payout_submitted",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"upfront_payin_expires_at": "2026-10-03T14:00:00Z",
"remaining_payin_expires_at": "2026-10-20T09:15:00Z",
"usd_receive_method": "wire",
"payout_destination": {
"bank_account_id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"beneficiary_name": "Member Co LLC"
},
"hedge_usdc_amount": null,
"hedge_completed_at": null,
"exercise_spot_rate": "5.4900",
"top_up_usdc_amount": null,
"top_up_completed_at": null,
"top_up_pending": false,
"failure_reason": null,
"upfront_share_token": "Uf7kP2wQ9zR4…",
"remaining_share_token": "Rm3nX8vB5tY1…",
"upfront_share_url": "https://developers.crebitpay.com/fiat/pay/Uf7kP2wQ9zR4…",
"remaining_share_url": "https://developers.crebitpay.com/fiat/pay/Rm3nX8vB5tY1…",
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80",
"payment_instructions": [
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"instruction_kind": "upfront_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540811282.805802BR…6304C3D4"
},
"display_text": "Pay 11282.80 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-03T14:00:00Z"
},
{
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"instruction_kind": "remaining_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540890000.005802BR…6304E5F6"
},
"display_text": "Pay 90000.00 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-20T09:15:00Z"
}
],
"activated_at": "2026-09-28T14:12:30Z",
"executed_at": "2026-10-15T09:15:00Z",
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-10-15T10:05:40Z",
"swift_compliance": null
}- Rate top-up still running:
409 forward_top_up_pending(retry shortly). - Any status other than
ready_to_payout(orconvertingafter the remaining pay-in):409 forward_not_ready_to_payoutwithdetails.status. This includes a second call after the payout was submitted; to retry safely, reuse the sameIdempotency-Key, which replays the first response.
8. Poll Until Settled
Poll until settled. Polling also advances the order through hedging and converting, so keep polling the single order while it is in flight.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders/9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d" \
-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"{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"direction": "BRL_TO_USD",
"status": "settled",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"upfront_payin_expires_at": "2026-10-03T14:00:00Z",
"remaining_payin_expires_at": "2026-10-20T09:15:00Z",
"usd_receive_method": "wire",
"payout_destination": {
"bank_account_id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"beneficiary_name": "Member Co LLC"
},
"hedge_usdc_amount": null,
"hedge_completed_at": null,
"exercise_spot_rate": "5.4900",
"top_up_usdc_amount": null,
"top_up_completed_at": null,
"top_up_pending": false,
"failure_reason": null,
"upfront_share_token": "Uf7kP2wQ9zR4…",
"remaining_share_token": "Rm3nX8vB5tY1…",
"upfront_share_url": "https://developers.crebitpay.com/fiat/pay/Uf7kP2wQ9zR4…",
"remaining_share_url": "https://developers.crebitpay.com/fiat/pay/Rm3nX8vB5tY1…",
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80",
"payment_instructions": [
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"instruction_kind": "upfront_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540811282.805802BR…6304C3D4"
},
"display_text": "Pay 11282.80 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-03T14:00:00Z"
},
{
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"instruction_kind": "remaining_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540890000.005802BR…6304E5F6"
},
"display_text": "Pay 90000.00 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-20T09:15:00Z"
}
],
"activated_at": "2026-09-28T14:12:30Z",
"executed_at": "2026-10-15T09:15:00Z",
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-10-15T11:30:02Z",
"swift_compliance": null
}Status Lifecycle
| status | Meaning | Next |
|---|---|---|
| quoted | Order row created; upfront instructions being issued (not normally visible) | awaiting_upfront, expired, failed |
| awaiting_upfront | Waiting for the upfront pay-in (upfront_payin_expires_at) | upfront_detected, expired, failed |
| upfront_detected | Upfront received | hedging or active, failed |
| hedging | Crebit is hedging the locked rate | active, failed |
| active | Rate locked; waiting for you to execute inside the window | awaiting_remaining (execute), expired (window ended), failed |
| awaiting_remaining | Waiting for the remaining pay-in | remaining_detected, expired, failed |
| remaining_detected | Remaining notional received | converting, failed |
| converting | Rate top-up in progress (top_up_pending) | ready_to_payout, failed |
| ready_to_payout | Waiting for POST …/confirm-payout | payout_submitted, failed |
| payout_submitted | Payout sent; a failed payout is retried automatically (back to converting) | settled, converting, failed |
| settled | Payout completed (terminal) | |
| expired | A pay-in window or the execution window ran out (terminal) | |
| failed | Pay-in failed, or the payout failed after retries; see failure_reason (terminal) |
SWIFT Compliance Documents
Same as Spot: for SWIFT payouts held for a payer-recipient document (swift_compliance.status: waiting_documents), send the document once the order is payout_submitted. Documents stored on the bank account are submitted automatically. Body fields: transaction_document_type (invoice, purchase_order, delivery_slip, contract, customs_declaration, bill_of_lading, first_party, others), transaction_document_file (HTTPS or data URL, PDF / JPEG / PNG under about 8 MB; not needed for first_party), optional transaction_document_id and description.
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders/9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d/compliance-documents" \
-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":"contract","transaction_document_id":"CT-2026-118","transaction_document_file":"https://files.member.example/contracts/ct-2026-118.pdf"}'{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"direction": "BRL_TO_USD",
"status": "payout_submitted",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"upfront_payin_expires_at": "2026-10-03T14:00:00Z",
"remaining_payin_expires_at": "2026-10-20T09:15:00Z",
"usd_receive_method": "swift",
"payout_destination": {
"bank_account_id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"beneficiary_name": "Member Co LLC"
},
"hedge_usdc_amount": null,
"hedge_completed_at": null,
"exercise_spot_rate": "5.4900",
"top_up_usdc_amount": null,
"top_up_completed_at": null,
"top_up_pending": false,
"failure_reason": null,
"upfront_share_token": "Uf7kP2wQ9zR4…",
"remaining_share_token": "Rm3nX8vB5tY1…",
"upfront_share_url": "https://developers.crebitpay.com/fiat/pay/Uf7kP2wQ9zR4…",
"remaining_share_url": "https://developers.crebitpay.com/fiat/pay/Rm3nX8vB5tY1…",
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80",
"payment_instructions": [
{
"id": "1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b",
"instruction_kind": "upfront_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540811282.805802BR…6304C3D4"
},
"display_text": "Pay 11282.80 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-03T14:00:00Z"
},
{
"id": "6a7b8c9d-0e1f-4a2b-9c3d-4e5f6a7b8c9d",
"instruction_kind": "remaining_payin",
"rail": "pix",
"credentials": {
"pix_code": "00020126580014br.gov.bcb.pix0136…540890000.005802BR…6304E5F6"
},
"display_text": "Pay 90000.00 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…",
"expires_at": "2026-10-20T09:15:00Z"
}
],
"activated_at": "2026-09-28T14:12:30Z",
"executed_at": "2026-10-15T09:15:00Z",
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-10-15T10:05:40Z",
"swift_compliance": {
"required": true,
"status": "compliance_reviewing",
"document_type": "contract",
"document_id": "CT-2026-118",
"submitted_at": "2026-10-15T10:20:00Z"
}
}List Orders
The member's forward orders, newest first. Optional status and limit(1-200, default 100). List items don't include payment instructions. For spot and forward together with pagination use GET /api/v1/fiat/orders.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders?status=settled&limit=50" \
-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"{
"items": [
{
"spread_percent": "0",
"base_rate": "5.5200",
"client_rate": "5.5200",
"spread_revenue_amount": "0",
"spread_revenue_currency": "USD",
"id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"direction": "BRL_TO_USD",
"status": "settled",
"payer_role": "self",
"customer_reference_id": "cust_7781",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"payin_currency": "BRL",
"payout_currency": "USD",
"locked_rate": "5.5200",
"market_rate": "5.4700",
"premium_amount": "1200.00",
"deposit_amount": "10000.00",
"upfront_amount": "11200.00",
"remaining_notional": "90000.00",
"guaranteed_payout_amount": "18115.94",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"quote_expires_at": "2026-09-28T14:04:45Z",
"upfront_payin_expires_at": "2026-10-03T14:00:00Z",
"remaining_payin_expires_at": "2026-10-20T09:15:00Z",
"usd_receive_method": "wire",
"payout_destination": {
"bank_account_id": "ba_4f7c2d9e1a3b",
"name": "Member Co operating",
"beneficiary_name": "Member Co LLC"
},
"hedge_usdc_amount": null,
"hedge_completed_at": null,
"exercise_spot_rate": "5.4900",
"top_up_usdc_amount": null,
"top_up_completed_at": null,
"top_up_pending": false,
"failure_reason": null,
"upfront_share_token": "Uf7kP2wQ9zR4…",
"remaining_share_token": "Rm3nX8vB5tY1…",
"upfront_share_url": "https://developers.crebitpay.com/fiat/pay/Uf7kP2wQ9zR4…",
"remaining_share_url": "https://developers.crebitpay.com/fiat/pay/Rm3nX8vB5tY1…",
"cover_fee_usd": "15.00",
"cover_fee_payin_amount": "82.80",
"cover_fee_payin_currency": "BRL",
"total_upfront_amount": "11282.80",
"payment_instructions": [],
"activated_at": "2026-09-28T14:12:30Z",
"executed_at": "2026-10-15T09:15:00Z",
"created_at": "2026-09-28T14:00:00Z",
"updated_at": "2026-10-15T11:30:02Z",
"swift_compliance": null
}
]
}Share and Receipt
Share Payment Instructions
phase is upfront (default) or remaining. Asking for remaining before execute returns 400 remaining_payin_not_open.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders/9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d/share?phase=remaining" \
-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"{
"order_id": "9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d",
"phase": "remaining",
"share_token": "Rm3nX8vB5tY1…",
"share_url": "https://developers.crebitpay.com/fiat/pay/Rm3nX8vB5tY1…",
"share_text": "Please send 90000.00 BRL for this Crebit fiat forward (remaining) payment.\n\nPay 90000.00 BRL (BRL TO USD)\nRail: PIX\nPIX: 00020126580014br.gov.bcb.pix0136…\n\nDetails: https://developers.crebitpay.com/fiat/pay/Rm3nX8vB5tY1…",
"mailto_url": "mailto:?subject=Payment%20instructions&body=…",
"whatsapp_url": "https://wa.me/?text=…"
}Download the Receipt
Returns a PDF attachment.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/forward/orders/9b8a7c6d-5e4f-4a3b-9c2d-1e0f9a8b7c6d/receipt" \
-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"Errors
Forward-specific codes. Readiness, bank account, limit and idempotency errors are on the fiat overview.
| Status | code | When |
|---|---|---|
| 400 | invalid_execution_window | execution_window_end is not after execution_window_start |
| 400 | execution_window_starts_too_soon / execution_window_in_past / execution_window_too_short | Window in the past or shorter than 24 hours |
| 400 | deposit_exceeds_notional | Amount too small for the required deposit |
| 400 | (per-transaction limit) | Amount outside the member's per-transaction USD range; details include min_usd and max_usd |
| 400 | fiat_daily_limit_exceeded / fiat_monthly_limit_exceeded | Member's volume cap reached |
| 502 | pricing_unavailable / crebit_pricer_error | Forward pricing temporarily unavailable; retry |
| 404 | fiat_forward_order_not_found | Unknown order id, or an order of another partner |
| 409 | forward_not_executable | Execute called when the order is not active |
| 409 | execution_window_not_started / execution_window_ended | Execute called outside the window |
| 400 | forward_execute_failed | Remaining pay-in could not be opened (e.g. BRL remaining below 5.00) |
| 409 | forward_top_up_pending | Confirm payout while the rate top-up is still running |
| 409 | forward_not_ready_to_payout | Confirm payout in any other status |
| 400 | forward_payout_failed | Payout could not be started (e.g. missing payout bank) |
| 400 | remaining_payin_not_open | Share with phase=remaining before execute |
| 400 / 409 | not_swift_payout / payout_not_submitted / document_required / document_too_large | Compliance document errors (see Spot) |
- Expired and failed orders are final. Create a new order for a new lock.
- If the payout provider rejects a confirm-payout call (502), retry confirm-payout; if it keeps failing, contact Crebit.