Create a store-rating earning order
Awards points to a customer for submitting a rating of the merchant’s store. The points amount is configured by the merchant in the Points dashboard — the request body does not carry the points value. The request is serialized inside a distributed lock scoped to the authenticated merchant, and review_reference is used as the merchant-side idempotency key.
Documentation Index
Fetch the complete documentation index at: https://docs.papp.sa/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
Customer phone number. Accepted formats: +966XXXXXXXXX, 00966XXXXXXXXX, 966XXXXXXXXX, 0XXXXXXXXX, or bare 5XXXXXXXX. Normalised server-side to 5\d{8}.
"512345678"
Merchant-side unique identifier for this rating. Used as the idempotency key — sending the same value twice for the same merchant is rejected as a duplicate.
"STORE-REVIEW-2026-0001"
Star value submitted by the customer. Stored for audit only; does not change the points awarded.
1 <= x <= 55
Free-text review body. Stored for audit only.
"Great experience, fast delivery."
Optional metadata stored on the earning order.
{ "channel": "web", "branch_code": "RUH-01" }Response
Points awarded successfully. When the customer's account is not yet activated, a pending_client_activation payload is returned instead of a full order resource.

