/
v3.0.11Get access

buyPowerBankJetShop

Spends Jet points on a Jet Shop gift.

Request parameters:

NameDescriptionTypeValuesDefault
params
object-
└─ price
Price of the item in Jet pointsnumber--
└─ giftId
Id of the Jet Shop item being boughtnumber--

Call example:

buyPowerBankJetShop({
  params: {
    price: 100,
    giftId: 5
  }
})

Response examples:

{
  code: 0,
  message: 'OK',
  success: true,
  data: {
    txId: 987654,
    exTrxId: 123456,
    success: true,
    externalSync: true
  }
}

Response parameters:

NameDescriptionTypeValues
txId
Internal transaction idnumber-
exTrxId
External transaction idnumber-
success
Purchase resultbooleantrue / false
externalSync
Whether the gift was synced with the external systembooleantrue / false