create_invoice
Generate a signed Robokassa checkout URL and form fields to redirect customers for payment. Accepts invoice amount, unique ID, fiscal receipt items, and encryption parameters.
Instructions
Build a signed Robokassa checkout URL + form fields for a new payment.
Does NOT make an HTTP request — produces the URL to redirect the user to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out_sum | Yes | Amount to charge (any numeric type; normalized to 2 decimals). | |
| inv_id | Yes | Unique invoice number. Pass 0 to let Robokassa assign one. | |
| description | No | Human-readable order description. | |
| merchant_login | No | Shop ID. Falls back to ROBOKASSA_LOGIN env var. | |
| password1 | No | Password#1. Falls back to ROBOKASSA_PASSWORD1 env var. | |
| receipt_items | No | Optional 54-ФЗ fiscal receipt items. Each item: `{name, quantity, sum, tax, payment_method, payment_object, nomenclature_code}`. Tax ∈ none / vat0 / vat5 / vat7 / vat10 / vat20 / vat105 / vat107 / vat110 / vat120. | |
| receipt_sno | No | Taxation scheme (`osn` / `usn_income` / etc.). | |
| shp_params | No | Extra `Shp_*` params echoed back in ResultURL. Keys may be passed without the `Shp_` prefix. | |
| No | Pre-fill customer email on the payment page. | ||
| culture | No | UI locale (`ru` / `en` / `kk`). | ru |
| currency | No | Restrict to specific payment method (`IncCurrLabel`). | |
| is_test | No | Use sandbox checkout instead of production. | |
| algorithm | No | Signature hash algorithm. | md5 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||