SellersCreate a seller

Create a seller

Creates a seller account. Requires an administrator JWT.

curl -X POST "http://localhost:8080/api/sellers" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "email": "user@example.com",
  "password": "example_string",
  "name": "John Doe",
  "role": "ADMIN"
}'
{
  "id": 123,
  "email": "user@example.com",
  "name": "John Doe",
  "role": "ADMIN"
}
POST
/api/sellers
POST
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.
Content-Typestring
Required

The media type of the request body

Options: application/json
emailstring
Required

Seller email address.

Format: email
passwordstring
Required

Initial seller password.

Format: password
namestring
Required

Seller display name.

rolestring
Required

Seller role.

Options: ADMIN, SELLER
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.

Body

application/json
emailstring
Required

Seller email address.

passwordstring
Required

Initial seller password.

namestring
Required

Seller display name.

rolestring
Required

Seller role.

Allowed values:ADMINSELLER

Responses