Use Case for Finding Vendors that are Assigned an Expense Account

Use the GET command and query with the id of the expense account to get the list of vendors that are assigned an expense account.

          GET {{REST_SERVICES}}/record/v1/vendor/?q=expenseaccount EQUAL "10" 

        

Following is a sample response:

          {
    "links": [
        {
            "rel": "self",
            "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/vendor/?q=expenseaccount+EQUAL+%2210%22"
        }
    ],
    "count": 3,
    "hasMore": false,
    "items": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/vendor/1723"
                }
            ],
            "id": "1723"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/vendor/1722"
                }
            ],
            "id": "1722"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/vendor/1823"
                }
            ],
            "id": "1823"
        }
    ],
    "offset": 0,
    "totalResults": 3
} 

        

Related Topics

General Notices