tochka_subscription_with_receipt
Create a subscription with a fiscal receipt. Provide customer code, amount, purpose, client email, and receipt items. Optionally enable recurring charges or save card.
Instructions
Create subscription with fiscal receipt.
For subscription without receipt, use tochka_subscription_create.
Args: customer_code: Customer code (9 chars, e.g. "100000001") amount: Subscription amount (> 0) purpose: Subscription purpose (1-140 chars) client_email: Receipt recipient email items_json: JSON array of receipt items [{name, amount, quantity, vatType?, paymentMethod?, paymentObject?}] redirect_url: Success redirect URL (optional) fail_redirect_url: Failure redirect URL (optional) save_card: Save card for future payments (optional) consumer_id: Consumer identifier (optional) merchant_id: Merchant identifier (optional) recurring: Enable recurring charges (optional) payment_link_id: Custom payment link ID, 1-45 chars (optional) client_name: Receipt recipient name (optional) client_phone: Receipt recipient phone (optional) tax_system_code: Tax system: osn, usn_income, usn_income_outcome, esn, patent (optional)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | ||
| purpose | Yes | ||
| recurring | No | ||
| save_card | No | ||
| items_json | Yes | ||
| client_name | No | ||
| consumer_id | No | ||
| merchant_id | No | ||
| client_email | Yes | ||
| client_phone | No | ||
| redirect_url | No | ||
| customer_code | Yes | ||
| payment_link_id | No | ||
| tax_system_code | No | ||
| fail_redirect_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |