Calculation of the upper commission

A method for calculating the upper commission without actually debiting funds

POST https://agwsapi.tarlanpayments.kz/showcase-gateway/api/v1/calculate/upper/commission

Headers

Name
Value

Content-Type

application/json

Request body parameters

Name
Type
Description

agent

string

The code of the showcase in the Tarlanpayments system

project

string

The Project code in the Tarlanpayments system

service_code

string

The service code in the Tarlanpayments system

amount

float64

The amount to calculate the top commission for

Response body parameters

Name
Type
Description

status

boolean

Request processing status

status_code

uint

Error code

message

string

Error description

result

object

The object that stores the query result

-amount

float64

The amount for which it was necessary to calculate the top commission

-amount_with_commission

float64

Total amount with top commission

(amount + commission)

-commission

float64

The amount of the top commission

{
    "status": true,
    "message": "Success",
    "status_code": 0,
    "result": {
        "amount": 10.4,
        "amount_with_commission": 11.84,
        "commission": 1.44
    }
}
curl --location 'https://agwsapi.tarlanpayments.kz/showcase-gateway/api/v1/calculate/upper/commission' \
--header 'X-Signature: 7ff51c9f26c287e42fa37537df719974e297a751c4e2eba26d7622sgwgf225543sa' \
--header 'Content-Type: application/json' \
--data '{
    "agent":"agent",
    "project":"project",
    "service_code":"service",
    "amount": 10.42
}'

Last updated