Gets information on
existing suppliers and clients. | Uses your API Key and some Filters in an array format and returns
the search results using given filters. Optionally, you can use ReturnTopNRecords to limit the number of
the results to the specified number (omit, or add ReturnTopNRecords = -1 to get all the available results).
The ReturnTopNRecords chooses the top records in a SupplierClientId descending order.
A. Return all the clients whose billing address contains CA. The results are returned as mvSupplierClients objects.
We can add two Filters by using the AndOr operator as shown below:
Value: {
"Filters": [
{
"FieldName": "SupplierClientType",
"SearchOperator": "Equals",
"SearchValue": "Client"
},
{
"AndOr": "And",
"FieldName": "SupplierClientBillingAddress",
"SearchOperator": "Contains",
"SearchValue": "CA"
}
]
}
Response: {
"mvSupplierClients": [
{
"SupplierClientID": 9,
"SupplierClientType": "Client",
"SupplierClientName": "Retail Client",
"mvContacts": [],
"SupplierClientBillingAddress": "1 Infinite Loop Cupertino CA 95014",
"SupplierClientShippingAddress1": "1600 Amphitheatre Parkway Mountain View CA",
"SupplierClientShippingAddress2": "",
"SupplierClientPhone1": "+1234567890",
"SupplierClientPhone2": "+0987654321",
"SupplierClientFax": "",
"SupplierClientIM": "",
"SupplierClientEmail": "first@client.com",
"SupplierClientTaxID": "client taxid",
"SupplierClientComments": "",
"SupplierClientCustomField1": "",
"SupplierClientCustomField2": "",
"SupplierClientCustomField3": "",
"SupplierClientCustomField4": "",
"SupplierClientCustomField5": "",
"SupplierClientCustomField6": "",
"SupplierClientCustomField7": "",
"SupplierClientCustomField8": "",
"SupplierClientCustomField9": "",
"SupplierClientCustomField10": "",
"SupplierClientOption1": "",
"SupplierClientOption2": "",
"SupplierClientOption3": "",
"SupplierClientOption4": "",
"SupplierClientOption5": "",
"SupplierClientOption6": "",
"SupplierClientOption7": "",
"SupplierClientOption8": "",
"SupplierClientOption9": "",
"SupplierClientOption10": "",
"SupplierClientCreationDate": "/Date(1499856477997-0000)/"
}
],
"ResponseStatus": {
"ErrorCode": "0"
}
}
|