Fetches a list of orders for the team associated with the API key. Orders can be filtered by order number, email, and date range. Results are paginated.
curl --request GET \
--url https://api.oneofnone.io/v1/team/orders \
--header 'x-api-key: <api-key>'{
"data": [
{
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_number": "<string>",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>"
},
"shipping_address": {
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"phone": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"zip": "<string>",
"province": "<string>",
"country": "<string>",
"province_code": "<string>",
"country_code": "<string>"
},
"line_items": [
{
"sku": "<string>",
"name": "<string>",
"quantity": 123,
"price": 123,
"total": 123,
"properties": {}
}
],
"status": "PENDING",
"total_amount": 123,
"subtotal_amount": 123,
"total_shipping": 123,
"total_tax": 123,
"total_discounts": 123,
"customizations": {},
"customer_id": "<string>",
"order_status_url": "<string>",
"source": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"next": "https://api.example.com/users?limit=20&offset=20",
"prev": "https://api.example.com/users?limit=20&offset=0",
"limit": 20,
"offset": 0,
"total_count": 150,
"total_pages": 8,
"current_page": 1
}
}The API key required for accessing protected routes. It should be included in the request headers as x-api-key.
Filter orders by order number.
x >= 1Filter orders by customer email.
Filter orders created after this date.
Filter orders created before this date.
The maximum number of items to return (1-1000).
1 <= x <= 1000The number of items to skip before starting to collect the result set.
x >= 0The sort order of the results.
asc, desc The field by which to order the results.
If true, returns additional pagination metadata including total count and total pages.
Successfully retrieved team orders.
Show child attributes
The unique identifier for the order.
The human-readable order number for customer reference.
The unique identifier of the team that placed the order.
The unique identifier of the user who placed the order.
The email address associated with the order.
Shipping address information for the order.
Show child attributes
First name for shipping.
Last name for shipping.
Full name for shipping.
Phone number for shipping contact.
Company name for shipping.
Primary address line.
Secondary address line (apartment, suite, etc.).
City for shipping.
ZIP or postal code for shipping.
Province or state for shipping.
Country for shipping.
Province or state code for shipping.
Country code for shipping.
Array of items included in the order.
Show child attributes
Stock Keeping Unit identifier for the item.
Display name of the item.
Quantity of this item in the order.
Unit price of the item.
Total price for this line item (quantity × price).
Custom properties or configurations for this item.
Current status of the order.
PENDING, CONFIRMED, PROCESSING, SHIPPED, DELIVERED, CANCELED Total amount for the entire order including all fees and taxes.
Subtotal amount before shipping, taxes, and discounts.
Total shipping costs for the order.
Total tax amount for the order.
Total discount amount applied to the order.
Custom configurations or personalizations applied to the order.
Shopify customer identifier who made the purchase.
Shopify order status URL where the customer can check order updates.
The system or platform where the order originated.
The timestamp when the order was created.
The timestamp when the order was last updated.
Show child attributes
URL for the next page of results, null if this is the last page
"https://api.example.com/users?limit=20&offset=20"
URL for the previous page of results, null if this is the first page
"https://api.example.com/users?limit=20&offset=0"
The maximum number of items returned per page
1 <= x <= 100020
The number of items skipped before the current page
x >= 00
Total number of items available (only included when count is requested)
x >= 0150
Total number of pages available (only included when count is requested)
x >= 08
Current page number (only included when count is requested)
x >= 11
curl --request GET \
--url https://api.oneofnone.io/v1/team/orders \
--header 'x-api-key: <api-key>'{
"data": [
{
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"order_number": "<string>",
"team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"first_name": "<string>",
"last_name": "<string>"
},
"shipping_address": {
"first_name": "<string>",
"last_name": "<string>",
"name": "<string>",
"phone": "<string>",
"company": "<string>",
"address1": "<string>",
"address2": "<string>",
"city": "<string>",
"zip": "<string>",
"province": "<string>",
"country": "<string>",
"province_code": "<string>",
"country_code": "<string>"
},
"line_items": [
{
"sku": "<string>",
"name": "<string>",
"quantity": 123,
"price": 123,
"total": 123,
"properties": {}
}
],
"status": "PENDING",
"total_amount": 123,
"subtotal_amount": 123,
"total_shipping": 123,
"total_tax": 123,
"total_discounts": 123,
"customizations": {},
"customer_id": "<string>",
"order_status_url": "<string>",
"source": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"next": "https://api.example.com/users?limit=20&offset=20",
"prev": "https://api.example.com/users?limit=20&offset=0",
"limit": 20,
"offset": 0,
"total_count": 150,
"total_pages": 8,
"current_page": 1
}
}