Retrieving a Partner List

URL:

http://servername:8089/do?

The input parameters are listed in the following table:

Parameters

Type

Mandatory

Value

Comments

action

Constant

Y

partner

 

subaction

Constant

Y

getpartner

 

partnerid

Int

N

 

Passing partnerid will return just one Partner being partnerid is unique. This field can be used when a specific partner is needed for editing purposes.

partnername

String

N

 

The search performed is identical to an SQL search.

Note: Either partnerid or partnername should be passed otherwise all the partners will be returned.

An example of input would be:

Type

Input

action

partner

partnerid

7

subaction

getpartner

The responses are listed in the following table:

Response

Type

buname

String

city

String

country

String

idparent

String

orgaddress1

String

Postcode

String

Province

String

Sitecode

String

State

String

updatedt

SQL Date format

updateuser

 

The following syntax is a sample JSON response:

[{"buname":"TestinPartner7","orgaddress2":"west7","orgaddress"
:"west6","province":null,"updatedt":"2009-08-13 
23:28:40.0","idparent":null,"idpartner":7,"country":"usa","postcode":"16 
02","sitecode":"Tes7","state":"nc","name":"Tsesting7_Edit","city":"eroe" 
"updateuser":"admin"}]

iWay Software