Trips
List trips
List the organization's trips, filtered by status and pickup date and ordered by pickup date across the whole set before pagination.
Authorization
authorization AuthorizationBearer <token>
In: header
Query Parameters
statuses?array<>
Filter by one or more of the organization's trip statuses (see the trip's status), comma-separated (e.g. statuses=BOOKED,IN_TRANSIT).
pickup_from?string
Inclusive lower bound (YYYY-MM-DD, UTC day) on the pickup window's from-date (the scheduled pickup appointment, not the booking time).
Format
datepickup_to?string
Inclusive upper bound (YYYY-MM-DD, UTC day) on the pickup window's from-date (the scheduled pickup appointment, not the booking time).
Format
dateorder_direction?string
Sort direction by pickup date. Defaults to desc.
Value in
"asc" | "desc"page?integer
Page number
Range
1 <= valuepage_size?integer
Page size
Range
1 <= value <= 100Response Body
application/json
application/json
curl -X GET "https://api.parsel.app/trips?page=1&page_size=10"{
"data": [
{
"cancellable": true,
"created_at": "2019-08-24T14:15:22Z",
"customer_amount_cents": 0,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"legs": [
{
"bol_number": "string",
"bol_url": "string",
"created_at": "2019-08-24T14:15:22Z",
"from_address": {
"city": "Anytown",
"company": "Acme Inc.",
"country": "US",
"email": "john.doe@example.com",
"name": "John Doe",
"phone": "+1234567890",
"state": "CA",
"street1": "123 Main St",
"street2": "Apt 1",
"zip": "12345"
},
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"leg_type": "CUSTOMER_DELIVERY",
"pickup_instructions": "string",
"pickup_window": {
"from": {},
"to": {}
},
"sequence": 0,
"status": "PENDING",
"to_address": {
"city": "Anytown",
"company": "Acme Inc.",
"country": "US",
"email": "john.doe@example.com",
"name": "John Doe",
"phone": "+1234567890",
"state": "CA",
"street1": "123 Main St",
"street2": "Apt 1",
"zip": "12345"
},
"tracking_url": "string"
}
],
"provider": "WARP",
"status": "SCHEDULED"
}
],
"metadata": {
"current_page": 1,
"end_cursor": null,
"has_next_page": true,
"has_previous_page": false,
"page_size": 25,
"start_cursor": null,
"total_count": 87,
"total_pages": 4
}
}{
"errors": {
"message": "This action requires the WRITE_SHIPMENTS scope",
"required_scope": "WRITE_SHIPMENTS",
"status": "Forbidden"
}
}