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

--processed_amount

Float

Amount credited

–commission

Float

Fee 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": "Success",
        "data": {
            "status_code": "success",
            "status_message": "Transaction successfully processed",
            "username": "989898",
            "processed_amount": 90,
            "commission": 10,
            "date_time": "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": "Success",
        "data": {
            "status_code": "holded",
            "status_message": "Transaction holded by service provider",
            "username": "989898",
            "processed_amount": 90,
            "commission": 10,
            "date_time": "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": {},
        "additional_data":null
    }
}

Last updated