CreditRefund
Return, create and delete credit notes refunded to customers.
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Sale/CreditRefund |
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 credit note refund. |
Account | object | The following set of information pulls through details for an Account |
Account.UID | Guid (36) | Foreign Key : Unique identifier for the account in the form of a guid. |
Account.Name | String (30) | Account name belonging to the account record. |
Account.DisplayID | String (6) | Account code format includes separator ie 4-1100 { 'DisplayID': '4-1100' } |
Account.URI | String | Uniform resource identifier associated with the account object. |
Invoice | object | The following set of information pulls through details for a sale invoice. |
Invoice.UID | Guid (36) | Foreign Key : Unique identifier for an invoice in the form of a guid. |
Invoice.Number | String (8) | Sales invoice number |
Invoice.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. |
Payee | String (255) | Payee address on the credit note belonging to the customer contact. |
Date | DateTime | Transaction date, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-11-30 16:35:02' } |
Amount | Decimal (13.2) | Total credit amount to be refunded, can be equal to or less than the invoice amount. |
Memo | String (255) | Memo text describing the credit refund. |
ChequePrinted | Boolean | True indicates the credit refund has been already printed. False indicates the credit refund has not been printed. |
DeliveryStatus | String (20) | Remittance advise delivery status assigned to credit note: Print = ToBePrinted Email = ToBeEmailed PrintAndEmail = ToBePrintedAndEmailed Nothing = AlreadyPrintedOrSent |
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 | Number 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
{
"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.