The idea is to allow users with loyalty coins to redeem their loyalty coins and purchase at discounted rate.
Nector Shiprocket Checkout APIs.postman_collection.json
Assuming “shopify” for below examples
webhook_id
part of the endpoint is specific to each merchant, which can be accessed from the nector dashboard or can be provided by the nector team as well.<aside> ⚠️ Don’t call this API from frontend
</aside>
We have recently added support for multiple wallets on Nector.
This is an optional wallet that a brand may or may not be using.
So in the below APIs we have added an option for choosing from which wallet the redemption should happen. Redemption can happen only from the coins wallet, only from the credit wallet or from both the wallets. If redemption is going to happen from both the wallets, first all the credits will be used and then the loyalty coins discount would be applied on the remaining cart amount.
Request
POST - platform.nector.io/api/open/integrations/shiprocketwebhook/:webhook_id
{
customer_id: "this needs to be shopify prefixed customer id (Ex. shopify-458737453897), one of customer_id or mobile is required",
mobile: "this is 10 digit mobile number, one of customer_id or mobile is required",
action: "list, perform, revert, perform_unsafe, revert_unsafe",
amount: "this is final cart amount based on which the discount will be calculated"
wallet_type: "can be one of: coins, credits or coins_and_credits (default: coins)"
}
Response
{
meta: {
... other props
}
data: {
... other props
}
}