Create a product-rating earning order
Awards points to a customer for submitting a rating of a specific product. 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.
"PRODUCT-REVIEW-2026-0001"
Merchant-side product identifier (SKU or internal ID) that the rating belongs to.
"SKU-CAPPUCCINO-250G"
Human-readable product name. Stored for audit.
"Cappuccino 250g"
Star value submitted by the customer. Stored for audit only; does not change the points awarded.
1 <= x <= 54
Free-text review body. Stored for audit only.
"Good aroma, smooth taste."
Optional metadata stored on the earning order.
{ "channel": "mobile_app" }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.

