For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get Multiple Orders

Returns orders matching the supplied filters, sorted by date added in descending order by default. With no filters, the 50 most recent orders are returned.

To search for a specific order, filter your request with the query string fields below. Filters are combined with AND, so passing both source_name and folder_id returns only the orders matching both.

The limit parameter defaults to 50 and has a maximum of 500. Values above 500 are reduced to 500 rather than rejected, so compare records_returned with the value you requested. Use offset to retrieve further pages, and total_records to determine how many records remain.

get
Authorizations
ORDERDESK-API-KEYstringRequired

Your API key, found under Store Settings on the API tab. This should be kept server-side.

ORDERDESK-STORE-IDstringRequired

Your store ID, found under Store Settings on the API tab.

Query parameters
folder_idstringOptional

Search for orders from a particular folder. For multiple folders, enter multiple IDs separated by a comma, such as 1004,1009,1010. See the Folders guide.

Example: 21654
folder_namestringOptional

Search for orders from a particular folder. Enter the folder's exact name instead of its ID.

Example: Prepared
source_idstringOptional

Your original order ID from the originating cart or marketplace.

source_namestringOptional

The name of the order source.

Example: FoxyCart
search_start_datestringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
search_end_datestringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
search_start_date_localstringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
search_end_date_localstringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
modified_start_datestringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
modified_end_datestringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
emailstring · emailOptional

Search for orders with a particular email address.

customer_idstringOptional

Search for orders with a particular customer ID.

customer_first_namestringOptional

Search the customer first name field.

customer_last_namestringOptional

Search the customer last name field.

customer_companystringOptional

Search the customer company field.

customer_address1stringOptional

Search the customer address1 field.

customer_phonestringOptional

Search the customer phone field.

shipping_first_namestringOptional

Search the shipping first name field.

shipping_last_namestringOptional

Search the shipping last name field.

shipping_companystringOptional

Search the shipping company field.

shipping_address1stringOptional

Search the shipping address1 field.

shipping_phonestringOptional

Search the shipping phone field.

get_order_historyinteger · enumOptional

Set this to 1 to include order history. This slows down the results considerably, so use it carefully.

Default: 0Possible values:
order_bystringOptional

Order the query by an order field. Defaults to date_added. An invalid value returns a 400 response.

Default: date_addedExample: date_added
orderstring · enumOptional

Sort direction. Defaults to DESC.

Default: DESCPossible values:
limitinteger · min: 1 · max: 500Optional

How many records to return. Defaults to 50, with a maximum of 500. Values above 500 are reduced to 500 rather than rejected.

Default: 50
offsetintegerOptional

The number of records to offset.

Default: 0
Responses
200

Matching orders, or an empty orders array if nothing matched.

application/json
statusstring · enumRequired

Either success or error.

Possible values:
messagestringOptional

Describes the result. Always present when an error occurs.

execution_timestringOptional

Time taken to process the request.

Example: 0.1524 seconds
total_recordsintegerOptional

Total number of records matching the filters, regardless of paging.

Example: 128
records_returnedintegerOptional

Number of records returned in this response.

Example: 50
offsetintegerOptional

The offset applied to this request.

Example: 0
limitintegerOptional

The limit applied to this request, after any reduction to the maximum.

Example: 50
idstringRead-onlyOptional

Order Desk's internal ID number. Returned as a string, even though it is always numeric. Read-only.

Example: 925086
source_idstringOptional

Your original order ID. If blank, Order Desk's internal ID will be used.

Example: 6487172454
source_namestringOptional

Name of the order source, cart, or marketplace. If the source is not recognized or is not entered, this defaults to Order Desk.

Default: Order DeskExample: FoxyCart
emailstring · emailOptionalExample: avery.chen@example.com
shipping_methodstringOptional

Name of the selected shipping method.

Example: UPS Ground
shipping_totalnumber · doubleOptionalExample: 9.5
handling_totalnumber · doubleOptionalExample: 0.5
tax_totalnumber · doubleOptionalExample: 2.15
cc_expstringOptional

Credit card expiration in MM/YYYY format.

Example: 02/2026Pattern: ^\d{2}/\d{4}$
processor_responsestringOptional

Gateway transaction ID in <gateway_name>: <transaction_id> format.

Example: Authorize.net Transaction ID: 2221864944
payment_typestringOptional

Visa, MasterCard, PayPal, etc.

Example: Visa
payment_statusstring · enumOptional

Current payment status for the order. Defaults to Captured.

Default: CapturedPossible values:
processor_balancenumber · doubleOptional

Amount charged at the processor. This is decremented when refunds are made, and defaults to order_total.

Example: 21.17
refund_totalnumber · doubleOptional

Amount refunded on the order from within Order Desk.

Example: 0
customer_idstringOptional

Customer ID from the originating system.

Example: 5487542
ip_addressstringOptional

Customer's IP address.

fulfillment_namestringOptional

Once the order has been sent for fulfillment, the fulfillment method name is entered here.

fulfillment_idstringOptional

Internal ID of the fulfillment service, when available.

folder_idintegerOptional

