Crestivo FreightOpenAPI JSON

Crestivo Freight API

Integrate US domestic LTL freight with your own software. Create quotes, request rates, follow shipment progress, and retrieve invoices. API access and operational capabilities depend on your account. Amounts are integer cents in USD.

Base URL https://app.crestivofreight.com/api/v1

Access and keys

Ask Crestivo Operations about API access for your account. Once access is enabled, a customer administrator can create and revoke keys in Settings → Developer. Keys start with crf_live_. Copy the key when issued and keep it on your server.

curl https://app.crestivofreight.com/api/v1/me \
  -H "Authorization: Bearer $CRESTIVO_API_KEY"

GET /me identifies the organization and member the key acts as. The account’s permissions, booking eligibility, and financial requirements apply to API requests.

Quote to shipment

1. Create a quote

Send POST /quotes with a freight snapshot. Replace the sample date, route, and freight with your shipment details. You can omit commodity descriptions when comparing rates.

Example quote body
{
  "freight": {
    "origin": {
      "postalCode": "60601"
    },
    "destination": {
      "postalCode": "44146"
    },
    "pickupDate": "2030-06-19",
    "declaredValueCents": 0,
    "handlingUnits": [
      {
        "quantity": 1,
        "packaging": "PALLET",
        "weight": 500,
        "weightUnit": "LB",
        "weightBasis": "GROUP_TOTAL",
        "length": 48,
        "width": 40,
        "height": 36,
        "dimensionUnit": "IN",
        "stackable": false,
        "commodities": [
          {
            "description": "Boxed fixtures",
            "pieces": 12,
            "freightClass": "85",
            "hazmat": false
          }
        ]
      }
    ]
  },
  "idempotencyKey": "quote-example-001"
}

2. Request rates

Call POST /quotes/{id}/rates using the returned quote ID. Inspect the quote state and any offers. Read the carrier, sellCents, and expiresAt before asking a user to accept a price.

3. Request booking and follow the result

For an eligible account and shipment, submit POST /shipments with the quote and offer IDs, exact acceptedSellCents, termsAccepted: true, and a fresh idempotency key. If any commodity description is missing, create a completed quote and get current rates first. To complete stops at booking, include bookingDetails.origin, bookingDetails.destination, and the quote revision. Keep the rated ZIP codes, countries, and accessorials. See the booking schema for the fields.

Example booking body with full stops
{
  "quoteId": "00000000-0000-4000-8000-000000000001",
  "offerId": "00000000-0000-4000-8000-000000000002",
  "acceptedSellCents": 54067,
  "termsAccepted": true,
  "idempotencyKey": "booking-example-001",
  "revision": 1,
  "bookingDetails": {
    "origin": {
      "company": "Example Shipper",
      "address1": "10 Example Way",
      "city": "Chicago",
      "state": "IL",
      "postalCode": "60601",
      "contact": "Shipping desk",
      "phone": "3125550100",
      "email": "shipping@example.test",
      "hours": "08:00–16:00",
      "timezone": "America/Chicago",
      "accessorials": []
    },
    "destination": {
      "company": "Example Receiver",
      "address1": "20 Example Way",
      "city": "Bedford",
      "state": "OH",
      "postalCode": "44146",
      "contact": "Receiving desk",
      "phone": "4405550100",
      "email": "receiving@example.test",
      "hours": "08:00–16:00",
      "timezone": "America/New_York",
      "accessorials": []
    }
  }
}

201 records the booking request. Read GET /shipments/{id} to follow carrier confirmation and movement. Reconcile pending or unconfirmed bookings against the original shipment.

Endpoints

MethodPathPurpose
GET/versionAPI version
GET/meThe account this key belongs to and the member it acts as
GET/quotesList quotes, newest first
POST/quotesCreate a quote
Send the freight. Commodity descriptions are optional for rates and required for booking. Pass `idempotencyKey` and a retry after a lost response returns the original quote instead of creating a second.
POST/quotes/{id}/ratesRequest rates for a quote
Returns the quote state and any offers. Check each offer’s expiry before requesting booking.
GET/quotes/{id}Read one quote and its offers
GET/shipmentsList shipments, newest first
POST/shipmentsRequest booking for an offer
Use a quote with a description for each commodity. If any description is missing, create and rate a completed quote before booking. Send the exact current sell price and an idempotency key. When adding full stop details at booking, supply the quote revision and retain the rated ZIP codes, countries and accessorials. Read the returned shipment to follow confirmation.
GET/shipments/{id}Read one shipment
GET/shipments/{id}/documentsList metadata for available customer documents
POST/shipments/{id}/cancelQueue a shipment cancellation request
Allowed only before pickup, on a confirmed booking, with no amendment pending — after pickup, cancelling needs an operations review. `idempotencyKey` is required and a retry with the same key and reason returns the original attempt rather than requesting a second. A new request starts at `cancellationState: REQUESTED`. Read the shipment for subsequent progress and confirmation.
GET/amendmentsList amendments proposed on your shipments
An amendment in `CUSTOMER_APPROVAL_REQUIRED` is waiting for you.
GET/amendments/{id}Read one amendment
POST/amendments/{id}/acceptAccept a proposed amendment
Amendments are proposed by our operations team; your half is consent. `acceptedSellCents` must equal the proposed price exactly — accepting a price you did not read is refused rather than silently applied. Accepting one already submitted returns it unchanged, so a retry is safe.
GET/claimsList your claims
POST/claimsOpen a claim on a confirmed shipment
Records a claim in the portal. **This does not file a claim with a carrier or insurer** — it opens the intake our team works from, and the response says so. `idempotencyKey` is required; a retry returns the original claim. Deciding a claim is an operations action and is not part of this API.
GET/claims/{id}Read one claim and its decisions
GET/invoicesList invoices with balances
GET/invoices/{id}Read one invoice
GET/webhooksList your webhook endpoints and the event types available
POST/webhooksRegister a webhook endpoint
https only, on a publicly reachable host. The signing secret is returned once and never again. Omit `eventTypes` to receive every event, including ones added later.
DELETE/webhooks/{id}Delete a webhook endpoint
GET/webhooks/deliveriesRead webhook delivery outcomes
POST/webhooks/deliveries/{id}/replaySend one delivery again
Re-queues the same delivery, so the event keeps its id and your deduplication still works. Only a delivery that has settled; one still being attempted is refused rather than duplicated.

