User authentication and session management for B2B integrations
- Update certificate type
Business Management (1.0.0)
Full-featured B2B API for business operations.
Base URL: https://api.alteg.io/api
V1 will be gradually deprecated. We recommend using V2 API for new integrations. V1 endpoints are maintained for backward compatibility, but new features will be released in V2 only.
Request
Retrieves a specific certificate type by ID at the chain level.
Returns complete certificate type configuration including expiration rules, restrictions, and online sale settings.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/certificate_types/{type_id}
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/certificate_types/{type_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/706028/loyalty/certificate_types/289056 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'{ "success": true, "data": { "id": 289056, "title": "Gift Certificate 1000", "balance": 1000, "is_multi": true, "company_group_id": 706028, "category_id": null, "weight": 1, "item_type_id": 0, "expiration_type_id": 2, "expiration_date": null, "expiration_timeout": 6, "expiration_timeout_unit_id": 3, "balance_edit_type_id": 1, "is_allow_empty_code": false, "is_serial_number_limited": false, "is_archived": false, "date_archived": null, "online_sale_is_enabled": false, "online_sale_title": "Gift Certificate 1000", "online_sale_description": "", "online_sale_price": 0, "online_sale_image": null, "released_total": 0, "item_type": { … }, "service_ids": [], "salon_ids": [ … ] }, "meta": [] }
Request
Updates an existing certificate type at the chain level.
All fields from creation are required. Use GET first to retrieve current values, then modify needed fields and send complete object.
Note: Cannot update certificate types that have already been issued.
Balance editability (1 = editable, 2 = not editable)
Expiration settings
Expiration type: 0 = none, 1 = fixed date, 2 = period from sale
Fixed expiration date (ISO 8601, required if type_id = 1)
Online sale settings
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/certificate_types/{type_id}
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/certificate_types/{type_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/706028/loyalty/certificate_types/289056 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"title": "Gift Certificate 1500",
"balance": 1500,
"is_multi": true,
"item_type_id": 0,
"is_allow_empty_code": false,
"category_id": null,
"balance_edit_type_id": 1,
"service_ids": [],
"salon_ids": [
720441
],
"expiration": {
"type_id": 2,
"date": "2026-12-31T23:59:59+00:00",
"timeout": 6,
"timeout_unit_id": 3
},
"online_sale": {
"is_enabled": false,
"title": "Gift Certificate",
"description": "Perfect gift for any occasion",
"price": 1500
}
}'{ "success": true, "data": { "id": 289056, "title": "Gift Certificate 1500", "balance": 1500, "is_multi": true, "company_group_id": 706028, "category_id": null, "weight": 1, "item_type_id": 0, "expiration_type_id": 2, "expiration_date": null, "expiration_timeout": 6, "expiration_timeout_unit_id": 3, "balance_edit_type_id": 1, "is_allow_empty_code": false, "is_serial_number_limited": false, "is_archived": false, "date_archived": null, "online_sale_is_enabled": false, "online_sale_title": "Gift Certificate 1500", "online_sale_description": "", "online_sale_price": 0, "online_sale_image": null, "released_total": 0, "item_type": { … }, "service_ids": [], "salon_ids": [ … ] }, "meta": [] }
Request
Deletes a certificate type from the chain.
Warning: This action cannot be undone. Certificate types that have issued certificates cannot be deleted.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/certificate_types/{type_id}
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/certificate_types/{type_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/706028/loyalty/certificate_types/289056 \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'{ "success": true, "data": null, "meta": [] }