Skip to content

Notify Altegio of Successful Payment

Request

A webhook notification must be sent to this address to inform Altegio of a successful payment made on the partner service’s side.

Security
BearerPartner
Headers
Acceptstringrequired

e.g. application/vnd.api.v2+json

Example:application/vnd.api.v2+json
Bodyapplication/json
salon_idnumberrequired

Location ID.

Example:123
currency_isostringrequired

Currency ISO (e.g.: USD, EUR, BYN)

Example:"EUR"
application_idnumberrequired

Application ID.

Example:123
payment_sumnumberrequired

Payment amount.

Example:990.99
payment_datestringrequired

Date and time of payment.

Example:"2022-01-01 10:10:00"
period_fromstringrequired

Date from which the paid period begins (inclusive).

Example:"2022-01-01 10:10:00"
period_tostringrequired

Date from which the paid period ends (inclusive).

Example:"2022-02-01 10:10:00"
curl -i -X POST \
  https://developer.alteg.io/_mock/en/developers/openapi/marketplace/partner/payment \
  -H 'Accept: application/vnd.api.v2+json' \
  -H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "salon_id": 123,
    "application_id": 123,
    "currency_iso": "EUR",
    "payment_sum": 990.99,
    "payment_date": "2022-01-01 10:10:00",
    "period_from": "2022-01-01 10:10:00",
    "period_to": "2022-02-01 10:10:00"
  }'

Responses

Webhook ok

Bodyapplication/json
successboolean(Status.)

Status.

Example:true
dataobject

Data.

Response
{ "success": true, "data": { "id": 123 } }