Responses:

Responses:

ParametersFormatDescription

result

Object

Result of a request that contains information

-error_code

uint

Error code

-message

String

Error description

-data

Object

Data Details

--status_code

String

Transaction status code

--status_message

String

Transaction status description

--username

String

User Identifier

--amount

Float

Amount

--datetime

String

Time of payment initiation in the storefront system. Format ISO 8601 Current Timestamp

--project

String

Project code assigned by Tarlan

--service_code

String

Service identifier on the storefront side

--external_id

String

Payment identifier on the storefront side

-additional_data

Object

Additional information to be returned depending on the service (This field may vary depending on the service)

Example:

Response to successful request:

{
    "result": {
        "error_code" : 0,
        "message": "",
        "data": {
            "status_code": "2",
            "status_message": "Transaction successfully processed",
            "username": "989898",
            "amount": 100,
            "datetime": "2022-12-01T15:45:00Z",
            "project": "mobile",
            "service_code": "201106",
            "external_id": "200001",
        },
        "additional_data":{}
    }
}

Response to a scenario where the transaction has an intermediate status:

{
    "result": {
        "error_code" : 0,
        "message": "",
        "data": {
            "status_code": "5",
            "status_message": "Transaction holded by service provider",
            "username": "989898",
            "amount": 100,
            "datetime": "2022-12-01T15:45:00Z",
            "project": "mobile",
            "service_code": "201106",
            "external_id": "200001",
        },
        "additional_data":{}
    }
}

Response to unsuccessful request:

{
    "result" : {
        "error_code" : 1042,
        "message": "Duplicate external_id",
        "data": null,
        "additional_data":null
    }
}

Last updated