Organizations / Fiat / Client Spread
Client Spread on Member Trades
As an organization admin you can add your own markup to a member's fiat Spot or Deliverable Forward trade. Send an optional spread_percent with your admin keys and X-Crebit-Acting-As-Partner-Id. The member gets a slightly worse rate than Crebit's, and the difference is recorded as your organization's revenue when the order settles.
Everything else about the trade (readiness, bank accounts, customer references, limits, pay-in and polling) works as described on the Spot and Deliverable Forward pages. This page only covers what the spread adds. Examples use the production host https://lock-apis.crebitpay.com.
Who Can Set a Spread
- Only an organization admin calling with the acting-as header for an active member of their own organization.
- A member calling with its own keys, or an admin calling for its own partner without the acting-as header, gets
403 client_spread_not_allowedfor any non-zero spread. - The spread is chosen per request. Spot and Deliverable Forward are independent, and there is no saved default per member: if you leave it out, no spread is applied.
- Corridors: Spot
BRL_TO_USD,USD_TO_BRLandUSD_TO_EUR; Deliverable ForwardBRL_TO_USDandUSD_TO_BRL.
The spread_percent Value
| Rule | Detail |
|---|---|
| Unit | Percent: "0.1255" means 0.1255% (not 12.55%) |
| Range | 0 to 5 |
| Precision | Up to 8 decimal places (for example 0.1, 0.125, 0.1255, 0.0001) |
| Type | Decimal string (recommended) or JSON number; booleans are rejected |
| Optional | Omitted, empty string and 0 are the same: no spread, Crebit's rate passes through |
| Accepted on | Spot quote-preview, quotes and orders; Forward quote-preview, quotes and orders |
How the Client Rate Is Calculated
Rates are quoted as foreign currency per 1 USD. The spread always makes the rate worse for the member, whichever way the trade goes. With s = spread_percent / 100:
| Direction | Client rate | Spread revenue (USD) |
|---|---|---|
| BRL_TO_USD (member buys USD) | base_rate × (1 + s) | payin_amount ÷ base_rate − payout_amount |
| USD_TO_BRL, USD_TO_EUR (member sells USD) | base_rate × (1 − s) | payin_amount − payout_amount ÷ base_rate |
Example: base rate 4.9921 BRL per USD with a 0.5% spread. The client rate is 4.9671395, so 1000 USD pays out 4967.1395 BRL instead of 4992.10 BRL, and your organization earns 5 USD.
Spot with a Spread
Quote
Add spread_percent to the normal quote body. The response adds the breakdown fields, and locked_rate is the client rate. market_rate stays the Crebit base rate.
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/spot/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":"USD_TO_BRL","amount":"1000","amount_side":"payin","usd_receive_method":"ach","spread_percent":"0.5"}'{
"spread_percent": "0.5",
"base_rate": "4.9921",
"client_rate": "4.9671395",
"spread_revenue_amount": "5",
"spread_revenue_currency": "USD",
"spread_quote_token": "eyJiciI6IjQuOTkyMSIs…",
"direction": "USD_TO_BRL",
"payin_amount": "1000",
"payin_currency": "USD",
"payout_amount": "4967.1395",
"payout_currency": "BRL",
"locked_rate": "4.9671395",
"market_rate": "4.9921",
"spread_bps": 0,
"quote_expires_at": "2026-10-11T14:36:14Z",
"usd_receive_method": "ach",
"cover_fee_usd": "0.5",
"cover_fee_payin_amount": "0.5",
"cover_fee_payin_currency": "USD",
"total_payin_amount": "1000.5"
}spread_quote_tokenis used by the Crebit partner portal. API callers can ignore it: don't send it on order create (the API order body rejects unknown fields with 422).The rate preview (POST /api/v1/fiat/spot/quote-preview) also accepts spread_percent and returns base_rate and client_rate.
Create the Order
Send the same spread_percent on order create. As with every API Spot order, the server re-prices at the live rate and applies the spread itself, so the frozen values can differ slightly from the quote if the rate moved.
curl -sS -X POST "https://lock-apis.crebitpay.com/api/v1/fiat/spot/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":"USD_TO_BRL","amount":"1000","amount_side":"payin","usd_receive_method":"ach","customer_reference_id":"cust_7781","payout_destination":{"bank_account_id":"ba_7c1e9a3f5b2d"},"spread_percent":"0.5"}'{
"id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"direction": "USD_TO_BRL",
"status": "awaiting_payin",
"spread_percent": "0.5",
"base_rate": "4.9921",
"client_rate": "4.9671395",
"spread_revenue_amount": "5",
"spread_revenue_currency": "USD",
"payin_amount": "1000",
"payin_currency": "USD",
"payout_amount": "4967.1395",
"payout_currency": "BRL",
"locked_rate": "4.9671395",
"customer_reference_id": "cust_7781"
}Deliverable Forward with a Spread
Add spread_percentto the forward preview, quote and order bodies. The spread is applied to the forward's locked rate, so guaranteed_payout_amount is calculated at the client rate. Revenue is based on the full notional.
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.25"}'{
"spread_percent": "0.25",
"base_rate": "5.52",
"client_rate": "5.5338",
"spread_revenue_amount": "45.17691279",
"spread_revenue_currency": "USD",
"direction": "BRL_TO_USD",
"notional_amount": "100000.00",
"notional_currency": "BRL",
"locked_rate": "5.5338",
"market_rate": "5.4700",
"guaranteed_payout_amount": "18070.77",
"execution_window_start": "2026-10-15T00:00:00Z",
"execution_window_end": "2026-10-16T00:00:00Z",
"usd_receive_method": "wire"
}Create the order with the same body plus customer_reference_id and payout_destination on POST /api/v1/fiat/forward/orders. The server re-prices and freezes the spread on the order.
Response Fields
Every Spot and Forward quote, order, list item and order detail now includes these fields.
| Field | Meaning |
|---|---|
| spread_percent | Applied spread as a percent string; "0" when none |
| base_rate | Crebit's rate before your spread |
| client_rate | Rate the member gets; always equal to locked_rate |
| spread_revenue_amount | Your organization's revenue for this trade; "0" when no spread |
| spread_revenue_currency | Always USD |
Orders created before client spreads existed return spread_percent: "0", base_rate equal to locked_rate and zero revenue.
Frozen at Create
The spread, base rate, client rate and revenue are saved on the order when it is created and never change afterwards, through every status up to settled. A different spread on a later order does not affect earlier orders.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/spot/orders/3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f" \
-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"What the Member Sees
Your spread is not shown to the member. When the member calls with its own keys (or uses its own partner portal), the breakdown fields are null and no spread_quote_token is returned. The member still sees its own rate in client_rate and locked_rate.
curl -sS -X GET "https://lock-apis.crebitpay.com/api/v1/fiat/spot/orders/3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f" \
-H "X-Crebit-Key-Id: MEMBER_KEY_ID" \
-H "X-Crebit-Key-Secret: MEMBER_KEY_SECRET" \
-H "X-Crebit-Environment: production"{
"id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"direction": "USD_TO_BRL",
"status": "settled",
"spread_percent": null,
"base_rate": null,
"client_rate": "4.9671395",
"spread_revenue_amount": null,
"spread_revenue_currency": null,
"locked_rate": "4.9671395",
"payout_amount": "4967.1395",
"payout_currency": "BRL"
}market_rate next to its locked_rate. The gap between them already includes the forward premium, so it does not reveal your exact spread.Spread Revenue
- Revenue is calculated in USD when the order is created and shown in
spread_revenue_amount. - When the order reaches
settled, Crebit records that amount once for your organization. Orders that expire or fail, and orders with no spread, record nothing. - Revenue is recorded by Crebit; it is not added to the member's balance or to your organization's funding account automatically. Contact Crebit for revenue statements and payout.
Errors
| Status | code | When |
|---|---|---|
| 400 | invalid_spread_percent | Not a number, negative, above 5, or more than 8 decimal places; details include max_spread_percent and max_decimal_places |
| 422 | validation_error | spread_percent sent as a boolean, or unknown fields (for example spread_quote_token) on API order create |
| 403 | client_spread_not_allowed | Non-zero spread without the acting-as header, or by a caller that is not the member's organization admin |
| 403 | acting_as_not_allowed | The partner is not an active member of your organization |
| 400 | acting_as_self | Acting-as header names your own partner id |
Shared fiat errors are on the fiat overview.