Update entity country activation
API Reference
Update entity country activation
Update country activation status for a merchant entity. Idempotent when status is unchanged; emits entity.country_activation_changed webhook on change.
PATCH
Update entity country activation
Overview
Sets the operational activation status for one country on a merchant entity. This does not modify entity profile data β useGET /entities/{id} to re-fetch the dossier after activation.
On every real status change, Gu1 emits the entity.country_activation_changed webhook to subscribed endpoints. Transitions between statuses are free-form (any status may move to any other).
Supported countryCode values: AR, BR, CL, CO, MX, US (case-insensitive).
Endpoint
Authentication
Requiresentities:edit (legacy fallback: entities:write).
Path Parameters
UUID of the entity (merchant).
ISO 3166-1 alpha-2 country to update (
AR, BR, CL, CO, MX, US).Request Body
One of:
deactivated, activation_requested, activation_in_progress, activated.Response
| Field | Type | Description |
|---|---|---|
data.entityId | string | Entity UUID |
data.countryCode | string | Normalized country code |
data.status | string | New status |
data.previousStatus | string | Status before this call |
data.changed | boolean | false if status was already the requested value (no webhook) |
data.activatedAt | string | null | Last activated timestamp |
data.deactivatedAt | string | null | Last deactivated timestamp |
data.updatedAt | string | null | Last change timestamp |
data.countries | array | Full snapshot of all allowlist countries after this call |
Example
Webhook payload (on change)
Whenchanged is true, subscribers receive:
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | UNSUPPORTED_COUNTRY_CODE | Country not in v1 allowlist |
| 404 | ENTITY_NOT_FOUND | Entity does not exist in the current organization |