Authorization
default Authorization<token>
Use a public key (pk./pk_test.) for payment initialization. Use a secret key (sk./sk_test.) for sensitive operations (transfers, refunds, balance), or a restricted key (rk./rk_test.) scoped to specific permissions. The _test. variant of any key selects the sandbox environment, there is no separate sandbox URL. Never expose your secret key in client-side code.
In: header
Path Parameters
idstringrequired
Customer `id`.
Request Body
application/json
reasonstring | null
Why the customer is blocked, returned as `block_reason`.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.wajub.com/customers/cus_Qe7Tb2Wn5Lr9Xc4Mv8Hk1Zs3/block" \ -H "Content-Type: application/json" \ -d '{}'{ "code": 200, "status": "OK", "message": "Customer blocked", "customer": { "id": "cus_Qe7Tb2Wn5Lr9Xc4Mv8Hk1Zs3", "status": "blocked", "blocked": true, "block_reason": "Repeated chargebacks" }}Customer blocked