Contact
Autorizações
Parâmetros de rota
partner_idstringObrigatório
idstringObrigatório
Respostas
200
OK
application/json
404
Partner Contact was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/partners/{partner_id}/contact/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text",
"partner_id": "text",
"name": "text",
"role": "text",
"phone": "text",
"email": "text",
"active": true
}
Autorizações
Parâmetros de rota
partner_idstringObrigatório
idstringObrigatório
Corpo
idstringOpcional
namestringObrigatório
rolestringOpcional
phonestringOpcional
emailstringOpcional
activebooleanOpcional
Respostas
200
Partner Contact 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/partners/{partner_id}/contact/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"id": "text",
"name": "text",
"role": "text",
"phone": "text",
"email": "text",
"active": true
}
{
"id": "text",
"partner_id": "text",
"name": "text",
"role": "text",
"phone": "text",
"email": "text",
"active": true
}
Autorizações
Parâmetros de rota
partner_idstringObrigatório
idstringObrigatório
Respostas
204
Partner Contact removed successfully
application/json
Respostaobject
422
A validation error was thrown
application/json
500
An internal server error was thrown
application/json
delete
DELETE /api/sales/partners/{partner_id}/contact/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{}
Autorizações
Parâmetros de rota
partner_idstringObrigatório
Parâmetros de consulta
searchstringOpcionalDefault:
""
pageinteger · int32OpcionalDefault:
0
perPageinteger · int32OpcionalDefault:
25
sortstringOpcionalDefault:
""
dirstringOpcionalDefault:
desc
Respostas
200
OK
application/json
404
Partner was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/partners/{partner_id}/contact HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"currentPage": 1,
"perPage": 1,
"total": 1,
"items": [
{
"id": "text",
"partner_id": "text",
"name": "text",
"role": "text",
"phone": "text",
"email": "text",
"active": true
}
]
}
Autorizações
Parâmetros de rota
partner_idstringObrigatório
Corpo
idstringOpcional
namestringObrigatório
rolestringOpcional
phonestringOpcional
emailstringOpcional
activebooleanOpcional
Respostas
201
Partner Contact 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/partners/{partner_id}/contact HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"id": "text",
"name": "text",
"role": "text",
"phone": "text",
"email": "text",
"active": true
}
{
"id": "text",
"partner_id": "text",
"name": "text",
"role": "text",
"phone": "text",
"email": "text",
"active": true
}