Order API Implementation and Examples

Endpoint

This section lists the HTTP verb and full path to the endpoint. The basic structure of a REST call is
<HTTP verb> http://<host>/rest/<scope>/<endpoint>
where:
Element
Description
HTTP verb
One of GETPOSTPUT, or DELETE
host
The hostname or IP address (and optionally, port) of the RCE installation.
scope
Specifies which store the call affects. In this tutorial, this value is default.
endpoint
The full URI (Uniform Resource Identifier) to the endpoint. These values always start with /V1. For example, /V1/orders/4.

HTTP headers
This section indicates which key/value pairs you must specify in the HTTP headers. All calls require one or more HTTP headers.
Payload
This section lists the information that is sent to the RCE. All payload samples are valid and can be copied and pasted into your calls, but you might need to change the id values that the RCE returns.
Response
This section lists the information that the RCE sends to the REST client. These values are often referenced in other steps in the tutorial. The values RCE returns might be different than the values listed in the examples provided in this tutorial.

Get the admin authorization token


REST calls to the RCE require an authorization token. The token allows the RCE to verify that the caller is authorized to access a system resource. To get a token, you must specify the user’s username and password in the payload.
By default, an admin token is valid for 4 hours. 
Endpoint

POST https://<host>/rest/default/V1/integration/admin/token

Headers

Content-Type
 application/json

Payload
{"username": "admin","password": "123123q"}
Response
The RCE returns the admin’s access token.

5r8cvmpr11j6gmau8990rcj2qk7unh8i

This token must be specified in the authorization header of every call that requires admin permissions.

Examples

Rezolve maintains Swagger documents which describe the various API methods that can be used to get Order information. The documents can be found here:

https://docs.rezolve.com/rceapidocs/swagger-orders/

Below are some specific Order API call examples

1. Get Specific Order Details

{id} in this example is the Order ID returned by Rezolve. In addition this is the ID presented within the QR code on receipt. See https://docs.rezolve.com/rceapidocs/swagger-orders/#/salesOrderRepositoryV1/salesOrderRepositoryV1GetGet

Endpoint

POST https://<host>/rest/V1/orders/{id}

Headers

Content-Type
 application/json

Response

