页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

  • For example Add trackingno field   {"orderId":"12345","price":69,"priceCurrency":"AUD","trackingNo":"123456"}

Backward compatibility is not assured between major versions



1.3ErrorHandling

Implementation errors that can be found and prevented at development stage are
handled using HTTP status code.

The description of HTTP status code:

  • HTTP 2xx indicates successful returns in terms of implementation logic;
  • 4xx is client side error

Like authentication signature mismatch, malformed JSON requests, inconsistent data,
etc.

Returned HTTP status codes are in accordance with HTTP protocol specification. These
problems can be prevented during development stage.

  • 5xx is Service internal error,

when it happens, please contact us for assistance.

  • On the other hand, some "errors" cannot be prevented effectively.

An example can be wrong postcode. System cannot eliminate possible wrong postcode
since we get the postcode from e-commerce customers.

We have a different strategy for those errors. When that happens, REST API returns
HTTP status of 2xx, and the response JSON may contains specific return code





Encryption example

You can directly refer to the following code samples or download the compressed package API Signature Demo.zip

...