RecordWithDiscountsAndFees
Record customer payments with discounts and finance charges for sale invoices
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Sale/CustomerPayment/RecordWithDiscountsAndFees | |
| The {guid} in the URL above is replaced with the unique ID for any given company file | |
Attribute Details
| 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) | Please note: Passing the Account UID is optional if you are assigning UndepositedFunds , if allocating a bank account the UID is required. Foreign Key : Unique identifier for the account in the form of a guid. |
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.DisplayID | String (15) | Customer contact Card ID, can also be used as a unique customer contact identifier. |
ReceiptNumber | String (8) | ID No of payment transaction |
Date | DateTime | Transaction date entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-08-11 13:33:02' } |
FinanceCharge | Decimal (13.2) | Finance charge amount applicable to invoice. What is a finance charge? |
FinanceChargeForeign | Decimal (13.2) | Finance charge amount applicable to invoice in foreign currency. What is a finance charge? |
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. |
Lines | array | An array of invoice or order line information. |
Lines.Sale | object | Sales invoice or order transaction information. |
Lines.Sale.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the invoice object. |
Lines.Sale.Number | String (8) | Sales invoice number. |
Lines.AmountApplied | Decimal (13.2) | Mandatory for a Local currency record : Amount applied to sale invoice or order. |
Lines.AmountAppliedForeign | Decimal (13.2) | Mandatory for a Foreign currency record : Amount applied to sale invoice or order in foreign currency. |
Lines.DiscountApplied | Decimal (13.2) | Mandatory for a Local currency record : Discount amount applied to invoice or order. |
Lines.DiscountAppliedFOreign | Decimal (13.2) | Mandatory for a Foreign currency record : Discount amount applied to invoice or order in foreign currency. |
Lines.Type | Decimal (13.2) | Invoice type, can consist of the following: Invoice Order |
CustomerPayment | object | The following set of information pulls through details for the customer payment |
CustomerPayment.UID | Guid (36) | Foreign Key : Unique identifier for the customer payment in the form of a guid. |
CustomerPayment.ReceiptNumber | String (10) | ID No of payment transaction |
CustomerPayment.URI | String | Uniform resource identifier associated with the customer payment object. |
FinanceChargeInvoice | object | The following set of information pulls through details for the invoice generated from a finance charge |
FinanceChargeInvoice.UID | Guid (36) | Foreign Key : Unique identifier for the invoice in the form of a guid. |
FinanceChargeInvoice.Number | String (10) | Sale invoice number # |
FinanceChargeInvoice.URI | String | Uniform resource identifier associated with the sale invoice object. |
DiscountAppliedInvoices | array | The following set of information pulls through details for the invoice generated from a discount credit memo. |
DiscountAppliedInvoices.UID | Guid (36) | Foreign Key : Unique identifier for the invoice in the form of a guid. |
DiscountAppliedInvoices.Number | String (10) | Sale invoice number # |
DiscountAppliedInvoices.URI | String | Uniform resource identifier associated with the sale invoice object. |
CreditSettlements | array | The following set of information pulls through details for the settled credit memo. |
CreditSettlements.UID | Guid (36) | Foreign Key : Unique identifier for the settled credit in the form of a guid. |
CreditSettlements.Number | String (10) | Sale invoice number # |
CreditSettlements.URI | String | Uniform resource identifier associated with the settled credit memo object. |
Response
Request
{
"DepositTo": "Account",
"Account": {
"UID": "7772dc25-5ee6-4a61-994e-28c04b8a35fc"
},
"Customer": {
"UID": "63b984e5-241e-4c1a-bfe1-7868a69f5e29",
"DisplayID": "CUS000003"
},
"ReceiptNumber": "00001569",
"Date": "2014-11-05T00:00:00",
"FinanceCharge": 0,
"Memo": "Payment; Cash Sales",
"Lines\" : [": [
{
"UID": "895c0837-ed10-4277-ad1c-ab3294d39847"
},
{
"AmountApplied": 69,
"DiscountApplied": 5,
"Type": "Invoice"
},
{
"UID": "172994f9-bd0a-41ee-8349-8ef68ac3be25"
},
{
"AmountApplied": 3990,
"DiscountApplied": 9.75,
"Type": "Invoice"
}
]
}