Skip to content

Block / Unblock Portal Access

Block a customer from the self-service customer portal, or restore their access. Blocked customers cannot sign in to manage their licenses.

POST   /v1/customers/:id/portal/block
DELETE /v1/customers/:id/portal/block

Path Parameters

ParameterDescription
idCustomer ID

Response

json
{
  "data": {
    "ok": true
  }
}

Examples

Block a customer:

bash
curl -X POST "https://api.packedge.dev/v1/customers/cus_xxx/portal/block" \
  -H "Authorization: Bearer pk_your_api_key"

Unblock a customer:

bash
curl -X DELETE "https://api.packedge.dev/v1/customers/cus_xxx/portal/block" \
  -H "Authorization: Bearer pk_your_api_key"

Notes

  • Blocking an already-blocked customer (or unblocking an unblocked one) returns 404
  • See Portal Settings for the portal URL and Blocked Customers for the current block list