Initialization of the debit process
Endpoint: /api/einvoice/process
Parameters to be passed (at least one of the parameters is mandatory):
| Field | Discription |
|---|---|
| payment_id | Tracking number of the payment order in the client's accounting system |
| tracking | Tracking number of the order in the gateway's accounting system |
Example request: { "payment_id": 6, "tracking": "6EEB-220B-FB62-3405-0C57-65FA-0C4C-F6D4" }
Example of successful execution: { "payment_id": "1234", "tracking": "229E-A48C-CA08-0222-9780-F68C-2C64-2009", "pay_form" : "<form ...>....</form>", "pay_link": "https://…..", "status" : "PAYIN", "h2h_allow": true, "h2h_session": "18e8d448-9e5d-4390-ba2f-d6b0434c9070", "h2h_data": {"field1": "value1", "field2": "value2", ....} }
List of returned fields:
| Field | Discription |
|---|---|
| error | Error description |
| tracking | Tracking number in the gateway's accounting system |
| payment_id | Tracking number in the client's accounting system |
| status | Payment status. Possible values: PAYIN - system awaits payment for the invoice |
| pay_link | URL to which the user should be redirected for payment |
| pay_form | Form that the user should submit to proceed with the payment |
| h2h_allow | Is it possible to perform the peration according to the scheme at a distance? host-to-host. true - indicates that it is possible to continue the operation according to the scheme host-to-host, false - продолжение операции по схеме host-to-host недоступно |
| h2h_session | Session ID for performing the operation according to the scheme host-to-host |
| h2h_data | Data for host-to-host interactions |
The response may contain both pay_link and pay_form elements, but if both are present, preference should be given to pay_form.
If cryptocurrency payment is accepted, the response will include a crypto object.
Example of the crypto object: { "crypto": { "address": "3HaazHQCuLfpRxPSF123ALiisMSqGYjYcSd", "current_confirmations": "1", "success_confirmations": 4 } }
| Field | Discription |
|---|---|
| address | The address to which the user should transfer the funds |
| current_confirmations | The current number of confirmations by the network for the transfer |
| success_confirmations | The number of confirmations at which the funds will be credited to the cash register account |