For AI agents: the complete documentation index is at https://docs.acmewebshop.com/llms.txt. Every page is also available as Markdown by appending index.md to its URL or by sending Accept: text/markdown.
Acme Loyalty API
POST

/members/{memberId}/points

Credit points for an order

POST /members/{memberId}/points

Credits one point per euro of the order total. Send the same Idempotency-Key when you retry, so an order is never credited twice.

Request body

Required.

Content type: application/json

Property Type Required Description
orderId string yes The webshop order
orderTotal number yes Order total in EUR, one point per euro

Responses

201 — Points credited

Property Type Required Description
id string yes Public ID of the transaction
type string yes Whether points were earned or redeemed
points integer yes Number of points moved
orderId string no The webshop order that earned the points
createdAt string (date-time) yes When the transaction was booked

400 — The request body is invalid

Property Type Required Description
type string (uri) yes URI that identifies the problem type
title string yes Short, human-readable summary
status integer yes HTTP status code
detail string no Explanation specific to this occurrence

401 — Missing or invalid bearer token

Property Type Required Description
type string (uri) yes URI that identifies the problem type
title string yes Short, human-readable summary
status integer yes HTTP status code
detail string no Explanation specific to this occurrence

404 — The member does not exist

Property Type Required Description
type string (uri) yes URI that identifies the problem type
title string yes Short, human-readable summary
status integer yes HTTP status code
detail string no Explanation specific to this occurrence