GET
/
api
/
games
/
1.0
/
commands
/
pending-commands
curl --request GET \
  --url https://api.warpstore.app/api/games/1.0/commands/pending-commands \
  --header 'Authorization: <authorization>'
{
  "checkouts": [
    {
        "id": "0a4fd9f0-872d-4685-9636-34157b5c02eb",
        "storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
        "gameUserId": "76561198278382770",
        "checkoutId": "22e99783-ae37-4d38-a46b-5a0458b74362",
        "deliveryType": "APPROVE",
        "products": [
            {
                "id": "be763498-93ac-4537-9709-65fb67849e9a",
                "name": "💎 KIT [DIAMANTE]",
                "price": 14.99,
                "commands": ["oxide.usergroup add {userId} Diamante"]
            }
        ]
    },
    {
        "id": "68562f15-2809-4c3f-9355-dbdfa5750af9",
        "storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
        "gameUserId": "NaN",
        "checkoutId": "cdedecda-f5a1-4be3-a206-1fe7a54ef65d",
        "deliveryType": "APPROVE",
        "product": {
            "id": "be763498-93ac-4537-9709-65fb67849e9a",
            "name": "💎 KIT [DIAMANTE]",
            "price": 14.99,
            "commands": ["oxide.usergroup add {userId} Diamante"]
        }
    }
  ]
}
Authorization
string
required

Response

id
string

ID do comando.

storeId
string

ID da loja.

gameUserId
string

ID do jogador que comprou.

deliveryType
string

Tipo de entrega que pode ser entre “APPROVE” ou “REFUND” ou “EXPIRE”

Se o deliveryType for igual a APPROVE ou REFUND, os produtos serão retornados como um array dentro da propriedade (products). Se for EXPIRE, apenas um produto será retornado e estará dentro da propriedade (product).
products
Product[]

Array de produtos que veio na request.

product
Product

Produto que veio na request.

{
  "checkouts": [
    {
        "id": "0a4fd9f0-872d-4685-9636-34157b5c02eb",
        "storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
        "gameUserId": "76561198278382770",
        "checkoutId": "22e99783-ae37-4d38-a46b-5a0458b74362",
        "deliveryType": "APPROVE",
        "products": [
            {
                "id": "be763498-93ac-4537-9709-65fb67849e9a",
                "name": "💎 KIT [DIAMANTE]",
                "price": 14.99,
                "commands": ["oxide.usergroup add {userId} Diamante"]
            }
        ]
    },
    {
        "id": "68562f15-2809-4c3f-9355-dbdfa5750af9",
        "storeId": "1e1472eb-907a-4706-b318-aadf3ee54869",
        "gameUserId": "NaN",
        "checkoutId": "cdedecda-f5a1-4be3-a206-1fe7a54ef65d",
        "deliveryType": "APPROVE",
        "product": {
            "id": "be763498-93ac-4537-9709-65fb67849e9a",
            "name": "💎 KIT [DIAMANTE]",
            "price": 14.99,
            "commands": ["oxide.usergroup add {userId} Diamante"]
        }
    }
  ]
}