Marketplace
Generate payment link
Changed onGenerates a payment link for application payment through Altegio platform.
A link with a non-zero discount is valid for 7 days. After that, the payment page rejects it and a new link must be generated. A link without a discount does not expire.
Note: For marketplace partners only.
get/marketplace/application/payment_link
Request
- Base URLhttps://api.alteg.io/api/v1
- URLhttps://api.alteg.io/api/v1/marketplace/application/payment_link
- AuthHTTP bearer
Query parameters
salon_idinteger required
Location ID
application_idinteger required
Application ID
tariff_option_idinteger required
Marketplace tariff option ID returned by the tariffs endpoint
discountnumber float
Discount percentage, from 0 to 99.99 (optional)
Headers
Acceptstring required
Authorizationstring required
Bearer {partner_token}
Response
Payment link generated successfully
Example response
{
"success": true,
"data": {
"url": "https://alteg.io/appstore/payment/?salon_id=1111&application_id=1&tariff_option_id=789&discount=15.5&source=api&sign=1792058400.6f9b5bc6fa787780161ed090af9429d5af963562b7a6ac8051888147370674be"
},
"meta": []
}Changes
- warning
for the
queryrequest parameterdiscount, the max was set to99.99 - warning
for the
queryrequest parameterdiscount, the min was set to0.00 - info
added the non-success response with the status
- warning
- breaking
added the new required
queryrequest parametertariff_option_id
- breaking