Mark an add-on activation as pending: the shop order exists but the
payment (bank transfer/RiBa) has not been confirmed yet. Display-only
— the UI shows the entitlement as pending instead of offering
another purchase; enforcement is NOT affected (collect keeps
answering 403 until the real activation).
On a fresh purchase a non-active stub grant is created; on an
existing grant (renewal, re-buy after revocation/expiry) only the
pending marker is stamped. Idempotent. The marker is cleared by
POST /entitlements/activate (order completed) or by
POST /entitlements/deactivate with the same source_ref (order
cancelled before payment). Same addressing and auth as activate
(manage:entitlements permission).
Body
Required
-
Key of the system the add-on was bought for
-
Canonical catalog id or legacy alias of the add-on
-
Application instance the grant is narrowed to
-
Reference of the order awaiting payment; the later activate/deactivate with the same ref resolves the marker
-
Email of the WordPress customer that owns the order (server-to-server, trusted). Stamped in
purchased_byon fresh pending stubs only — a pending renewal never overwrites who bought the currently active grant. -
Shop variation (tier) of the purchased product line. Display metadata only: the add-on↔product mapping stays on the parent product and /auth enforcement ignores it. Refreshed by activate, so tier upgrades/downgrades follow the renewals. Omitted for manual grants and simple (non-variable) products.
curl \
--request POST 'https://api.your-domain.com/api/entitlements/pending' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"system_key":"NETH-F5D2-5E69-A174-45A9-B1AB-2BB9-03F5-F1B4","entitlement":"nethvoice-chat","scope":"nethvoice1","source_ref":"wc-order-83164","buyer_email":"mario.rossi@example.com","variant":{"id":245,"sku":"ATS-15","label":"1-15 device"}}'
{
"system_key": "NETH-F5D2-5E69-A174-45A9-B1AB-2BB9-03F5-F1B4",
"entitlement": "nethvoice-chat",
"scope": "nethvoice1",
"source_ref": "wc-order-83164",
"buyer_email": "mario.rossi@example.com",
"variant": {
"id": 245,
"sku": "ATS-15",
"label": "1-15 device"
}
}
{
"code": 200,
"message": "entitlement activation marked pending",
"data": {
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"system_id": "550e8400-e29b-41d4-a716-446655440000",
"entitlement": "nsec-blacklist",
"scope": "nethvoice1",
"source": "manual",
"source_ref": "sub_12345",
"valid_from": "2026-07-01T10:00:00Z",
"valid_until": "2027-07-01T10:00:00Z",
"revoked_at": "2026-05-04T09:42:00Z",
"revoked_source": "shop",
"active": true,
"pending_ref": "wc-order-83164",
"pending_since": "2026-07-15T18:00:00Z",
"status": "active",
"created_by": {
"user_id": "53h5zxpwu4vc",
"user_name": "Edoardo Super",
"organization_id": "lbswt1rxdhbz",
"organization_name": "Nethesis Italia",
"channel": "shop"
},
"purchased_by": {
"logto_id": "53h5zxpwu4vc",
"name": "Mario Rossi",
"email": "mario.rossi@example.com",
"organization_id": "akkbs6x2wo82",
"organization_name": "ACME S.r.l.",
"org_role": "reseller",
"user_roles": [
"Admin"
],
"out_of_scope": true
},
"variant": {
"id": 245,
"sku": "ATS-15",
"label": "1-15 device"
},
"renewal_count": 3,
"created_at": "2026-07-01T10:00:00Z",
"updated_at": "2026-07-01T10:00:00Z"
}
}
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}
{
"code": 401,
"message": "invalid token",
"data": {}
}
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}
{
"code": 500,
"message": "internal server error",
"data": {}
}