POST
/
market
/
buy
cURL
curl --request POST \
  --url https://api.vaultcord.com/market/buy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "marketId": 618,
  "inviteLink": "dyno",
  "userEmail": "william@nelsoncybersecurity.com",
  "amount": 100,
  "budget": 2000
}'
{
  "success": true,
  "data": {
    "newBalance": 550,
    "url": "https://dash.vaultcord.com/market-order?ref=c444b1c9fa354ffcbf3b6c99300fc0d9",
    "inviteUrl": "https://discord.com/oauth2/authorize?client_id=155149108183695360&permissions=1&scope=bot&guild_id=203039963636301824",
    "reference": "c444b1c9fa354ffcbf3b6c99300fc0d9",
    "orderId": "API-c444b1c9fa354ffcbf3b6c99300fc0d9",
    "amount": 100,
    "guildId": "203039963636301824",
    "inviteCode": "dyno",
    "userEmail": "william@nelsoncybersecurity.com",
    "status": "paid",
    "clientId": "1377453171714293860",
    "cost": 150,
    "created_at": 1751225426
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

JSON for creating marketplace order

marketId
integer
required

The marketplace listing ID. You can get this by listing sellers or viewing https://vaultcord.com/market?developers=1

Example:

618

Send the Discord.gg invite link we should deliver members to

Example:

"dyno"

userEmail
string
required

Buyer email. You SHOULD send a unique email every time because we will show errors if a buyer attempts to buy same members twice.

Example:

"william@nelsoncybersecurity.com"

amount
integer
required

The number of members being purchased.

Example:

100

budget
integer

(Optional) Limit the total cost of the order (since we've been told some sellers are naughty and raise prices suddenly) in cents. For example if you want the whole order to cost less than $20, then it will show as 2000

Example:

2000

Response

resource retrieved

success
boolean
Example:

true

data
object