Adding payments
This API is used to add payment information for an account. You can specify the amount, date, external payment ID, and description.
How to get data
Method
POST
Request address
To get the data, use the address: https://<server_address>/ax/api.php?
Request parameters
-
cmd=payment — command to add a payment
-
inn — account’s INN (unique identifier)
-
sum — payment amount (format dd.dd)
-
id — payment ID in the external system
-
date — payment date (format DDMMYYYY)
-
descr — payment description (string), e.g., “payment for connection”
-
node — the number of the node where the command should be executed
Example request
https://<server_address>/ax/api.php?cmd=payment&inn=123123123&sum=10.00&id=124&date=04042016&descr=test%20payment&node=1
|
Response
{
"code": 0,
"msg": "Payment inserted successfully",
"data": {
"payment_id": 124,
"inn": "123123123",
"sum": 10.00,
"date": "04042016",
"descr": "test payment"
}
}
|