Use Case for Getting Details of a Credit Memo
Use the GET command and query with internal ID of the credit memo to retrieve the details. In the following example, the internal ID of the credit memo is 1819.
GET {{REST_SERVICES}}/record/v1/creditmemo/1819/
The response will look something like this:
{
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/1819/"
}
],
"amountPaid": 0.0,
"amountRemaining": 10.0,
"applied": 0.0,
"billingAddress": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/1819/billingAddress"
}
]
},
"createdDate": "2023-03-30T10:14:00Z",
"currency": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/currency/1"
}
],
"id": "1",
"refName": "USA"
},
"custbody_atlas_exist_cust_hdn": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/customlist_atlas_cust_type/2"
}
],
"id": "2",
"refName": "Existing Customer"
},
"custbody_atlas_new_cust_hdn": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/customlist_atlas_cust_type/1"
}
],
"id": "1",
"refName": "New Customer"
},
"custbody_atlas_no_hdn": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/customlist_atlas_appr_by_creator/2"
}
],
"id": "2",
"refName": "No"
},
"custbody_atlas_yes_hdn": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/customlist_atlas_appr_by_creator/1"
}
],
"id": "1",
"refName": "Yes"
},
"custbody_esc_created_date": "2023-03-30",
"custbody_esc_last_modified_date": "2023-03-31",
"customForm": {
"id": "94",
"refName": "Standard Credit Memo"
},
"email": "customer@example.com",
"entity": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/customer/14"
}
],
"id": "14",
"refName": "1 Company 1660029525"
},
"estGrossProfit": 0.0,
"estGrossProfitPercent": 0.0,
"exchangeRate": 1.0,
"id": "1819",
"item": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/1819/item"
}
]
},
"lastModifiedDate": "2023-03-31T08:57:00Z",
"location": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/location/1"
}
],
"id": "1",
"refName": "California"
},
"originator": "restWebServices",
"postingPeriod": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/accountingperiod/22"
}
],
"id": "22",
"refName": "Mar 2023"
},
"prevDate": "2023-03-30",
"salesEffectiveDate": "2023-03-30",
"shipIsResidential": false,
"shipOverride": false,
"shippingAddress": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/creditmemo/1819/shippingAddress"
}
]
},
"source": {
"id": "REST Web Services",
"refName": "REST Web Services"
},
"status": {
"id": "Open",
"refName": "Open"
},
"subsidiary": {
"links": [
{
"rel": "self",
"href": "https://<accountID>.suitetalk.api.netsuite.com/services/rest/record/v1/subsidiary/1"
}
],
"id": "1",
"refName": "Parent Company"
},
"subtotal": 10.0,
"toBeEmailed": false,
"toBeFaxed": false,
"toBePrinted": false,
"total": 10.0,
"totalCostEstimate": 10.0,
"tranDate": "2023-03-30",
"tranId": "CM02",
"unapplied": 10.0
}