GET api/GetPurchases?jobID={jobID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
jobID

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

Collection of MYOBLog_Purchase
NameDescriptionTypeAdditional information
ID

integer

None.

JobID

integer

None.

InvoiceID

integer

None.

Company

string

None.

TemplateName

string

None.

Address1

string

None.

Address2

string

None.

Address3

string

None.

Address4

string

None.

PurchaseNo

string

None.

InvDate

date

None.

SupplierInvNo

string

None.

NetAmount

decimal number

None.

TaxAmount

decimal number

None.

DueDays

integer

None.

NetAmountWithoutTax

decimal number

None.

ImportFlag

boolean

None.

MYOBDivision

integer

None.

ExpenseAcc

string

None.

Memo

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "JobID": 1,
    "InvoiceID": 1,
    "Company": "sample string 2",
    "TemplateName": "sample string 3",
    "Address1": "sample string 4",
    "Address2": "sample string 5",
    "Address3": "sample string 6",
    "Address4": "sample string 7",
    "PurchaseNo": "sample string 8",
    "InvDate": "2025-04-04T13:19:25.8332551+10:00",
    "SupplierInvNo": "sample string 9",
    "NetAmount": 1.0,
    "TaxAmount": 1.0,
    "DueDays": 1,
    "NetAmountWithoutTax": 1.0,
    "ImportFlag": true,
    "MYOBDivision": 1,
    "ExpenseAcc": "sample string 10",
    "Memo": "sample string 11"
  },
  {
    "ID": 1,
    "JobID": 1,
    "InvoiceID": 1,
    "Company": "sample string 2",
    "TemplateName": "sample string 3",
    "Address1": "sample string 4",
    "Address2": "sample string 5",
    "Address3": "sample string 6",
    "Address4": "sample string 7",
    "PurchaseNo": "sample string 8",
    "InvDate": "2025-04-04T13:19:25.8332551+10:00",
    "SupplierInvNo": "sample string 9",
    "NetAmount": 1.0,
    "TaxAmount": 1.0,
    "DueDays": 1,
    "NetAmountWithoutTax": 1.0,
    "ImportFlag": true,
    "MYOBDivision": 1,
    "ExpenseAcc": "sample string 10",
    "Memo": "sample string 11"
  }
]

text/html

Sample:
[{"ID":1,"JobID":1,"InvoiceID":1,"Company":"sample string 2","TemplateName":"sample string 3","Address1":"sample string 4","Address2":"sample string 5","Address3":"sample string 6","Address4":"sample string 7","PurchaseNo":"sample string 8","InvDate":"2025-04-04T13:19:25.8332551+10:00","SupplierInvNo":"sample string 9","NetAmount":1.0,"TaxAmount":1.0,"DueDays":1,"NetAmountWithoutTax":1.0,"ImportFlag":true,"MYOBDivision":1,"ExpenseAcc":"sample string 10","Memo":"sample string 11"},{"ID":1,"JobID":1,"InvoiceID":1,"Company":"sample string 2","TemplateName":"sample string 3","Address1":"sample string 4","Address2":"sample string 5","Address3":"sample string 6","Address4":"sample string 7","PurchaseNo":"sample string 8","InvDate":"2025-04-04T13:19:25.8332551+10:00","SupplierInvNo":"sample string 9","NetAmount":1.0,"TaxAmount":1.0,"DueDays":1,"NetAmountWithoutTax":1.0,"ImportFlag":true,"MYOBDivision":1,"ExpenseAcc":"sample string 10","Memo":"sample string 11"}]

application/xml, text/xml

Sample:
<ArrayOfMYOBLog_Purchase xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iHubLibrary.DB.Models">
  <MYOBLog_Purchase>
    <Address1>sample string 4</Address1>
    <Address2>sample string 5</Address2>
    <Address3>sample string 6</Address3>
    <Address4>sample string 7</Address4>
    <Company>sample string 2</Company>
    <DueDays>1</DueDays>
    <ExpenseAcc>sample string 10</ExpenseAcc>
    <ID>1</ID>
    <ImportFlag>true</ImportFlag>
    <InvDate>2025-04-04T13:19:25.8332551+10:00</InvDate>
    <InvoiceID>1</InvoiceID>
    <JobID>1</JobID>
    <MYOBDivision>1</MYOBDivision>
    <Memo>sample string 11</Memo>
    <NetAmount>1</NetAmount>
    <NetAmountWithoutTax>1</NetAmountWithoutTax>
    <PurchaseNo>sample string 8</PurchaseNo>
    <SupplierInvNo>sample string 9</SupplierInvNo>
    <TaxAmount>1</TaxAmount>
    <TemplateName>sample string 3</TemplateName>
  </MYOBLog_Purchase>
  <MYOBLog_Purchase>
    <Address1>sample string 4</Address1>
    <Address2>sample string 5</Address2>
    <Address3>sample string 6</Address3>
    <Address4>sample string 7</Address4>
    <Company>sample string 2</Company>
    <DueDays>1</DueDays>
    <ExpenseAcc>sample string 10</ExpenseAcc>
    <ID>1</ID>
    <ImportFlag>true</ImportFlag>
    <InvDate>2025-04-04T13:19:25.8332551+10:00</InvDate>
    <InvoiceID>1</InvoiceID>
    <JobID>1</JobID>
    <MYOBDivision>1</MYOBDivision>
    <Memo>sample string 11</Memo>
    <NetAmount>1</NetAmount>
    <NetAmountWithoutTax>1</NetAmountWithoutTax>
    <PurchaseNo>sample string 8</PurchaseNo>
    <SupplierInvNo>sample string 9</SupplierInvNo>
    <TaxAmount>1</TaxAmount>
    <TemplateName>sample string 3</TemplateName>
  </MYOBLog_Purchase>
</ArrayOfMYOBLog_Purchase>