Use Case for Fetching List of Credit Memos Created After a Date

Use the GET command and query with the createddate field to get a list of credit memos after the specified date.

          GET {{REST_SERVICES}}/record/v1/creditmemo/?q=createddate AFTER "03/14/2023" 

        

In response you will get the list of credit memos, something like this:

          {
    "links": [
        {
            "rel": "self",
            "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/?q=createddate+AFTER+%2203%2F14%2F2023%22"
        }
    ],
    "count": 3,
    "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/1819"
                }
            ],
            "id": "1819"
        },
        {
            "links": [
                {
                    "rel": "self",
                    "href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/1919"
                }
            ],
            "id": "1919"
        }
    ],
    "offset": 0,
    "totalResults": 3
} 

        

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 Credit Memos from a Lead Source
Use Case for Getting Details of a Credit Memo

General Notices