Skip to content

DebitSettlement

Return, create and delete debit settlements.

Released
Updated
URLSupports
/{cf_uri}/Purchase/DebitSettlement
GETPOSTDELETE

Attribute Details

Paging: default page size is set to 400 with a maximum of 1000 results.

AttributeTypeNotes
UIDGuid (36)Unique guid identifier created for a settled debit note.
DebitFromBillobjectThe following set of information pulls through details for a purchase bill debit.
DebitFromBill.UID
Required
Guid (36)Foreign Key : Unique identifier for a purchase bill in the form of a guid.
DebitFromBill.Number
Read-only
String (8)Purchase bill number
DebitFromBill.URI
Read-only
StringUniform resource identifier associated with the purchase bill object.
SupplierobjectThe following set of information pulls through details for supplier contact. Note: This is optional on POST, defaults to supplier on DebitFromBill
Supplier.UIDGuid (36)Foreign Key : Unique guid identifier belonging to the supplier assigned to the debit settlement.
Supplier.Name
Read-only
String (30)Name of the supplier contact.
Supplier.DisplayIDString (15)Supplier contact Card ID, can also be used as a unique supplier contact identifier.
Supplier.URI
Read-only
StringUniform resource identifier associated with the supplier object.
NumberString (8)ID transaction number, if left blank on POST will auto increment based upon last recorded.
Date
Required
DateTimeTransaction date, format YYYY-MM-DD HH:MM:SS { 'Date': '2013-12-19 11:33:02' }
DebitAmountDecimal (13.2)Total debit amount to be applied, can only be less than or equal to DebitFromBill amount.
MemoString (255)Memo text describing the settled debit.
LinesarrayThe following set of information pulls through line details for the debit settlement.
Lines.Type
Required
StringPurchase type which can consist of the following: Bill Order
Lines.PurchaseobjectThe following set of information pulls through details for a purchase.
Lines.Purchase.UID
Required
Guid (36)Foreign Key : Unique identifier for a purchase in the form of a guid.
Lines.Purchase.Number
Read-only
String (8)Purchase transaction number.
Lines.Purchase.URI
Read-only
StringUniform resource identifier associated with the purchase transaction object.
Lines.AmountApplied
Required
Decimal (13.2)Debit amount applied to purchases transactions, amount must be greater than 0.
ForeignCurrencyobjectNull if no foreign currency is set.
ForeignCurrency.UID
Read-only
Guid (36)Foreign Key : Unique identifier for the currency in the form of a guid.
ForeignCurrency.Code
Read-only
String (3)The currency code.
ForeignCurrency.CurrencyName
Read-only
StringThe full name of the currency
ForeignCurrency.URI
Read-only
StringUniform resource identifier associated with the currency object.
URI
Read-only
StringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
RowVersionStringNumber 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

json
{
  "UID": "81f72366-be5e-435b-8c1e-27eebdda67b7",
  "Number": "PJ001009",
  "Date": "2013-11-12T00:00:00",
  "DebitAmount": "350.63",
  "Memo": "Mountain Spring: Debit from 00000068",
  "Type": "Bill",
  "AmountApplied": "350.63",
  "URI": "{cf_uri}/Purchase/DebitSettlement/81f72366-be5e-435b-8c1e-27eebdda67b7",
  "RowVersion": "8927346127557099520"
}

The {cf_uri} is provided by the businessId parameter as described here.