v1
latestOpenAPI 3.1.02026-07-2689175245.8 KBHappy Returns Shipment
Get Shipments
Get information about all Happy Returns shipments created within a given timeframe. The response is a paginated list of shipments, with up to 200 shipments per page.
If no date range is provided, the response will return data from the last 24 hours.
Required API key scope
- Happy Returns Shipments (Read)
get/happy-returns/shipments
Query parameters
fromstring date-time
Example:2024-01-01T00:00:00.000Z
The start date and time for the shipment list, using the ISO 8601 date format.
tostring date-time
Example:2024-03-31T23:59:59.000Z
The end date and time for the shipment list, using the ISO 8601 date format.
pageinteger
Example:1
The page number of paginated results to return.
Response
Success
Example response
{
"current_page": 1,
"data": [
{
"loop_shipment_id": 12345,
"happy_returns_shipment_id": "123456",
"line_item_count": 2,
"return_count": 1,
"created_at": "2024-03-19T12:34:56+00:00",
"updated_at": "2024-03-20T12:34:56+00:00"
}
],
"first_page_url": "https://api.loopreturns.com/api/v1/happy-returns/shipments/list?from=2022-01-01&to=2023-03-01&page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://api.loopreturns.com/api/v1/happy-returns/shipments/list?from=2022-01-01&to=2023-03-01&page=1",
"path": "https://api.loopreturns.com/api/v1/happy-returns/shipments/list",
"per_page": 200,
"to": 1,
"total": 1
}