PaystationdocsPaystation

Replace the order bumps of one of your offers ​

POST /v1/offers/{id}/order_bumps

Replace the order bumps of one of your offers

POST/v1/offers/{id}/order_bumps

Autenticação

  • Chave secretask_…, só no seu servidor

Envie a chave no cabeçalho Authorization: Bearer <chave>.

Parâmetros

  • idstring · path (uuid)obrigatório

Corpo da requisição

  • order_bumpsarray of objectobrigatório
    Mostrar campos de order_bumps
    • offer_idstring (uuid)obrigatório
    • priceinteger

Resposta

200OK

  • objectstringobrigatório

    Valores: order_bumps

  • offer_idstring (uuid)obrigatório

    The main offer.

  • order_bumpsarray of objectobrigatório
    Mostrar campos de order_bumps
    • offer_idstring (uuid)obrigatório
    • priceintegerobrigatório

      Integer cents the bump sells for.

    • original_priceintegerobrigatório

      Integer cents of the side offer itself.

Erros

400The request path could not be decoded (`malformed_path`).
401Missing or invalid key, or a public key (`secret_key_required`).
404Not found, not yours, or not a well-formed id.
422The body is invalid (`invalid_param`, `unknown_parameter`, naming the item), or this account serves its offers from its own webhook (`unsupported_integration`).
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.