ops
ops-sellers

Register a seller webhook

Changed on

Register a new url to this seller

post/ops/sellers/{id}/webhook

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/sellers/{id}/webhook
  • Auth
    OAuth 2
    Authorization code: /oauth2/authorize
    Token URL: /oauth2/token scopes: ops-seller:edit

Path parameters

idstring regexp required

Seller Id

Example:739b63c2-9e58-4964-b38d-4ebb424de242

Request body

channelsstring[]

The types of messages to retrieve. If you don't set anything, the message will be send to all urls

urlstring required

The url to register where we will notify the changes

Example request

{
  "channels": [
    "order"
  ],
  "url": "abc123"
}

Response

Created response.

urlsstring[]

The list of webhook urls registered for this seller

Example response

{
  "urls": [
    "https://example.com/foo"
  ]
}

Changes