Address
Autorizações
Parâmetros de rota
partner_idstringObrigatório
Parâmetros de consulta
searchstringOpcionalDefault:
""
pageinteger · int32OpcionalDefault:
0
perPageinteger · int32OpcionalDefault:
25
sortstringOpcionalDefault:
mainAddress
dirstringOpcionalDefault:
desc
Respostas
200
OK
application/json
404
PartnerAddress was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/partners/{partner_id}/address 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",
"address_type": "text",
"street": "text",
"number": "text",
"complement": "text",
"contact_number": "text",
"contact_name": "text",
"neighborhood": "text",
"state": "text",
"country": "text",
"city": "text",
"postal_code": "text",
"main_address": true
}
]
}
Autorizações
Parâmetros de rota
partner_idstringObrigatório
Corpo
idstringOpcional
namestringOpcional
address_typestringOpcional
streetstringOpcional
numberstringOpcional
complementstringOpcional
contact_numberstringOpcional
contact_namestringOpcional
neighborhoodstringOpcional
statestringOpcional
countrystringOpcional
citystringOpcional
postal_codestringOpcional
main_addressbooleanOpcional
Respostas
201
PartnerAddress 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}/address HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 256
{
"id": "text",
"name": "text",
"address_type": "text",
"street": "text",
"number": "text",
"complement": "text",
"contact_number": "text",
"contact_name": "text",
"neighborhood": "text",
"state": "text",
"country": "text",
"city": "text",
"postal_code": "text",
"main_address": true
}
{
"id": "text",
"partner_id": "text",
"name": "text",
"address_type": "text",
"street": "text",
"number": "text",
"complement": "text",
"contact_number": "text",
"contact_name": "text",
"neighborhood": "text",
"state": "text",
"country": "text",
"city": "text",
"postal_code": "text",
"main_address": true
}
Autorizações
Parâmetros de rota
partner_idstringObrigatório
Corpo
idstringOpcional
namestringOpcional
address_typestringOpcional
streetstringOpcional
numberstringOpcional
complementstringOpcional
contact_numberstringOpcional
contact_namestringOpcional
neighborhoodstringOpcional
statestringOpcional
countrystringOpcional
citystringOpcional
postal_codestringOpcional
main_addressbooleanOpcional
Respostas
200
PartnerAddress 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}/address HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 256
{
"id": "text",
"name": "text",
"address_type": "text",
"street": "text",
"number": "text",
"complement": "text",
"contact_number": "text",
"contact_name": "text",
"neighborhood": "text",
"state": "text",
"country": "text",
"city": "text",
"postal_code": "text",
"main_address": true
}
{
"id": "text",
"partner_id": "text",
"name": "text",
"address_type": "text",
"street": "text",
"number": "text",
"complement": "text",
"contact_number": "text",
"contact_name": "text",
"neighborhood": "text",
"state": "text",
"country": "text",
"city": "text",
"postal_code": "text",
"main_address": true
}
Autorizações
Parâmetros de rota
partner_idstringObrigatório
idstringObrigatório
Respostas
200
OK
application/json
404
PartnerAddress was not found
application/json
500
An internal server error was thrown
application/json
get
GET /api/sales/partners/{partner_id}/address/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
"id": "text",
"partner_id": "text",
"name": "text",
"address_type": "text",
"street": "text",
"number": "text",
"complement": "text",
"contact_number": "text",
"contact_name": "text",
"neighborhood": "text",
"state": "text",
"country": "text",
"city": "text",
"postal_code": "text",
"main_address": true
}
Autorizações
Parâmetros de rota
partner_idstringObrigatório
idstringObrigatório
Respostas
204
Partner 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}/address/{id} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{}