Payments (payment)

Payments (payment)

Display list of payments (payment)

Result: list of items

UI Equivalent: go to Payments in the platform left menu.

Returns a list of payments. To display payments for a period, use the createdatestart and createdateend parameters.

Access level: admin, user

ParameterTypeRequiredValue
idPositive integerNoUnique payment identifier for list filtering.
numberStringNoPayment number according to company or payment method numbering rules. Supports the wildcard character *.
statusString (enumeration)NoFilter by payment status. Possible values:
  • 1 — new;
  • 2 — paid;
  • 3 — promised payment;
  • 4 — credited;
  • 5 — awaiting refund;
  • 6 — refunded;
  • 7 — fraudulent;
  • 8 — initiated;
  • 9 — cancelled;
  • 100 — being deleted.
sender_nameStringNoSearch by payer name. Supports the wildcard character *.
recipient_nameStringNoSearch by recipient company name.
paymethod_nameStringNoFilter by payment method name.
subaccountamount_isoStringNoFilter by amount credited to the client account.
paymethodamount_isoStringNoFilter by amount in the payment method currency.
createdateDate and timeNoPayment creation date. Format: YYYY-MM-DD HH:MM:SS.
pay_dateDate and timeNoPayment crediting date. Format: YYYY-MM-DD HH:MM:SS.
billorderPositive integerNoFilter by order ID to which the payment is linked.
docflow_pdf_statusString (enumeration)NoFilter by electronic document flow status.
payment_receiptStringNoFilter by fiscal receipt number.
paymentinvoice_numberStringNoFilter by invoice number.
sortStringNoColumn name for sorting. For example, id, number, create_date.

Example API call to get a list of payments with status "New" for a period:

Example API call
https://IP-address:1500/billmgr?authinfo=username:password&func=payment&filter=on&status=1&createdate=other&createdateend=2020-07-03&createdatestart=2020-06-03&out=xml
Details

In the example, when calling the function, the response will contain a list of payments with status "New" for the period from June 3, 2020 to July 3, 2020.

Edit payment parameters

Function: payment.edit

Result: successful operation or error message

UI Equivalent: go to Payments → click Edit in the payments list.

Used to edit payment parameters. Supports modification of number, dates, amounts, status, payment method, and other fields.

Access level: admin

ParameterTypeRequiredValue
elidPositive integerYesUnique payment identifier for editing.
numberStringNoInvoice number for payment. Maximum length: 64 characters.
createdateDate and timeNoDate and time of invoice creation. Format: YYYY-MM-DD HH:MM:SS.
paydateDate and timeNoPayment or crediting date. Format: YYYY-MM-DD HH:MM:SS.
documentnumberStringNoPayment document number. Maximum length: 64 characters.
documentdateDateNoPayment document date. Format: YYYY-MM-DD.
descriptionStringNoPayment purpose.
senderPositive integerNoID of the payer on whose behalf the payment was made.
recipientPositive integerNoID of the recipient company of the payment.
subaccountamountStringNoAmount credited to the client account.
paymethodamountStringNoAmount in the payment system currency.
statusString (enumeration)NoPayment status. Possible values:
  • 1 — new;
  • 2 — paid;
  • 3 — promised payment;
  • 4 — credited;
  • 5 — awaiting refund;
  • 6 — refunded;
  • 7 — fraudulent;
  • 9 — cancelled.
paymethodPositive integerNoID of the payment method.
restrictrefundFlagNo

Prohibit refunds from this payment. Possible values:

  • on — prohibit;
  • off — allow.
infoStringNoAdditional information about the payment received from the payment system.
noteStringNoStaff comment.
sokStringNoThe value ok confirms saving changes.

Delete payments

Function: payment.delete

Result: successful operation or error message

UI Equivalent: go to Payments → click Delete in the payments list.

Deletes payments. Supports deletion of multiple payments separated by commas. Unavailable for payments with statuses: "Promised payment", "Credited", "Awaiting refund", "Refunded", "Fraudulent". Confirmation via the sok parameter is required.

Access level: admin

ParameterTypeRequiredValue
elidString (list)YesOne or more payment id values separated by commas. For example, 123,456.
sokStringYesThe value ok confirms the operation. Without this parameter, changes will not be applied.

Credit payments

Function: payment.setpaid

Result: successful operation or error message

UI Equivalent: go to Payments → click Credit in the payments list.

Credits selected payments to the client account. Unavailable for payments with statuses: "Credited", "Refunded", "Cancelled", as well as if the refund flag is set. Confirmation via the sok parameter is required.

Access level: admin

ParameterTypeRequiredValue
elidString (list)YesOne or more payment id values separated by commas.
sokStringYesThe value ok confirms the operation.

Refund funds for a payment

