Onward is requesting store credit to be issued for a specific Order in your platform.
Security
api_key
- https://api.your-store.com/onwardhttps://api.your-store.com/onward/orders/{shopOrderId}/store_credit
curl -i -X POST \
'https://api.your-store.com/onward/orders/{shopOrderId}/store_credit' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"customer": {
"first_name": "string",
"last_name": "string",
"email": "user@example.com",
"phone_number": "string"
},
"to_issue_amount": {
"currency": "USD",
"cents": 1099
}
}'Store credit issued successfully
Response
{ "shop_store_credit_code": "GC123456", "shop_store_credit_id": "SC789", "initial_value": { "currency": "USD", "cents": 1099 }, "balance": { "currency": "USD", "cents": 1099 }, "note": "string" }