ops
ops-sellers

Create a seller OAuth client

Changed on

Create a new OAuth client for a seller

post/ops/sellers/{id}/oauth

Request

  • Base URL
    https://api.topi-staging.eu
  • URL
    https://api.topi-staging.eu/ops/sellers/{id}/oauth
  • 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

mode'live' | 'sandbox' required

API mode for the client

namestring

OAuth client name (optional, auto-generated if not provided)

Example request

{
  "mode": "live",
  "name": "Production API Access"
}

Response

Created response.

client_idstring required

OAuth client ID

client_secretstring required

OAuth client secret - ONLY returned on creation, store securely

namestring required

OAuth client name

seller_idstring regexp required

Seller ID

Example response

{
  "client_id": "abc123",
  "client_secret": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "name": "abc123",
  "seller_id": "739b63c2-9e58-4964-b38d-4ebb424de242"
}

Changes

    • info

      api operation id seller_oauth.create removed and replaced with seller_oauth#create

    • info

      api operation id seller_oauth#create removed and replaced with seller_oauth.create

    • info

      api tag ops-sellers added