API Methods

From Developer's API

(Difference between revisions)
(API Parameter Example)
(API Method Parameters Matrix)
Line 68: Line 68:
 
|align="Center"|•
 
|align="Center"|•
 
|-
 
|-
!align="Left"|Limit Count
+
!align="Left"|Limit Count<sup>2</sup>
 
|align="Center"|•
 
|align="Center"|•
 
|align="Center"|•
 
|align="Center"|•
Line 81: Line 81:
 
|-
 
|-
 
!align="Left"|Sort Column
 
!align="Left"|Sort Column
|align="Center"|•<sup>2</sup>
 
|align="Center"|-
 
 
|align="Center"|•<sup>3</sup>
 
|align="Center"|•<sup>3</sup>
 +
|align="Center"|-
 +
|align="Center"|•<sup>4</sup>
 
|align="Center"|-
 
|align="Center"|-
 
|-
 
|-
Line 107: Line 107:
 
:<sup>1</sup> Required for every API call
 
:<sup>1</sup> Required for every API call
  
:<sup>2</sup> FirstName, LastName
+
:<sup>2</sup> Maximum available limit count is 100
 +
 
 +
:<sup>3</sup> FirstName, LastName
  
:<sup>3</sup> GrandTotal
+
:<sup>4</sup> GrandTotal

Revision as of 13:27, 27 May 2008

Calling an API method is done by making a request to a method URI

API Methods are of the form https://{host}/API/{MerchantId}[/{TableName}[/{ItemId}][/{Command}]]

Contents

Examples

https://localhost/API/118303 Returns a list of Group Level methods available to merchant 118303
https://localhost/API/118303/Products Returns a list Product related methods
https://localhost/API/118303/Products/LIST Returns a LIST of Products
https://localhost/API/118303/Products/173457882/READ Returns Product details for ProductId 173457882

External links

Clients Methods

List Clients
Read Client

Products Methods

List Products
Read Product

Orders Methods

List Orders
Count Orders
Read Order

Errors Methods

API Error Codes

API Parameters

API parameters help to specify what data will be returned from the API. Parameters sent to the API are required to be in XML format as shown below. These parameters can be used in conjunction with one another where the method allows a particular parameter. At the very minimum, your merchant key is required as an API parameter when making API calls.

API Parameter Example

<Request>

   <Key>asfa890sduasdf98...</Key>

   <LimitCount>15</LimitCount>

   <LimitOffset>15</LimitOffset>

</Request>

API Method Parameters Matrix

List Clients List Products List Orders List Errors
Key1
Limit Count2 -
Limit Offset -
Sort Column 3 - 4 -
Sort Order - -
Limit Start Date - - -
Limit End Date - - -
1 Required for every API call
2 Maximum available limit count is 100
3 FirstName, LastName
4 GrandTotal