Skip to content

RecordWithDiscountsAndFees

Record supplier payments with discounts for purchase bills.

Released
Updated
URLSupports
/{cf_uri}/Purchase/SupplierPayment/RecordWithDiscountsAndFees
POST
The {guid} in the URL above is replaced with the unique ID for any given company file

Attribute Details

AttributeTypeNotes
UIDGuid (36)Unique guid identifier created for a supplier payment.
PayFrom
Required
StringWill default to Account If using electronic payments specify ElectronicPayments What are electronic payments?
AccountobjectThe following set of information pulls through details for the Account
Account.UID
Required
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.
SupplierobjectThe following set of information pulls through details for the Supplier contact
Supplier.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the supplier assigned to the supplier payment.
Supplier.DisplayIDString (15)Supplier contact Card ID, can also be used as a unique supplier contact identifier.
PayeeAddressString (255)Payee name and address of the supplier contact.
StatementParticularsStringONLY applicable for Electronic Payments. Particulars attached to electronic payment. What are electronic payments?
StatementCodeStringONLY APPLICABLE FOR NZ REGION. Code attached to electronic payment.
StatementReferenceStringONLY APPLICABLE FOR NZ REGION. Reference attached to electronic payment.
PaymentNumberString (8)ID No of payment transaction
DateDateTimeTransaction date entry, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-08-11 13:33:02' }
FinanceChargeDecimal (13.2)Finance charge amount if applicable for late payments. What is a finance charge?
FinanceChargeForeignDecimal (13.2)Finance charge amount if applicable for late payments in foreign currency. What is a finance charge?
MemoString (255)Memo text of the supplier payment entry.
LinesarrayAn array of purchase bill or order line information.
Lines.PurchaseobjectPurchase bill or order transaction information
Lines.Purchase.UID
Required
Guid (36)Foreign Key : Unique guid identifier belonging to the purchase bill or order object.
Lines.Purchase.NumberString (8)Purchase bill/order number.
Lines.AmountApplied
Required
Decimal (13.2)Mandatory for a Local currency record : Amount applied to purchase bill or order.
Lines.AmountAppliedForeign
Required
Decimal (13.2)Mandatory for a Foreign currency record : Amount applied to purchase bill or order in foreign currency.
Lines.DiscountApplied
Required
Decimal (13.2)Mandatory for a Local currency record : Discount amount applied to bill or order.
Lines.DiscountAppliedFOreign
Required
Decimal (13.2)Mandatory for a Foreign currency record : Discount amount applied to bill or order in foreign currency.
Lines.TypeDecimal (13.2)Purchase type, can consist of the following: Bill Order
BillDeliveryStatusString (20)Payment transaction delivery status assigned: Print = ToBePrinted Email = ToBeEmailed PrintAndEmail = ToBePrintedAndEmailed Nothing = AlreadyPrintedOrSent
SupplierPaymentobjectThe following set of information pulls through details for the supplier payment
SupplierPayment.UIDGuid (36)Foreign Key : Unique identifier for the supplier payment in the form of a guid.
SupplierPayment.PaymentNumberString (10)ID No of payment transaction
SupplierPayment.URIStringUniform resource identifier associated with the supplier payment object.
FinanceChargeBillobjectThe following set of information pulls through details for the bill generated from a finance charge
FinanceChargeBill.UIDGuid (36)Foreign Key : Unique identifier for the bill in the form of a guid.
FinanceChargeBill.NumberString (10)Bill invoice number #
FinanceChargeBill.URIStringUniform resource identifier associated with the purchase object.
DiscountAppliedBillsarrayThe following set of information pulls through details for the bill generated from a discount debit memo.
DiscountAppliedBills.UIDGuid (36)Foreign Key : Unique identifier for the invoice in the form of a guid.
DiscountAppliedBills.NumberString (10)Purchase bill number #
DiscountAppliedBills.URIStringUniform resource identifier associated with the purchase bill object.
DebitSettlementsarrayThe following set of information pulls through details for the settled debit memo.
DebitSettlements.UIDGuid (36)Foreign Key : Unique identifier for the settled debit in the form of a guid.
DebitSettlements.NumberString (10)Purchase number #
DebitSettlements.URIStringUniform resource identifier associated with the settled debit memo object.

Response

Request

json
{
  "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"
    }
  ]
}