Quote Object

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 payout

Only one payout can use a quote, and that payout gets the referenceNo of the quote. A quote does not debit your balance.

Quote fields

Create Quote API and Fetch Quote by ID API return this resource.

FieldTypeDescription
referenceNostringThe quote referenceNo, for example orm_2m9x4h. The payout that uses the quote gets the same referenceNo.
statusenumactive, expired or used. See the status table below.
amountModeenumWith source_amount, you set the source amount. With destination_amount, you set the amount that the beneficiary receives.
payoutRailstringThe payout rail that you sent. Check that it matches the payment account of the beneficiary.
beneficiaryTypeenumindividual or business. The price of the quote comes from the beneficiary type. A quote has no customer type.
sourceobjectThe source amount, {value, currency}. In version 1 of the API (V1), the source currency is always IDR.
destinationCountrystringThe destination country.
destinationobjectThe destination amount, {value, currency}: the amount that the beneficiary receives.
ratestringIDR per one unit of the destination currency. It includes the FX margin. It does not include the fee.
feesarrayOne fixed fee, as {type, amount}. type is fixed_fee.
totalDebitobjectThe source amount plus the fee, {value, currency} in IDR.
settlementTimestringThe expected time of delivery to the beneficiary's account, for example t_plus_1.
createdAttimestampThe time when the quote was created, in ISO 8601 UTC.
expiresAttimestampCreate 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

ModeCalculation
source_amountDestination = source amount ÷ rate, rounded down to two decimals. The fee is added to the source amount.
destination_amountSource = 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 response

Durianpay calculates with the full rate and shows rate rounded up to two decimals. So your own calculation with rate can differ a little from the response. The amounts in the response are the amounts that Durianpay debits and pays.

Quote status

StatusDefinition
activeNo payout has used the quote. You can use it until expiresAt.
expiredexpiresAt passed before a payout used the quote.
usedA 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 referenceNo of the quote. To get the quote of a payout, call the Fetch Quote by ID API with that referenceNo.
  • 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.