Claim missing cashback for a purchase that didn't track.
Header Parameters
Body Parameters
Your member's ID, as registered with addNewUser.
The retailer's brand-id from getCashback.
The order reference from the retailer's confirmation email.
The order date, YYYY-MM-DD.
The amount the member paid.
Three-letter currency code. Defaults to GBP.
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.
Optional. An https link to the receipt or order confirmation.
Optional. Anything the member wants to add.
Response
The outcome is in the body (response 200 or 400).
Response Attributes
200400500The claim's ID (on 200).
true when this member already claimed this order: claim-id is the existing claim.
Why the claim was refused (on 400). See the table above.
A message you can show your member.
Missing, malformed or expired bearer token.
Response Attributes
Human-readable failure reason. Safe to surface to integrators but not end-users. The wording can change, so match on error-code instead.
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.
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.
Numeric status code echoing the HTTP status (e.g. 400, 401). Populated on
most error paths; a few auth-layer failures omit it.