Actions11
- Address Actions
- Carrier Actions
- Custom Actions
- Shipment Actions
Shipment → Get History
AI-generatedSummary
Retrieves shipment history for a specified month and year from the Envia API.
Inputs
- month (required) — Month number 1-12. Determines which month's history to fetch. Defaults to 1 if not provided.
- year (required) — Four-digit year. Determines which year's history to fetch. Defaults to 2026 if not provided. Minimum acceptable value is 2020.
Output shape
Shipment history data from the Envia API.
The request is a GET to the Envia queries endpoint, with the base URL determined by the environment setting (production: https://api.envia.com; test: https://api-test.envia.com, but queries use queries.envia.com/queries-test.envia.com). Month and year are zero-padded and formatted into the URL path as /guide/MM/YYYY.
Examples
Example 1: Fetch March 2024 history
Set month to 3 and year to 2024. The resulting API call will be GET https://queries.envia.com/guide/03/2024 (or the test URL if environment is set to test).