Marketplace

Set payment discount for locations

Changed on

Sets a payment discount for specific locations when they pay through Altegio platform.

Note: This endpoint is intended for marketplace partners only. Requires marketplace partner authorization.

post/marketplace/application/add_discount

Request

  • Base URL
    https://api.alteg.io/api/v1
  • URL
    https://api.alteg.io/api/v1/marketplace/application/add_discount
  • Auth
    HTTP bearer

Headers

Acceptstring required
Content-Typestring required
Authorizationstring required

Bearer {partner_token}

Request body

salon_idsinteger[] required

List of location IDs to apply discount

application_idinteger required

Application ID from marketplace

discountnumber float required

Discount percentage, from 0 to 99.99

Example request

{
  "salon_ids": [
    123,
    456
  ],
  "application_id": 123,
  "discount": 15.54
}

Response

Discount successfully applied

successboolean
dataobject

Example response

{
  "success": true
}

Changes

    • warning

      the request property's max was set to 99.99

    • warning

      the request property's min was set to 0.00

    • info

      added the non-success response with the status