User authentication and session management for B2B integrations
- Get a List of Gift Card Types by ID
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.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/user/loyalty/certificates
- Productionhttps://api.alteg.io/api/v1/user/loyalty/certificates
- 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/user/loyalty/certificates?company_id=0' \
-H 'Accept: string' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }
Request
A list of gift card types available at the location can be obtained by querying the location ID and gift card type IDs.
The list is an array of gift card types.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/loyalty/certificate_types/fetch
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/loyalty/certificate_types/fetch
- 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/company/{location_id}/loyalty/certificate_types/fetch' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
{ "success": true, "data": [ { … } ], "meta": { "count": 1 } }
Request
A list of gift card types available at a location can be obtained by querying the location ID. The list can be filtered by the name of the gift card type by passing the title parameter. Pagination is supported, specified by the page and page_size parameters.
The list is an array of gift card types.
Gift card type has the following structure:
| Field | Type | Description |
|---|---|---|
| id | number | Gift card type identifier |
| title | string | Gift card type name |
| balance | number | Gift card denomination |
| is_multi | boolean | Write-off type: true - multiple write-off, false - single write-off |
| company_group_id | number | ID of the chain where the gift card type is valid |
| item_type_id | number | Application Constraint (list of possible values) |
| expiration_type_id | number | Expiration limit (list of possible values) |
| expiration_date | string | Fixed burn date in ISO8601 format (null if not set) |
| expiration_timeout | number | Gift card validity period from the date of sale (0 if not set) |
| expiration_timeout_unit_id | number | The unit of measurement of the validity period of the gift card from the moment of sale (list of possible values, if not set - 0) |
| is_allow_empty_code | boolean | Allow sale of gift card without code? true - allow, false - do not allow |
| Meaning | Description |
|---|---|
| 0 | Unlimited |
| 1 | Any services without products |
| 2 | Any products without services |
| 3 | Some services without products |
| 4 | Some services and any products |
Gift Card Type Expiration Limit
| Meaning | Description |
|---|---|
| 0 | No expiration date |
| 1 | Fixed date for all instances |
| 2 | Fixed period of validity from the date of sale |
Units of certificate type validity period
| Meaning | Description |
|---|---|
| 1 | Day |
| 2 | Week |
| 3 | Month |
| 4 | Year |
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/company/{location_id}/loyalty/certificate_types/search
- Productionhttps://api.alteg.io/api/v1/company/{location_id}/loyalty/certificate_types/search
- 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/company/{location_id}/loyalty/certificate_types/search?title=string&page=0&page_size=0' \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: string'OK
Array of objects with data
{ "success": true, "data": [ { … }, { … } ], "meta": { "count": 2 } }