|
GET
list
Parameters:
| detailed=true |
Optional |
Return detailed information of supplier. See GET get/[id] method for example of
detailed supplier response. |
Example URL:
http://api.workflowmax.com/supplier.api/list?apiKey=[your API
key]&accountKey=[WorkflowMax account key]
Example Response:
<Response>
<Status>OK</Status>
<Suppliers>
<Supplier>
<ID>255</ID>
<Name>XYZ Australia, NZ Business Unit</Name>
<Address />
<PostalAddress>XYZ Australia Level 32, PWC Building
188 Quay Street
Auckland Central Auckland
</PostalAddress>
<Phone />
<Fax />
<Website />
<Contacts>
<Contact>
<ID>220</ID>
<Name>Samantha Benecke</Name>
<Mobile />
<Email />
<Phone />
<Position />
</Contact>
</Contacts>
</Supplier>
<Supplier>
<ID>697</ID>
<Name>A. Dutchess</Name>
<Address />
<PostalAddress>P O Box 123 Wellington 6011</PostalAddress>
<Phone />
<Fax />
<Website />
<Contacts />
</Supplier>
</Suppliers>
</Response>
GET
get/[id]
Example URL:
http://api.workflowmax.com/supplier.api/get/123?apiKey=[your API
key]&accountKey=[WorkflowMax account key]
Example Response:
<Response>
<Status>OK</Status>
<Supplier>
<ID>218</ID>
<Name>Acmer Pty Ltd</Name>
<Address />
<PostalAddress>Acmer Pty Ltd
412 Alice Spring Road
Greenacres "Sydney, NSW 2164"
</PostalAddress>
<Phone>(02) 1723 5265</Phone>
<Fax />
<Website />
<Contacts>
<Contact>
<ID>193</ID>
<Name>Wyett E Coyote</Name>
<Mobile />
<Email />
<Phone />
<Position />
</Contact>
</Contacts>
<Notes>
<Note>
<Title>note title</Title>
<Text>subject of the note</Text>
<Folder />
<Date>2008-09-12T13:00:00</Date>
<CreatedBy>Jo Bloggs</CreatedBy>
</Note>
</Notes>
</Supplier>
</Response>
POST
add
Example URL:
POST http://api.workflowmax.com/supplier.api/add?apiKey=[your
API key]&accountKey=[WorkflowMax account key]
Example Message:
<Supplier>
<Name>Bloggs Electrical Ltd</Name>
<Address></Address> <!-- optional -->
<PostalAddress></PostalAddress> <!-- optional -->
<Phone></Phone> <!-- optional -->
<Fax></Fax> <!-- optional -->
<WebSite></WebSite> <!-- optional -->
<Contacts>
<Contact>
<Name>Jo Bloggs</Name>
<Phone></Phone> <!-- optional -->
<Mobile></Mobile> <!-- optional -->
<Email></Email> <!-- optional -->
<Position></Position> <!-- optional -->
</Contact>
</Contacts>
</Supplier>
The response will include the detailed information of the
supplier as per the GET
get/[id] method
PUT
update
Example URL:
PUT http://api.workflowmax.com/supplier.api/update?apiKey=[your
API key]&accountKey=[WorkflowMax account key]
Example Message:
<Supplier>
<ID>1234</ID>
<Name>Bloggs Electrical Ltd</Name>
<Address></Address> <!-- optional -->
<PostalAddress></PostalAddress> <!-- optional -->
<Phone></Phone> <!-- optional -->
<Fax></Fax> <!-- optional -->
<WebSite></WebSite> <!-- optional -->
<ReferralSourcee></ReferralSource> <!-- optional -->
</Supplier>
PUT
archive
Example URL:
PUT http://api.workflowmax.com/supplier.api/archive?apiKey=[your
API key]&accountKey=[WorkflowMax account key]
Example Message:
<Supplier>
<ID>1234</ID>
</Supplier>
The response will include the detailed information of the
supplier as per the GET
get/[id] method
POST
delete
Example URL:
POST http://api.workflowmax.com/supplier.api/delete?apiKey=[your
API key]&accountKey=[WorkflowMax account key]
Example Message:
<Supplier>
<ID>1234</ID>
</Supplier>
The response will include the detailed information of the
supplier as per the GET
get/[id] method
GET
contact/[id]
Example URL:
http://api.workflowmax.com/supplier.api/contact/123?apiKey=[your
API key]&accountKey=[WorkflowMax account key]
Example Response:
<Response>
<Status>OK</Status>
<Contact>
<ID>123</ID>
<Name>Wyett E Coyote</Name>
<Mobile />
<Email />
<Phone />
<Position />
</Contact>
</Response>
PUT
contact/[id]
Example URL:
PUT
http://api.workflowmax.com/supplier.api/contact/123?apiKey=[your
API key]&accountKey=[WorkflowMax account key]
Example Message:
<Contact>
<Name>Wyett E Coyote</Name>
<Mobile />
<Email />
<Phone />
<Position />
</Contact>
The response will include the detailed information of the
contact as per the GET
contact/[id] method
POST
contact
Example URL:
POST
http://api.workflowmax.com/supplier.api/contact?apiKey=[your API
key]&accountKey=[WorkflowMax account key]
Example Message:
<Contact>
<Supplier>
<ID>142</ID>
</Supplier>
<Name>Wyett E Coyote</Name>
<Mobile />
<Email />
<Phone />
<Position />
</Contact>
The response will include the detailed information of the
contact as per the GET
contact/[id] method
|