GET api/GetSuppliers?supplierID={supplierID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
supplierID

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

Collection of MYOBLog_Supplier
NameDescriptionTypeAdditional information
ID

integer

None.

SupplierID

integer

None.

Company

string

None.

Address

string

None.

Phone

string

None.

Fax

string

None.

ImportFlag

boolean

None.

MYOBDivision

integer

None.

ABN

string

None.

Email

string

None.

Bank

string

None.

BSB

string

None.

AccountNum

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "SupplierID": 1,
    "Company": "sample string 2",
    "Address": "sample string 3",
    "Phone": "sample string 4",
    "Fax": "sample string 5",
    "ImportFlag": true,
    "MYOBDivision": 1,
    "ABN": "sample string 6",
    "Email": "sample string 7",
    "Bank": "sample string 8",
    "BSB": "sample string 9",
    "AccountNum": "sample string 10"
  },
  {
    "ID": 1,
    "SupplierID": 1,
    "Company": "sample string 2",
    "Address": "sample string 3",
    "Phone": "sample string 4",
    "Fax": "sample string 5",
    "ImportFlag": true,
    "MYOBDivision": 1,
    "ABN": "sample string 6",
    "Email": "sample string 7",
    "Bank": "sample string 8",
    "BSB": "sample string 9",
    "AccountNum": "sample string 10"
  }
]

text/html

Sample:
[{"ID":1,"SupplierID":1,"Company":"sample string 2","Address":"sample string 3","Phone":"sample string 4","Fax":"sample string 5","ImportFlag":true,"MYOBDivision":1,"ABN":"sample string 6","Email":"sample string 7","Bank":"sample string 8","BSB":"sample string 9","AccountNum":"sample string 10"},{"ID":1,"SupplierID":1,"Company":"sample string 2","Address":"sample string 3","Phone":"sample string 4","Fax":"sample string 5","ImportFlag":true,"MYOBDivision":1,"ABN":"sample string 6","Email":"sample string 7","Bank":"sample string 8","BSB":"sample string 9","AccountNum":"sample string 10"}]

application/xml, text/xml

Sample:
<ArrayOfMYOBLog_Supplier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iHubLibrary.DB.Models">
  <MYOBLog_Supplier>
    <ABN>sample string 6</ABN>
    <AccountNum>sample string 10</AccountNum>
    <Address>sample string 3</Address>
    <BSB>sample string 9</BSB>
    <Bank>sample string 8</Bank>
    <Company>sample string 2</Company>
    <Email>sample string 7</Email>
    <Fax>sample string 5</Fax>
    <ID>1</ID>
    <ImportFlag>true</ImportFlag>
    <MYOBDivision>1</MYOBDivision>
    <Phone>sample string 4</Phone>
    <SupplierID>1</SupplierID>
  </MYOBLog_Supplier>
  <MYOBLog_Supplier>
    <ABN>sample string 6</ABN>
    <AccountNum>sample string 10</AccountNum>
    <Address>sample string 3</Address>
    <BSB>sample string 9</BSB>
    <Bank>sample string 8</Bank>
    <Company>sample string 2</Company>
    <Email>sample string 7</Email>
    <Fax>sample string 5</Fax>
    <ID>1</ID>
    <ImportFlag>true</ImportFlag>
    <MYOBDivision>1</MYOBDivision>
    <Phone>sample string 4</Phone>
    <SupplierID>1</SupplierID>
  </MYOBLog_Supplier>
</ArrayOfMYOBLog_Supplier>