Marketplace

Generate payment link

Changed on

Generates 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 URL
    https://api.alteg.io/api/v1
  • URL
    https://api.alteg.io/api/v1/marketplace/application/payment_link
  • Auth
    HTTP 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

successboolean

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 query request parameter discount, the max was set to 99.99

    • warning

      for the query request parameter discount, the min was set to 0.00

    • info

      added the non-success response with the status

    • breaking

      added the new required query request parameter tariff_option_id