User authentication and session management for B2B integrations
- List certificate types
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
Archives or unarchives a membership type.
Archived membership types:
- Cannot be sold to new clients
- Existing active memberships remain functional
- Can be unarchived at any time
Note: Requires chain-level permissions.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/{chain_id}/loyalty/abonement_types/{loyalty_membership_type_id}/archive
- Productionhttps://api.alteg.io/api/v1/chain/{chain_id}/loyalty/abonement_types/{loyalty_membership_type_id}/archive
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/1/loyalty/abonement_types/489159/archive \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"is_archived": true
}'Request
Retrieves a list of certificate types at the chain level.
Returns all certificate types configured for the chain with optional filtering and pagination.
Query Parameters:
title- Filter by certificate type name (partial match)page- Page number (default: 1)page_size- Items per page (default: 10, max: 100)
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
- 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 GET \
'https://developer.alteg.io/_mock/en/b2b-v1/openapi/chain/706028/loyalty/certificate_types?title=Gift&page=1&page_size=10' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>'{ "success": true, "data": [ { … } ], "meta": { "total_count": 1 } }
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": [] }