Skip to content
Navigation

Changes a business ban's value or note; its kind stays.

PATCH
https://api.sherpo.io/merchant/v1/stores/{store}/business_bans/{ban}

Authorization

  • bearer
    HTTP
    required

Path parameters

  • store
    string
    required

    The store's id.

  • ban
    string
    required
    minLength: 1

Request body JSON optional

  • value
    optional
    string

    A new value of the ban's own kind, as createCustomerBan takes it.

    maxLength: 254 · minLength: 1
  • note
    optional

    Why the address is banned, or null to clear it; trimmed.

    One of the following:

    • string
    • null

Returns

200

Changes a business ban's value or note; its kind 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