# `upstream_failed`

**Status 502.** Shopify did not confirm the code was switched off, so nothing was changed.

## What it means

Shopify did not confirm the code was switched off. No points were given back, and the code still works. `upstream_reason` says what went wrong.

## What to do

Send the same request again, with the same `Idempotency-Key`.

## Safe to send again?

Yes. Send exactly the same request again; for a points change or a cancel, with the same `Idempotency-Key`.

## What else the answer carries

- `upstream_reason`: Why Shopify's answer did not confirm the code was switched off.

## Where you can meet it

- [`POST /members/{member_key}/codes/void`](https://matrixrewards.co.uk/docs/api/2026-10/members.md#cancelMemberCode): Cancel a reward code and give the member back its points

Every code, and the shape of an error answer: [Errors](https://matrixrewards.co.uk/docs/errors.md).

---

Page: https://matrixrewards.co.uk/docs/errors/upstream_failed
Contract: 2026-10 sha256:35af153960028890fea5738799f5a71e535e1eea4dd3f6b8d5f50b37f02363da
