HTTP proxy API in front of TIMIFY GraphQL services. Generated from Express routes and route analysis docs.
- List enterprise custom fields
TIMIFY Developer API GraphQL Proxy (0.0.4)
Request
The customer will be available in all branches. The customer data must be added through the payload attribute "customfields". Each kind of data associated with a customer is a custom filed. For example: firstName, lastName, email etc. You can use the endpoint GET /customers/customfields to retrieve all available custom fields for the selected company. To create a new custom field you can use the endpoint POST customers/customfields
Custom field values for the appointment. Each item is a {id, value} pair.
- Mock serverhttps://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers
- Productionhttps://api.timify.com/v1/enterprise-customers
- Staginghttps://api-stg.timify.com/v1/enterprise-customers
- Local developmenthttp://localhost:3030/v1/enterprise-customers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'company-id: 65f4c840b6f1a10012ab34cd' \
-d '{
"customfields": [
{
"id": "62ee11aa1d66269c365407c2",
"value": "John"
}
],
"external_id": "65f4c840b6f1a10012ab34cd",
"ignore_mandatory_validation": "example",
"import_customer_id": "65f4c840b6f1a10012ab34cd"
}'{ "data": { "id": "65f4c840b6f1a10012ab34cd", "externalId": "ext_1001", "firstName": "John", "lastName": "Doe", "fullName": "John Doe", "email": "john@example.com", "phone": { … }, "tags": [ … ], "totalBookings": 5, "avatarUrl": "https://example.com/avatar.jpg", "firstLetters": "JD", "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-02-20T14:45:30Z", "ts": 1708430730 }, "status": 1 }
Filter or option: external ids.
Filter or option: is mandatory offline.
Filter or option: services ids.
Filter or option: courses ids.
- Mock serverhttps://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers/customfields
- Productionhttps://api.timify.com/v1/enterprise-customers/customfields
- Staginghttps://api-stg.timify.com/v1/enterprise-customers/customfields
- Local developmenthttp://localhost:3030/v1/enterprise-customers/customfields
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers/customfields?ids=65f4c840b6f1a10012ab34cd&external_ids=65f4c840b6f1a10012ab34cd&is_mandatory_online=true&is_mandatory_offline=true&is_default=true&type=active&is_published=true&category_id=65f4c840b6f1a10012ab34cd&has_overwrite=true&is_active=true&services_ids=65f4c840b6f1a10012ab34cd&courses_ids=65f4c840b6f1a10012ab34cd&internal_id=65f4c840b6f1a10012ab34cd&only_locals=string&page=1&limit=50' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'company-id: 65f4c840b6f1a10012ab34cd'Returns paginated list of custom field definitions for enterprise customers.
List payload.
{ "total": 182, "data": [ { … }, { … } ], "status": 1 }
Specific service category ids.
Specific course category ids.
- Mock serverhttps://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers/customfields
- Productionhttps://api.timify.com/v1/enterprise-customers/customfields
- Staginghttps://api-stg.timify.com/v1/enterprise-customers/customfields
- Local developmenthttp://localhost:3030/v1/enterprise-customers/customfields
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers/customfields \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'company-id: 65f4c840b6f1a10012ab34cd' \
-d '{
"is_mandatory_online": true,
"is_mandatory_offline": true,
"external_id": "65f4c840b6f1a10012ab34cd",
"label": "example",
"type": "active",
"options": "example",
"active": "example",
"published": "example",
"is_unique_key": true,
"description": "example",
"specific_service_category_ids": [
"65f4c840b6f1a10012ab34cd"
],
"specific_course_category_ids": [
"65f4c840b6f1a10012ab34cd"
],
"service_ids": [
"65f4c840b6f1a10012ab34cd"
],
"course_ids": [
"65f4c840b6f1a10012ab34cd"
],
"category_id": "65f4c840b6f1a10012ab34cd",
"has_overwrite": true,
"price": 19.9,
"duration": 20,
"order_index": "example"
}'{ "data": { "id": "65f4c840b6f1a10012ab34cd", "externalId": "ext_1001", "firstName": "John", "lastName": "Doe", "fullName": "John Doe", "email": "john@example.com", "phone": { … }, "tags": [ … ], "totalBookings": 5, "avatarUrl": "https://example.com/avatar.jpg", "firstLetters": "JD", "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-02-20T14:45:30Z", "ts": 1708430730 }, "status": 1 }