ID of the folder containing the order. New orders default to the first folder when this is omitted. Omitting it on an update leaves the order in its current folder. See the Folders guide.

Example: 21654
date_addedstringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
date_updatedstringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
Other propertiesanyOptional
Other propertiesanyOptional
first_namestringOptionalExample: Avery
last_namestringOptionalExample: Chen
companystringOptional
address1stringOptionalExample: 1200 Campus Drive
address2stringOptional
address3stringOptional

Street address 3. Not available for customer addresses.

address4stringOptional

Street address 3. Not available for customer addresses.

citystringOptionalExample: Springfield
statestringOptional

State or region.

Example: IL
postal_codestringOptional

ZIP or postal code.

Example: 62704
countrystringOptional

Country code or full country name.

Example: US
phonestringOptionalExample: 555-555-5555
first_namestringOptionalExample: Avery
last_namestringOptionalExample: Chen
companystringOptional
address1stringOptionalExample: 1200 Campus Drive
address2stringOptional
address3stringOptional

Street address 3. Not available for customer addresses.

address4stringOptional

Street address 3. Not available for customer addresses.

citystringOptionalExample: Springfield
statestringOptional

State or region.

Example: IL
postal_codestringOptional

ZIP or postal code.

Example: 62704
countrystringOptional

Country code or full country name.

Example: US
phonestringOptionalExample: 555-555-5555
titlestringOptional

Return address title.

Example: Acme
namestringOptional

Shipping name.

Example: Doug Jones
companystringOptionalExample: Acme Manufacturing
address1stringOptionalExample: 817 E Maple Ln
address2stringOptional
citystringOptionalExample: Knoxville
statestringOptional

State or region.

Example: IL
postal_codestringOptionalExample: 62704
countrystringOptional

Country code or full country name.

Example: US
phonestringOptional
namestringOptionalExample: Spring Sale
codestringOptional

Code used for the discount. Optional.

Example: SPRING10
amountnumber · doubleOptional

The discount amount. Discounts should be stored as positive numbers.

Example: 5
date_addedstringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
usernamestringOptional

Name of the person who wrote the note.

Example: Doug Jones
contentstring · max: 1800OptionalExample: Customer asked us to leave this by the back door.
cc_number_maskedstringRead-onlyOptional

Obfuscated credit card number. This is the field returned in responses. Use cc_number when writing.

Example: xxxxxxxxxxxx4242
quantity_totalintegerRead-onlyOptional

Total number of all items in the order. Read-only.

Example: 3
weight_totalnumber · doubleRead-onlyOptional

Total weight of all items in the order. Read-only.

Example: 3.6
product_totalnumber · doubleRead-onlyOptional

Total price of all items in the order. Read-only.

Example: 57
discount_totalnumber · doubleRead-onlyOptional

Total value of all discounts, stored as a positive number. Read-only.

Example: 5
order_totalnumber · doubleRead-onlyOptional

Calculated price of the entire order. Read-only.

Example: 63.65
email_countstringRead-onlyOptional

Number of orders matching this email address. Returned as a string, even though it is always numeric. Read-only.

Example: 3
previous_folder_idstringRead-onlyOptional

The folder the order was in before its most recent move. Returned as a string. Read-only.

Example: 21654
tag_colorstringRead-onlyOptional

Not in use.

tag_namestringRead-onlyOptional

Not in use.

idintegerRead-onlyOptional

Order Desk's internal ID number for the order item. Read-only.

Example: 1670028
namestringOptionalExample: ODU Campus Hoodie
pricenumber · doubleOptionalDefault: 0Example: 19
quantityintegerOptionalDefault: 1Example: 2
weightnumber · doubleOptionalExample: 1.2
codestringOptional

Item SKU or product code.

Example: ODU-HOOD-NVY-L
delivery_typestring · enumOptional

Available options are ship, noship, download, or future. Defaults to ship.

Default: shipPossible values:
category_codestringOptional

Further details about the type of item. Freeform text.

Example: Apparel
fulfillment_methodstringOptional

Fulfillment method responsible for this item, when one applies.

Other propertiesanyOptional
Other propertiesanyOptional
idintegerRead-onlyOptionalExample: 44821
order_idintegerRead-onlyOptionalExample: 925086
store_idintegerRead-onlyOptionalExample: 11
tracking_numberstringOptional

Carrier-assigned tracking number. Use n/a if no tracking number is applicable.

Example: 1Z999AA10123456784
carrier_codestringOptional

Carrier code such as USPS or FedEx, when available.

Example: UPS
shipment_methodstringOptional

Shipping service name, such as First Class International.

Example: UPS Ground
weightnumber · doubleOptional

Final shipment weight.

Example: 2.4
costnumber · doubleOptional

Your cost to send the shipment.

Example: 9.5
statusstringOptional

Current shipment status, used by the EasyPost webhook.

tracking_urlstringOptional

If omitted, Order Desk attempts to determine it from the tracking number format and carrier code.

label_formatstringRead-onlyOptional

Format of the stored label, when one exists.

label_imagestringRead-onlyOptional

Stored shipping label, when one exists.

print_statusstringRead-onlyOptional

Whether the label has been printed.

