Returns a list of order that have been created and associated with the passed customer id.
Response:
{
recordCount : 2,
records : [
{
"id":914061,
"merchantId":1245412,
"type":"Sale",
"receiptNumber":"NJCTX018D3T9",
"accessCode":"P6LCPM",
"invoiceNumber":4475,
"isTaxExempt":false,
"returnReason":"",
"memo":"",
"isVoided":false,
"isVoidable":true,
"quantity":1,
"totalAmount":"68.28",
"taxAmount":"8.28",
"tipAmount":"0",
"balance":"68.28",
"purchaseOrderNumber":"",
"invoiceDate":"2013-04-16T00:00:00",
"isClick2PayEnabled":true,
"sourceType":"MXM",
"paymentType":"Invoice",
"purchases":[
{
"id":1156769,
"productName":"After School Care",
"description":"",
"quantity":1,
"price":"60",
"subTotalAmount":"60",
"taxRate":"0.1381",
"taxAmount":"8.286",
"totalAmount":"68.286",
"trackingNumber":0,
"created":"2013-04-16T14:37:27.9975174-04:00",
"taxes":[],
"discounts":[]
}
],
"discounts":[],
"customer":{
"id":237438,
"name":"Tracy High2",
"number":"26646",
"lastVisit":"2013-05-23T13:48:15.971876Z",
"receiveEmailPromotions":false,
"receiveMobilePromotions":false,
"loyaltyStatus":"NotEnrolled"
},
"billingAddress":{
"id":486329,
"description":"Billing",
"address1":"2001 Westside Pkwy2",
"address2":"",
"city":"Alpharetta",
"state":"GA",
"zip":"30004",
"country":"",
"created":"2013-04-16T18:37:28.103Z"
}
},
{
"id":106307,
"merchantId":1245412,
"type":"Sale",
"receiptNumber":"101QI00NIWAU",
"accessCode":"V8F5GO",
"invoiceNumber":4117,
"isTaxExempt":false,
"returnReason":"",
"memo":"",
"isVoided":false,
"isVoidable":true,
"totalAmount":"0",
"taxAmount":"0",
"balance":"0",
"purchaseOrderNumber":"",
"invoiceDate":"2013-02-26T00:00:00",
"isClick2PayEnabled":true,
"sourceType":"MXM",
"paymentType":"Invoice",
"purchases":[],
"discounts":[],
"customer":{
"id":237438,
"name":"Tracy High",
"number":"26646",
"lastVisit":"2013-05-23T13:48:16.034276Z",
"receiveEmailPromotions":false,
"receiveMobilePromotions":false,
"loyaltyStatus":"NotEnrolled"
},
"billingAddress":{
"id":385804,
"address1":"2001 Westside Pkwy",
"address2":"",
"city":"Alpharetta",
"state":"GA",
"zip":"30004",
"country":"",
"created":"2013-02-26T22:05:39.783Z"
}
}
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 2001