success boolean that tells you whether the request succeeded, plus either a data object (on success) or an error object (on failure). Checking success first is the recommended pattern for all response handling in your integration.
Success response
A successful request returns HTTP2xx and a body shaped like this:
data vary by endpoint. For resource-creation endpoints (e.g. POST /orders), data contains the created object. For retrieval endpoints (e.g. GET /orders/{orderNumber}), it contains the full resource.
success is always a boolean. Check success === true before reading data — do not rely on the HTTP status code alone.Paginated list responses
List endpoints (e.g.GET /orders, GET /pickups, GET /merchants) include a pagination object nested inside data:
Pagination fields
Use the
page and limit query parameters to navigate pages. The default page size varies by endpoint; check the individual endpoint reference for defaults and maximums.
Error response
When a request fails, the API returns an appropriate4xx or 5xx HTTP status and a body shaped like this:
Error fields
Example: cancel conflict error
Some errors includedetails to give you extra context for recovery:
