Welcome Servies To Emole Services Developer Documention
You Can Learn How TO Create Services And ALso Create New Mobile App
The requirements tab is available to merchants on the advanced plan. Mention this in your app's description.
{ "hook": "discount.check", "storeType": 1, "config": { "minSubtotal": "100" },
"data": {
"discount": { "id": 16143, "name": "Loyalty club 10%", "couponCode": null },
"customer": { "id": 1193492, "email": "…", "isGuest": false, "roles": ["Registered"] },
"cart": { "subtotal": 200, "count": 1,
"items": [ { "productId": 8739, "sku": "…", "name": "…", "quantity": 1, "price": 200 } ] }
} }{ "valid": true }{ "valid": false, "message": "Add 30 SAR to get the discount" }message is shown to the shopper.{ "hook": "tax.rate", "data": {
"taxCategoryId": 0,
"address": { "country": "SA", "state": "…", "city": "Riyadh", "zip": "…" },
"customer": { "id": 1193492, "isTaxExempt": false },
"product": { "id": 8739, "sku": "…", "price": 200 } } }{ "rate": 15 }