> For the complete documentation index, see [llms.txt](https://docs.pandaboost.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pandaboost.app/api-for-developers/service-payload-examples.md).

# Service Payload Examples

PandaBoost API v2 package IDs, target formats, options, and safe server-side request examples.

All order payloads below are for `POST https://web.pandaboost.app/api/v2/orders`, with `x-api-key` and `Content-Type: application/json`. Replace address placeholders before use. First send the same body to `/eligibility` and inspect the result. Use a `pb_test_` key for no-charge validation.

For live checkout, add a stable `clientOrderId` to each order and reuse it with the same body on retries. Prices, quantity limits, accepted options, and availability come from `GET /services`, not from this page.

## Package identifiers

The following IDs are documented by the v2 reference. An ID is orderable for your account only when it is returned as available by `GET /services`. Refresh the catalog rather than carrying over a v1 service list.

| Package ID                  | Package                                                 |
| --------------------------- | ------------------------------------------------------- |
| `poop`                      | DEX Screener Reactions — Poop                           |
| `flag`                      | DEX Screener Reactions — Flag                           |
| `fire`                      | DEX Screener Reactions — Fire                           |
| `rocket`                    | DEX Screener Reactions — Rocket                         |
| `dex-trending-sol-24h`      | DEX Screener Trending — Solana 24H                      |
| `dex-trending-sol-12h`      | DEX Screener Trending — Solana 12H                      |
| `dex-trending-evm-24h`      | DEX Screener Trending — EVM 24H (ETH/BSC/Base/Other)    |
| `dex-trending-other-24h`    | DEX Screener Trending — Other Chains 24H                |
| `gecko-full`                | GeckoTerminal Trending — Gecko Full Trending (24H)      |
| `gecko-pool`                | GeckoTerminal Trending — Gecko Pool Page Trending (24H) |
| `gecko-search`              | GeckoTerminal Trending — Gecko Search Trending (24H)    |
| `dextools-sol-24h`          | DEXTools Trending — Solana 24H                          |
| `dextools-eth-24h`          | DEXTools Trending — Ethereum 24H                        |
| `dextools-bsc-24h`          | DEXTools Trending — BSC 24H                             |
| `dextools-eth-12h`          | DEXTools Trending — Ethereum 12H                        |
| `dextools-bsc-12h`          | DEXTools Trending — BSC 12H                             |
| `dextools-sol-12h`          | DEXTools Trending — Solana 12H                          |
| `dextools-robinhood-24h`    | DEXTools Trending — Robinhood 24H                       |
| `dextools-robinhood-12h`    | DEXTools Trending — Robinhood 12H                       |
| `dextools-votes-bullish`    | DEXTools Votes — Bullish Votes                          |
| `dextools-votes-bearish`    | DEXTools Votes — Bearish Votes                          |
| `phantom-chat-trending-24h` | Phantom Trending — Phantom Chat Trending 24H            |
| `solscan-sol-24h`           | Solscan Trending — Solana 24H                           |
| `rugcheck-sol-24h`          | RugCheck Most Viewed — Solana 24H                       |
| `padre-search-12h`          | Padre Top & Search — Padre Trending Search 12H          |
| `padre-search-24h`          | Padre Top & Search — Padre Trending Search 24H          |
| `padre-views-24h`           | Padre Top & Search — Padre Top 1-10 24H                 |
| `padre-search-6h`           | Padre Top & Search — Padre Trending Search 6H           |
| `based-bot-24h`             | Based Bot Most Viewed — Most Viewed 24H · All Chains    |
| `etherscan-eth-24h`         | Etherscan / BscScan / BaseScan Trending — Etherscan 24H |
| `etherscan-bsc-24h`         | Etherscan / BscScan / BaseScan Trending — BscScan 24H   |
| `etherscan-base-24h`        | Etherscan / BscScan / BaseScan Trending — BaseScan 24H  |
| `cmc-4h`                    | CoinMarketCap Trending — 4 Hours                        |
| `cmc-8h`                    | CoinMarketCap Trending — 8 Hours                        |
| `cmc-12h`                   | CoinMarketCap Trending — 12 Hours                       |
| `coingecko-search`          | CoinGecko Trending — CoinGecko Search                   |
| `coingecko-country`         | CoinGecko Trending — CoinGecko Country                  |

## DEX Screener Reactions

Read quantity limits and speed choices from the catalog. Reactions use `options.speed`, not `fields.speed`.

```json
{
  "orderTypeId": "rocket",
  "quantity": 500,
  "target": {
    "address": "TOKEN_CONTRACT_ADDRESS"
  },
  "options": {
    "speed": "fast"
  }
}
```

## DEX Screener Trending

Send the token; the API selects a verified pair. Fixed-quantity packages can omit `quantity`.

```json
{
  "orderTypeId": "dex-trending-sol-24h",
  "target": {
    "address": "TOKEN_CONTRACT_ADDRESS"
  },
  "clientOrderId": "shop-order-1042"
}
```

## Explicit pair selection

For a particular pair, set `target.pairAddress`. Use a pair returned by `/eligibility`, and use a package that supports its chain.

```json
{
  "orderTypeId": "dex-trending-evm-24h",
  "target": {
    "address": "TOKEN_CONTRACT_ADDRESS",
    "chainId": "base",
    "pairAddress": "PAIR_ADDRESS_FROM_ELIGIBILITY"
  }
}
```

## GeckoTerminal Trending

Choose `gecko-full`, `gecko-pool`, or `gecko-search` from the catalog. Do not assume the same package settings or price.

```json
{
  "orderTypeId": "gecko-search",
  "target": {
    "address": "TOKEN_CONTRACT_ADDRESS"
  }
}
```

## DEXTools Trending

Choose the package matching the network and duration. The API resolves the pair unless you override it.

```json
{
  "orderTypeId": "dextools-robinhood-24h",
  "target": {
    "address": "TOKEN_CONTRACT_ADDRESS",
    "chainId": "robinhood"
  }
}
```

## DEXTools Votes

Quantity is required for variable-quantity packages. Use catalog limits.

```json
{
  "orderTypeId": "dextools-votes-bullish",
  "quantity": 100,
  "target": {
    "address": "TOKEN_CONTRACT_ADDRESS"
  }
}
```

## Solscan Trending

This is a Solana token-level package; no liquidity-pair address is needed.

```json
{
  "orderTypeId": "solscan-sol-24h",
  "target": {
    "address": "SOLANA_TOKEN_MINT"
  }
}
```

## RugCheck Most Viewed

Use the token mint, not a liquidity-pair address.

```json
{
  "orderTypeId": "rugcheck-sol-24h",
  "target": {
    "address": "SOLANA_TOKEN_MINT"
  }
}
```

## Phantom Trending

The documented v2 package is Phantom Chat. Its market-cap rule is advisory unless `requireEligible: true` is set. This example explicitly requires eligibility.

```json
{
  "orderTypeId": "phantom-chat-trending-24h",
  "target": {
    "address": "SOLANA_TOKEN_MINT"
  },
  "requireEligible": true
}
```

## Padre Top & Search

Use a current `padre-*` package from the catalog and a Solana token mint.

```json
{
  "orderTypeId": "padre-views-24h",
  "target": {
    "address": "SOLANA_TOKEN_MINT"
  }
}
```

## Based Bot

Network detection is automatic. For `ambiguous_target`, add a chain from `details.chainIds`, or send the full Based Bot token-page link.

```json
{
  "orderTypeId": "based-bot-24h",
  "target": {
    "address": "https://basedbot.app/token/robinhood/TOKEN_CONTRACT_ADDRESS"
  }
}
```

## Etherscan, BscScan, and BaseScan

The package sets the chain: `etherscan-eth-24h`, `etherscan-bsc-24h`, or `etherscan-base-24h`.

```json
{
  "orderTypeId": "etherscan-base-24h",
  "target": {
    "address": "EVM_TOKEN_CONTRACT_ADDRESS"
  }
}
```

## CoinMarketCap Trending

Use a full coin-page URL in `options.coin`, with **no `target`**. Eligibility requires a listed coin and the documented trading-volume rule. Check `checks[0].details.coin` to confirm the selected coin.

```json
{
  "orderTypeId": "cmc-8h",
  "options": {
    "coin": "https://coinmarketcap.com/currencies/quant/"
  }
}
```

## CoinGecko Trending

Use a full CoinGecko coin-page URL, with **no `target`**. Search also requires a market-cap rank of #1,000 or better.

```json
{
  "orderTypeId": "coingecko-search",
  "options": {
    "coin": "https://www.coingecko.com/en/coins/quant"
  }
}
```

## Server-side integration example

The following Node.js helpers send JSON requests and retry with a persistent order reference. They do not implement your checkout, customer approval, or accounting. Set `PANDABOOST_API_KEY` securely; start with a test key. A test order does not reproduce live delivery timing or refund review.

```javascript
const API = 'https://web.pandaboost.app/api/v2';

export async function apiCall(method, path, body, fetchImpl = fetch) {
  const key = process.env.PANDABOOST_API_KEY;
  if (!key) throw new Error('Set PANDABOOST_API_KEY on your server');
  const res = await fetchImpl(API + path, {
    method,
    headers: { 'x-api-key': key, 'Content-Type': 'application/json' },
    ...(body === undefined ? {} : { body: JSON.stringify(body) }),
  });
  const json = await res.json();
  if (!json.success) {
    const err = Object.assign(new Error(json.error.message), json.error, {
      status: res.status,
      retryAfter: res.headers.get('Retry-After'),
    });
    throw err;
  }
  return { status: res.status, data: json.data };
}

export async function createWithRetry(request, call = apiCall, sleep = ms => new Promise(r => setTimeout(r, ms))) {
  if (!/^[A-Za-z0-9._:-]{1,100}$/.test(request.clientOrderId || '')) {
    throw new Error('Persist a valid clientOrderId before submitting an order');
  }
  const stable = JSON.parse(JSON.stringify(request));
  for (let attempt = 0; ; attempt++) {
    try {
      return await call('POST', '/orders', stable);
    } catch (err) {
      const networkFailure = err.status === undefined;
      const retry = networkFailure || err.retryable === true || err.status === 429;
      if (!retry || attempt >= 4) throw err;
      let delay = 2 ** attempt * 1000;
      if (err.retryAfter) {
        const seconds = Number(err.retryAfter);
        const wait = Number.isFinite(seconds) ? seconds * 1000 : Date.parse(err.retryAfter) - Date.now();
        if (Number.isFinite(wait)) delay = Math.max(delay, wait);
      }
      await sleep(delay);
    }
  }
}

```

Use the helpers in this sequence:

```javascript
const request = {
  orderTypeId: 'phantom-chat-trending-24h',
  target: { address: tokenAddress },
  clientOrderId: persistedShopOrderId,
  requireEligible: true,
};
const { data: check } = await apiCall('POST', '/eligibility', request);
if (!check.orderable || check.eligible !== true) {
  throw new Error(check.problem?.message || 'Eligibility did not pass');
}
// Confirm the resolved target and quote with your customer.
// Your own checkout takes payment before the paid order request below.
const result = await createWithRetry(request);
// 201 = created; 200 = replay; 202 = held for review, not a failed request.
const orderId = result.data.order.id;
// Poll later (every 1–5 minutes), not in a tight loop:
const { data: tracked } = await apiCall('GET', `/orders/${encodeURIComponent(orderId)}`);
// Inspect tracked.order.status, underReview, delivery, and charge.refunded.
```

This example uses a strict checkout policy: it does not proceed on `eligible: false` or `null`. If your integration allows advisory warnings, ask the customer to confirm that choice and build a matching order body instead.

`createWithRetry` reuses the same body and `clientOrderId`. It retries network failures, explicitly retryable errors, and rate limiting, respecting `Retry-After`. It does not automatically retry `order_rejected`, `order_failed`, or idempotency conflicts. Handle those outcomes and refund review using the [methods reference](https://docs.pandaboost.app/api-for-developers/api-methods-reference#order-creation-outcomes).
