Use Case for Fetching List of Cash Sales for a Customer
Use the GET command and query with the customer id to get the list of cash sales from a customer.
GET {{REST_SERVICES}}/record/v1/cashsale/?q=entity EQUAL "14"
Following is an example of the response:
{
"links": [
{
"rel": "self",
"href": "https://5629979.suitetalk.api.netsuite.com/services/rest/record/v1/cashsale/?q=entity+EQUAL+%2214%22"
}
],
"count": 3,
"hasMore": false,
"items": [
{
"links": [
{
"rel": "self",
"href": "https://5629979.suitetalk.api.netsuite.com/services/rest/record/v1/cashsale/2121"
}
],
"id": "2121"
},
{
"links": [
{
"rel": "self",
"href": "https://5629979.suitetalk.api.netsuite.com/services/rest/record/v1/cashsale/2122"
}
],
"id": "2122"
},
{
"links": [
{
"rel": "self",
"href": "https://5629979.suitetalk.api.netsuite.com/services/rest/record/v1/cashsale/2123"
}
],
"id": "2123"
}
],
"offset": 0,
"totalResults": 3
}