Data formats

Overview

This article covers general information about the ways to encode data and about the formats of data which is used in the scope of interaction with the ecommpay payment platform.

Information about general approaches to generating requests, responses, and callbacks is provided in the Interaction concepts article, information about service codes that identify elements of different registers—in the References section, detailed information about special cases of data formats—in the articles about different capabilities and in the Gate API specification. Besides, you can also contact our technical support specialists with any questions that arise.

Note: This article is planned to be removed from the documentation with time.

Data encoding

The generation of requests sent to the platform and the processing of responses and callbacks received from the platform must be carried out with the use of the UTF-8 encoding. Besides that, in certain cases, it is required to use other encoding methods, including Base64. Such cases are stipulated in this documentation and the Gate API specification.

Dates and times

In the scope of interaction with the platform, dates and times are usually represented in the following format YYYY-MM-DDThh:mm:ss±hhmm (according to the ISO 8601 requirements), where YYYY-MM-DD is a date, T is a separating character, hh:mm:ss is a time, hhmm is a UTC (Coordinated Universal Time) offset. For example, 2025-05-25T15:30:25+0000.

Along with that, in certain cases, the date and time format can differ from the described one. Such cases are stipulated in this documentation and the Gate API specification.

Amounts

In the scope of interaction with the platform, payment and operation amounts are specified in the smallest currency units and with no decimal separator, For example, 100 dollars are represented in cents and specified as 10000 (but neither as 100 nor as 100.00). The examples of other currencies representation are provided in the table.

Currency Amount Representation
EUR 39.95 3995
GBP 450.66 45066
JPY 200 200
KWD 150.155 150155

The number of fractional digits of different currencies is defined according to the ISO 4217 standard and provided in the currency reference.

Currency, country, and language codes

In the scope of interaction with the ecommpay payment platform, the following codes can be used:

  • three-letter currency codes—according to the ISO 4217 standard
  • two-letter country codes—according to the ISO 3166-1 standard
  • single-, two-, and three-character territory codes (such as states, provinces, and regions)—according to the ISO 3166-2 standard
  • two-letter language codes—according to the ISO 639-1 standard

These codes, except territory codes, are provided in the references.