Prepare discount code generation transaction
POST/api/solana/discount
Prepares a blockchain transaction to create a new discount code with predefined discount (15%) and referral (10%) percentages. The discount and referral percentages are defined in the backend and cannot be customized through the API request. The code generation is executed asynchronously on the blockchain. The response contains a serialized transaction that the client must sign and submit to the Solana network. Use the transaction verification endpoint to confirm successful completion.
Request
Responses
- 200
- 400
Discount code generation transaction prepared successfully
Bad request - missing required fields or validation errors