Process an order
POST /v1/public/orders/create
Sends a completed order to Remy. Depending on the merchant's integration settings, the order can award stamps or points, issue rewards, and redeem an existing coupon
Authorization
X-API-Key required
Request body
| Field | Type | Required | Description |
|---|---|---|---|
customer_email | string (email) | Yes | Email address used to find or create the customer. |
order_value | number or string | Yes | Order value as a number or a numeric string. |
order_number | string | No | Source-system order identifier. Remy generates an identifier when this is omitted or invalid. |
order_source | string | Yes | Source system name containing letters and numbers only. |
first_name | string | No | Customer's first name. |
name | string | No | Customer's full name. |
coupon_code | string | No | Coupon to redeem when reward automation is enabled. |
Request example
curl -X POST "https://api.remyrewards.co.uk/v1/public/orders/create" \
-H "Accept: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"customer_email": "alex@example.com",
"order_value": 24.5,
"order_number": "ORDER-1042",
"order_source": "Shopify",
"first_name": "Alex",
"name": "Alex Morgan",
"coupon_code": "WELCOME10"
}'
Responses
| Status | Description |
|---|---|
200 | The order was processed. |
400 | The request is missing a required value or contains invalid data. |
401 | The API key is missing or invalid. |
404 | The requested integration resource was not found. |
Success response example
{
"success": true,
"stamps": 2,
"rewards": [],
"points": 24,
"couponRedeemed": false
}