Averbar oferta
curl --request PATCH \
--url https://api.example.com/offers/:id/endorse \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endorsedBy": "<string>"
}
'import requests
url = "https://api.example.com/offers/:id/endorse"
payload = { "endorsedBy": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({endorsedBy: '<string>'})
};
fetch('https://api.example.com/offers/:id/endorse', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Ofertas
Averbar oferta
Averba a oferta vencedora, assumindo a operação
PATCH
/
offers
/
:id
/
endorse
Averbar oferta
curl --request PATCH \
--url https://api.example.com/offers/:id/endorse \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"endorsedBy": "<string>"
}
'import requests
url = "https://api.example.com/offers/:id/endorse"
payload = { "endorsedBy": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({endorsedBy: '<string>'})
};
fetch('https://api.example.com/offers/:id/endorse', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Averba a oferta — o parceiro vencedor do leilão assume a operação a partir daqui.
Todos os endpoints requerem autenticação via Bearer token no header
Authorization.
Consulte o guia de autenticação para obter suas credenciais e gerar um token.Parâmetros
integer
required
ID numérico da oferta
string
CPF (11) ou CNPJ (14) de quem averbou — opcional, somente números
Exemplo
curl -X PATCH https://hml.zipdin.com.br/zipconsig-marketplace/offers/4521/endorse \
-H "Authorization: Bearer SEU_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "endorsedBy": "12345678000190" }'
