Debtor Transaction
Return a debtor transaction.
Released
Updated
| URL | Supports |
|---|---|
{URI}/debtor/{debtorid}/transaction | |
| {URI} is exo.api.myob.com when connecting to the cloud or the address of the machine hosting the API when connecting on premise. | |
Attribute Details
| Attribute | Type | Notes |
|---|---|---|
debtorid | integer | Required on PUT |
branchid | integer | Required on PUT |
branch | object,null | |
branch.name | string,null | |
branch.code | string,null | |
branch.rel | string,null | |
branch.title | string,null | |
branch.id | integer | Required on PUT |
branch.href | string,null | |
transactiondate | string | |
duedate | any | |
reference1 | string,null | |
reference2 | string,null | |
reference3 | string,null | |
amount | number | |
allocatedbalance | number | |
outstandingamount | number | |
transactiontypeid | integer | Required on PUT |
transactiontype | string,null | |
statusid | string,null | Required on PUT |
status | string,null | |
invoicenumber | string,null | |
extrafields | array | |
rel | string,null | |
title | string,null | |
id | integer | Required on PUT |
href | string,null |
Example json GET response
Example
[
{
"stockcode": "AIRFIL01",
"quantity": 3,
"unitprice": 55.27,
"discount": 0,
"tax": 20.73,
"total": 165.81,
"totalincludingtax": 165.81,
"taxrate": 12.5,
"unitpriceincludingtax": 55.27,
"exchangerate": 0.8,
"hidden_sellprice": 0,
"description": "OVALCHROME AIR FILTER",
"id": 8
},
{
"stockcode": "AIRPRE01",
"quantity": 4,
"unitprice": 4.63,
"discount": 0,
"tax": 2.31,
"total": 18.52,
"totalincludingtax": 18.52,
"taxrate": 12.5,
"unitpriceincludingtax": 4.63,
"exchangerate": 0.8,
"hidden_sellprice": 0,
"description": "AIR PRESSURE GAUGE",
"id": 9
},
{
"stockcode": "ALARM01",
"quantity": 1,
"unitprice": 85.39,
"discount": 0,
"tax": 10.67,
"total": 85.39,
"totalincludingtax": 85.39,
"taxrate": 12.5,
"unitpriceincludingtax": 85.39,
"exchangerate": 0.8,
"hidden_sellprice": 0,
"description": "REMOTE CAR START SECURITY",
"id": 10
},
{
"stockcode": "FREIGHT",
"quantity": 1,
"unitprice": 8.1,
"discount": 0,
"tax": 1.01,
"total": 8.1,
"totalincludingtax": 8.1,
"taxrate": 12.5,
"unitpriceincludingtax": 8.1,
"exchangerate": 0.8,
"hidden_sellprice": 0,
"description": "FREIGHT",
"id": 11
},
{
"invoicenumber": "10003",
"debtorid": 1,
"branchid": 0,
"transactiondate": "2012-10-24T00:00:00+00:00",
"duedate": "2013-01-17T00:00:00+00:00",
"reference1": "10001",
"reference2": "83745",
"reference3": "Invoice",
"amount": 277.82,
"allocatedbalance": 277.82,
"outstandingamount": 0,
"transactiontypeid": 1,
"transactiontype": "Invoice",
"statusid": "2",
"status": "FullyAllocated",
"id": 3
}
]{URI} is defined as: http://exo.api.myob.com/