Use Case for Fetching Credit Memos from a Lead Source

To fetch credit memos from a lead source, query the lead source's ID in the request.

          GET {{REST_SERVICES}}/record/v1/creditmemo/?q=leadsource EQUAL "-2" 

        

In the response body, you will get all the credit memos from the requested lead source, something like this:

          {
    "links": [
        {
            "rel": "self",
            "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/?q=leadsource+EQUAL+%22-2%22"
        }
    ],
    "count": 2,
    "hasMore": false,
    "items": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/1818"
                }
            ],
            "id": "1818"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/1919"
                }
            ],
            "id": "1919"
        }
    ],
    "offset": 0,
    "totalResults": 2
} 

        

Related Topics

Credit Memo Use Cases
Use Case for Creating a Credit Memo
Use Case for Adding Line Items to a Credit Memo
Use Case for Fetching List of Credit Memos Created After a Date
Use Case for Getting Details of a Credit Memo

General Notices