Function: payment.refund

Result: successful operation or error message

UI Equivalent: go to Payments → click Refund in the payments list.

Allows refunding all or part of the funds credited to the client account by the selected payment. Available only for credited payments if supported by the payment method. Confirmation via the sok parameter is required.

Access level: admin

ParameterTypeRequiredValue
elidPositive integerYesid of the payment for which the refund needs to be performed.
amountStringNoRefund amount. If not specified, the full payment amount is refunded.
sokStringYesThe value ok confirms the operation.

Send payment document

Function: payment.docflow.send

Result: successful operation or error message

UI Equivalent: go to Payments → click Send invoice in the payments list.

Sends a document in PDF format via email.

Access level: admin

ParameterTypeRequiredValue
elidPositive integerYesid of the payment for which the document needs to be sent.
methodString (enumeration)NoMethod of sending documents to clients. Possible values:
  • email — via email.
sokStringYesThe value ok confirms the operation.

Print payments

Function: payment.print

Result: successful operation or error message

UI Equivalent: go to Payments → click Print in the payments list.

Returns a ready print form of selected payments with details, amounts, and tax data.

Access level: admin, user

ParameterTypeRequiredValue
elidString (list)YesOne or more payment id values separated by commas.

Download payments in PDF format

Function: payment.print.pdf

Result: successful operation or error message

UI Equivalent: go to Payments → click Download in the payments list.

Returns a PDF document with details of selected payments.

Access level: admin, user

ParameterTypeRequiredValue
elidString (list)YesOne or more payment id values separated by commas.

Display invoice contents

Function: payment.orderinfo

Result: list of items

UI Equivalent: go to Payments → click Details in the payments list.

Returns details of invoice items linked to the payment.

Access level: admin

ParameterTypeRequiredValue
elidPositive integerYesid of the payment for which invoice contents need to be displayed.

Display payment expense allocation

Function: payment.expense

Result: list of items

UI Equivalent: go to Payments → click Expenses in the payments list.

Returns a list of expenses linked to the payment. Available only for payments with statuses: "Promised payment", "Credited".

Access level: admin

ParameterTypeRequiredValue
elidPositive integerYesid of the payment for which expense allocation needs to be displayed.

Create an invoice for a payment

Function: payment.invoice_create

Result: successful operation or error message

UI Equivalent: go to Payments → click Invoice in the payments list.

Creates an invoice for the selected payment. Available only if invoice creation is allowed for the payment. Confirmation via the sok parameter is required.

Access level: admin

ParameterTypeRequiredValue
elidString (list)YesOne or more payment id values separated by commas.
sokStringYesThe value ok confirms the operation.

Display payment change history

Function: payment.history

Result: list of items

UI Equivalent: go to Payments → click History in the payments list.

Returns a chronology of events related to payment parameter changes.

Access level: admin

ParameterTypeRequiredValue
elidPositive integerYesid of the payment for which change history needs to be displayed.

Write a ticket regarding a payment

Function: ticket.write.payment

Result: successful operation or error message

UI Equivalent: go to Payments → click Ticket in the payments list.

Creates a support ticket linked to the selected payment.

Access level: admin

ParameterTypeRequiredValue
elidString (list)YesOne or more payment id values separated by commas.
subjectStringNoTicket subject.
messageStringNoTicket message text.

Set a client payment filter

Function: payment.setfilter

Result: successful operation or error message

UI Equivalent: go to Payments → click Bilter by client in the payments list.

Sets a client filter for the payment list. Filter conditions are saved and applied to all subsequent payment calls until the filter is changed or reset.

Access level: admin

ParameterTypeRequiredValue
accountPositive integerNoClient ID for list filtering.
resetFlagNoThe value on resets all set filters.

Apply advanced filter

Function: payment.filter

Result: successful operation or error message

UI Equivalent: go to Payments → click Filter in the payments list.

Applies advanced filtering conditions to the payment list. Supports filtering by number, dates, amounts, statuses, payment methods, and other parameters.

Access level: admin

ParameterTypeRequiredValue
idPositive integerNoUnique payment identifier for filtering.
accountStringNoClient name for filtering.
account_idPositive integerNoClient codes for filtering.
numberStringNoPayment number for filtering. Supports the wildcard character *.
senderStringNoSearch by payer name/full name. Supports the ~ symbol as a separator for multiple values.
sender_idPositive integerNoPayer codes for filtering.
recipientString (list)NoRecipient company IDs for filtering. Multiple selection is possible.
createdateString (enumeration)NoCreation period. Possible values:
  • nodate;
  • today;
  • currentweek;
  • currentmonth;
  • lastday;
  • lastweek;
  • lastmonth;
  • lastyear;
  • week;
  • month;
  • quarter;
  • halfyear;
  • year;
  • other.
