The locked price of one payout. It is valid until its expiresAt.
The Quote locks the price of one payout. When you create the quote, you choose the corridor, the payout rail, the beneficiary type and the amount. See Key terms. The payment account of the payout, and its beneficiary, must match them. A quote is valid until expiresAt.
One quote, one payoutOnly one payout can use a quote, and that payout gets the
referenceNoof the quote. A quote does not debit your balance.
Quote fields
Create Quote API and Fetch Quote by ID API return this resource.
| Field | Type | Description |
|---|---|---|
referenceNo | string | The quote referenceNo, for example orm_2m9x4h. The payout that uses the quote gets the same referenceNo. |
status | enum | active, expired or used. See the status table below. |
amountMode | enum | With source_amount, you set the source amount. With destination_amount, you set the amount that the beneficiary receives. |
payoutRail | string | The payout rail that you sent. Check that it matches the payment account of the beneficiary. |
beneficiaryType | enum | individual or business. The price of the quote comes from the beneficiary type. A quote has no customer type. |
source | object | The source amount, {value, currency}. In version 1 of the API (V1), the source currency is always IDR. |
destinationCountry | string | The destination country. |
destination | object | The destination amount, {value, currency}: the amount that the beneficiary receives. |
rate | string | IDR per one unit of the destination currency. It includes the FX margin. It does not include the fee. |
fees | array | One fixed fee, as {type, amount}. type is fixed_fee. |
totalDebit | object | The source amount plus the fee, {value, currency} in IDR. |
settlementTime | string | The expected time of delivery to the beneficiary's account, for example t_plus_1. |
createdAt | timestamp | The time when the quote was created, in ISO 8601 UTC. |
expiresAt | timestamp | Create the payout before this time. It is also the end of the payout's FX window. The FX window is the time from the creation of the quote until its expiresAt. During this time, the payout uses the rate of the quote. The lifetime of a quote varies. |
{
"responseCode": "2000000",
"responseMessage": "Successful",
"referenceNo": "orm_2m9x4h",
"status": "active",
"amountMode": "source_amount",
"payoutRail": "ACH",
"beneficiaryType": "business",
"source": {
"value": "160000000.00",
"currency": "IDR"
},
"destinationCountry": "US",
"destination": {
"value": "9876.54",
"currency": "USD"
},
"rate": "16200.00",
"fees": [
{
"type": "fixed_fee",
"amount": {
"value": "15000.00",
"currency": "IDR"
}
}
],
"totalDebit": {
"value": "160015000.00",
"currency": "IDR"
},
"settlementTime": "t_plus_1",
"createdAt": "2026-06-10T03:21:00Z",
"expiresAt": "2026-06-10T03:26:00Z"
}In this example, the quote is valid for five minutes. This is only a sample: the lifetime varies.
How the amounts are calculated
| Mode | Calculation |
|---|---|
source_amount | Destination = source amount ÷ rate, rounded down to two decimals. The fee is added to the source amount. |
destination_amount | Source = destination amount × rate, rounded up to the whole rupiah. The fee is added to that source amount. |
For example, IDR 160,000,000 ÷ 16,200 = USD 9,876.5432…, which rounds down to USD 9,876.54. The total debit is IDR 160,015,000. With a destination amount of USD 10,000.00 at the same rate, the source is IDR 162,000,000 and the total debit is IDR 162,015,000.
Use the amounts in the responseDurianpay calculates with the full rate and shows
raterounded up to two decimals. So your own calculation withratecan differ a little from the response. The amounts in the response are the amounts that Durianpay debits and pays.
Quote status
| Status | Definition |
|---|---|
| active | No payout has used the quote. You can use it until expiresAt. |
| expired | expiresAt passed before a payout used the quote. |
| used | A payout used the quote. To get the payout, call the Fetch Payout by ID API with the same referenceNo. |
Status Definition gives your next step for each status.
Quote rules
- On a payment page in your app, count down to
expiresAt. If the quote expires before you create the payout, create a new quote and show its price. - If you create a payout with an expired quote, the API returns
QUOTE_EXPIRED(4030000). - If you create a payout with a quote that another payout used, the API returns
QUOTE_ALREADY_USED(4090003). - Only one payout can use a quote, and that payout gets the
referenceNoof the quote. To get the quote of a payout, call the Fetch Quote by ID API with thatreferenceNo. - When the FX window of a payout ends before its debit, the payout can become
failed. See the deadlines on Payout Object. - Each call to Create Quote API creates a new quote. An unused quote expires.
