Overview

In this section:

iWay Trading Partner Manager (iTPM) exposes the JSON (JavaScript Object Notation) API. Data from JSON API can be used to easily create custom Web pages or display data in existing Web pages. JSON API helps to perform the most common iTPM operations available through the iTPM user interface. This chapter covers the usage and API of iTPM JSON API.


Top of page

x
iTPM JSON API

JSON API uses the same Application logic that is available through the iTPM user interface. That means the same transaction, pooling, and caching are available and can be using in conjunction with the iTPM user interface.

When using iTPM user interface and JSON API it is recommended that separate ports to be used for each service.

Notes:

iTPM JSON API is available for the following domains:

API supports HTTP Post only and shares a common URL, which is http://servername:8089/do? (Note: "?" is required). All API have two common parameters, action and subaction. Action determines the domain (like partner, system, metadata, standards, routes etc.) and subaction determines the action to be performed within the subaction. For example, for getting a list of all partners the URL would be http://servername:8089 /do?, action would be partner, and subaction would be getpartner. To get a list of all routes the URL would be http://servername:8089 /do?, action would be routes, and subaction would be getroutes.

API operations, input parameters, and output parameters are in lowercase by default and are case sensitive.

API is stateless and the client responsibility is to maintain an end user state by sending proper parameters in each call.

With these concepts in mind let us look at each API in more detail.


iWay Software