{
  "base_currency_code": "TWD",
  "base_discount_amount": 0,
  "base_discount_invoiced": 0,
  "base_grand_total": 4761.9,
  "base_discount_tax_compensation_amount": 0,
  "base_discount_tax_compensation_invoiced": 0,
  "base_shipping_amount": 0,
  "base_shipping_discount_amount": 0,
  "base_shipping_incl_tax": 0,
  "base_shipping_invoiced": 0,
  "base_shipping_tax_amount": 0,
  "base_subtotal": 4761.9,
  "base_subtotal_incl_tax": 4761.9,
  "base_subtotal_invoiced": 4761.9,
  "base_tax_amount": 0,
  "base_tax_invoiced": 0,
  "base_total_due": 0,
  "base_total_invoiced": 4761.9,
  "base_total_invoiced_cost": 0,
  "base_total_paid": 4761.9,
  "base_to_global_rate": 1,
  "base_to_order_rate": 1,
  "billing_address_id": 1079,
  "created_at": "2018-06-01 11:32:08",
  "customer_email": "example@rezolve.com",
  "customer_firstname": "John",
  "customer_group_id": 1,
  "customer_id": 7,
  "customer_is_guest": 0,
  "customer_lastname": "Doe",
  "customer_note_notify": 1,
  "discount_amount": 0,
  "discount_invoiced": 0,
  "email_sent": 1,
  "entity_id": 540,
  "global_currency_code": "TWD",
  "grand_total": 4761.9,
  "discount_tax_compensation_amount": 0,
  "discount_tax_compensation_invoiced": 0,
  "increment_id": "000000540",
  "is_virtual": 0,
  "order_currency_code": "TWD",
  "protect_code": "a705e2",
  "quote_id": 1209,
  "shipping_amount": 0,
  "shipping_description": "Pickup In Store - Pickup In Store",
  "shipping_discount_amount": 0,
  "shipping_discount_tax_compensation_amount": 0,
  "shipping_incl_tax": 0,
  "shipping_invoiced": 0,
  "shipping_tax_amount": 0,
  "state": "processing",
  "status": "processing",
  "store_currency_code": "TWD",
  "store_id": 1,
  "store_name": "UAT Use Only\nMain Website Store\n",
  "store_to_base_rate": 0,
  "store_to_order_rate": 0,
  "subtotal": 4761.9,
  "subtotal_incl_tax": 4761.9,
  "subtotal_invoiced": 4761.9,
  "tax_amount": 0,
  "tax_invoiced": 0,
  "total_due": 0,
  "total_invoiced": 4761.9,
  "total_item_count": 1,
  "total_paid": 4761.9,
  "total_qty_ordered": 1,
  "updated_at": "2018-06-01 11:32:20",
  "weight": 1,
  "items": [
    {
      "amount_refunded": 0,
      "base_amount_refunded": 0,
      "base_discount_amount": 0,
      "base_discount_invoiced": 0,
      "base_discount_tax_compensation_amount": 0,
      "base_discount_tax_compensation_invoiced": 0,
      "base_original_price": 5000,
      "base_price": 4761.9,
      "base_price_incl_tax": 4761.9,
      "base_row_invoiced": 4761.9,
      "base_row_total": 4761.9,
      "base_row_total_incl_tax": 4761.9,
      "base_tax_amount": 0,
      "base_tax_invoiced": 0,
      "created_at": "2018-06-01 11:32:15",
      "discount_amount": 0,
      "discount_invoiced": 0,
      "discount_percent": 0,
      "free_shipping": 0,
      "discount_tax_compensation_amount": 0,
      "discount_tax_compensation_invoiced": 0,
      "is_qty_decimal": 0,
      "is_virtual": 0,
      "item_id": 609,
      "name": "iPhone 8",
      "no_discount": 0,
      "order_id": 540,
      "original_price": 5000,
      "price": 4761.9,
      "price_incl_tax": 4761.9,
      "product_id": 53,
      "product_type": "simple",
      "qty_canceled": 0,
      "qty_invoiced": 1,
      "qty_ordered": 1,
      "qty_refunded": 0,
      "qty_shipped": 0,
      "quote_item_id": 5848,
      "row_invoiced": 4761.9,
      "row_total": 4761.9,
      "row_total_incl_tax": 4761.9,
      "row_weight": 1,
      "sku": "iPhone 8",
      "store_id": 1,
      "tax_amount": 0,
      "tax_invoiced": 0,
      "tax_percent": 0,
      "updated_at": "2018-06-01 11:32:20",
      "weee_tax_applied": "[]",
      "weight": 1,
      "extension_attributes": {
        "rezolve_placement_id": "0"
      }
    }
  ],
  "billing_address": {
    "address_type": "billing",
    "city": "KHH",
    "country_id": "TW",
    "email": "example@rezolve.com",
    "entity_id": 1079,
    "firstname": "John",
    "lastname": "Doe",
    "parent_id": 540,
    "postcode": "2222",
    "region": " ",
    "region_code": " ",
    "street": [
      "John Doe",
      "hsjssj"
    ],
    "telephone": "07423735336"
  },
  "payment": {
    "account_status": null,
    "additional_information": [
      "Check / Money order",
      null,
      null
    ],
    "amount_ordered": 4761.9,
    "amount_paid": 4761.9,
    "base_amount_ordered": 4761.9,
    "base_amount_paid": 4761.9,
    "base_shipping_amount": 0,
    "base_shipping_captured": 0,
    "cc_last4": null,
    "entity_id": 540,
    "method": "checkmo",
    "parent_id": 540,
    "shipping_amount": 0,
    "shipping_captured": 0,
    "extension_attributes": []
  },
  "status_histories": [
    {
      "comment": null,
      "created_at": "2018-06-01 11:32:20",
      "entity_id": 639,
      "entity_name": "invoice",
      "is_customer_notified": 0,
      "is_visible_on_front": 0,
      "parent_id": 540,
      "status": "processing"
    }
  ],
  "extension_attributes": {
    "shipping_assignments": [
      {
        "shipping": {
          "address": {
            "address_type": "shipping",
            "city": "LONDON",
            "country_id": "GB",
            "email": "example@rezolve.com",
            "entity_id": 1078,
            "firstname": "John",
            "lastname": "Doe",
            "parent_id": 540,
            "postcode": "23989",
            "region": "null",
            "region_code": "null",
            "street": [
              "LONDON",
              "LONDON"
            ],
            "telephone": "07423735336"
          },
          "method": "storepickup_storepickup",
          "total": {
            "base_shipping_amount": 0,
            "base_shipping_discount_amount": 0,
            "base_shipping_incl_tax": 0,
            "base_shipping_invoiced": 0,
            "base_shipping_tax_amount": 0,
            "shipping_amount": 0,
            "shipping_discount_amount": 0,
            "shipping_discount_tax_compensation_amount": 0,
            "shipping_incl_tax": 0,
            "shipping_invoiced": 0,
            "shipping_tax_amount": 0
          }
        },
        "items": [
          {
            "amount_refunded": 0,
            "base_amount_refunded": 0,
            "base_discount_amount": 0,
            "base_discount_invoiced": 0,
            "base_discount_tax_compensation_amount": 0,
            "base_discount_tax_compensation_invoiced": 0,
            "base_original_price": 5000,
            "base_price": 4761.9,
            "base_price_incl_tax": 4761.9,
            "base_row_invoiced": 4761.9,
            "base_row_total": 4761.9,
            "base_row_total_incl_tax": 4761.9,
            "base_tax_amount": 0,
            "base_tax_invoiced": 0,
            "created_at": "2018-06-01 11:32:15",
            "discount_amount": 0,
            "discount_invoiced": 0,
            "discount_percent": 0,
            "free_shipping": 0,
            "discount_tax_compensation_amount": 0,
            "discount_tax_compensation_invoiced": 0,
            "is_qty_decimal": 0,
            "is_virtual": 0,
            "item_id": 609,
            "name": "iPhone 8",
            "no_discount": 0,
            "order_id": 540,
            "original_price": 5000,
            "price": 4761.9,
            "price_incl_tax": 4761.9,
            "product_id": 53,
            "product_type": "simple",
            "qty_canceled": 0,
            "qty_invoiced": 1,
            "qty_ordered": 1,
            "qty_refunded": 0,
            "qty_shipped": 0,
            "quote_item_id": 5848,
            "row_invoiced": 4761.9,
            "row_total": 4761.9,
            "row_total_incl_tax": 4761.9,
            "row_weight": 1,
            "sku": "iPhone 8",
            "store_id": 1,
            "tax_amount": 0,
            "tax_invoiced": 0,
            "tax_percent": 0,
            "updated_at": "2018-06-01 11:32:20",
            "weee_tax_applied": "[]",
            "weight": 1,
            "extension_attributes": {
              "rezolve_placement_id": "0"
            }
          }
        ]
      }
    ],
    "rezolve_order_id": "9681",
    "rezolve_partner_id": "36",
    "rezolve_geo_lat": "51.10478973388672",
    "rezolve_geo_long": "0.7035819888114929"
  }
}

2. Get All Orders within date range
See https://docs.rezolve.com/rceapidocs/swagger-orders/#/salesOrderRepositoryV1/salesOrderRepositoryV1GetListGet
Endpoint

POST https://<host>/rest/V1/orders

Headers

Content-Type
 application/json

Payload

?
searchCriteria[filter_groups][0][filters][0][field]=created_at&
searchCriteria[filter_groups][0][filters][0][value]=2018-04-17 00:00:00&
searchCriteria[filter_groups][0][filters][0][condition_type]=from&
searchCriteria[filter_groups][0][filters][0][field]=created_at&
searchCriteria[filter_groups][0][filters][0][value]=2018-04-20 00:00:00&
searchCriteria[filter_groups][0][filters][0][condition_type]=to


Response

