Listing Orders by Order Status

Endpoint: https://rest.virtualincentives.com/{version}/{format}/order/status

Method: POST

Definitions

FieldTypeDescription
programidrequired
integer
The programid that the order was placed against.
statusstring(50)Order status of the requested order.
numberresponse only integerOrder number for the requested order.
clientidresponse only
integer
Client supplied unique identifier for the order. See Appendix A for definitions.

Examples

Request XML

<orders>
 <programid>26490</programid>
 <status>completed</status>
</orders>

Response XML

<orders>
 <programid>26490</programid>
 <status>completed</status>
 <order>
  <number>24681234</number>
  <clientid>56258125</clientid>
  <status>completed</status>
 </order>
</orders>

Request JSON

{
 "orders":{
  "programid":"26490"
  "status":"pending"
 }
}

Response JSON

{
 "orders":{
  "programid":"26490",
  "status":"pending",
  "order":[
   {
    "number":"24686669",
    "clientid":"56258125",
    "status":"pending"
   },
   {
    "number":"24686670",
    "clientid":"56258126",
    "status":"pending"
   },
   {
    "number":"24686671",
    "clientid":"56258127",
    "status":"pending"
   },
   {
    "number":"24686672",
    "clientid":"56258128",
    "status":"pending"
   }
  ]
 }
}

© Copyright 2019. All other rights reserved.