POST/v1/customers/{external_id}:unblock
Unblock a customer
Clears the block a reversed payment put on the customer, so they can buy and change their own subscriptions again. Needs customers:write.
curl -X POST 'https://api.entitler.co/v1/customers/ada:unblock' \
-H "Authorization: Bearer $ENTITLER_KEY" \
-H "Content-Type: application/json" \
-d '{"target":{"environmentId":"environmentId","projectId":"projectId","teamId":"teamId"}}'Credentials
Send any one of these:
- Bearer token
Path parameters
| Name | Type | Description |
|---|---|---|
external_idrequired | string |
Request body
object
targetProductTargetenvironmentIdstringprojectIdstringteamIdstring
Responses
200The UnblockCustomerResponse message.
UnblockCustomerResponse
customerCustomerattributesarray of CustomerAttributerequiredkeystringrequiredsetAtintegerrequiredat least 0; at most 18446744073709552000
setBycommon.Actoridstringrequiredtypecommon.ActorTyperequiredOne of
ACTOR_TYPE_UNSPECIFIED,ACTOR_TYPE_USER,ACTOR_TYPE_KEY,ACTOR_TYPE_SYSTEM.
sourceCustomerAttributeSourcerequiredOne of
CUSTOMER_ATTRIBUTE_SOURCE_UNSPECIFIED,CUSTOMER_ATTRIBUTE_SOURCE_BUSINESS,CUSTOMER_ATTRIBUTE_SOURCE_CUSTOMER.stateCustomerAttributeStaterequiredOne of
CUSTOMER_ATTRIBUTE_STATE_UNSPECIFIED,CUSTOMER_ATTRIBUTE_STATE_FREE_FORM,CUSTOMER_ATTRIBUTE_STATE_VALID,CUSTOMER_ATTRIBUTE_STATE_EXPIRED,CUSTOMER_ATTRIBUTE_STATE_INVALID.untilintegerat least 0; at most 18446744073709552000
valuestringrequiredverifiedAtintegerat least 0; at most 18446744073709552000
verifiedBycommon.Actoridstringrequiredtypecommon.ActorTyperequiredOne of
ACTOR_TYPE_UNSPECIFIED,ACTOR_TYPE_USER,ACTOR_TYPE_KEY,ACTOR_TYPE_SYSTEM.
blockedAtintegerat least 0; at most 18446744073709552000
blockedReasonCustomerBlockReasonrequiredOne of
CUSTOMER_BLOCK_REASON_UNSPECIFIED,CUSTOMER_BLOCK_REASON_PAYMENT_REVERSED.createdAtintegerrequiredat least 0; at most 18446744073709552000
emailstringenvironmentIdstringrequiredexternalIdstringrequiredidstringrequiredidentityProviderIdstringmarketIdstringmoneyCustomerMoneyrequiredOne of
CUSTOMER_MONEY_UNSPECIFIED,CUSTOMER_MONEY_REAL,CUSTOMER_MONEY_TEST.namestringprojectIdstringrequiredrevisionintegerrequiredat least 0; at most 18446744073709552000
trackIdstringupdatedAtintegerrequiredat least 0; at most 18446744073709552000
ErrorA refusal, with the HTTP status of its gRPC code.
Error
errorobjectrequiredcodestringrequiredparametersobjectrequiredEach value: string
reasonstringor nullrequired