Playbasis Merchant API
Methods
-
<static> availableBranchForGoodsGroup(goodsGroup)
-
Return list of available branch of goods group.
Parameters:
Name Type Description goodsGroupString name of goods group
Returns:
Promise object
- Type
- Object
-
<static> redeemCoupon(goodsGroup, couponCode, options)
-
Merchant redeems couple from player.
Parameters:
Name Type Description goodsGroupString goods group name.
couponCodeString coupon code of goods to redeem
optionsObject (optional) options as object.
It can include.
{
pin_code: String = merchant PIN code generated from admin dashboard
player_id: String = player id
}Returns:
Promise object
- Type
- Object
-
<static> redeemGoods(goodsName, playerId, options)
-
Merchant redeems normal goods from player
Parameters:
Name Type Description goodsNameString goods name
playerIdString player id
optionsObject options as object. It can include
amount: Number = amount of goods to redeem from player (default = 1)Returns:
Promise object
- Type
- Object
-
<static> verifyCoupon(goodsGroup, couponCode, options)
-
Verify coupon code available to be redeemed.
Parameters:
Name Type Description goodsGroupString goods group name
couponCodeString coupon code of goods to verify
optionsObject (optional) options as object.
It can include
{
pin_code: String = merchant PIN code generated from admin dashboard
player_id: String = player id
}Returns:
Promise object
- Type
- Object