Purchase
The following documentation outlines the API endpoints and their respective functionalities for validating and processing in-app purchases using Telegram invoices.
CreateTelegramInvoice
This function is used to create a Telegram invoice link.
URL:
POST /api/{titleTemplateId}/{titleId}/Client/Purchase/CreateTelegramInvoice Request Parameters:
CreateInvoiceRequest(JSON body): The request payload containing the invoice details.
JSON Body:
title(string): The title of the invoice.description(string): The description of the invoice.payload(string): The payload of the invoice.provider_token(string): The provider token.currency(string): The currency of the invoice.prices(array): The list of prices in the specified currency.
Responses:
200 OK: Returns the Telegram invoice link.
400 Bad Request: Returns an error message if the request is invalid.
Example Usage:
Response Example:
Last updated
Was this helpful?