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

Always allow merchant

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/merchants/{id}/allow" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"max_amount_base_units":"50000"}'

Marks a merchant as always allowed for the organization, optionally up to max_amount_base_units per purchase, replacing any block. Console session or API key with mandate:edit.

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

    Merchant id (mch_...).

Body

application/json. Fields are listed under Request body below.

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_...).

Request Body

application/json
  1. body
max_amount_base_units?string|integer|null

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