cart_shipment_idstringRead-onlyOptional

Shipment ID in the originating cart, when known.

label_shipment_idstringRead-onlyOptional

Shipment ID at the label provider, when known.

Other propertiesanyOptional
date_shippedstringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
date_addedstringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
source_namestringOptional

What wrote this entry.

Example: API
notestringOptionalExample: Order Updated
date_addedstringOptional

Date and time in YYYY-MM-DD HH:MM:SS format. UTC unless otherwise stated.

Example: 2019-01-15 12:12:10
get/orders
curl "https://app.orderdesk.me/api/v2/orders?modified_start_date=2019-01-15%2012:12:10&folder_id=21654&limit=50" \
  -H "ORDERDESK-STORE-ID: your-store-id" \
  -H "ORDERDESK-API-KEY: your-api-key"
{
  "status": "success",
  "message": "text",
  "execution_time": "0.1524 seconds",
  "total_records": 128,
  "records_returned": 50,
  "offset": 0,
  "limit": 50,
  "orders": [
    {
      "id": "925086",
      "source_id": "6487172454",
      "source_name": "FoxyCart",
      "email": "avery.chen@example.com",
      "shipping_method": "UPS Ground",
      "shipping_total": 9.5,
      "handling_total": 0.5,
      "tax_total": 2.15,
      "cc_exp": "02/2026",
      "processor_response": "Authorize.net Transaction ID: 2221864944",
      "payment_type": "Visa",
      "payment_status": "Captured",
      "processor_balance": 21.17,
      "refund_total": 0,
      "customer_id": "5487542",
      "ip_address": "text",
      "fulfillment_name": "text",
      "fulfillment_id": "text",
      "folder_id": 21654,
      "date_added": "2019-01-15 12:12:10",
      "date_updated": "2019-01-15 12:12:10",
      "checkout_data": {
        "Order Notes": "Please leave by the back door"
      },
      "order_metadata": {
        "fraud_protection_score": 0
      },
      "shipping": {
        "first_name": "Avery",
        "last_name": "Chen",
        "company": "text",
        "address1": "1200 Campus Drive",
        "address2": "text",
        "address3": "text",
        "address4": "text",
        "city": "Springfield",
        "state": "IL",
        "postal_code": "62704",
        "country": "US",
        "phone": "555-555-5555"
      },
      "customer": {
        "first_name": "Avery",
        "last_name": "Chen",
        "company": "text",
        "address1": "1200 Campus Drive",
        "address2": "text",
        "address3": "text",
        "address4": "text",
        "city": "Springfield",
        "state": "IL",
        "postal_code": "62704",
        "country": "US",
        "phone": "555-555-5555"
      },
      "return_address": {
        "title": "Acme",
        "name": "Doug Jones",
        "company": "Acme Manufacturing",
        "address1": "817 E Maple Ln",
        "address2": "text",
        "city": "Knoxville",
        "state": "IL",
        "postal_code": "62704",
        "country": "US",
        "phone": "text"
      },
      "discount_list": [
        {
          "name": "Spring Sale",
          "code": "SPRING10",
          "amount": 5
        }
      ],
      "order_notes": [
        {
          "date_added": "2019-01-15 12:12:10",
          "username": "Doug Jones",
          "content": "Customer asked us to leave this by the back door."
        }
      ],
      "cc_number_masked": "xxxxxxxxxxxx4242",
      "quantity_total": 3,
      "weight_total": 3.6,
      "product_total": 57,
      "discount_total": 5,
      "order_total": 63.65,
      "email_count": "3",
      "previous_folder_id": "21654",
      "tag_color": "text",
      "tag_name": "text",
      "order_items": [
        {
          "id": 1670028,
          "name": "ODU Campus Hoodie",
          "price": 19,
          "quantity": 2,
          "weight": 1.2,
          "code": "ODU-HOOD-NVY-L",
          "delivery_type": "ship",
          "category_code": "Apparel",
          "fulfillment_method": "text",
          "variation_list": {
            "Size": "Large",
            "Color": "Red"
          },
          "metadata": {
            "image": "https://example.com/odu-hoodie.jpg",
            "print_sku": "x533"
          }
        }
      ],
      "order_shipments": [
        {
          "id": 44821,
          "order_id": 925086,
          "store_id": 11,
          "tracking_number": "1Z999AA10123456784",
          "carrier_code": "UPS",
          "shipment_method": "UPS Ground",
          "weight": 2.4,
          "cost": 9.5,
          "status": "text",
          "tracking_url": "text",
          "label_format": "text",
          "label_image": "text",
          "print_status": "text",
          "cart_shipment_id": "text",
          "label_shipment_id": "text",
          "order_items": [
            {
              "ANY_ADDITIONAL_PROPERTY": "anything"
            }
          ],
          "date_shipped": "2019-01-15 12:12:10",
          "date_added": "2019-01-15 12:12:10"
        }
      ],
      "order_history": [
        {
          "source_name": "API",
          "note": "Order Updated",
          "date_added": "2019-01-15 12:12:10"
        }
      ]
    }
  ]
}

Last updated

Was this helpful?