/
v3.0.11Get access

createShopOrder

Creates an order in the loyalty shop system. item_id parameter we getting from getExchangeItems CMS api

Request parameters:

Name
DescriptionTypeValuesDefault
createdTs
The timestamp representing when the order is creatednumber--
shopOrderItems
A list of items included in the shop orderarray--
└─
object-
└─ count
The explicit quantity/volume of this specific loyalty item being purchased within the single checkout actionnumber--
└─ item_id
Structural identifier mapping directly to the distinct product asset or benefit being claimednumber--
address
The physical delivery or billing destinationstring--
note
Custom comment, delivery remark, or preference instruction appended to the order by the playerstring--

Call example:

createShopOrder({
  createdTs: 1716463771,
  shopOrderItems: [{
    count: 1,
    item_id: 12345678
  }]
})

Response examples:

{
  code: 0,
  rid: '0',
  data: {
    result: 0,
    result_text: null,
    data: null
  }
}

Response parameters:

NameDescriptionTypeValues
result
The transaction execution status code returned by the server core. A value matching OK (typically 0) confirms the shop order was successfully processed and the corresponding loyalty points were debitednumber-
result_text
Status or error description delivered back by the wallet/shop core enginestring-
data
Soonobject