Sellers
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
200
OK
application/json
404
Seller was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/sellers/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text",
"name": "text",
"seller_type": "text",
"fiscal_registration_number": "text",
"email": "text",
"phone": "text",
"mobile": "text",
"active": true,
"max_increase_rate": 1,
"max_discount_rate": 1,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
Autorizações
Parâmetros de rota
idstringObrigatório
Corpo
namestringObrigatório
seller_typestringObrigatório
fiscal_registration_numberstringObrigatório
emailstringObrigatório
phonestringObrigatório
mobilestringObrigatório
activebooleanObrigatório
max_increase_ratenumberObrigatório
max_discount_ratenumberObrigatório
Respostas
200
Seller updated successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
put
PUT /api/sales/sellers/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 220
{
"name": "text",
"seller_type": "text",
"fiscal_registration_number": "text",
"email": "text",
"phone": "text",
"mobile": "text",
"active": true,
"max_increase_rate": 1,
"max_discount_rate": 1,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
{
"id": "text",
"name": "text",
"seller_type": "text",
"fiscal_registration_number": "text",
"email": "text",
"phone": "text",
"mobile": "text",
"active": true,
"max_increase_rate": 1,
"max_discount_rate": 1,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
Autorizações
Parâmetros de rota
idstringObrigatório
Respostas
204
Seller removed successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
delete
DELETE /api/sales/sellers/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text"
}
Autorizações
Parâmetros de consulta
searchstringOpcionalDefault:
""
pageinteger · int32OpcionalDefault:
0
perPageinteger · int32OpcionalDefault:
25
sortstringOpcionalDefault:
""
dirstringOpcionalDefault:
asc
only_activebooleanOpcional
Respostas
200
OK
application/json
404
Seller was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/sellers HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"currentPage": 1,
"perPage": 1,
"total": 1,
"items": [
{
"id": "text",
"name": "text",
"seller_type": "text",
"fiscal_registration_number": "text",
"email": "text",
"phone": "text",
"mobile": "text",
"active": true,
"max_increase_rate": 1,
"max_discount_rate": 1,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
]
}
Autorizações
Corpo
idstringOpcional
namestringObrigatório
seller_typestringObrigatório
fiscal_registration_numberstringObrigatório
emailstringObrigatório
phonestringObrigatório
mobilestringObrigatório
activebooleanObrigatório
max_increase_ratenumberObrigatório
max_discount_ratenumberObrigatório
Respostas
201
Seller created successfully
application/json
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
post
POST /api/sales/sellers HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 232
{
"id": "text",
"name": "text",
"seller_type": "text",
"fiscal_registration_number": "text",
"email": "text",
"phone": "text",
"mobile": "text",
"active": true,
"max_increase_rate": 1,
"max_discount_rate": 1,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}
{
"id": "text",
"name": "text",
"seller_type": "text",
"fiscal_registration_number": "text",
"email": "text",
"phone": "text",
"mobile": "text",
"active": true,
"max_increase_rate": 1,
"max_discount_rate": 1,
"attributes": {
"ANY_ADDITIONAL_PROPERTY": {}
}
}