API Requests

Request format

Use POST request in the following format:

https://tracker-s2s.my.com/v1/method_name/?idApp=XXX
  • v1 — S2S API version;
  • method_name — name of method (for example, customEvent for custom events import);
  • idApp=XXX — application identifier, which you can find in the URL of your app page.

API methods

version returns the current version of S2S API.

https://tracker-s2s.my.com/v1/version

test-app-access allows you to check access rights to the application. When calling the method, you should pass S2S API key in the Authorization header.

https://tracker-s2s.my.com/v1/test-app-access/?idApp=XXX

registration and registrationBatch transmit one or more registration events to the myTracker.

login and loginBatch transmit one or more authorization events to the myTracker.

customEvent and customEventBatch transmit one or more custom events such as office visit or deliveries to the myTracker.

customRevenue and customRevenueBatch transmit one or more custom payments such as offline revenue or payments via WeChat Pay.

Learn more about registration, login, customEvent, and customRevenue methods in the Import events section .