v1

latestOpenAPI 3.1.02026-07-2296226496.3 KB
Order

Refresh order quotes

Request fresh price quotes from delivery providers for an existing order. Replaces any existing quotes with updated pricing from available providers.

post/v1/order/refresh_quotes

Request body

orderIdstring nullable

The id of the order to refresh quotes for

externalOrderIdstring nullable

The external id of the order to refresh quotes for

Example request

{
  "orderId": "ord_1234567890",
  "externalOrderId": "ext_1234567890"
}

Response

OK

Example response

{
  "quotes": [
    {
      "costSplitBusinessCents": null,
      "costSplitCustomerCents": null,
      "createdTime": "2024-09-03T20:43:45.899094",
      "currency": "USD",
      "dropoffEta": "2024-09-03T22:20:47.569000",
      "expireTime": "2024-09-03T21:43:45.899102",
      "id": "qot_2oWASjGxMtucwGgu6A7BYC",
      "insuranceFeeCents": 0,
      "nashFeeCents": 300,
      "pickupWindow": null,
      "priceCents": 100,
      "providerId": "dispatch_partner",
      "providerIsInternal": false,
      "providerLogo": "https://nash-provider-logos.s3.amazonaws.com/dispatchit-logo.jpg",
      "providerName": "Dispatch",
      "tags": null,
      "taxAmountCents": null,
      "tollFeeCents": 0,
      "totalPriceBreakdown": {
        "priceCents": 100
      },
      "totalPriceCents": 100,
      "type": "LOCAL"
    }
  ]
}