Onward is requesting a reward to be issued for the specified Customer in your platform, for example when an order earns cashback. One request is sent per credit.
Security
api_key
- https://api.your-store.com/onwardhttps://api.your-store.com/onward/customers/{shopCustomerId}/reward
curl -i -X POST \
https://api.your-store.com/onward/customers/7461/reward \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"customer": {
"shop_customer_id": "7461",
"first_name": "Sally",
"last_name": "Loo",
"email": "sally@example.com",
"phone_number": "+13105551234"
},
"to_issue_amount": {
"cents": 1299,
"currency": "USD"
},
"onward_reward_transaction_id": 456001
}'Reward issued successfully
Response
{ "shop_transaction_id": "rw_789", "shop_reward_id": "1234567890" }