get https://queries.test.envia.com/v4/orders
Retrieve paginated ecommerce orders with nested destination address, origin locations, packages, products, shipments, filters, status catalogs, and error responses.
Time Status User Agent Retrieving recent requests…
Retrieve a paginated list of orders with nested destination address, origin locations, packages, products, and shipments.
Parameter Type Default Description limitnumber 20Number of orders per page. pagenumber 1Page number to retrieve.
The totals field in the response indicates the total number of results that match the filter.
Parameter Type Description order_idsarray Up to 300 order IDs. order_identifiersarray Up to 300 store order identifiers. order_namestring Order name, for example "#1290", "290".
Use filter to segment orders by their general lifecycle status. filter and analytics are mutually exclusive; use only one at a time.
Value Description payment-pendingWaiting for payment confirmation. label-pendingPaid and ready to generate a label. pickup-pendingShipment created and waiting for pickup. shippedIn transit after carrier pickup. canceledOrder or shipment canceled. otherMiscellaneous status. completedAll packages fulfilled.
Use analytics to segment orders by the status of their active shipments. analytics and filter are mutually exclusive; use only one at a time.
Value Applies when... unfulfillmentThe order is payment-pending and has unfulfilled packages. fulfillmentThe order is paid and no shipment has been created yet. ready-to-shipA shipment has been created with status Created. out-for-deliveryThe carrier is out for delivery. in-transitThe shipment has been picked up or is in transit. deliveredThe shipment has been delivered. with-incidentsThe shipment has an incident, such as damage or loss. returnedThe shipment was returned to sender.
Parameter Type Description status_idnumber General status ID. See Status catalogs . status_paymentarray Payment status: pending, paid, or cod. fulfillment_status_idarray Fulfillment status IDs. See Status catalogs . origin_address_idarray Origin location IDs. shop_idarray Shop IDs. destination_country_codearray Destination country ISO codes. weightarray Weight ranges as strings, for example "1-5" for 1–5 kg or "5-" for more than 5 kg. weight_unitstring Unit for weight: KG or LB. carrierstring Carrier name, for example "fedex" or "estafeta". shipping_methodarray Shipping service names. tracking_numberstring Exact tracking number. product_namestring Product name. skustring Product SKU. product_idarray Product IDs. quotestring Quoted carrier or service name. Minimum length: 3 characters. quote_servicearray Quoted service names. tagsarray Orders that include all specified tags. Maximum: 50 tags. logistic_modestring Logistic mode: me1, me2, custom, or FULFILLMENT_BY_SELLE. datestring Creation month and year in YYYY-MM format. date_fromstring Start date in ISO 8601 format. date_tostring End date in ISO 8601 format.
Parameter Values Description sort_byField name Field used to sort results. Without this parameter, results are limited to the last 6 months. sort_directionasc, descSort direction.
ID Name 1Payment Pending 2Label Pending 3Pickup Pending 4Shipped 5Canceled 6Other 7Completed
ID Name 1Fulfill 2Partial Fulfill 3Unfulfill 4Other 5On Hold
ID Name 1Paid 2Pending 3Refunded 4Cancel 5Other 7authorized 8partially_paid 9partially_refunded 10shipped 11on_hold 12completed
ID Name ID Name 1Created 17–19Delivery attempts 2Shipped 20Return problem 3Delivered 21Address error 4Canceled 22Undeliverable 5Information 23Delayed 7Pending 24Rejected 8Picked Up 251 pickup attempt 9Out for Delivery 26Partially Shipped 10Lost 27Partially Delivered 11Returned 28Delivery attempt 12Pickup at Office 29Customs Delay 13Delivered at Origin 30Non-serviceable origin 14Damaged 31Assigned 15Redirected 32Dead freight 16Out for Pickup 38Misrouted
JSON
{
"orders_info": [],
"countries": [],
"totals": 0
}
Field Type Description orders_infoOrder[]Orders that match the query parameters. countriesstring[]Destination country ISO codes available in your account. totalsnumber Total number of matching results for pagination.
Field Type Description idnumber Internal Envia order ID. status_id / status_namenumber / string General workflow status. ecart_status_id / ecart_status_name / ecart_status_classnumber / string / string Payment status. fulfillment_status_idnumber Fulfillment status. created_at_ecommercedatetime Creation date in the ecommerce platform. estimated_delivery_indatetime | null Estimated delivery date. logistic.modestring | null Logistic mode. orderobject Order data, including prices, identifiers, and COD. order_commentobject Internal comment. customerobject Customer name, email, and phone. shopobject Shop id and name. ecommerceobject Ecommerce platform id and name. shipment_dataobject Destination address and origin locations with packages. tagsarray Order tags. is_favoriteboolean Whether the order is marked as favorite.
Packages are returned inside shipment_data.locations[].packages.
Field Type Description idnumber Package ID. fulfillment.statusnumber Package-level fulfillment status. weight / weight_unitnumber / string Package weight and unit. dimensionsobject Package height, length, and width. length_unitstring Length unit: CM or IN. package_type_idnumber Package type: 1 box, 2 pallet, or 3 envelope. insurance / declared_valuenumber / number Insured value and declared value. additional_servicesarray Additional services. is_returnboolean Whether this is a return package. quoteobject Selected quote, including price, carrier_name, service_name, and related fields. shipmentobject Active shipment. See Shipment object . productsarray Products in the package.
Shipments are returned inside each package.
Field Type Description tracking_numberstring | null Tracking number. bolstring | null Bill of lading. filestring | null Label URL. track_urlstring | null Public tracking URL. created_atdatetime | null Shipment creation date. service_namestring | null Shipping service used. total_cost / currencynumber / string Shipment cost and currency. shipment_idnumber | null Envia shipment ID. info_statusobject Shipment status fields: id, name, class_name, dashboard_color, and is_cancellable.
Status Cause 400Invalid parameter, such as an incorrect weight format or more than 50 tags. 401Missing or invalid token. 403The token does not have permission to access orders for this account. 422Query parameter validation error. 500Internal server error.
Without sort_by, the API automatically limits results to the last 6 months relative to the account's most recent order.
filter and analytics are mutually exclusive. Use only one at a time.