Order API Interface Specification
Table of Content
- Introduction
- Overview
- How to send requests
- Basic Concepts
- Message Transport
- Authentication
- JSON Message
- ORD_AuthenticationRQ/RS
- Support Operations
- Business Rules
- ORD_AuthenticationRQ
- Sample Call Url Request
- ORD_AuthenticationRS
- Sample Message Response Success
- Sample Message Response Not Success
- ORD_GetOrderRQ/RS
- Support Operations
- Business Rules
- ORD_GetOrderRQ
- Sample Call Url Request
- ORD_GetOrderRS
- Sample Message Response
- ORD_GetCustomerRQ/RS
- Support Operations
- Business Rules
- ORD_GetCustomerRQ
- Sample Call Url Request
- ORD_GetCustomerRS
- Sample Message Response
- Sample Message Response Not Success
- ORD_UpdateOrderRQ/RS
- Support Operations
- Business Rules
- ORD_UpdateOrderRQ
- Sample Call Url Request
- ORD_UpdateOrderRS
- Sample Message Response
- ORD_ErrorRS
- ORD_ErrorRS 'Status' Values List
1 Introduction
1.1 Overview
The use of this interface for communication with the exPub Service Providers using Call URL over a HTTPS protocol. The interface supports the exchange of:
- Order List
- Customer Information
1.2 How to send requests
Test environment data response:
https://api.expubwebsites.net/OrderApi/GetOrder?test=true (Get Order List)
https://api.expubwebsites.net/OrderApi/GetInformationCustomer?test=true (Get Customer Information)
The addresses to which to send requests are the following:
https://api.expubwebsites.net/OrderApi/Authentication?token={token get from Service Providers} (Check Authentication)
https://api.expubwebsites.net/OrderApi/GetOrder?token={token get from Service Providers} (Get Order List)
https://api.expubwebsites.net/OrderApi/GetInformationCustomer?token={token get from Service Providers}&order_id={order_id} (Get Customer Information)
https://api.expubwebsites.net/OrderApi/UpdateOrder?token={token get from Service Providers}&{Parameter} (Update Order)
You must send your token and parameter request. This can be achieved through various programming methods, which will vary according to the programming language you're using. API will return json string to your program.
2. Basic Concepts
2.1 Message Transport
All messages are transported via HTTPS GET/POST.
2.2 Authentication
The OrderAPI provides the credentials necessary for consuming the WebServices being offered to the receiving system. Security credentials consist of: Token – A login for authentication that is provided by the OrderAPI at the time of the order e.g. the requesting system should have the ability to connect to different URLs. Connections to the different servers may use the same account information
3 JSON Message
3.1 ORD_AuthenticationRQ/RS
This message identifies the initial request for checking authentication.3.1.1 Support Operations
Portal requests information about the authentication.
3.1.2 Business Rules
This message is only sent from the portal to the Service Providers. Only requests received via GET/POST method will be accepted.3.1.3 ORD_AuthenticationRQ
This message identifies the initial request for order data. Using this message the requester may retrieve status authentication.
Parameter | Required(R) Optional(O) | Notes | Data Type/ Possible values |
token | R | A reference for additional message identification, assigned by the requesting host system. When a request message includes an echo token the corresponding response message include an echo token with the identical value | String Length:1 -128 |
3.1.4 Sample Call Url Request
https://api.expubwebsites.net/OrderApi/Authentication?token=340FDFAE958CD5335A8CD22B390A6F76497ED23BFBBC8774673.1.5 ORD_AuthenticationRS
The ORD_AuthenticationRS is the message used to indicate the status of processing the ORD_AuthenticationRQ message. This message returns json that meet the requested criteria and/or Warnings, or Errors if the request did not succeed.
Element(E) | Name | Notes | Data Type/ Possible values |
E | API | API Name | String Length:1 -20 |
E | Version | The message version indicated by a decimal value. | Decimal |
E | Token | A reference for additional message identification, assigned by the requesting host system. When a request message includes an echo token the corresponding response message include an echo token with the identical value | String Length:1 -128 |
E | Status | Identifies the status of the call url request. | Integer |
E | Message | Message call url request of status | String Length: 1 - 500 |
E | Request | Date Request | TimeStamp |