createdatestartDateNoStart date of the creation range. Format: YYYY-MM-DD.
createdateendDateNoEnd date of the creation range. Format: YYYY-MM-DD.
payfromdateDateNoPayments credited from date. Format: YYYY-MM-DD.
paytodateDateNoPayments credited to date. Format: YYYY-MM-DD.
profiletypeString (enumeration)No

Payer legal status. Accepts values:

  • 1 — individual;
  • 2 — legal entity;
  • 3 — sole proprietor.
maildocsString (enumeration)NoMethod of receiving documents. Possible values:
  • 0 — in the personal account;
  • 1 — by mail;
  • 2 — via email;
  • 3 — via electronic document flow system (EDF). Electronic document flow must be configured.
projectString (list)NoProvider IDs for filtering.
paymethodString (list)NoPayment method IDs for filtering.
moduleString (enumeration)NoPayment systems. For example, pmwire or pmyandexcheckout.
statusString (enumeration)NoFilter by payment status. Possible values:
  • 1 — new;
  • 2 — paid;
  • 3 — promised payment;
  • 4 — credited;
  • 5 — awaiting refund;
  • 6 — refunded;
  • 7 — fraudulent;
  • 8 — initiated;
  • 9 — cancelled;
  • 100 — being deleted.
docflow_pdf_statusString (enumeration)No

EDF statuses. Possible values:

  • 100 — awaiting sending;
  • 101 — sent;
  • 400 — completed.
saamount_fromStringNoMinimum payment amount credited to the account.
saamount_toStringNoMaximum payment amount credited to the account.
pmamount_fromStringNoMinimum amount in the payment method currency.
pmamount_toStringNoMaximum amount in the payment method currency.
restrictrefundFlagNoFilter by refund availability. Possible values:
  • on — prohibited;
  • off — allowed;
  • null — not set.
sendreportFlagNo

Enable automatic report sending via email. Possible values:

  • on — enabled;
  • off — disabled.
sendreport_emailStringYesEmail for sending the report. Required if sendreport=on.
sendreport_periodString (enumeration)YesSending frequency. Possible values:
  • daily — daily;
  • weekly — weekly;
  • monthly — monthly;
  • quarterly — quarterly;
  • annually — annually.
resetFlagNoThe value on resets all set filters.

Log in to the panel with client rights

Function: payment.su

Result: successful operation or error message

UI Equivalent: go to Payments → click Log in in the payments list.

Performs login to the control panel with the rights of the selected client to view their data.

Access level: admin

ParameterTypeRequiredValue
elidPositive integerYesUnique identifier of the client whose rights are to be used for login.

Proceed to payment payment

Function: payment.add.redirect

Result: successful operation or error message

Performs redirection to the payment wizard for the selected payment. Used to complete payment via the web interface.

Access level: user

ParameterTypeRequiredValue
elidPositive integerYesid of the payment to be paid.
amount_currencyPositive integerYesPayment amount.
sokStringYesThe value ok confirms the operation.

Create a payment directly (old cart)

Function: payment.add.pay

Result: successful operation or error message

UI Equivalent: go to payment and account top-up wizard.

Creates a payment directly, bypassing the cart. Used for payment only via the old cart.

When using this API, we recommend going through the entire payment wizard flow and focusing on which request is sent to the server upon its completion (calling payment.add.pay). Calling only this function separately may lead to errors.

The set of parameters depends on the selected payment method. The necessity of certain fields depends on the selected payment method, for example, for YooKassa you need to specify payment_method.

Access level: admin, user

ParameterTypeRequiredValue
amountStringYesPayment amount.
payment_currencyPositive integerYesID of the payment currency. Must match the currency of the selected payment method.
customer_accountPositive integerYesID of the client for whom the payment is being created.
paymethodPositive integerYesID of the payment module.
plidPositive integerNoClient ID from the payment.add function.
profilePositive integerNoPayer ID. Required if needed for the payment method.
profiletypeStringNoPayer type.
projectPositive integerNoProvider ID. The value must not be equal to 0.
billorderPositive integerNoCart ID to which the payment is linked.
sokStringYesThe value ok confirms the operation.
New payment
https://IP-address:1500/billmgr?amount=43.00&customer_account=49&func=payment.add.pay&payment_currency=126&paymethod=3&plid=49&profile=33&profiletype=3&project=1&sok=ok
Creating a payment for account top-up
https://IP-address:1500/billmgr?func=payment.add.pay&paymethod=1&profile=37&amount=999&payment_currency=126&sok=ok
Cart payment
https://IP-address:1500/billmgr?func=payment.add.pay&paymethod=1&profile=37&amount=999&payment_currency=126&sok=ok