Skip to main content

Reward Stores

The "Reward Stores" method returns a comprehensive list of all your reward stores, including their available bundles and associated information. This allows you to retrieve all store data in a single, efficient request.

Endpoint

GET /v1/admin/stores

Response

{
"code": 200,
"data": [
{
"uid": "fa237349c9b84878946ce418a2d0447c",
"label": "Premium Currency Store",
"description": "Check out discounted prices for the Premium Currency bundles!",
"startDate": "2024-03-22T00:00:00",
"endDate": "2030-12-31T23:55:00",
"isActive": true,
"imageName": "https://rapidmulestorage.blob.core.windows.net/images/ad2c01ab-6987-4f41-8b62-8affa5a662c0_shop_3982744.png",
"storeBundles": [
{
"uid": "f61008ac628649a4974ea3e3c2ba3cc6",
"label": "Bronze Pack",
"description": null,
"cost": 10,
"costDeliverableUId": "c41aeded06d04613ac567f05c63c4209",
"costLabel": "Ruby",
"imageName": "https://rapidmulestorage.blob.core.windows.net/images/d5bb6c57-53dd-49a3-baf8-1ba328a3c8b2_a2280ab9-1eec-4625-b97e-d0cbe960dbe0_coin.png",
"costImageName": "https://rapidmulestorage.blob.core.windows.net/images/c44ea35a-cf57-4961-82c7-8f9f5f64d1bf_gem.png",
"initialStock": 0,
"remainingStock": 0,
"storeBundleContents": [
{

Response Fields

FieldTypeDescription
uidstringUnique identifier for the store
labelstringDisplay name of the store
descriptionstringDescription of the store
startDatestringISO 8601 timestamp of when the store opens
endDatestringISO 8601 timestamp of when the store closes
isActivebooleanWhether this store is currently active
imageNamestringURL to the store's icon/image
storeBundlesarrayAvailable bundles in this store

Bundle Fields

FieldTypeDescription
uidstringUnique identifier for the bundle
labelstringDisplay name of the bundle
costnumberCost to purchase the bundle
costLabelstringLabel for the cost currency
costDeliverableUIdstringUID of the deliverable used as currency
initialStocknumberInitial stock (0 = unlimited)
remainingStocknumberRemaining stock (0 = unlimited if initialStock is 0)
storeBundleContentsarrayItems included in the bundle

Request Example

curl -X GET https://api.rapidmule.com/v1/admin/stores \
-H "Authorization: Bearer YOUR_API_KEY"

Use Cases

  • Store UI: Display all available stores and bundle offerings
  • Bundle Affordability Check: Verify player can afford specific bundles
  • Limited Stock Tracking: Monitor bundle inventory and availability

Error Codes

CodeDescriptionResolution
1001Payload is nullCheck request parameters
4001Invalid AuthKeyVerify API key
Related Endpoints