Check whether an upsell can be offered after a purchase
GET /v1/upsell
Check whether an upsell can be offered after a purchase
GET/v1/upsell
Autenticação
- Chave públicapk_…, pode ir para o navegador
- Chave secretask_…, só no seu servidor
Envie a chave no cabeçalho Authorization: Bearer <chave>.
Parâmetros
offer_idstring · query (uuid)obrigatóriotransaction_idstring · query (uuid)obrigatório
Resposta
200OK
offer_idstring (uuid)obrigatóriooriginal_transactionstring (uuid)obrigatóriohas_saved_cardbooleanobrigatório
Erros
| 401 | Missing or invalid key. |
| 404 | No such offer (`offer_not_found`), or no upsell for this transaction (`upsell_not_available`). |
| 422 | A query parameter is invalid (`invalid_param`). |
| 429 | Rate limited. |
| 500 | Unexpected error, or `api_unavailable`. |
Todo erro vem no mesmo envelope: error.type, error.code, error.message e error.request_id, também devolvido no cabeçalho X-Request-Id.