Tarlanpayments
Eng
Eng
  • Acquiring
    • General information
      • Structure of payment processing
      • Kinds of operations
      • 3D-Secure
      • PCI DSS
    • Types of transactions
    • Structure of system responses
    • Error code
    • Transaction statuses
    • Signature Creation
    • Additional parameters
    • Interaction with the payment method
      • Initiating funds receipts
      • Initiating pay out
      • Card link
      • Initiating funds using Apple Pay
      • Initiating funds using Google Pay
      • Iframe
    • Payments without form of payment
      • One click
    • Smart Pay
      • Google pay
    • Supplementary methods
      • Removal of a linked user card
      • Verification of transaction status
      • Receiving a list of cards
      • Refund
      • Upper fee calculation
    • Webhook of the payment system
      • Payment Status
      • Payment ready to be made
    • Tilda Publishing
    • Edit summary
  • AGWS
    • Account Status Codes Guide
    • Error Codes
    • Reason for operation rejection
    • Transaction Lifetime
    • Transaction Status Guide
    • Creating a Signature
    • Check account status
    • Make a payment
    • Checking the refill status
    • Checking the remaining balance on the account
    • Confirmation of funds debit
    • Creating a payment link
    • Showcase Flow
    • Service Provider Flow
    • Payment System Callback
    • Payment Processing Scheme
  • Receiving a fiscal receipt
  • Calculation of the upper commission
Powered by GitBook
On this page
  • Headers
  • Request body parameters
  • Response body parameters

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

X-Signature

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
    }
}
{
    "status": false,
    "status_code": 1014,
    "message": "Invalid signature",
    "result": {}
}
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 11 days ago

Authorization hash