{
  "items": [
    {
      "base_currency_code": "TWD",
      "base_discount_amount": 0,
      "base_discount_invoiced": 0,
      "base_grand_total": 1005,
      "base_discount_tax_compensation_amount": 0,
      "base_discount_tax_compensation_invoiced": 0,
      "base_shipping_amount": 5,
      "base_shipping_discount_amount": 0,
      "base_shipping_incl_tax": 5,
      "base_shipping_invoiced": 5,
      "base_shipping_tax_amount": 0,
      "base_subtotal": 952.38,
      "base_subtotal_incl_tax": 1000,
      "base_subtotal_invoiced": 952.38,
      "base_tax_amount": 47.62,
      "base_tax_invoiced": 47.62,
      "base_total_due": 0,
      "base_total_invoiced": 1005,
      "base_total_invoiced_cost": 0,
      "base_total_paid": 1005,
      "base_to_global_rate": 1,
      "base_to_order_rate": 1,
      "billing_address_id": 2,
      "created_at": "2018-02-06 06:17:20",
      "customer_email": "example2@rezolve.com",
      "customer_firstname": "Jane",
      "customer_group_id": 1,
      "customer_id": 1,
      "customer_is_guest": 0,
      "customer_lastname": "Doe",
      "customer_note_notify": 1,
      "discount_amount": 0,
      "discount_invoiced": 0,
      "email_sent": 1,
      "entity_id": 1,
      "global_currency_code": "TWD",
      "grand_total": 1005,
      "discount_tax_compensation_amount": 0,
      "discount_tax_compensation_invoiced": 0,
      "increment_id": "000000001",
      "is_virtual": 0,
      "order_currency_code": "TWD",
      "protect_code": "9d4297",
      "quote_id": 8,
      "shipping_amount": 5,
      "shipping_description": "Flat Rate - Fixed",
      "shipping_discount_amount": 0,
      "shipping_discount_tax_compensation_amount": 0,
      "shipping_incl_tax": 5,
      "shipping_invoiced": 5,
      "shipping_tax_amount": 0,
      "state": "complete",
      "status": "complete",
      "store_currency_code": "TWD",
      "store_id": 1,
      "store_name": "UAT Use Only\nMain Website Store\n",
      "store_to_base_rate": 0,
      "store_to_order_rate": 0,
      "subtotal": 952.38,
      "subtotal_incl_tax": 1000,
      "subtotal_invoiced": 952.38,
      "tax_amount": 47.62,
      "tax_invoiced": 47.62,
      "total_due": 0,
      "total_invoiced": 1005,
      "total_item_count": 1,
      "total_paid": 1005,
      "total_qty_ordered": 1,
      "updated_at": "2018-02-06 06:17:21",
      "weight": 1,
      "items": [
        {
          "amount_refunded": 0,
          "base_amount_refunded": 0,
          "base_discount_amount": 0,
          "base_discount_invoiced": 0,
          "base_discount_tax_compensation_amount": 0,
          "base_discount_tax_compensation_invoiced": 0,
          "base_original_price": 1000,
          "base_price": 952.38,
          "base_price_incl_tax": 1000,
          "base_row_invoiced": 952.38,
          "base_row_total": 952.38,
          "base_row_total_incl_tax": 1000,
          "base_tax_amount": 47.62,
          "base_tax_invoiced": 47.62,
          "created_at": "2018-02-06 06:17:20",
          "discount_amount": 0,
          "discount_invoiced": 0,
          "discount_percent": 0,
          "free_shipping": 0,
          "discount_tax_compensation_amount": 0,
          "discount_tax_compensation_invoiced": 0,
          "is_qty_decimal": 0,
          "is_virtual": 0,
          "item_id": 1,
          "name": "Clocks",
          "no_discount": 0,
          "order_id": 1,
          "original_price": 1000,
          "price": 952.38,
          "price_incl_tax": 1000,
          "product_id": 1,
          "product_type": "simple",
          "qty_canceled": 0,
          "qty_invoiced": 1,
          "qty_ordered": 1,
          "qty_refunded": 0,
          "qty_shipped": 0,
          "quote_item_id": 8,
          "row_invoiced": 952.38,
          "row_total": 952.38,
          "row_total_incl_tax": 1000,
          "row_weight": 1,
          "sku": "Clocks",
          "store_id": 1,
          "tax_amount": 47.62,
          "tax_invoiced": 47.62,
          "tax_percent": 5,
          "updated_at": "2018-02-06 06:17:21",
          "weee_tax_applied": "[]",
          "weight": 1,
          "extension_attributes": {
            "rezolve_placement_id": "0"
          }
        }
      ],
      "billing_address": {
        "address_type": "billing",
        "city": "HSZ",
        "country_id": "TW",
        "email": "example2@rezolve.com",
        "entity_id": 2,
        "firstname": "Jane",
        "lastname": "Doe",
        "parent_id": 1,
        "postcode": "147852",
        "region": " ",
        "region_code": " ",
        "street": [
          "Address"
        ],
        "telephone": "75536969"
      },
      "payment": {
        "account_status": null,
        "additional_information": [
          "Check / Money order",
          null,
          null
        ],
        "amount_ordered": 1005,
        "amount_paid": 1005,
        "base_amount_ordered": 1005,
        "base_amount_paid": 1005,
        "base_shipping_amount": 5,
        "base_shipping_captured": 5,
        "cc_last4": null,
        "entity_id": 1,
        "method": "checkmo",
        "parent_id": 1,
        "shipping_amount": 5,
        "shipping_captured": 5,
        "extension_attributes": []
      },
      "status_histories": [
        {
          "comment": null,
          "created_at": "2018-02-06 06:17:21",
          "entity_id": 1,
          "entity_name": "invoice",
          "is_customer_notified": 1,
          "is_visible_on_front": 0,
          "parent_id": 1,
          "status": "complete"
        }
      ],
      "extension_attributes": {
        "shipping_assignments": [
          {
            "shipping": {
              "address": {
                "address_type": "shipping",
                "city": "HSZ",
                "country_id": "TW",
                "email": "example2@rezolve.com",
                "entity_id": 1,
                "firstname": "Jane",
                "lastname": "Doe",
                "parent_id": 1,
                "postcode": "147852",
                "region": " ",
                "region_code": " ",
                "street": [
                  "Address"
                ],
                "telephone": "75536969"
              },
              "method": "flatrate_flatrate",
              "total": {
                "base_shipping_amount": 5,
                "base_shipping_discount_amount": 0,
                "base_shipping_incl_tax": 5,
                "base_shipping_invoiced": 5,
                "base_shipping_tax_amount": 0,
                "shipping_amount": 5,
                "shipping_discount_amount": 0,
                "shipping_discount_tax_compensation_amount": 0,
                "shipping_incl_tax": 5,
                "shipping_invoiced": 5,
                "shipping_tax_amount": 0
              }
            },
            "items": [
              {
                "amount_refunded": 0,
                "base_amount_refunded": 0,
                "base_discount_amount": 0,
                "base_discount_invoiced": 0,
                "base_discount_tax_compensation_amount": 0,
                "base_discount_tax_compensation_invoiced": 0,
                "base_original_price": 1000,
                "base_price": 952.38,
                "base_price_incl_tax": 1000,
                "base_row_invoiced": 952.38,
                "base_row_total": 952.38,
                "base_row_total_incl_tax": 1000,
                "base_tax_amount": 47.62,
                "base_tax_invoiced": 47.62,
                "created_at": "2018-02-06 06:17:20",
                "discount_amount": 0,
                "discount_invoiced": 0,
                "discount_percent": 0,
                "free_shipping": 0,
                "discount_tax_compensation_amount": 0,
                "discount_tax_compensation_invoiced": 0,
                "is_qty_decimal": 0,
                "is_virtual": 0,
                "item_id": 1,
                "name": "Clocks",
                "no_discount": 0,
                "order_id": 1,
                "original_price": 1000,
                "price": 952.38,
                "price_incl_tax": 1000,
                "product_id": 1,
                "product_type": "simple",
                "qty_canceled": 0,
                "qty_invoiced": 1,
                "qty_ordered": 1,
                "qty_refunded": 0,
                "qty_shipped": 0,
                "quote_item_id": 8,
                "row_invoiced": 952.38,
                "row_total": 952.38,
                "row_total_incl_tax": 1000,
                "row_weight": 1,
                "sku": "Clocks",
                "store_id": 1,
                "tax_amount": 47.62,
                "tax_invoiced": 47.62,
                "tax_percent": 5,
                "updated_at": "2018-02-06 06:17:21",
                "weee_tax_applied": "[]",
                "weight": 1,
                "extension_attributes": {
                  "rezolve_placement_id": "0"
                }
              }
            ]
          }
        ],
        "rezolve_order_id": "579",
        "rezolve_partner_id": "36"
      }
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "created_at",
            "value": "2018-04-20 00:00:00",
            "condition_type": "to"
          }
        ]
      }
    ]
  },
  "total_count": 1
}

