CustomerPayment
Return, create and delete customer payments
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Sale/CustomerPayment |
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 customer payment. |
DepositTo | String | If allocating a banking account for the payment specify Account If using undeposited funds specify UndepositedFunds What are undeposited funds? |
Account | object | The following set of information pulls through details for the Account |
Account.UID | Guid (36) | Foreign Key : Unique identifier for the account in the form of a guid. |
Account.Name | String (60) | Account name belonging to the account record. |
Account.DisplayID | String (6) | Account code format includes separator ie 1-1100 { 'DisplayID': '1-1100' } |
Account.URI | String | Uniform resource identifier associated with the account 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 customer payment. |
Customer.Name | String (30) | Name of the customer. |
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. |
ReceiptNumber | String (13) | ID No of payment transaction. |
Date | DateTime | Transaction date entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-08-11 13:33:02' } |
AmountReceived | Decimal (13.2) | Total of all amounts applicable to the sale invoice. |
AmountReceivedForeign | Decimal (13.2) | Total of all amounts applicable to the sale invoice in foreign currency. |
PaymentMethod | PaymentMethod | Payment methods must exist in company file, default methods consist of the following: (Users can add new methods through AccountRight UI) American Express Bank Card Barter Card Cash Cheque Diners Club EFTPOS MasterCard Money Order Other Visa |
Memo | String (255) | Memo text of the customer payment entry. |
Invoices | array | An array of line invoice information |
Invoices.RowId | Integer | Sequence of the entry within the customer payment set. |
Invoices.Number | String (8) | Sales invoice number |
Invoices.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the invoice assigned to the customer payment. |
Invoices.AmountApplied | Decimal (13.2) | Mandatory for a Local currency record : Amount applied to invoice. |
Invoices.AmountAppliedForeign | Decimal (13.2) | Mandatory for a Foreign currency record : Amount applied to invoice in foreign currency. |
Invoices.Type | String | Sale type, can consist of the following: Invoice Order |
Invoices.TransactionID | String | Transaction ID of payment transaction. |
Invoices.ForeignCurrency | object | Foreign currency information in the transaction. |
Invoices.ForeignCurrency.UID | Guid (36) | Foreign Key : Unique identifier for the currency in the form of a guid. |
Invoices.ForeignCurrency.Code | String (3) | The currency code. |
Invoices.ForeignCurrency.Name | String | The full name of the currency. |
Invoices.ForeignCurrency.URI | String | Uniform resource identifier associated with the currency object. |
Invoices.CurrencyExchangeRate | Decimal | Currency exchange rate in the associated currency object. |
Invoices.URI | String | Uniform resource identifier encompasses all types of names and addresses that refer to objects on the web. |
Invoices.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": "962db553-3a04-43c6-a45e-d77d3d94bf87",
"DepositTo": "Account",
"ReceiptNumber": "CR000022",
"Date": "2014-03-26T00:00:00",
"AmountReceived": "46.2",
"AmountReceivedForeign": "null",
"PaymentMethod": "Visa",
"Memo": "Payment; A-Z Stationery Supplies",
"RowID": "433",
"Number": "00000028",
"AmountApplied": "46.2",
"AmountAppliedForeign": "null",
"Type": "Invoice",
"URI": "{cf_uri}/Sale/CustomerPayment/292c4c5a-0f42-4fc3-8f78-d53f135e1a11",
"TransactionID": "null",
"ForeignCurrency": "null",
"CurrencyExchangeRate": "null",
"RowVersion": "-6665890398461755392"
}The {cf_uri} is provided by the businessId parameter as described here.