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órioMostrar campos de
order_bumpsoffer_idstring (uuid)obrigatóriopriceinteger
Resposta
200OK
objectstringobrigatórioValores:
order_bumpsoffer_idstring (uuid)obrigatórioThe main offer.
order_bumpsarray of objectobrigatórioMostrar campos de
order_bumpsoffer_idstring (uuid)obrigatóriopriceintegerobrigatórioInteger cents the bump sells for.
original_priceintegerobrigatórioInteger cents of the side offer itself.
Erros
| 400 | The request path could not be decoded (`malformed_path`). |
| 401 | Missing or invalid key, or a public key (`secret_key_required`). |
| 404 | Not found, not yours, or not a well-formed id. |
| 422 | The body is invalid (`invalid_param`, `unknown_parameter`, naming the item), or this account serves its offers from its own webhook (`unsupported_integration`). |
| 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.