Метод для отримання інформації щодо можливої суми комісії по створеному інвойсуMethod for obtaining information on the possible amount of commission on the created invoice.
Tip |
---|
URI POST /api/invoicer/payments/showCommission |
ЗапитRequest:
Key |
---|
Description |
---|
Type |
---|
Mandatory |
---|
Example | ||||
---|---|---|---|---|
params |
|
|
|
|
sessionId | client session id |
string, uuid |
yes | "00684a7f-3d5c-43f4-b4d1-ea994226be9c" |
invoiceId | invoice id |
string, uuid |
yes | "6e391161-94ff-41a3-bd22-c6d77509bff6" | |||
data |
|
|
|
|
amount |
the amount of payment in kopecks | integer |
yes |
|
Параметр amount є обов'язковим, але враховується при розрахунку це поле лише для інвойсів з відкритою сумою. Для інших інвойсів сума не залежить від значення цього параметру і комісія буде розраховуватися від суми, вказаної при створенні інвойсуThe amount parameter is mandatory, but this field is taken into account in the calculation only for invoices with an open amount. For other invoices, the amount does not depend on the value of this parameter and the commission will be calculated from the amount specified when creating the invoice.
Expand | ||
---|---|---|
| ||
|
ВідповідьReply:
Key |
---|
Description |
---|
Type |
---|
Example |
---|
status |
Status. 0 - |
error, 1 - |
success | integer | 1 | |
data |
|
|
|
commissionAmount |
The amount of commission | integer |
| |
commission |
| ||
percents |
commission percentage | integer | 2 |
fixed |
fixed value of the commission | integer | 100 |
Expand | ||
---|---|---|
| ||
|
...