Overview

In this section:

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


Top of page

x
TPM JSON API

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

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

Notes:

TPM 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