Sellers
Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
idstringObrigatório
Respostas
200
OK
application/json
idstringOpcional
namestringOpcional
seller_typestringOpcional
fiscal_registration_numberstringOpcional
emailstringOpcional
phonestringOpcional
mobilestringOpcional
activebooleanOpcional
max_increase_ratenumberOpcional
max_discount_ratenumberOpcional
404
Seller was not found
application/json
500
An internal server error was thrown
application/json
get/sellers/{id}
GET /api/sales/sellers/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
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
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
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
idstringOpcional
namestringOpcional
seller_typestringOpcional
fiscal_registration_numberstringOpcional
emailstringOpcional
phonestringOpcional
mobilestringOpcional
activebooleanOpcional
max_increase_ratenumberOpcional
max_discount_ratenumberOpcional
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
put/sellers/{id}
PUT /api/sales/sellers/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
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
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de rota
idstringObrigatório
Respostas
204
Seller removed successfully
application/json
idstringOpcional
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
delete/sellers/{id}
DELETE /api/sales/sellers/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text"
}Autorizações
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
Parâmetros de consulta
searchstringOpcionalDefault:
""pageinteger · int32OpcionalDefault:
0perPageinteger · int32OpcionalDefault:
25sortstringOpcionalDefault:
""dirstringOpcionalDefault:
asconly_activebooleanOpcional
Respostas
200
OK
application/json
currentPageinteger · int32Opcional
perPageinteger · int32Opcional
totalinteger · int64Opcional
404
Seller was not found
application/json
500
An internal server error was thrown
application/json
get/sellers
GET /api/sales/sellers HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
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
AuthorizationstringObrigatório
Bearer authentication header of the form Bearer <token>.
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
idstringOpcional
namestringOpcional
seller_typestringOpcional
fiscal_registration_numberstringOpcional
emailstringOpcional
phonestringOpcional
mobilestringOpcional
activebooleanOpcional
max_increase_ratenumberOpcional
max_discount_ratenumberOpcional
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
post/sellers
POST /api/sales/sellers HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer YOUR_SECRET_TOKEN
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": {}
}
}