Get Orders by Client ID

Endpoint: https://rest.virtualincentives.com/{version}/{format}/orders?clientid={clientid}

Method: GET

Definitions

FieldTypeDescription
programidintegerThe programid that the order was placed under.
datedatetimeOrder date for the request order. Format: MM/dd/yyyy HH:mm
statusstring(50)Order status for the requested order.

Note: See Appendix A for definitions.
numberresponse only
integer
Order number generated upon successful creation.
clientidstring(50)Client supplied unique identifier for the order.

Examples

Response XML

<orders>
  <order>
    <number>27213905</number>
    <date>04/17/2018 18:10</date>
    <programid>26154</programid>
    <clientid />
    <status>completed</status>
  </order>
  <order>
    <number>27213909</number>
    <date>04/17/2018 18:13</date>
    <programid>26155</programid>
    <clientid />
    <status>completed</status>
  </order>
  <order>
    <number>27285729</number>
    <date>05/10/2018 15:07</date>
    <programid>26166</programid>
    <clientid />
    <status>completed</status>
  </order>
</orders>

Response JSON

{
  "orders": {
    "order": [
      {
        "number": "27213905",
        "date": "04/17/2018 18:10",
        "programid": "26154",
        "clientid": "",
        "status": "completed"
      },
      {
        "number": "27213909",
        "date": "04/17/2018 18:13",
        "programid": "26155",
        "clientid": "",
        "status": "completed"
      },
      {
        "number": "27285729",
        "date": "05/10/2018 15:07",
        "programid": "26166",
        "clientid": "",
        "status": "completed"
      }
    ]
  }
}

© Copyright 2019. All other rights reserved.