Report
A Report contains a CSV that is a log of all the objects created within a certain time frame.
Reports can be generated using the Reports endpoint.
You can create and view Reports created between any time frame defined between the start_date and end_date.
The Report API can be categorized into several types.
These types determine which EasyPost Object to produce a Report for, and should be passed as either the type in our client libraries or at the end of the URL.
cash_flowinsurancepayment_logrefundshipmentshipment_invoicetracker
Unique, begins with one of the following prefixes:
- "cfrep_" (Cash Flow Report)
- "insrep_" (Insurance Report)
- "plrep_" (Payment Log Report)
- "refrep_" (Refund Report)
- "shprep_" (Shipment Report)
- "shpinvrep_" (Shipment Invoice Report) "trkrep_" (Tracker Report)
Possible values:
- "CashFlowReport"
- "InsuranceReport"
- "PaymentLogReport"
- "RefundReport"
- "ShipmentReport"
- "ShipmentInvoiceReport"
- "TrackerReport"
Possible values:
- "new"
- "available"
- "failed"
- "empty"
- null
YYYY-MM-DD form, e.g.: "2016-02-02"YYYY-MM-DD form, e.g.: "2016-02-03"true if you would like to include Insurances, Refunds, Shipments, ShipmentInvoices, or Trackers created by child users.Report. Expires 30 seconds after retrieving this object.true if you would like to send an email containing the Report.Report was createdReport was last updated{
"columns": null,
"created_at": "2025-05-09T20:40:02Z",
"end_date": "2022-10-01",
"id": "shprep_846a44b4d34e47afb14a1783d463d02d",
"include_children": null,
"mode": "test",
"object": "ShipmentReport",
"start_date": "2022-10-01",
"status": "new",
"updated_at": null,
"url": null,
"url_expires_at": null,
"utc_offset": null
}To create a Report, provide a start_date and end_date that are less than 31 days apart along with any other optional parameter that you would like to specify.
A detailed list of attributes are provided below.
The expiry on a URL is 1 hour.
The default status on each new Report is "new".
It changes to "available" if the CSV file is created successfully, "failed" when CSV creation is unsuccessful, or "empty" if the report does not include any data for the specified date range.
Additionally, null could also be a status.
When a Report's status changes, an Event will be sent to registered Webhook URLs.
See our Webhooks Guide for help on Event handling.
A Report object is immutable once created. All information must be provided during creation; it cannot be modified later.
Request Parameters
1curl -X POST https://api.easypost.com/v2/reports/payment_log \
2 -u "EASYPOST_API_KEY": \
3 -H 'Content-Type: application/json' \
4 -d '{
5 "start_date": "2022-10-01",
6 "end_date": "2022-10-31"
7 }'1{
2 "columns": null,
3 "created_at": "2025-05-09T20:40:02Z",
4 "end_date": "2022-10-01",
5 "id": "shprep_846a44b4d34e47afb14a1783d463d02d",
6 "include_children": null,
7 "mode": "test",
8 "object": "ShipmentReport",
9 "start_date": "2022-10-01",
10 "status": "new",
11 "updated_at": null,
12 "url": null,
13 "url_expires_at": null,
14 "utc_offset": null
15}A list of all Report objects associated with the given API Key can also be retrieved.
See the Pagination section of our docs for more details on retrieving all records when multiple pages are available.
Request Parameters
after_id.before_id.1curl -X GET "https://api.easypost.com/v2/reports/payment_log?page_size=5" \
2 -u "EASYPOST_API_KEY":1{
2 "reports": [
3 {
4 "id": "shprep_82ee56b0b96247528187f3f9b4fa1360",
5 "object": "ShipmentReport",
6 "created_at": "2024-01-24T00:07:24Z",
7 "updated_at": "2024-01-24T00:07:24Z",
8 "start_date": "2022-10-01",
9 "end_date": "2022-10-01",
10 "mode": "test",
11 "status": "empty",
12 "url": null,
13 "url_expires_at": null,
14 "include_children": false
15 }
16 ],
17 "has_more": true
18}Retrieve a Report by its id. See object definition for possible id prefixes.
1curl -X GET https://api.easypost.com/v2/reports/plrep_... \
2 -u "EASYPOST_API_KEY":1{
2 "columns": null,
3 "created_at": "2025-05-09T20:40:02Z",
4 "end_date": "2022-10-01",
5 "id": "shprep_ac80539c81ea4940a73b58a6590431e7",
6 "include_children": null,
7 "mode": "test",
8 "object": "ShipmentReport",
9 "start_date": "2022-10-01",
10 "status": "new",
11 "updated_at": null,
12 "url": null,
13 "url_expires_at": null,
14 "utc_offset": null
15}