> For the complete documentation index, see [llms.txt](https://debitllama.gitbook.io/debitllama/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://debitllama.gitbook.io/debitllama/rest-api-v1/api-v1-items-slug.md).

# /api/v1/items/\[slug]

You can fetch an item by Id. The Response when creating an item contains an **item\_id** variable which can be used. This variable is the same as the **button\_id** which is used for creating a valid checkout button.

#### Example response:

GET <https://debitllama/api/v1/items/89f41c73-7626-4e00-8090-1d91c83c3565&#x20>;

````typescript
```json
{
  "_self": {
    "href": "/api/v1/items/89f41c73-7626-4e00-8090-1d91c83c3565",
    "methods": ["GET", "POST"]
  },
  "_version": "v1",
  "_description": "GET: Fetch an item by item_id. POST: Update redirect_url and deactivate item",
  "_links": [
    {
      "href": "/api/v1/items/89f41c73-7626-4e00-8090-1d91c83c3565 ",
      "methods": ["GET", "POST"]
    },
    {
      "href": "https://debitllama.com/buyitnow?q=89f41c73-7626-4e00-8090-1d91c83c3565",
      "methods": ["GET", "POST"]
    }
  ],
  "item": {
    "id": 58,
    "created_at": "2023-12-30T16:06:57+00:00",
    "payee_address": "0xD97F13b8fd8a54434F7Bd7981F0D6C82EA1b59F3",
    "currency": {
      "name": "ETH",
      "native": true,
      "contractAddress": ""
    },
    "max_price": 5000,
    "debit_times": 1,
    "debit_interval": 1,
    "button_id": "89f41c73-7626-4e00-8090-1d91c83c3565",
    "redirect_url": "https://asd.com",
    "pricing": "Fixed",
    "network": {
      "name": "Arbitrum Sepolia",
      "rpc": "https://sepolia-rollup.arbitrum.io/rpc",
      "chain_id": "0x66eee",
      "virtual_accounts_contract": "0x5586938a2fC4489661E868c5800769Fb10847fC5",
      "connected_wallets_contract": "0x3Cad43A3038F0E657753C0129ce7Ea4a5801EC90",
      "currency": "ETH",
      "available_currencies": [
        {
          "name": "ETH",
          "native": true,
          "contractAddress": ""
        },
        {
          "name": "USDC",
          "native": false,
          "contractAddress": "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"
        },
        {
          "name": "USDG",
          "native": false,
          "contractAddress": "0xFFC95faa3d63Cde504a05B567C600B78C0b41892"
        }
      ]
    },
    "name": "testitemname",
    "deleted": false,
    "payment_intents_count": 0
  },
  "checkout": "https://debitllama.com/buyitnow?q=89f41c73-7626-4e00-8090-1d91c83c3565",
  "item_id": "89f41c73-7626-4e00-8090-1d91c83c3565"
}
```

````

### Checkout link

The response contains the link to the checkout in the \_links array, you can use it to directly navigate your customers to the checkout page.

### Update the item POST

You can disable the item or update it's redirect url using a POST request

{% hint style="info" %}
Deleting an item is not permanent, it will only disable the checkout, you can re-enable the item again any time.
{% endhint %}

Request example:

POST <https://debitllama/api/v1/items/89f41c73-7626-4e00-8090-1d91c83c3565&#x20>;

Body:

```typescript
{
    type: "delete" | "redirect",
    value: string | boolean
}
```

You must specify if you want to delete the item or update the redirect link using type and set the value you want to add.
