Skip to main content

Get All Orders

GET 

/v2/orders

This endpoint returns all orders with custom flow fields. The pagination offset is set to fetch a maximum of 10,000 orders. If the store has 10,000 orders and you fetch the orders without using filters, an error is returned. Use a filter to view orders when the order is beyond the 10,000 mark.

note
  • Pass the X-Moltin-Customer-Token header to limit orders to a specific customer. See Customer Tokens.
  • Pass the EP-Account-Management-Authentication-Token header to limit orders to a specific account. See Account Management Token.
  • You can use pagination with this resource. For more information, see pagination.

Filtering

The following operators and attributes are available for filtering orders.

AttributeTypeOperatorExample
statusstringeqeq(status,complete)
paymentstringeqeq(payment,paid)
shippingstringeqeq(shipping,unfulfilled)
name (customer.name)stringeq / likelike(name,Brad*)
email (customer.email)stringeq / likelike(email,*@elasticpath.com)
customer_idstringeq / likeeq(customer_id, e5a0d684-a4af-4919-a348-f66b0b4955e0)
account_idstringeq / likeeq(account_id,3d7200c9-a9bc-4085-9822-63e80fd94a09)
account_member_idstringeq / likeeq(account_member_id,2a8a3a92-2ccd-4b2b-a7af-52d3896eaecb)
contact.namestringeq / likeeq(name,John Doe)
contact.emailstringeq / likeeq(email,John Doe)
shipping_postcodestringeq / likelike(shipping_postcode,117*)
billing_postcodestringeq / likelike(billing_postcode,117*)
with_taxintegergt/ge/lt/lege(with_tax,10000)
without_taxintegergt/ge/lt/lege(without_tax,10000)
currencystringeqeq(currency,USD)
product_idstringeqeq(product_id,6837058c-ae42-46db-b3c6-7f01e0c34b40)
product_skustringeqeq(product_sku,deck-shoe-001)
created_atdateeq / gt / ge/ le / ltgt(created_at,YYYY-MM-DD)
updated_atdateeq / gt / ge/ le/ ltlt(updated_at,YYYY-MM-DD)
external_refstringeq / likelike(external_ref, 16be*)

Request

Header Parameters

    x-moltin-customer-token string

    A customer token to access a specific customer's orders.

Responses

Response Headers
    Schema
      data object[]
    • Array [
    • type string

      Specifies the type of object being returned. You must use order.

      id uuid

      Specifies the unique identifier of the order.

      status string

      Specifies the status of the order, such as incomplete, complete, processing, or cancelled.

      payment string

      Specifies the status of the payment, such as unpaid, authorized, paid, or refunded.

      shipping string

      Specifies the status of the shipment, such as fulfilled or unfulfilled.

      anonymized boolean

      Specifies if the order is anonymized.

      meta object
      timestamps object
      created_at string

      The date this was created.

      updated_at

      The date this was last updated.

      with_tax object
      amount number

      The raw total of this cart.

      currency string

      The currency set for this cart.

      formatted string

      The tax inclusive formatted total based on the currency.

      without_tax object
      amount number

      The raw total of this cart.

      currency string

      The currency set for this cart.

      formatted string

      The tax inclusive formatted total based on the currency.

      tax object
      amount number

      The raw total of this cart.

      currency string

      The currency set for this cart.

      formatted string

      The tax inclusive formatted total based on the currency.

      discount object
      amount number

      The raw total of this cart.

      currency string

      The currency set for this cart.

      formatted string

      The tax inclusive formatted total based on the currency.

      paid object
      amount number

      The raw total of this cart.

      currency string

      The currency set for this cart.

      formatted string

      The tax inclusive formatted total based on the currency.

      authorized object
      amount number

      The raw total of this cart.

      currency string

      The currency set for this cart.

      formatted string

      The tax inclusive formatted total based on the currency.

      without_discount object
      amount number

      The raw total of this cart.

      currency string

      The currency set for this cart.

      formatted string

      The tax inclusive formatted total based on the currency.

      billing_address object
      company_name string

      Company name of the billing recipient.

      country stringrequired

      Specifies the country of the billing address.

      county string

      Specifies the county of the billing address.

      first_name stringrequired

      First name of the billing recipient.

      last_name stringrequired

      Last name of the billing recipient.

      line_1 stringrequired

      First line of the billing address.

      line_2 string

      Second line of the billing address.

      postcode stringrequired

      Postcode of the billing address.

      region stringrequired

      Specifies state, province, or region of the billing address.

      contact object
      email string

      The email address of the contact.

      name string

      The name of the contact.

      shipping_address object
      company_name string

      Company of the shipping recipient.

      country stringrequired

      Specifies the country of the shipping address.

      county string

      Specifies the county of the shipping address.

      first_name stringrequired

      First name of the shipping recipient.

      last_name stringrequired

      Last name of the shipping recipient.

      line_1 stringrequired

      First line of the shipping address.

      line_2 string

      Second line of the shipping address.

      postcode stringrequired

      Post code of the shipping address.

      region stringrequired

      Specifies the state, province, or region of the shipping address.

    • ]
    • links object
      current string

      Always the current page.

      first string

      Always the first page.

      last string

      If there is only one page, it is null.

      next string

      If there is only one page, it is null.

      prev string

      if the user is on the first page, it is null.

      meta object
      page object
      current integer

      The current page.

      limit integer

      The maximum number of records per page for this response. You can set this value up to 100.

      offset integer

      The current offset by number of records, not pages. Offset is zero-based.

      total integer

      The total page count.

      results object
      total integer

      The total page count.

    Loading...