RecordWithDiscountsAndFees
Record supplier payments with discounts for purchase bills.
Released
Updated
| URL | Supports |
|---|---|
/{cf_uri}/Purchase/SupplierPayment/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 supplier payment. |
PayFrom | String | Will default to Account If using electronic payments specify ElectronicPayments What are electronic payments? |
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 ElectronicPayments , if allocating a bank account the UID is required. Foreign Key : Unique identifier for the account in the form of a guid. |
Supplier | object | The following set of information pulls through details for the Supplier contact |
Supplier.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the supplier assigned to the supplier payment. |
Supplier.DisplayID | String (15) | Supplier contact Card ID, can also be used as a unique supplier contact identifier. |
PayeeAddress | String (255) | Payee name and address of the supplier contact. |
StatementParticulars | String | ONLY applicable for Electronic Payments. Particulars attached to electronic payment. What are electronic payments? |
StatementCode | String | ONLY APPLICABLE FOR NZ REGION. Code attached to electronic payment. |
StatementReference | String | ONLY APPLICABLE FOR NZ REGION. Reference attached to electronic payment. |
PaymentNumber | 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 if applicable for late payments. What is a finance charge? |
FinanceChargeForeign | Decimal (13.2) | Finance charge amount if applicable for late payments in foreign currency. What is a finance charge? |
Memo | String (255) | Memo text of the supplier payment entry. |
Lines | array | An array of purchase bill or order line information. |
Lines.Purchase | object | Purchase bill or order transaction information |
Lines.Purchase.UID | Guid (36) | Foreign Key : Unique guid identifier belonging to the purchase bill or order object. |
Lines.Purchase.Number | String (8) | Purchase bill/order number. |
Lines.AmountApplied | Decimal (13.2) | Mandatory for a Local currency record : Amount applied to purchase bill or order. |
Lines.AmountAppliedForeign | Decimal (13.2) | Mandatory for a Foreign currency record : Amount applied to purchase bill or order in foreign currency. |
Lines.DiscountApplied | Decimal (13.2) | Mandatory for a Local currency record : Discount amount applied to bill or order. |
Lines.DiscountAppliedFOreign | Decimal (13.2) | Mandatory for a Foreign currency record : Discount amount applied to bill or order in foreign currency. |
Lines.Type | Decimal (13.2) | Purchase type, can consist of the following: Bill Order |
BillDeliveryStatus | String (20) | Payment transaction delivery status assigned: Print = ToBePrinted Email = ToBeEmailed PrintAndEmail = ToBePrintedAndEmailed Nothing = AlreadyPrintedOrSent |
SupplierPayment | object | The following set of information pulls through details for the supplier payment |
SupplierPayment.UID | Guid (36) | Foreign Key : Unique identifier for the supplier payment in the form of a guid. |
SupplierPayment.PaymentNumber | String (10) | ID No of payment transaction |
SupplierPayment.URI | String | Uniform resource identifier associated with the supplier payment object. |
FinanceChargeBill | object | The following set of information pulls through details for the bill generated from a finance charge |
FinanceChargeBill.UID | Guid (36) | Foreign Key : Unique identifier for the bill in the form of a guid. |
FinanceChargeBill.Number | String (10) | Bill invoice number # |
FinanceChargeBill.URI | String | Uniform resource identifier associated with the purchase object. |
DiscountAppliedBills | array | The following set of information pulls through details for the bill generated from a discount debit memo. |
DiscountAppliedBills.UID | Guid (36) | Foreign Key : Unique identifier for the invoice in the form of a guid. |
DiscountAppliedBills.Number | String (10) | Purchase bill number # |
DiscountAppliedBills.URI | String | Uniform resource identifier associated with the purchase bill object. |
DebitSettlements | array | The following set of information pulls through details for the settled debit memo. |
DebitSettlements.UID | Guid (36) | Foreign Key : Unique identifier for the settled debit in the form of a guid. |
DebitSettlements.Number | String (10) | Purchase number # |
DebitSettlements.URI | String | Uniform resource identifier associated with the settled debit memo object. |
Response
Request
{
"PayFrom": "Account",
"Account": {
"UID": "7772dc25-5ee6-4a61-994e-28c04b8a35fc"
},
"Supplier": {
"UID": "63b984e5-241e-4c1a-bfe1-7868a69f5e29",
"DisplayID": "SUPP000004"
},
"PaymentNumber": "00001569",
"Date": "2014-11-05T00:00:00",
"FinanceCharge": 0,
"Memo": "Payment; Huston & Huston Packaging",
"Lines\" : [": [
{
"UID": "874c0837-ed10-4277-ad1c-ab3298b39647"
},
{
"AmountApplied": 69,
"DiscountApplied": 5,
"Type": "Bill"
}
]
}