ShopsUpdate a shop

Update a shop

Updates a Shopee shop configuration. Requires an administrator JWT.

curl -X PUT "http://localhost:8080/api/shops/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "seller_id": 123,
  "shopee_partner_id": "example_string",
  "shopee_partner_key": "example_string",
  "shopee_shop_id": "example_string"
}'
{
  "id": 123,
  "seller_id": 123,
  "shopee_partner_id": "example_string",
  "shopee_shop_id": "example_string",
  "has_token": true,
  "token_expires_at": "2024-12-25T10:00:00Z"
}
PUT
/api/shops/{id}
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT access token, or refresh token for the token refresh endpoint.

JWT access token, or refresh token for the token refresh endpoint.
path
idinteger
Required

Shop identifier.

Format: int64
Content-Typestring
Required

The media type of the request body

Options: application/json
seller_idinteger

Owning seller identifier.

Format: int64
shopee_partner_idstring

Shopee partner identifier.

shopee_partner_keystring

Shopee partner key.

shopee_shop_idstring

Shopee shop identifier.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT access token, or refresh token for the token refresh endpoint.

Path Parameters

idinteger
Required

Shop identifier.

Body

application/json
seller_idinteger

Owning seller identifier.

shopee_partner_idstring

Shopee partner identifier.

shopee_partner_keystring

Shopee partner key.

shopee_shop_idstring

Shopee shop identifier.

Responses

idinteger
Required

Shop identifier.

seller_idinteger
Required

Owning seller identifier.

shopee_partner_idstring
Required

Shopee partner identifier.

shopee_shop_idstring
Required

Shopee shop identifier.

has_tokenboolean
Required

Whether the shop has an authorized Shopee token.

token_expires_atstring
Required

Token expiration timestamp.