Skip to content

CreditSettlement

Return, create and delete settled customer credits

Released
Updated
URLSupports
/{cf_uri}/Sale/CreditSettlement
GETPOSTDELETE

Attribute Details

Paging: default page size is set to 400 with a maximum of 1000 results.

AttributeTypeNotes
UIDGuid (36)Unique guid identifier created for a settled credit note.
CreditFromInvoiceobjectThe following set of information pulls through details for a sales credit invoice.
CreditFromInvoice.UID
Required
Guid (36)Foreign Key : Unique identifier for an invoice in the form of a guid.
CreditFromInvoice.Number
Read-only
String (8)Sales invoice number
CreditFromInvoice.URI
Read-only
StringUniform resource identifier associated with the invoice object.
CustomerobjectThe following set of information pulls through details for the Customer contact
Customer.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the customer assigned to the credit refund.
Customer.Name
Read-only
String (30)Name of the customer contact.
Customer.DisplayIDString (15)Customer contact Card ID, can also be used as a unique customer contact identifier.
Customer.URI
Read-only
StringUniform resource identifier associated with the customer object.
NumberString (13)Cheque credit number, optional on POST as will auto increment based upon last recorded if left blank.
Date
Required
DateTimeTransaction date, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-12-17 15:33:02' }
CreditAmountDecimal (13.2)Total credit amount to be applied, can only be less than or equal to CreditFromInvoice amount.
MemoString (255)Memo text describing the settled credit.
LinesarrayThe following set of information pulls through line details for the credit settlement.
Lines.Type
Required
StringSale type which can consist of the following: Invoice Order
Lines.SaleobjectThe following set of information pulls through details for a sales transaction.
Lines.Sale.UID
Required
Guid (36)Foreign Key : Unique identifier for an sales transaction in the form of a guid.
Lines.Sale.Number
Read-only
String (8)Sales transaction number.
Lines.Sale.URI
Read-only
StringUniform resource identifier associated with the sales transaction object.
Lines.AmountApplied
Required
Decimal (13.2)Credit amount applied to sales transactions, amount must be greater than 0.
ForeignCurrencyobjectNull if no foreign currency is set.
ForeignCurrency.UID
Read-only
Guid (36)Foreign Key : Unique identifier for the currency in the form of a guid.
ForeignCurrency.Code
Read-only
String (3)The currency code.
ForeignCurrency.CurrencyName
Read-only
StringThe full name of the currency
ForeignCurrency.URI
Read-only
StringUniform resource identifier associated with the currency object.
URI
Read-only
StringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
RowVersionStringIncrementing number that can be used for change control but does does not preserve a date or a time.

Example json GET response

Example

json
{
  "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.