User authentication and session management for B2B integrations
- Get 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
Creates a new certificate type at the chain level.
Certificate types define gift certificate templates that can be sold across multiple locations.
Item Type Restrictions:
- 0 = All services and products
- 1 = Any services (no products)
- 2 = Any products (no services)
- 3 = Specific services only (no products)
- 4 = Specific services + any products
Expiration Types:
- 0 = No expiration
- 1 = Fixed date for all instances
- 2 = Fixed period from sale date
Expiration Units:
- 1 = day
- 2 = week
- 3 = month
- 4 = year
Balance Edit Types:
- 1 = Can be edited
- 2 = Cannot be edited
Note: After creation, certificate products are automatically created in inventory.
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
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/certificate_types
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/706028/loyalty/certificate_types \
-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 1000",
"balance": 1000,
"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": 1000
}
}'{ "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
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": [] }