Get started

Sections

Theme switcher

Claim missing cashback for a purchase that didn't track.

Header Parameters

Authorizationstring

Body Parameters

UIDstring Required

Your member's ID, as registered with addNewUser.

brand-idinteger Required

The retailer's brand-id from getCashback.

order-refstring Required

The order reference from the retailer's confirmation email.

Max length
100
order-datestring Required

The order date, YYYY-MM-DD.

amountnumber Required

The amount the member paid.

currencystring

Three-letter currency code. Defaults to GBP.

clicked-atstring

Optional. When the member last clicked the retailer's tracking link (YYYY-MM-DD HH:MM:SS), if you record it. It helps the network find the click.

receipt-urlstring

Optional. An https link to the receipt or order confirmation.

notesstring

Optional. Anything the member wants to add.

Max length
1000

Response

200
Object

The outcome is in the body (response 200 or 400).

Response Attributes

responseinteger
Enum values:
200400500
claim-idinteger

The claim's ID (on 200).

existingboolean

true when this member already claimed this order: claim-id is the existing claim.

codestring

Why the claim was refused (on 400). See the table above.

messagestring

A message you can show your member.

401
Object

Missing, malformed or expired bearer token.

Response Attributes

messagestring

Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.

error-codestring

Stable, machine-readable code for the error (for example user_not_found, order_already_paid). Match on this, not on message. New codes can be added at any time; treat an unknown code like a generic error for its response status. Send the request header X-Spendstream-Errors: http to get the real HTTP status on errors that are otherwise answered with HTTP 200.

errorstring

Alternative error message field used by a subset of endpoints (notably getToken and authentication failures). Integrators should check for both message and error when parsing failure responses.

responseinteger

Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on most error paths; a few auth-layer failures omit it.

Was this section helpful?

POST

/

Select
1

Response

Was this section helpful?