XBorg SDK
  • Introduction
  • Community
    • Details
    • Resources
    • Inventory
    • Prizes
    • Store
    • Achievements
  • User
    • Profile
    • Authentication
    • Socials
    • Wallets
  • Quests
    • User
    • Community
  • Quest Events
    • Details
    • Participation
    • Leaderboard
  • Blockchain
  • Configuration
  • Shared Library SDK
    • Authentication & Setup
    • Quest Management
    • Event Management
      • Working with Events
      • Events Lifecycle
      • Events Requirements
      • Events Quests
      • Events Rewards
    • Quest Rewards
    • 3D Avatar
Powered by GitBook
On this page
  1. Community

Store

PreviousPrizesNextAchievements

Last updated 4 months ago

User spendable resources

get
Query parameters
containerIdstringRequired
Responses
200Success
400
Generic Client Error
application/json
401
Authentication related errors: - `GENERIC_UNAUTHORIZED`: Generic unauthorized access error. - `SESSION_TOKEN_EXPIRED`: User session has expired. - `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
get
GET /v1/store/balance?containerId=text HTTP/1.1
Host: 
Accept: */*

No content

All available store listings

get
Query parameters
pagenumberOptional
limitnumberOptional
enrichRequirementsbooleanRequired
containerIdstringRequired
Responses
200Success
400
Generic Client Error
application/json
401
Authentication related errors: - `GENERIC_UNAUTHORIZED`: Generic unauthorized access error. - `SESSION_TOKEN_EXPIRED`: User session has expired. - `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
get
GET /v1/store/listings?enrichRequirements=true&containerId=text HTTP/1.1
Host: 
Accept: */*

No content

Get a list of all items purchased by the user

get
Query parameters
pagenumberOptional
limitnumberOptional
containerIdstringRequired
Responses
200Success
400
Generic Client Error
application/json
401
Authentication related errors: - `GENERIC_UNAUTHORIZED`: Generic unauthorized access error. - `SESSION_TOKEN_EXPIRED`: User session has expired. - `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
get
GET /v1/store/purchase?containerId=text HTTP/1.1
Host: 
Accept: */*

No content

  • GETUser spendable resources
  • GETAll available store listings
  • GETGet a list of all items purchased by the user
  • POSTPurchase an item, spending resources

Purchase an item, spending resources

post
Path parameters
listingIdstringRequired
Body
noncestringRequired

A one-use ID to associate with your request for purchase to avoid replays

Responses
201Success
400
Generic Client Error
application/json
401
Authentication related errors: - `GENERIC_UNAUTHORIZED`: Generic unauthorized access error. - `SESSION_TOKEN_EXPIRED`: User session has expired. - `REFRESH_TOKEN_EXPIRED`: Refresh token has expired.
application/json
404
Generic not found
application/json
500
Internal server error
application/json
post
POST /v1/store/purchase/{listingId} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 89

{
  "nonce": "text",
  "requirementData": [
    {
      "requirementId": "text",
      "shouldSave": true,
      "data": {}
    }
  ]
}

No content