API Products of the Mir payment system

Dispute API documentation

Authentication Service

The Authentication service provides a set of methods for obtaining, completing and validating the Dispute API working session.

ValidateToken Method

To validate the access token of an Dispute API working session, call the ValidateToken method.

Method address: /webapi/v1/Auth/ValidateToken
Request type: post

Key Data type Description
expiryDate date Access token expiry date
token string Access token value
success boolean Success flag

An example of HTTP request

POST http://<Имя сервера Диспут+>/webapi/v1/auth/ValidateToken HTTP/1.1
Accept-Encoding: gzip,deflate
X-Authorization: <значение маркера доступа>
Content-Type: application/json
Content-Length: 0
Host: <Имя сервера Диспут+>
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

An example of HTTP response

HTTP/1.1 200 OKCache-Control: no-cache
Pragma: no-cache
Content-Length: 23
Content-Type: application/json; charset=utf-8
Expires: -1
Server: Microsoft-IIS/8.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Wed, 25 Apr 2018 12:01:46 GMT
  "token":"<Значение маркер доступа>",