Pagination

pageSize defaults to 25 and accepts 1–100 on these lists.

Safe retries, money and units

Supply an idempotencyKey for quote creation and keep the key and body together. Booking, cancellation, and claim intake require keys. After a timeout or ambiguous response, reuse the exact body and key for that operation. Check the original record when you have its ID. Use a new key for a new action.

Amounts are integer USD cents. 54067 means US$540.67. Send units on each freight group using weightUnit, weightBasis, and dimensionUnit.

Webhooks

Register an HTTPS endpoint to receive changes on your account. Use its events to trigger a read of the current resource.

POST https://app.crestivofreight.com/api/v1/webhooks
{ "url": "https://your-host.example/crestivo", "eventTypes": [] }

Empty eventTypes means every event, including ones we add later. The signing secret comes back once, on creation, and never again.

An event is thin on purpose: the type, the record it concerns, and when. Read the current state from this API with your own key — a payload carrying the shipment would be stale by the time a retry reached you, and would put freight details in your logs for as long as you keep them.

{ "id": "8f14…", "type": "shipment.status_changed",
  "occurredAt": "2026-09-10T22:14:07.113Z",
  "data": { "resource": "shipment", "id": "3e92…" } }

Verifying a delivery

Every request carries Crestivo-Signature: t=<unix seconds>,v1=<hex>, an HMAC-SHA256 over <t>.<raw body> with your secret. Compare it against the raw body before parsing, in constant time, and reject a timestamp more than five minutes old — that is what stops a captured delivery being replayed at you later.

Also sent: Crestivo-Event-Id and Crestivo-Event-Type. The event id is stable across retries, so store it and ignore one you have already handled.

Retries

A 2xx acknowledges delivery. Failed deliveries can be attempted up to 8 times in total. Deduplicate on the event ID. Crestivo waits 10 seconds for a response and follows no redirects. The endpoint is disabled after 20 consecutive failures. Dispatch pauses during recovery.

GET https://app.crestivofreight.com/api/v1/webhooks/deliveries tells you what we sent, what you answered, and what failed.

Lost one? POST https://app.crestivofreight.com/api/v1/webhooks/deliveries/<id>/replay sends it again. It re-queues the same delivery, so the event keeps its id and your deduplication still works. A delivery that is still being attempted is refused rather than duplicated — wait for it to settle.

Events

TypeSent when
shipment.bookedA booking was confirmed by the carrier.
shipment.booking_failedA booking was refused. The shipment record remains available with the failed booking state.
shipment.booking_unconfirmedWe could not confirm a booking either way. Read the shipment before acting.
shipment.status_changedThe shipment moved: picked up, in transit, out for delivery or delivered.
shipment.cancellation_pendingA cancellation was submitted to the carrier and has not been answered.
shipment.document_availableA document was filed against the shipment, such as a proof of delivery.
shipment.amendment_proposedCrestivo Operations proposed a change to a booked shipment.
shipment.issue_reportedAn issue was opened on the shipment.
quote.manual_offer_readyAn offer prepared by hand is ready on a quote.
invoice.issuedAn invoice was issued to the account.
claim.openedA claim was opened.
claim.updatedA claim changed state.

Errors and limits

For errors from published endpoints, branch on the HTTP status and JSON code. Keep the X-Request-ID when available for support.

StatusCodeMeaning
401AUTH_MISSINGNo bearer key on the request.
401AUTH_INVALIDThe key is not recognised.
401AUTH_REVOKEDThe key was revoked.
403API_NOT_ENABLEDThe account has no API grant.
403MEMBER_REVOKEDThe member the key acts as lost access to the account.
400INVALID_REQUESTThe body or query failed validation; error names the field.
404NOT_FOUNDNo such record in your account. A record belonging to another account reads the same way, by design.
409CONFLICTThe state moved under you: an offer expired, a price changed, or an idempotency key was reused with different content.
429RATE_LIMITEDA request limit was reached. Wait for Retry-After when present before retrying.
500, 503INTERNALAn operation may be unavailable or its outcome may be unknown. Reconcile the original request before creating another.
{ "error": "Price changed. Review and accept the current price.", "code": "CONFLICT" }

The API allows 1,000 requests an hour per key. Requests admitted under the key limit include X-RateLimit-Limit and X-RateLimit-Remaining. Rejected authentication and rate-limited responses may omit those headers.