Skip to content

CreditRefund

Return, create and delete credit notes refunded to customers.

Released
Updated
URLSupports
/{cf_uri}/Sale/CreditRefund
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 credit note refund.
AccountobjectThe following set of information pulls through details for an Account
Account.UID
Required
Guid (36)Foreign Key : Unique identifier for the account in the form of a guid.
Account.Name
Read-only
String (30)Account name belonging to the account record.
Account.DisplayID
Read-only
String (6)Account code format includes separator ie 4-1100 { 'DisplayID': '4-1100' }
Account.URI
Read-only
StringUniform resource identifier associated with the account object.
InvoiceobjectThe following set of information pulls through details for a sale invoice.
Invoice.UID
Required
Guid (36)Foreign Key : Unique identifier for an invoice in the form of a guid.
Invoice.Number
Read-only
String (8)Sales invoice number
Invoice.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.
PayeeString (255)Payee address on the credit note belonging to the customer contact.
Date
Required
DateTimeTransaction date, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-11-30 16:35:02' }
Amount
Required
Decimal (13.2)Total credit amount to be refunded, can be equal to or less than the invoice amount.
MemoString (255)Memo text describing the credit refund.
ChequePrintedBooleanTrue indicates the credit refund has been already printed. False indicates the credit refund has not been printed.
DeliveryStatusString (20)Remittance advise delivery status assigned to credit note: Print = ToBePrinted Email = ToBeEmailed PrintAndEmail = ToBePrintedAndEmailed Nothing = AlreadyPrintedOrSent
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.
RowVersionStringNumber value that changes upon a record update, can be used for change control but does does not preserve a date or a time.

Example json GET response

Example

json
{
  "UID": "96041019-25b7-4c19-9a92-31ae03e4a1d0",
  "Number": "107",
  "Payee": "Chelsea Mosset 63 Travers Drive Gosford NSW 2430 Australia",
  "Date": "2013-08-19T00:00:00",
  "Amount": "23.76",
  "Memo": "Chelsea Mosset: Credit from 00000013",
  "ChequePrinted": "false",
  "DeliveryStatus": "Print",
  "URI": "{cf_uri}/Sale/CreditRefund/96041019-25b7-4c19-9a92-31ae03e4a1d0",
  "RowVersion": "6592988379493695488"
}

The {cf_uri} is provided by the businessId parameter as described here.