PaystationdocsPaystation

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ório
  • transaction_idstring · query (uuid)obrigatório

Resposta

200OK

  • offer_idstring (uuid)obrigatório
  • original_transactionstring (uuid)obrigatório
  • has_saved_cardbooleanobrigatório

Erros

401Missing or invalid key.
404No such offer (`offer_not_found`), or no upsell for this transaction (`upsell_not_available`).
422A query parameter is invalid (`invalid_param`).
429Rate limited.
500Unexpected 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.