Geek Social — Documentação
API ReferenceListing ratings

POST /ratings/

Submeter avaliação pós-transação

POST/ratings/Auth: accessToken

Cria avaliação imutável. Score 1 (negative) ou 2 (positive). Apenas em offers completed dentro da janela de 30 dias. Unique por (offer_id, rater_id).

Request

CampoTipoRequeridoDescrição
offerIdstring (uuid)sim
scoreintegersim

Response

200

Sem corpo na resposta.

Erros

Sem respostas de erro documentadas.

Exemplos

curl -X POST 'http://localhost:3003/ratings/' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer SEU_ACCESS_TOKEN' \
  -d '{}'
await fetch('http://localhost:3003/ratings/', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: 'Bearer ' + accessToken,
  },
  body: JSON.stringify({}),
})

Side effects

Relacionados

On this page