Skip to content

DebitRefund

Return, create and delete debit refunds paid from suppliers

Released
Updated
URLSupports
/{cf_uri}/Purchase/DebitRefund
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 debit refund.
DepositTo
Required
StringIf allocating a banking account for the payment specify Account If using undeposited funds specify UndepositedFunds
AccountobjectThe following set of information pulls through details for an 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.
Account.Name
Read-only
String (30)Account name belonging to the account record.
Account.DisplayID
Read-only
String (6)Account code format includes separator ie 4-1100 { 'DisplayID': '4-1100' }
Account.URI
Read-only
StringUniform resource identifier associated with the account object.
BillobjectThe following set of information pulls through details for a purchase bill.
Bill.UID
Required
Guid (36)Foreign Key : Unique identifier for a bill in the form of a guid.
Bill.Number
Read-only
String (8)Purchase bill number
Bill.URI
Read-only
StringUniform resource identifier associated with the bill object.
SupplierobjectThe following set of information pulls through details for the supplier contact. Note: Optional on POST, will default to Supplier on Bill.
Supplier.UIDGuid (36)Foreign Key : Unique guid identifier belonging to the supplier assigned to the debit refund.
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 number assigned to transaction, 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-11-29 10:33:02' }
Amount
Required
Decimal (13.2)Total amount of the debit to be refunded, can be equal to or less than the bill amount.
MemoString (255)Memo text describing the debit refund.
PaymentMethodStringPayment method text.
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": "ad917331-d14a-4e63-bd79-f00500dabbc6",
  "DepositTo": "Account",
  "Number": "CR000043",
  "Date": "2013-10-31T00:00:00",
  "Amount": "244",
  "Memo": "Huston & Huston Packaging: Debit from 00000025",
  "PaymentMethod": "null",
  "URI": "{cf_uri}/Purchase/DebitRefund/ad917331-d14a-4e63-bd79-f00500dabbc6",
  "RowVersion": "-8726764411735244800"
}

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