Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rates

The Rates API allows you to retrieve shipping rates from available carriers.

The Rate Object

This section describes the different attributes available for a rate.

Attribute
Type
Description

amount

number

Shipping rate amount. Includes any remote delivery fee marked metadata.remote_area.collection_required: true. The Priority Pickup fare is additional.

carrier_logo

string

Image URL for carrier logo.

carrier_name

string

Name of carrier executing shipment.

carrier_rate_description

string

Carrier description of rate e.g. UPS First Class.

carrier_reference

string

Unique identifier for carrier.

carrier_slug

string

Unique slug for carrier.

currency

string

Currency of rate amount.

delivery_date

date

Estimated delivery date for shipment.

delivery_eta

number

Estimated delivery time in minutes.

delivery_time

string

Human readable description of estimated time to deliver parcel.

id

string

Unique identifier for rate.

metadata

object

Provides additional information for a rate.

metadata.remote_area

object

Optional remote delivery assessment and included-fee disclosure. See Remote area delivery fees below.

pickup_options

array

Available option objects: pickup, priority_pickup, scheduled_pickup or dropoff. Priority Pickup includes its additional amount and currency.

priority_pickup_available

boolean

Whether a valid Priority Pickup quote is available for this rate.

priority_pickup_fee

number

Additional quoted Priority Pickup fare in the rate currency. Omitted when unavailable.

pickup_eta

number

Estimated pickup time in minutes.

pickup_time

string

Human readable description of estimated time to pickup parcel.

rate_id

string

Unique reference for rate.

used

boolean

Indicates if a rate has been used in a shipment request.

created_at

datetime

Time rate created.

updated_at

datetime

Time rate last updated.

Remote area delivery fees

Eligible DHL (dhl-ng) and FedEx (fedex) rates billed through Terminal can include an upfront remote area delivery charge when this feature is enabled for your account. FedEx support covers Terminal's Nigeria import/export rate-card services. The optional metadata.remote_area object explains that charge. Integrations must continue to handle rates without this object.

When metadata.remote_area.collection_required is true, the remote area amount is already included in rate.amount. Use it to explain the shipping price to your customer. Do not add it to rate.amount again.

Remote area fields

The fields below belong to rate.metadata.remote_area. Amounts are expressed in currency units, not cents or kobo.

Field
Type
Description

status

string

remote, not_remote, or unknown. A missing object or unknown status does not confirm that the destination is non-remote.

collection_required

boolean

When true, the quoted remote delivery amount is included in the shipping price and is to be collected at booking. This is not proof that payment has completed.

amount

number

Remote delivery fee, incremental fuel, and tax combined, converted into currency. Use this value for the customer disclosure.

currency

string

Currency of amount, matching the requested rate currency.

fee

number

Remote delivery fee before its fuel and tax, in NGN.

fuel

number

Incremental fuel attributable to remote delivery, in NGN. This is not the fuel charge for the entire shipment.

tax

number

Tax attributable to the remote delivery fee and its fuel, in NGN.

total_ngn

number

Total remote delivery amount in NGN: fee + fuel + tax.

service_code

string

Carrier surcharge code: DHL uses OO; FedEx uses OUT_OF_DELIVERY_AREA. Remote pickup is a separate service.

source

string

dhl_api or fedex_api for a successful assessment from the respective carrier.

mode

string

collect or shadow. Shadow observations do not increase the quoted shipping price.

checked_at

datetime

ISO timestamp when the assessment was made.

expires_at

datetime

ISO timestamp after which the quote must be refreshed before booking.

Successful assessments include the monetary fields. An unknown assessment can omit them. Additional diagnostic metadata may also be present; integrations should tolerate additional fields.

The public rate response omits the internal breakdown object and shipment cost. Read metadata.remote_area.amount and metadata.remote_area.currency for customer display. Do not interpret fee, fuel, or tax as the requested currency: those components remain in NGN even for a USD quote.

Sample DHL rate response

This is an abbreviated example from the shipment rates response. The identifiers and timestamps illustrate the response shape; obtain a fresh rate before booking. The amounts are examples, not fixed tariffs.

In this example, the shipping price before remote delivery is NGN 85,445.37. Adding NGN 32,250.00 produces the returned rate.amount of NGN 117,695.37. Other selected services, such as insurance or Priority Pickup, follow their own pricing rules.

Sample FedEx rate

FedEx uses the same fields and display logic. This abbreviated rate illustrates a base shipping price of NGN 100,000 plus a remote delivery increment of NGN 7,155.22. The increment includes fee, fuel and tax; amount already includes it. Prices and service tiers vary by shipment and account.

Use the assessment on the selected carrier's rate. A destination can attract a delivery-area fee from FedEx even when DHL does not charge one. FedEx OUT_OF_PICKUP_AREA is a different service and is not included in this remote delivery field. Connected customer-account quotes and fedex-us rates retain their existing pricing path.

Display the fee without charging it twice

The following example uses the selected rate from response.data. It displays the returned shipping amount and adds an informational message about the portion attributable to remote delivery.

The customer sees:

Shipping: ₦117,695.37

Includes remote area delivery: ₦32,250.00 (fee, fuel and tax)

If your UI uses a price breakdown, label the remote amount as included. Only split the shipping price into base shipping and remote delivery if you subtract the included remote amount from the base; the sum must still equal rate.amount.

Quote validity and payment

  • Check expires_at before enabling booking. Obtain a fresh quote if it has expired, or if the address, package details, or selected service changes. Quotes normally last 15 minutes; always use the returned timestamp rather than a fixed client timer.

  • Book using the selected persisted rate_id through the normal shipment flow. A non-persisted quote may omit rate_id; obtain a persisted rate before booking.

  • In shadow mode, collection_required is false: the assessment is informational and its amount has not been added to the shipping price. Do not display it as an included charge or collect it separately.

  • not_remote means no remote delivery charge was returned for that assessment. A missing object or unknown status must not be presented as confirmation that the destination is non-remote.

  • collection_required: true describes the quote. Once the booking payment succeeds, Terminal records the paid allocation and skips a later duplicate remote delivery charge. Interrupted payments and reversed allocations require review; the rate object alone is not a payment receipt.

Last updated

Was this helpful?