Skip to content
Navigation

Bans a domain, an address or a pattern from the store: it can no longer buy, claim, request, join a waitlist, be granted access or sign in. Access already given stays.

POST
https://api.sherpo.io/merchant/v1/stores/{store}/customer_bans

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

Header parameters

  • Idempotency-Key
    optional
    string

    Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.

    maxLength: 255 · minLength: 1 · pattern: ^[\x21-\x7E]+$

Request body JSON required

  • kind
    email
    or
    domain
    or
    pattern
    required

    What the ban names: domain (an address's domain and its subdomains), email (one exact address) or pattern (matched whole on the lowercased address).

  • value
    string
    required

    The domain (a leading @ dropped), the address, or the pattern: literals, ., classes, \d \w \s, groups, | and repeats up to 100, in lowercase, refused when it can't be matched safely.

    maxLength: 254 · minLength: 1
  • note
    optional

    Why the address is banned, for staff alone; trimmed.

    One of the following:

    • string
    • null

Returns

201

Bans a domain, an address or a pattern from the store: it can no longer buy, claim, request, join a waitlist, be granted access or sign in. Access already given stays.

JSON
  • id
    string
    required
  • kind
    string
    required

    domain (with its subdomains), email (exact) or pattern (matched whole on the lowercased address).

  • value
    string
    required

    The domain or address in lowercase, a domain in ASCII; the pattern as written.

  • note
    required

    Why the address is banned, for staff alone; null for none.

    One of the following:

    • string
    • null
  • created_at
    string
    required
  • updated_at
    string
    required
JSON
  • type
    string
    required
    format: uri
  • title
    string
    required
  • status
    integer
    required
  • detail
    string
    required
  • code
    optional
    string
  • context
    optional
    object
  • reached_core
    optional
    boolean
  • core_answer
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close