salesCreditMemos resource type

Represents a sales credit memo in Dynamics 365 Business Central.

Note

For information about enabling APIs for Dynamics NAV see Enabling the APIs for Microsoft Dynamics NAV.

Methods

Method Return Type Description
GET salesCreditMemos salesCreditMemos Gets a sales credit memo object.
POST salesCreditMemos salesCreditMemos Creates a sales credit memo object.
PATCH salesCreditMemos salesCreditMemos Update a sales credit memo object.
DELETE salesCreditMemos none Delete a sales credit memo object.

Bound actions

Action Return type Description
GET pdfDocument pdfDocument Gets a PDF document.

Properties

Property Type Description
id GUID The credit memo ID. Non-editable.
number string, maximum size 20 The credit memo number. Read-Only.
creditMemoDate date The credit memo date
dueDate date The date the credit memo is due.
customerId GUID The id of the credit memo customer.
contactId string, maximum size 250 The exchange contact id for the given customer. If a customer id is not specified, we will use the contact id to find it.
customerNumber string, maximum size 20 The customer number for the credit memo.
customerName string, maximum size 50 The full name of the customer. Read-Only.
billingPostalAddress complex The billing postal address for the credit memo.
currencyId GUID The id of the credit memo currency.
currencyCode string, maximum size 10 The currency code for the credit memo.
paymentTermsId GUID The id of the credit memo payment term.
paymentTerms string, maximum size 10 The payment terms of the credit memo.
salesperson string, maximum size 20 The salesperson code for the credit memo.
pricesIncludeTax boolean Specifies whether the prices include Tax or not. Read-Only.
discountAmount numeric The credit memo discount amount
discountAppliedBeforeTax boolean Specifies whether the discount is applied before tax.
totalAmountExcludingTax numeric The total amount excluding tax. Read-Only.
totalTaxAmount numeric The total tax amount for the credit memo. Read-Only.
totalAmountIncludingTax numeric The total amount for the credit memo, including tax. Read-Only.
status string, maximum size 20 The credit memo status. Status can be: Draft, In Review, Open, Paid, Canceled, or Corrective. Read-Only.
lastModifiedDateTime datetime The last datetime the sales credit memo was modified. Read-Only.
invoiceId GUID The sales invoice ID that the credit memo is linked to.
invoiceNumber GUID The sales invoice number that the credit memo is linked to.

Relationships

A Currency (currencyCode) must exist in the Currencies table.

A Payment Term (paymentTerms) must exist in the Payment Terms table.

A Customer (customerId) must exist in the Customer table.

An Invoice (invoiceId) must exist in the Sales Invoice table.

JSON representation

Here is a JSON representation of the resource.

{
      "id": "GUID",
      "number": "string",
      "creditMemoDate": "Date",
      "dueDate": "Date",
      "customerId": "GUID",
      "contactId": "string",
      "customerNumber": "string",
      "customerName": "string",
      "billingPostalAddress": {NAV.PostalAddress},
      "currencyId": "GUID",
      "currencyCode": "string",
      "paymentTermsId": "GUID",
      "paymentTerms": "string",
      "salesperson": "string",
      "pricesIncludeTax": "boolean",
      "discountAmount": "decimal",
      "discountAppliedBeforeTax": "boolean",
      "totalAmountExcludingTax": "decimal",
      "totalTaxAmount": "decimal",
      "totalAmountIncludingTax": "decimal",
      "status": "string",
      "lastModifiedDateTime": "DateTime",
      "invoiceId" : "GUID",
      "invoiceNumber" : "string"
}

See also

Graph Reference
Working with Dynamics 365 Business Central in Microsoft Graph
Enabling the APIs for Microsoft Dynamics NAV
Endpoints for the APIs
Error Codes
Get Sales Credit Memo
Create Sales Credit Memo
Update Sales Credit Memo
Delete Sales Credit Memo