GET
/
v1
/
app
/
queued_commands
curl --request GET \
  --url https://api.centralcart.com.br/v1/app/queued_commands \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 1813415,
    "store_id": 1,
    "command": "addGroup 1 Ouro",
    "offline_execute": false,
    "execute_at": "2024-01-28T15:08:57.000-03:00",
    "order": {
      "client_identifier": "1",
      "client_email": "support@centralcart.com.br",
      "client_name": "Central Cart",
      "client_discord": null,
      "internal_id": "c7ce903c0e1c24e94796aa3a08be68b19100dcc6",
      "variables": [
        {
          "name": "client_identifier",
          "value": "1"
        },
      ]
    }
  },
  {
    "id": 1813417,
    "store_id": 1,
    "command": "addVehicle 1 brioso",
    "offline_execute": false,
    "execute_at": "2024-01-28T15:08:57.000-03:00",
    "order": {
      "client_identifier": "1",
      "client_email": "support@centralcart.com.br",
      "client_name": "Central Cart",
      "client_discord": null,
      "internal_id": "c7ce903c0e1c24e94796aa3a08be68b19100dcc6",
      "variables": [
        {
          "name": "client_identifier",
          "value": "1"
        },
      ]
    }
  },
  {
    "id": 1813419,
    "store_id": 1,
    "command": "userNotify 1 c7ce903c0e1c24e94796aa3a08be68b19100dcc6",
    "offline_execute": false,
    "execute_at": "2024-01-28T15:08:57.000-03:00",
    "order": {
      "client_identifier": "1",
      "client_email": "support@centralcart.com.br",
      "client_name": "Central Cart",
      "client_discord": null,
      "internal_id": "c7ce903c0e1c24e94796aa3a08be68b19100dcc6",
      "variables": [
        {
          "name": "client_identifier",
          "value": "1"
        },
      ]
    }
  }
]

Response

id
number

O ID do comando

store_id
string

O ID da loja

command
string

O comando a ser manipulado e executado

offline_execute
boolean

Se “true”, o comando será executado mesmo com o jogador offline

order
Order Object
client_identifier
string

O identificador do cliente fornecido na finalização da compra

client_email
string

O e-mail do cliente fornecido na finalização da compra

client_name
string

O nome do cliente fornecido na finalização da compra

client_discord
string | null

O Discord ID do cliente fornecido na finalização da compra

internal_id
string

O ID interno do pedido usado para obter informações detalhadas, se necessário

variables
object[]

Retorna variáveis de checkout e o valor preenchido

[
  {
    "id": 1813415,
    "store_id": 1,
    "command": "addGroup 1 Ouro",
    "offline_execute": false,
    "execute_at": "2024-01-28T15:08:57.000-03:00",
    "order": {
      "client_identifier": "1",
      "client_email": "support@centralcart.com.br",
      "client_name": "Central Cart",
      "client_discord": null,
      "internal_id": "c7ce903c0e1c24e94796aa3a08be68b19100dcc6",
      "variables": [
        {
          "name": "client_identifier",
          "value": "1"
        },
      ]
    }
  },
  {
    "id": 1813417,
    "store_id": 1,
    "command": "addVehicle 1 brioso",
    "offline_execute": false,
    "execute_at": "2024-01-28T15:08:57.000-03:00",
    "order": {
      "client_identifier": "1",
      "client_email": "support@centralcart.com.br",
      "client_name": "Central Cart",
      "client_discord": null,
      "internal_id": "c7ce903c0e1c24e94796aa3a08be68b19100dcc6",
      "variables": [
        {
          "name": "client_identifier",
          "value": "1"
        },
      ]
    }
  },
  {
    "id": 1813419,
    "store_id": 1,
    "command": "userNotify 1 c7ce903c0e1c24e94796aa3a08be68b19100dcc6",
    "offline_execute": false,
    "execute_at": "2024-01-28T15:08:57.000-03:00",
    "order": {
      "client_identifier": "1",
      "client_email": "support@centralcart.com.br",
      "client_name": "Central Cart",
      "client_discord": null,
      "internal_id": "c7ce903c0e1c24e94796aa3a08be68b19100dcc6",
      "variables": [
        {
          "name": "client_identifier",
          "value": "1"
        },
      ]
    }
  }
]