Risk
POST/v1/merchants/{id}/block

Block merchant

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/merchants/{id}/block" \  -H "Cookie: <console session cookie>"

Blocks a merchant for the whole organization, replacing any allow rule. Console session or API key with mandate:edit.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/merchants/{id}/blockBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Merchant id (mch_...).

Requires permissionmandate:edit
Held by owner, admin, finance, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

id*Id

Merchant id (mch_...).

Response Body

Success.

application/json
  1. response
merchant_id*Merchant Id

Merchant id (mch_...).

rule?|null
blocked*Blocked
blocked_at?string|null
blocked_by?string|null
allowed*Allowed
allow_max_amount_base_units?string|null
[key: string]?any