FleetbaseFleetbase

Purchase Rates

Purchase rates record the cost paid to acquire capacity or services from carriers, vendors, and integrated providers. Use them to compare buy-side costs against customer-facing service rates.

The Purchase Rate object

A purchase rate records a purchased service quote and links it to an order, customer, transaction, amount, currency, and status.
Attributes
idstringoptional

Public purchase rate identifier.

service_quotestringoptional

Service quote associated with the purchase.

orderstringoptional

Order associated with the purchase.

customerstringoptional

Customer associated with the purchase.

transactionstringoptional

Transaction associated with the purchase.

amountcurrencyoptional

Purchased amount.

currencycurrencyoptional

Three-letter currency code.

statusstringoptional

Purchase rate status.

updated_attimestampoptional

Timestamp when the purchase rate was last updated.

created_attimestampoptional

Timestamp when the purchase rate was created.

The Purchase Rate object
{
  "id": "purchase_rate_7YqM3KpL2n",
  "service_quote": "service_quote_6zV1KqN9pR",
  "order": "order_7YqM3KpL2n",
  "customer": "contact_6zV1KqN9pR",
  "transaction": null,
  "amount": 2500,
  "currency": "USD",
  "status": "created",
  "updated_at": "2026-05-07T08:30:00.000000Z",
  "created_at": "2026-05-07T08:30:00.000000Z"
}
POST/v1/purchase-rates

Create a Purchase Rate

Only ServiceQuote objects generated using a Payload object may be used to create PurchaseRate objects.

Body parameters
service_quotestringrequired

Service quote ID to purchase.

orderstringoptional

Existing order ID to attach the purchase rate to. When omitted, Fleetbase may create an order from the service quote.

customerstringoptional

Contact or vendor ID to assign as the purchase customer.

metaobjectoptional

Additional purchase rate metadata.

POST/v1/purchase-rates
curl -X POST https://api.fleetbase.io/v1/purchase-rates \
  -H "Authorization: Bearer flb_live_…" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "service_quote": "{{service_quote_id}}"
}'
200 OK
{
  "id": "<string>",
  "customer": "<string>",
  "order": "<string>",
  "service_quote": "<string>",
  "status": "<string>",
  "updated_at": "<string>",
  "created_at": "<string>"
}
GET/v1/purchase-rates/:id

Retrieve a Purchase Rate

This endpoint allows you to retrieve a purchase-rate object to view it's details.

GET/v1/purchase-rates/:id
curl https://api.fleetbase.io/v1/purchase-rates/:id \
  -H "Authorization: Bearer flb_live_…" \
  -H "Accept: application/json"
200 OK
{
  "id": "<string>",
  "customer": "<string>",
  "order": "<string>",
  "service_quote": "<string>",
  "status": "<string>",
  "updated_at": "<string>",
  "created_at": "<string>"
}
GET/v1/purchase-rates

Query Purchase Rates

This endpoint allows you to query purchase-rates you have created, it also provides paginated results on all the purchase-rates in your Fleetbase.

Query parameters
limitintegeroptional

Maximum number of purchase rates to return.

offsetintegeroptional

Number of purchase rates to skip before returning results.

sortstringoptional

Sort expression for the purchase rate query.

service_quotestringoptional

Filters purchase rates by service quote ID.

orderstringoptional

Filters purchase rates by order ID.

customerstringoptional

Filters purchase rates by customer ID.

GET/v1/purchase-rates
curl https://api.fleetbase.io/v1/purchase-rates?limit=25&offset=0&sort=created_at \
  -H "Authorization: Bearer flb_live_…"
Purchase Rates | Fleetbase