Skip to navigation

Headquarter deleted

Headquarter was removed (logical deletion). The body carries its last state with is_active: false.

Headers

X-Crehana-Event-IdstringRequired

Event id. The same event keeps it on every attempt: deduplicate by it.

X-Crehana-Delivery-AttemptintegerRequired>=1
Attempt number, starting at 1.
X-Crehana-TimestampintegerRequired

Unix time (seconds) used in the signature.

X-Crehana-SignaturestringRequired

t=<timestamp>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">. During a secret rotation it carries one v1 per active secret.

Payload

The payload of this webhook request is an object.
address1string or nullRequired
Address line 1
address2string or nullRequired
Address line 2
address3string or nullRequired
Address line 3
centralized_organization_idintegerRequired
Organization id in Crehana.
citystring or nullRequired
City
country_codestring or nullRequired

ISO 3166-1 alpha-2 country code

event"headquarter.deleted"Required
Event type.
event_idstringRequired

Stable event id, also sent in X-Crehana-Event-Id.

headquarter_idintegerRequired

Headquarter id (same as site_id in user events)

is_activefalseRequired

Always false: the entity was removed (logical deletion).

is_mainboolean or nullRequired
Whether it is the main headquarter
namestring or nullRequired
Headquarter name
occurred_atdatetimeRequired

When it happened (UTC).

organization_slugstring or nullRequired

Current organization slug (informative).

postal_codestring or nullRequired
Postal code
statestring or nullRequired
State or province

Response

200
200 confirms the delivery. Answer within 10 seconds.
201
201 confirms the delivery. Answer within 10 seconds.
202
202 confirms the delivery. Answer within 10 seconds.
204
204 confirms the delivery. Answer within 10 seconds.