CreditSettlement
Return, create and delete settled customer credits
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Sale/CreditSettlement |
Attribute Details
Paging: default page size is set to 400 with a maximum of 1000 results.
| Attribute | Type | Notes |
|---|---|---|
UID | Guid (36) | Unique guid identifier created for a settled credit note. |
CreditFromInvoice | object | The following set of information pulls through details for a sales credit invoice. |
CreditFromInvoice.UID | Guid (36) | Foreign Key : Unique identifier for an invoice in the form of a guid. |
CreditFromInvoice.Number | String (8) | Sales invoice number |
CreditFromInvoice.URI | String | Uniform resource identifier associated with the invoice object. |
Customer | object | The following set of information pulls through details for the Customer contact |
Customer.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the customer assigned to the credit refund. |
Customer.Name | String (30) | Name of the customer contact. |
Customer.DisplayID | String (15) | Customer contact Card ID, can also be used as a unique customer contact identifier. |
Customer.URI | String | Uniform resource identifier associated with the customer object. |
Number | String (13) | Cheque credit number, optional on POST as will auto increment based upon last recorded if left blank. |
Date | DateTime | Transaction date, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-12-17 15:33:02' } |
CreditAmount | Decimal (13.2) | Total credit amount to be applied, can only be less than or equal to CreditFromInvoice amount. |
Memo | String (255) | Memo text describing the settled credit. |
Lines | array | The following set of information pulls through line details for the credit settlement. |
Lines.Type | String | Sale type which can consist of the following: Invoice Order |
Lines.Sale | object | The following set of information pulls through details for a sales transaction. |
Lines.Sale.UID | Guid (36) | Foreign Key : Unique identifier for an sales transaction in the form of a guid. |
Lines.Sale.Number | String (8) | Sales transaction number. |
Lines.Sale.URI | String | Uniform resource identifier associated with the sales transaction object. |
Lines.AmountApplied | Decimal (13.2) | Credit amount applied to sales transactions, amount must be greater than 0. |
ForeignCurrency | object | Null if no foreign currency is set. |
ForeignCurrency.UID | Guid (36) | Foreign Key : Unique identifier for the currency in the form of a guid. |
ForeignCurrency.Code | String (3) | The currency code. |
ForeignCurrency.CurrencyName | String | The full name of the currency |
ForeignCurrency.URI | String | Uniform resource identifier associated with the currency object. |
URI | String | Uniform resource identifier encompasses all types of names and addresses that refer to objects on the web. |
RowVersion | String | Incrementing number that can be used for change control but does does not preserve a date or a time. |
Example json GET response
Example
{
"UID": "de47923b-9cb7-4ade-a3eb-58d7f95460c1",
"Number": "SJ000001",
"Date": "2013-10-25T00:00:00",
"CreditAmount": "92.5",
"Memo": "Island Way Motel: Credit from 00000068",
"Type": "Invoice",
"AmountApplied": "92.50",
"URI": "{cf_uri}/Sale/CreditSettlement/de47923b-9cb7-4ade-a3eb-58d7f95460c1",
"RowVersion": "-5217983118262140928"
}The {cf_uri} is provided by the businessId parameter as described here.