3. Get All Orders with specific status

See https://docs.rezolve.com/rceapidocs/swagger-orders/#/salesOrderRepositoryV1/salesOrderRepositoryV1GetListGet
Endpoint

POST https://<host>/rest/V1/orders

Headers

Content-Type
 application/json

Payload

?searchCriteria[filter_groups][0][filters][0][field]=status&
searchCriteria[filter_groups][0][filters][0][value]=pending&
searchCriteria[filter_groups][0][filters][0][condition_type]=eq


Response



{
  "items": [
    {
      "base_currency_code": "TWD",
      "base_discount_amount": 0,
      "base_grand_total": 210,
      "base_discount_tax_compensation_amount": 0,
      "base_shipping_amount": 0,
      "base_shipping_discount_amount": 0,
      "base_shipping_incl_tax": 0,
      "base_shipping_tax_amount": 0,
      "base_subtotal": 200,
      "base_subtotal_incl_tax": 210,
      "base_tax_amount": 10,
      "base_total_due": 210,
      "base_to_global_rate": 1,
      "base_to_order_rate": 1,
      "billing_address_id": 36,
      "created_at": "2018-04-18 08:38:06",
      "customer_email": "example2@rezolve.com",
      "customer_firstname": "Jane",
      "customer_group_id": 1,
      "customer_is_guest": 0,
      "customer_lastname": "Doe",
      "customer_note_notify": 1,
      "discount_amount": 0,
      "email_sent": 1,
      "entity_id": 18,
      "global_currency_code": "TWD",
      "grand_total": 210,
      "discount_tax_compensation_amount": 0,
      "increment_id": "000000018",
      "is_virtual": 0,
      "order_currency_code": "TWD",
      "protect_code": "0f3964",
      "quote_id": 62,
      "shipping_amount": 0,
      "shipping_description": "Pickup In Store - StorePickup",
      "shipping_discount_amount": 0,
      "shipping_discount_tax_compensation_amount": 0,
      "shipping_incl_tax": 0,
      "shipping_tax_amount": 0,
      "state": "new",
      "status": "pending",
      "store_currency_code": "TWD",
      "store_id": 1,
      "store_name": "UAT Use Only\nMain Website Store\n",
      "store_to_base_rate": 0,
      "store_to_order_rate": 0,
      "subtotal": 200,
      "subtotal_incl_tax": 210,
      "tax_amount": 10,
      "total_due": 210,
      "total_item_count": 2,
      "total_qty_ordered": 2,
      "updated_at": "2018-04-27 06:22:10",
      "weight": 2,
      "items": [
        {
          "amount_refunded": 0,
          "base_amount_refunded": 0,
          "base_discount_amount": 0,
          "base_discount_invoiced": 0,
          "base_discount_tax_compensation_amount": 0,
          "base_original_price": 10,
          "base_price": 9.52,
          "base_price_incl_tax": 10,
          "base_row_invoiced": 0,
          "base_row_total": 9.52,
          "base_row_total_incl_tax": 10,
          "base_tax_amount": 0.48,
          "base_tax_invoiced": 0,
          "created_at": "2018-04-18 08:38:06",
          "discount_amount": 0,
          "discount_invoiced": 0,
          "discount_percent": 0,
          "free_shipping": 0,
          "discount_tax_compensation_amount": 0,
          "is_qty_decimal": 0,
          "is_virtual": 0,
          "item_id": 23,
          "name": "Belts",
          "no_discount": 0,
          "order_id": 18,
          "original_price": 10,
          "price": 9.52,
          "price_incl_tax": 10,
          "product_id": 38,
          "product_type": "simple",
          "qty_canceled": 0,
          "qty_invoiced": 0,
          "qty_ordered": 1,
          "qty_refunded": 0,
          "qty_shipped": 0,
          "quote_item_id": 212,
          "row_invoiced": 0,
          "row_total": 9.52,
          "row_total_incl_tax": 10,
          "row_weight": 1,
          "sku": "Belts",
          "store_id": 1,
          "tax_amount": 0.48,
          "tax_invoiced": 0,
          "tax_percent": 5,
          "updated_at": "2018-04-18 08:38:06",
          "weight": 1,
          "extension_attributes": []
        },
        {
          "amount_refunded": 0,
          "base_amount_refunded": 0,
          "base_discount_amount": 0,
          "base_discount_invoiced": 0,
          "base_discount_tax_compensation_amount": 0,
          "base_original_price": 200,
          "base_price": 190.48,
          "base_price_incl_tax": 200,
          "base_row_invoiced": 0,
          "base_row_total": 190.48,
          "base_row_total_incl_tax": 200,
          "base_tax_amount": 9.52,
          "base_tax_invoiced": 0,
          "created_at": "2018-04-18 08:38:06",
          "discount_amount": 0,
          "discount_invoiced": 0,
          "discount_percent": 0,
          "free_shipping": 0,
          "discount_tax_compensation_amount": 0,
          "is_qty_decimal": 0,
          "is_virtual": 0,
          "item_id": 24,
          "name": "Kerchiefs",
          "no_discount": 0,
          "order_id": 18,
          "original_price": 200,
          "price": 190.48,
          "price_incl_tax": 200,
          "product_id": 22,
          "product_type": "simple",
          "qty_canceled": 0,
          "qty_invoiced": 0,
          "qty_ordered": 1,
          "qty_refunded": 0,
          "qty_shipped": 0,
          "quote_item_id": 213,
          "row_invoiced": 0,
          "row_total": 190.48,
          "row_total_incl_tax": 200,
          "row_weight": 1,
          "sku": "Kerchiefs",
          "store_id": 1,
          "tax_amount": 9.52,
          "tax_invoiced": 0,
          "tax_percent": 5,
          "updated_at": "2018-04-18 08:38:06",
          "weight": 1,
          "extension_attributes": []
        }
      ],
      "billing_address": {
        "address_type": "billing",
        "city": "London",
        "country_id": "TW",
        "customer_address_id": 2,
        "email": "example2@rezolve.com",
        "entity_id": 36,
        "firstname": "Jane",
        "lastname": "Doe",
        "parent_id": 18,
        "postcode": "12345",
        "region": "Changhua",
        "region_code": "CHA",
        "region_id": 544,
        "street": [
          "The Cottage"
        ],
        "telephone": "01245 789450"
      },
      "payment": {
        "account_status": null,
        "additional_information": [
          "Check / Money order",
          null,
          null
        ],
        "amount_ordered": 210,
        "base_amount_ordered": 210,
        "base_shipping_amount": 0,
        "cc_exp_year": "0",
        "cc_last4": null,
        "cc_ss_start_month": "0",
        "cc_ss_start_year": "0",
        "entity_id": 18,
        "method": "checkmo",
        "parent_id": 18,
        "shipping_amount": 0,
        "extension_attributes": []
      },
      "status_histories": [
        {
          "comment": "Another test",
          "created_at": "2018-04-27 06:20:53",
          "entity_id": 307,
          "entity_name": "order",
          "is_customer_notified": 1,
          "is_visible_on_front": 0,
          "parent_id": 18,
          "status": "pending"
        },
        {
          "comment": "This is a test",
          "created_at": "2018-04-27 06:16:40",
          "entity_id": 306,
          "entity_name": "order",
          "is_customer_notified": 1,
          "is_visible_on_front": 0,
          "parent_id": 18,
          "status": "pending"
        },
        {
          "comment": "This is a test",
          "created_at": "2018-04-27 06:13:27",
          "entity_id": 305,
          "entity_name": "order",
          "is_customer_notified": 1,
          "is_visible_on_front": 0,
          "parent_id": 18,
          "status": "pending"
        },
        {
          "comment": "This is a test",
          "created_at": "2018-04-27 06:13:15",
          "entity_id": 304,
          "entity_name": "order",
          "is_customer_notified": 1,
          "is_visible_on_front": 0,
          "parent_id": 18,
          "status": "pending"
        }
      ],
      "extension_attributes": {
        "shipping_assignments": [
          {
            "shipping": {
              "address": {
                "address_type": "shipping",
                "city": "London",
                "country_id": "TW",
                "customer_address_id": 0,
                "email": "example2@rezolve.com",
                "entity_id": 35,
                "firstname": "Jane",
                "lastname": "Doe",
                "parent_id": 18,
                "postcode": "12345",
                "region": "Changhua",
                "region_code": "CHA",
                "region_id": 544,
                "street": [
                  "The Cottage"
                ],
                "telephone": "01245 789450"
              },
              "method": "storepickup_storepickup",
              "total": {
                "base_shipping_amount": 0,
                "base_shipping_discount_amount": 0,
                "base_shipping_incl_tax": 0,
                "base_shipping_tax_amount": 0,
                "shipping_amount": 0,
                "shipping_discount_amount": 0,
                "shipping_discount_tax_compensation_amount": 0,
                "shipping_incl_tax": 0,
                "shipping_tax_amount": 0
              }
            },
            "items": [
              {
                "amount_refunded": 0,
                "base_amount_refunded": 0,
                "base_discount_amount": 0,
                "base_discount_invoiced": 0,
                "base_discount_tax_compensation_amount": 0,
                "base_original_price": 10,
                "base_price": 9.52,
                "base_price_incl_tax": 10,
                "base_row_invoiced": 0,
                "base_row_total": 9.52,
                "base_row_total_incl_tax": 10,
                "base_tax_amount": 0.48,
                "base_tax_invoiced": 0,
                "created_at": "2018-04-18 08:38:06",
                "discount_amount": 0,
                "discount_invoiced": 0,
                "discount_percent": 0,
                "free_shipping": 0,
                "discount_tax_compensation_amount": 0,
                "is_qty_decimal": 0,
                "is_virtual": 0,
                "item_id": 23,
                "name": "Belts",
                "no_discount": 0,
                "order_id": 18,
                "original_price": 10,
                "price": 9.52,
                "price_incl_tax": 10,
                "product_id": 38,
                "product_type": "simple",
                "qty_canceled": 0,
                "qty_invoiced": 0,
                "qty_ordered": 1,
                "qty_refunded": 0,
                "qty_shipped": 0,
                "quote_item_id": 212,
                "row_invoiced": 0,
                "row_total": 9.52,
                "row_total_incl_tax": 10,
                "row_weight": 1,
                "sku": "Belts",
                "store_id": 1,
                "tax_amount": 0.48,
                "tax_invoiced": 0,
                "tax_percent": 5,
                "updated_at": "2018-04-18 08:38:06",
                "weight": 1,
                "extension_attributes": []
              },
              {
                "amount_refunded": 0,
                "base_amount_refunded": 0,
                "base_discount_amount": 0,
                "base_discount_invoiced": 0,
                "base_discount_tax_compensation_amount": 0,
                "base_original_price": 200,
                "base_price": 190.48,
                "base_price_incl_tax": 200,
                "base_row_invoiced": 0,
                "base_row_total": 190.48,
                "base_row_total_incl_tax": 200,
                "base_tax_amount": 9.52,
                "base_tax_invoiced": 0,
                "created_at": "2018-04-18 08:38:06",
                "discount_amount": 0,
                "discount_invoiced": 0,
                "discount_percent": 0,
                "free_shipping": 0,
                "discount_tax_compensation_amount": 0,
                "is_qty_decimal": 0,
                "is_virtual": 0,
                "item_id": 24,
                "name": "Kerchiefs",
                "no_discount": 0,
                "order_id": 18,
                "original_price": 200,
                "price": 190.48,
                "price_incl_tax": 200,
                "product_id": 22,
                "product_type": "simple",
                "qty_canceled": 0,
                "qty_invoiced": 0,
                "qty_ordered": 1,
                "qty_refunded": 0,
                "qty_shipped": 0,
                "quote_item_id": 213,
                "row_invoiced": 0,
                "row_total": 190.48,
                "row_total_incl_tax": 200,
                "row_weight": 1,
                "sku": "Kerchiefs",
                "store_id": 1,
                "tax_amount": 9.52,
                "tax_invoiced": 0,
                "tax_percent": 5,
                "updated_at": "2018-04-18 08:38:06",
                "weight": 1,
                "extension_attributes": []
              }
            ]
          }
        ]
      }
    },
    {
      "base_currency_code": "TWD",
      "base_discount_amount": 0,
      "base_grand_total": 1,
      "base_discount_tax_compensation_amount": 0,
      "base_shipping_amount": 0,
      "base_shipping_discount_amount": 0,
      "base_shipping_incl_tax": 0,
      "base_shipping_tax_amount": 0,
      "base_subtotal": 0.95,
      "base_subtotal_incl_tax": 1,
      "base_tax_amount": 0.05,
      "base_total_due": 1,
      "base_to_global_rate": 1,
      "base_to_order_rate": 1,
      "billing_address_id": 722,
      "created_at": "2018-05-11 11:13:50",
      "customer_email": "example@rezolve.com",
      "customer_firstname": "John",
      "customer_group_id": 1,
      "customer_id": 182,
      "customer_is_guest": 0,
      "customer_lastname": "Doe",
      "customer_note_notify": 1,
      "discount_amount": 0,
      "email_sent": 1,
      "entity_id": 361,
      "global_currency_code": "TWD",
      "grand_total": 1,
      "discount_tax_compensation_amount": 0,
      "increment_id": "000000361",
      "is_virtual": 0,
      "order_currency_code": "TWD",
      "protect_code": "b12099",
      "quote_id": 846,
      "shipping_amount": 0,
      "shipping_description": "Flat Rate - Fixed",
      "shipping_discount_amount": 0,
      "shipping_discount_tax_compensation_amount": 0,
      "shipping_incl_tax": 0,
      "shipping_tax_amount": 0,
      "state": "new",
      "status": "pending",
      "store_currency_code": "TWD",
      "store_id": 1,
      "store_name": "UAT Use Only\nMain Website Store\n",
      "store_to_base_rate": 0,
      "store_to_order_rate": 0,
      "subtotal": 0.95,
      "subtotal_incl_tax": 1,
      "tax_amount": 0.05,
      "total_due": 1,
      "total_item_count": 1,
      "total_qty_ordered": 1,
      "updated_at": "2018-05-11 11:13:53",
      "weight": 1,
      "items": [
        {
          "amount_refunded": 0,
          "base_amount_refunded": 0,
          "base_discount_amount": 0,
          "base_discount_invoiced": 0,
          "base_discount_tax_compensation_amount": 0,
          "base_original_price": 1,
          "base_price": 0.95,
          "base_price_incl_tax": 1,
          "base_row_invoiced": 0,
          "base_row_total": 0.95,
          "base_row_total_incl_tax": 1,
          "base_tax_amount": 0.05,
          "base_tax_invoiced": 0,
          "created_at": "2018-05-11 11:13:50",
          "discount_amount": 0,
          "discount_invoiced": 0,
          "discount_percent": 0,
          "free_shipping": 0,
          "discount_tax_compensation_amount": 0,
          "is_qty_decimal": 0,
          "is_virtual": 0,
          "item_id": 380,
          "name": "Register for a Test Drive",
          "no_discount": 0,
          "order_id": 361,
          "original_price": 1,
          "price": 0.95,
          "price_incl_tax": 1,
          "product_id": 41,
          "product_type": "simple",
          "qty_canceled": 0,
          "qty_invoiced": 0,
          "qty_ordered": 1,
          "qty_refunded": 0,
          "qty_shipped": 0,
          "quote_item_id": 2672,
          "row_invoiced": 0,
          "row_total": 0.95,
          "row_total_incl_tax": 1,
          "row_weight": 1,
          "sku": "Test-Drive",
          "store_id": 1,
          "tax_amount": 0.05,
          "tax_invoiced": 0,
          "tax_percent": 5,
          "updated_at": "2018-05-11 11:13:50",
          "weight": 1,
          "extension_attributes": {
            "rezolve_placement_id": "0"
          }
        }
      ],
      "billing_address": {
        "address_type": "billing",
        "city": "CHA",
        "country_id": "TW",
        "email": "example@rezolve.com",
        "entity_id": 722,
        "firstname": "John",
        "lastname": "Doe",
        "parent_id": 361,
        "postcode": "123456",
        "region": " ",
        "region_code": " ",
        "street": [
          "test122",
          "Changhua County"
        ],
        "telephone": "1763866069"
      },
      "payment": {
        "account_status": null,
        "additional_information": [
          "Check / Money order",
          null,
          null
        ],
        "amount_ordered": 1,
        "base_amount_ordered": 1,
        "base_shipping_amount": 0,
        "cc_last4": null,
        "entity_id": 361,
        "method": "checkmo",
        "parent_id": 361,
        "shipping_amount": 0,
        "extension_attributes": []
      },
      "status_histories": [],
      "extension_attributes": {
        "shipping_assignments": [
          {
            "shipping": {
              "address": {
                "address_type": "shipping",
                "city": "CHA",
                "country_id": "TW",
                "email": "example2@rezolve.com",
                "entity_id": 721,
                "firstname": "John",
                "lastname": "Doe",
                "parent_id": 361,
                "postcode": "123456",
                "region": " ",
                "region_code": " ",
                "street": [
                  "test122",
                  "Changhua County"
                ],
                "telephone": "1763866069"
              },
              "method": "flatrate_flatrate",
              "total": {
                "base_shipping_amount": 0,
                "base_shipping_discount_amount": 0,
                "base_shipping_incl_tax": 0,
                "base_shipping_tax_amount": 0,
                "shipping_amount": 0,
                "shipping_discount_amount": 0,
                "shipping_discount_tax_compensation_amount": 0,
                "shipping_incl_tax": 0,
                "shipping_tax_amount": 0
              }
            },
            "items": [
              {
                "amount_refunded": 0,
                "base_amount_refunded": 0,
                "base_discount_amount": 0,
                "base_discount_invoiced": 0,
                "base_discount_tax_compensation_amount": 0,
                "base_original_price": 1,
                "base_price": 0.95,
                "base_price_incl_tax": 1,
                "base_row_invoiced": 0,
                "base_row_total": 0.95,
                "base_row_total_incl_tax": 1,
                "base_tax_amount": 0.05,
                "base_tax_invoiced": 0,
                "created_at": "2018-05-11 11:13:50",
                "discount_amount": 0,
                "discount_invoiced": 0,
                "discount_percent": 0,
                "free_shipping": 0,
                "discount_tax_compensation_amount": 0,
                "is_qty_decimal": 0,
                "is_virtual": 0,
                "item_id": 380,
                "name": "Register for a Test Drive",
                "no_discount": 0,
                "order_id": 361,
                "original_price": 1,
                "price": 0.95,
                "price_incl_tax": 1,
                "product_id": 41,
                "product_type": "simple",
                "qty_canceled": 0,
                "qty_invoiced": 0,
                "qty_ordered": 1,
                "qty_refunded": 0,
                "qty_shipped": 0,
                "quote_item_id": 2672,
                "row_invoiced": 0,
                "row_total": 0.95,
                "row_total_incl_tax": 1,
                "row_weight": 1,
                "sku": "Test-Drive",
                "store_id": 1,
                "tax_amount": 0.05,
                "tax_invoiced": 0,
                "tax_percent": 5,
                "updated_at": "2018-05-11 11:13:50",
                "weight": 1,
                "extension_attributes": {
                  "rezolve_placement_id": "0"
                }
              }
            ]
          }
        ],
        "rezolve_order_id": "9458",
        "rezolve_partner_id": "36"
      }
    },
    {
      "base_currency_code": "TWD",
      "base_discount_amount": 0,
      "base_grand_total": 1500,
      "base_discount_tax_compensation_amount": 0,
      "base_shipping_amount": 0,
      "base_shipping_discount_amount": 0,
      "base_shipping_incl_tax": 0,
      "base_shipping_tax_amount": 0,
      "base_subtotal": 1428.57,
      "base_subtotal_incl_tax": 1500,
      "base_tax_amount": 71.43,
      "base_total_due": 1500,
      "base_to_global_rate": 1,
      "base_to_order_rate": 1,
      "billing_address_id": 818,
      "created_at": "2018-05-15 12:02:00",
      "customer_email": "example3@rezolve.com",
      "customer_firstname": "Jeff",
      "customer_group_id": 1,
      "customer_id": 185,
      "customer_is_guest": 0,
      "customer_lastname": "Doe",
      "customer_note_notify": 1,
      "discount_amount": 0,
      "email_sent": 1,
      "entity_id": 409,
      "global_currency_code": "TWD",
      "grand_total": 1500,
      "discount_tax_compensation_amount": 0,
      "increment_id": "000000409",
      "is_virtual": 0,
      "order_currency_code": "TWD",
      "protect_code": "b3457d",
      "quote_id": 935,
      "shipping_amount": 0,
      "shipping_description": "Flat Rate - Fixed",
      "shipping_discount_amount": 0,
      "shipping_discount_tax_compensation_amount": 0,
      "shipping_incl_tax": 0,
      "shipping_tax_amount": 0,
      "state": "new",
      "status": "pending",
      "store_currency_code": "TWD",
      "store_id": 1,
      "store_name": "UAT Use Only\nMain Website Store\n",
      "store_to_base_rate": 0,
      "store_to_order_rate": 0,
      "subtotal": 1428.57,
      "subtotal_incl_tax": 1500,
      "tax_amount": 71.43,
      "total_due": 1500,
      "total_item_count": 1,
      "total_qty_ordered": 1,
      "updated_at": "2018-05-15 12:02:03",
      "weight": 1,
      "items": [
        {
          "amount_refunded": 0,
          "base_amount_refunded": 0,
          "base_discount_amount": 0,
          "base_discount_invoiced": 0,
          "base_discount_tax_compensation_amount": 0,
          "base_original_price": 1500,
          "base_price": 1428.57,
          "base_price_incl_tax": 1500,
          "base_row_invoiced": 0,
          "base_row_total": 1428.57,
          "base_row_total_incl_tax": 1500,
          "base_tax_amount": 71.43,
          "base_tax_invoiced": 0,
          "created_at": "2018-05-15 12:02:00",
          "discount_amount": 0,
          "discount_invoiced": 0,
          "discount_percent": 0,
          "free_shipping": 0,
          "discount_tax_compensation_amount": 0,
          "is_qty_decimal": 0,
          "is_virtual": 0,
          "item_id": 463,
          "name": "Avocados",
          "no_discount": 0,
          "order_id": 409,
          "original_price": 1500,
          "price": 1428.57,
          "price_incl_tax": 1500,
          "product_id": 29,
          "product_type": "simple",
          "qty_canceled": 0,
          "qty_invoiced": 0,
          "qty_ordered": 1,
          "qty_refunded": 0,
          "qty_shipped": 0,
          "quote_item_id": 4822,
          "row_invoiced": 0,
          "row_total": 1428.57,
          "row_total_incl_tax": 1500,
          "row_weight": 1,
          "sku": "Avocados",
          "store_id": 1,
          "tax_amount": 71.43,
          "tax_invoiced": 0,
          "tax_percent": 5,
          "updated_at": "2018-05-15 12:02:00",
          "weight": 1,
          "extension_attributes": []
        }
      ],
      "billing_address": {
        "address_type": "billing",
        "city": "Changhua",
        "company": "Pai",
        "country_id": "TW",
        "customer_address_id": 0,
        "email": "example3@rezolve.com",
        "entity_id": 818,
        "firstname": "Jeff",
        "lastname": "Doe",
        "parent_id": 409,
        "postcode": "123456",
        "street": [
          "H2 Changhua County"
        ],
        "telephone": "7894561235"
      },
      "payment": {
        "account_status": null,
        "additional_information": [
          "Check / Money order",
          null,
          null
        ],
        "amount_ordered": 1500,
        "base_amount_ordered": 1500,
        "base_shipping_amount": 0,
        "cc_exp_year": "0",
        "cc_last4": null,
        "cc_ss_start_month": "0",
        "cc_ss_start_year": "0",
        "entity_id": 409,
        "method": "checkmo",
        "parent_id": 409,
        "shipping_amount": 0,
        "extension_attributes": []
      },
      "status_histories": [],
      "extension_attributes": {
        "shipping_assignments": [
          {
            "shipping": {
              "address": {
                "address_type": "shipping",
                "city": "Changhua",
                "company": "Pai",
                "country_id": "TW",
                "customer_address_id": 0,
                "email": "example3@rezolve.com",
                "entity_id": 817,
                "firstname": "Jeff",
                "lastname": "Doe",
                "parent_id": 409,
                "postcode": "123456",
                "street": [
                  "H2 Changhua County"
                ],
                "telephone": "7894561235"
              },
              "method": "flatrate_flatrate",
              "total": {
                "base_shipping_amount": 0,
                "base_shipping_discount_amount": 0,
                "base_shipping_incl_tax": 0,
                "base_shipping_tax_amount": 0,
                "shipping_amount": 0,
                "shipping_discount_amount": 0,
                "shipping_discount_tax_compensation_amount": 0,
                "shipping_incl_tax": 0,
                "shipping_tax_amount": 0
              }
            },
            "items": [
              {
                "amount_refunded": 0,
                "base_amount_refunded": 0,
                "base_discount_amount": 0,
                "base_discount_invoiced": 0,
                "base_discount_tax_compensation_amount": 0,
                "base_original_price": 1500,
                "base_price": 1428.57,
                "base_price_incl_tax": 1500,
                "base_row_invoiced": 0,
                "base_row_total": 1428.57,
                "base_row_total_incl_tax": 1500,
                "base_tax_amount": 71.43,
                "base_tax_invoiced": 0,
                "created_at": "2018-05-15 12:02:00",
                "discount_amount": 0,
                "discount_invoiced": 0,
                "discount_percent": 0,
                "free_shipping": 0,
                "discount_tax_compensation_amount": 0,
                "is_qty_decimal": 0,
                "is_virtual": 0,
                "item_id": 463,
                "name": "Avocados",
                "no_discount": 0,
                "order_id": 409,
                "original_price": 1500,
                "price": 1428.57,
                "price_incl_tax": 1500,
                "product_id": 29,
                "product_type": "simple",
                "qty_canceled": 0,
                "qty_invoiced": 0,
                "qty_ordered": 1,
                "qty_refunded": 0,
                "qty_shipped": 0,
                "quote_item_id": 4822,
                "row_invoiced": 0,
                "row_total": 1428.57,
                "row_total_incl_tax": 1500,
                "row_weight": 1,
                "sku": "Avocados",
                "store_id": 1,
                "tax_amount": 71.43,
                "tax_invoiced": 0,
                "tax_percent": 5,
                "updated_at": "2018-05-15 12:02:00",
                "weight": 1,
                "extension_attributes": []
              }
            ]
          }
        ]
      }
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "status",
            "value": "pending",
            "condition_type": "eq"
          }
        ]
      }
    ]
  },
  "total_count": 3
}