v1

latestOpenAPI 3.0.02026-07-26441564.4 KB

Buy Members

post/market/buy

Request body

marketIdinteger required

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

inviteLinkstring required

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

userEmailstring 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.

amountinteger required

The number of members being purchased.

budgetinteger

(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 request

{
  "marketId": 618,
  "inviteLink": "dyno",
  "userEmail": "william@nelsoncybersecurity.com",
  "amount": 100,
  "budget": 2000
}

Response

Member marketplace order information, use this data to start a market pull

successboolean

Example response

{
  "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
  }
}