Skip to content
campaiDeveloper
campai.com

Crm ยท Work hours

POST/{organizationId}/{mandateId}/crm/work-hours/accounts/{accountId}/revoke-settlement

Revoke work hours settlement

Reopens a settled work hours account so its entries can be corrected and it can be settled again. Its receipt is canceled, which fails once it was paid. Revoking a buyout also removes the buyout. Users limited to their assigned entries cannot revoke settlements.

Permissions

Send an API key of the organization in the path, using the X-API-Key header.

Permission checks in detail
Required permissions
  • mandate.read
  • workHours.read
  • workHoursSettlement.edit
  • receipt.edit

Request

Path parameters

  • organizationIdidrequired
  • mandateIdidrequired
  • accountIdidrequired
Request
curl --fail-with-body --silent --show-error --max-time 30 --globoff \
  --request POST 'https://cloud.campai.com/api/YOUR_ORGANIZATION_ID/YOUR_MANDATE_ID/crm/work-hours/accounts/YOUR_ACCOUNT_ID/revoke-settlement' \
  --header 'X-API-Key: YOUR_API_KEY'

Response

200 Successful response

No response body is specified.

Errors

No errors of its own are known for this endpoint.

Errors nearly every request can meet are listed under Errors.