> For the complete documentation index, see [llms.txt](https://rushbox.gitbook.io/rushbox-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rushbox.gitbook.io/rushbox-docs/rushbox-api/fetch-delivery-estimates.md).

# Fetch delivery estimates

Returns delivery estimates from available couriers for a given pickup/destination pair.

```json
{"openapi":"3.1.0","info":{"title":"RushBox API","version":"1.0.0"},"servers":[{"url":"https://api.rushboxapp.com","description":"Production (update this if your base URL differs)"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Your RushBox merchant API key, obtained from the RushBox dashboard (rushboxapp.com/merchant). Sent as-is in the Authorization header (no \"Bearer\" prefix).\n"}},"parameters":{"ApiVersionHeader":{"name":"x-api-version","in":"header","required":true,"schema":{"type":"string"},"description":"API version to target."}},"schemas":{"FetchEstimatesRequest":{"type":"object","required":["filter","pickup_address","pickup_latitude","pickup_longitude","pickup_state","pickup_city","destination_address","destination_latitude","destination_longitude","destination_state","destination_city","destination_country","local_govt","package_weight","value_of_item"],"properties":{"filter":{"$ref":"#/components/schemas/Filter"},"pickup_address":{"type":"string"},"pickup_latitude":{"type":"string"},"pickup_longitude":{"type":"string"},"pickup_state":{"type":"string"},"pickup_city":{"type":"string"},"destination_address":{"type":"string"},"destination_latitude":{"type":"string"},"destination_longitude":{"type":"string"},"destination_state":{"type":"string"},"destination_city":{"type":"string"},"destination_country":{"type":"string"},"local_govt":{"type":"string"},"package_weight":{"type":"number"},"value_of_item":{"type":"number"}}},"Filter":{"type":"object","properties":{"type":{"type":"string","enum":["highest-rating","quickest","cheapest"],"description":"How to sort/select courier estimates."},"limit":{"type":"integer","description":"Max number of estimates to return."}},"required":["type","limit"]},"FetchEstimatesResponse":{"type":"object","properties":{"ok":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"object","properties":{"estimates":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Estimate"}},"_id":{"type":"string","format":"uuid"},"profile":{"type":"string","format":"uuid"}}}}},"Estimate":{"type":"object","properties":{"courier":{"type":"string"},"duration":{"type":"string"},"total_price":{"type":"number"},"meta":{"type":"object","properties":{"geoid":{"type":"string"}},"description":"Optional courier-specific metadata (e.g. geoid for errandlr)."},"ratings":{"$ref":"#/components/schemas/Ratings"}}},"Ratings":{"type":"object","properties":{"total":{"type":"integer"},"avg":{"type":"number"},"min":{"type":["number","null"]},"max":{"type":["number","null"]},"distribution":{"$ref":"#/components/schemas/RatingDistribution"}}},"RatingDistribution":{"type":"object","additionalProperties":{"type":"integer"}}}},"paths":{"/fetch_estimates":{"post":{"operationId":"fetchEstimates","summary":"Fetch delivery estimates","description":"Returns delivery estimates from available couriers for a given pickup/destination pair.","parameters":[{"$ref":"#/components/parameters/ApiVersionHeader"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchEstimatesRequest"}}}},"responses":{"200":{"description":"Estimates returned successfully.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetchEstimatesResponse"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://rushbox.gitbook.io/rushbox-docs/rushbox-api/fetch-delivery-estimates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
