HTTP proxy API in front of TIMIFY GraphQL services. Generated from Express routes and route analysis docs.
- Update enterprise customer
TIMIFY Developer API GraphQL Proxy (0.0.4)
Request
The URL parameter "customerId" can be used in two ways: - Unique ID of the customer assigned by TIMIFY ("customerId"). In this case, you don't need the QUERY parameter "external" - use the "externalId" that you added to this customer. In this case, you need to add the parameter "external" ( for ex.: /?external=1) so the api will search by your "externalId" and not by "customerId" assigned by TIMIFY You can add "externalId" to the customer with the endpoints POST /customers and PATCH customers/:customerId
- Mock serverhttps://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers/{customerId}
- Productionhttps://api.timify.com/v1/enterprise-customers/{customerId}
- Staginghttps://api-stg.timify.com/v1/enterprise-customers/{customerId}
- Local developmenthttp://localhost:3030/v1/enterprise-customers/{customerId}
- 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/65f4c840b6f1a10012ab34cd?external=true' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'company-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 }
Request
Update the data of a customer. Customer data is created and updated with the "customfield" attribute. Every data attribute of a customer is a custom field, for example firstName, lastName, email etc. The URL parameter "customerId" can be used in two ways: - As a unique ID of the customer assigned by TIMIFY ("customerId"). In this case, you don't need the QUERY parameter "external" - use the "externalId" that you added to this customer. In this case, you need to add the parameter "external" ( for ex.: /?external=1) the API will search by your "externalId" and not by "customerId" assigned by TIMIFY You can add "externalId" to the customer with the Developer API endpoints POST /customers and PATCH /customers/:customerId 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/{customerId}
- Productionhttps://api.timify.com/v1/enterprise-customers/{customerId}
- Staginghttps://api-stg.timify.com/v1/enterprise-customers/{customerId}
- Local developmenthttp://localhost:3030/v1/enterprise-customers/{customerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers/65f4c840b6f1a10012ab34cd?external=true' \
-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 }
- Mock serverhttps://docs2.timify.com/_mock/apis/openapi/v1/enterprise-customers/{customerId}/events
- Productionhttps://api.timify.com/v1/enterprise-customers/{customerId}/events
- Staginghttps://api-stg.timify.com/v1/enterprise-customers/{customerId}/events
- Local developmenthttp://localhost:3030/v1/enterprise-customers/{customerId}/events
- 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/65f4c840b6f1a10012ab34cd/events?external=true&customer_filter_type=string&page=1&limit=50&with_full_attributes=true' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'company-id: 65f4c840b6f1a10012ab34cd'Returns paginated list of events for the specified enterprise customer.
List payload.
{ "total": 182, "data": [ { … }, { … } ], "status": 1 }