curl --request POST \
--url https://one-link.kz/api/v1/accounts/{account_id}/scheduling/appointments/{id}/cancel \
--header 'api_access_token: <api-key>'{
"payload": {
"id": 123,
"account_id": 123,
"resource_id": 123,
"contact_id": 123,
"service_id": 123,
"company_id": 123,
"conversation_id": 123,
"created_by_id": 123,
"starts_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z",
"duration_min": 123,
"status": "<string>",
"appointment_type": "<string>",
"client_name": "<string>",
"client_phone": "<string>",
"client_identifier": "<string>",
"client_birth_date": "2023-12-25",
"client_gender": "<string>",
"payment_status": "<string>",
"service_amount": 123,
"prepaid_amount": 123,
"settlement_amount": 123,
"external_ref": "<string>",
"idempotency_key": "<string>",
"payments": [
{
"id": 123,
"amount": 123,
"payment_method": "<string>",
"payment_kind": "<string>"
}
],
"expense": {
"id": 123,
"amount": 123,
"status": "<string>"
}
}
}This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Appointment cancelled
Show child attributes
curl --request POST \
--url https://one-link.kz/api/v1/accounts/{account_id}/scheduling/appointments/{id}/cancel \
--header 'api_access_token: <api-key>'{
"payload": {
"id": 123,
"account_id": 123,
"resource_id": 123,
"contact_id": 123,
"service_id": 123,
"company_id": 123,
"conversation_id": 123,
"created_by_id": 123,
"starts_at": "2023-11-07T05:31:56Z",
"ends_at": "2023-11-07T05:31:56Z",
"duration_min": 123,
"status": "<string>",
"appointment_type": "<string>",
"client_name": "<string>",
"client_phone": "<string>",
"client_identifier": "<string>",
"client_birth_date": "2023-12-25",
"client_gender": "<string>",
"payment_status": "<string>",
"service_amount": 123,
"prepaid_amount": 123,
"settlement_amount": 123,
"external_ref": "<string>",
"idempotency_key": "<string>",
"payments": [
{
"id": 123,
"amount": 123,
"payment_method": "<string>",
"payment_kind": "<string>"
}
],
"expense": {
"id": 123,
"amount": 123,
"status": "<string>"
}
}
}