Docs
llms.txt for AI agents Download OpenAPI spec

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

AmountMeaning
notional_amountFull amount in the pay-in currency (BRL for BRL_TO_USD, USD for USD_TO_BRL)
premium_amountPrice of the rate lock
deposit_amountPart of the notional paid now
upfront_amountpremium_amount + deposit_amount, paid after order create (total_upfront_amount adds the rail cover fee)
remaining_notionalnotional_amount - deposit_amount, paid after execute
guaranteed_payout_amountWhat the member's bank receives at locked_rate
  • Directions: BRL_TO_USD (PIX pay-ins, payout to an ach, wire or swift bank matching usd_receive_method) and USD_TO_BRL (USD deposit account pay-ins on the usd_receive_method rail, 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_start as UTC midnight of the execute day; the server sets execution_window_end to 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.

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

HTTP code sample
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"}'
json, response code sample
json, response
{
  "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"
}
Order create re-prices on the server with the same inputs; it does not take rates or amounts from the quote. Create the order promptly so the economics match what you showed.

3. Create the Order

FieldRequiredNotes
directionyesBRL_TO_USD or USD_TO_BRL
amount / amount_sideyes / noFixed amount; amount_side payin (default) or payout
execution_window_start / execution_window_endyesSee Execution window
usd_receive_methodyesach, wire or swift
customer_reference_idyesRegistered customer reference
payout_destination.bank_account_idyesMember's bank on the matching rail
payer_rolenoself (default) or third_party
spread_percentnoYour markup as a percent (0.25 = 0.25%); see Client spread
To add your own markup to the member's locked rate, send spread_percent on the preview, quote and order. See Client spread.
HTTP code sample
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"}}'
json, response (201) code sample
json, response (201)
{
  "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.

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

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

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

HTTP code sample
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)"
json, response code sample
json, response
{
  "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 (or converting after the remaining pay-in): 409 forward_not_ready_to_payout with details.status. This includes a second call after the payout was submitted; to retry safely, reuse the same Idempotency-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.

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

statusMeaningNext
quotedOrder row created; upfront instructions being issued (not normally visible)awaiting_upfront, expired, failed
awaiting_upfrontWaiting for the upfront pay-in (upfront_payin_expires_at)upfront_detected, expired, failed
upfront_detectedUpfront receivedhedging or active, failed
hedgingCrebit is hedging the locked rateactive, failed
activeRate locked; waiting for you to execute inside the windowawaiting_remaining (execute), expired (window ended), failed
awaiting_remainingWaiting for the remaining pay-inremaining_detected, expired, failed
remaining_detectedRemaining notional receivedconverting, failed
convertingRate top-up in progress (top_up_pending)ready_to_payout, failed
ready_to_payoutWaiting for POST …/confirm-payoutpayout_submitted, failed
payout_submittedPayout sent; a failed payout is retried automatically (back to converting)settled, converting, failed
settledPayout completed (terminal)
expiredA pay-in window or the execution window ran out (terminal)
failedPay-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.

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

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

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

HTTP code sample
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.

StatuscodeWhen
400invalid_execution_windowexecution_window_end is not after execution_window_start
400execution_window_starts_too_soon / execution_window_in_past / execution_window_too_shortWindow in the past or shorter than 24 hours
400deposit_exceeds_notionalAmount 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
400fiat_daily_limit_exceeded / fiat_monthly_limit_exceededMember's volume cap reached
502pricing_unavailable / crebit_pricer_errorForward pricing temporarily unavailable; retry
404fiat_forward_order_not_foundUnknown order id, or an order of another partner
409forward_not_executableExecute called when the order is not active
409execution_window_not_started / execution_window_endedExecute called outside the window
400forward_execute_failedRemaining pay-in could not be opened (e.g. BRL remaining below 5.00)
409forward_top_up_pendingConfirm payout while the rate top-up is still running
409forward_not_ready_to_payoutConfirm payout in any other status
400forward_payout_failedPayout could not be started (e.g. missing payout bank)
400remaining_payin_not_openShare with phase=remaining before execute
400 / 409not_swift_payout / payout_not_submitted / document_required / document_too_largeCompliance document errors (see Spot)
  1. Expired and failed orders are final. Create a new order for a new lock.
  2. If the payout provider rejects a confirm-payout call (502), retry confirm-payout; if it keeps failing, contact Crebit.