---
name: instacart.x402.fi
description: instacart.x402.fi is a payment host that enables programmatic purchase of Instacart gift cards and credits using USDC on Solana mainnet. It exposes two fixed-denomination purchase endpoints: a $10 gift card and a $50 credit, both enforcing exact USDC amounts via the x402 protocol with a 300-second settlement window.
host: instacart.x402.fi
---

# instacart.x402.fi

This host serves agents that need to fulfill Instacart gift card or credit purchases on behalf of users, using on-chain Solana USDC payments. It is narrowly scoped to two specific denominations and one payment rail, making it suitable for automated gifting or credit-top-up workflows where the agent controls a Solana wallet and can sign USDC transfers.

## When to use this host

Use this host when an agent needs to programmatically purchase an Instacart $10 gift card or a $50 Instacart credit and can sign a Solana USDC transaction. Do not use this host for any denomination other than $10 or $50, for non-Instacart gift cards, for fiat or non-USDC payment, or for non-Solana payment rails. If the user needs a different denomination or a different retailer's gift card, this host cannot fulfill that request and an alternative gift card provider should be sought.

## Capabilities

### Instacart Gift Card and Credit Purchase

Enables purchase of Instacart gift cards or credits in fixed denominations ($10 or $50) by submitting exact USDC payments on Solana mainnet via the x402 v2 protocol.

- **`purchase-instacart-10-gift-card`** — Purchases an Instacart $10 gift card by submitting an exact-price payment of 10 USDC on Solana mainnet with a 300-second settlement timeout.
- **`purchase-instacart-50-credit`** — Purchases a $50 Instacart credit by submitting an exact USDC payment of 50,000,000 atomic units on Solana mainnet via x402 v2 protocol.

## Skill reference

### `purchase-instacart-10-gift-card`

**Instacart $10 Gift Card Purchase** — Purchases an Instacart $10 gift card by submitting an exact-price payment of 10 USDC on Solana mainnet with a 300-second settlement timeout.

*Use when:* Use when the user wants to buy a $10 Instacart gift card and is willing to pay exactly 10 USDC from a Solana wallet; the agent must be able to sign and submit a Solana USDC transfer.

*Not for:* Do not use for gift card denominations other than $10, for non-Instacart gift cards, or for payment in any asset other than Solana USDC (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v).

**Inputs:**

- `payTo` (string, required) — Solana wallet address that receives the USDC payment. Must match the value from the x402 accepts schema.
- `amount` (string, required) — Exact payment amount in USDC atomic units (6 decimals). Must be exactly 10000000 (i.e. $10.00).
- `asset` (string, required) — SPL token mint address for the payment asset. Must be the USDC mint on Solana mainnet.
- `feePayer` (string) — Optional Solana address designated as the transaction fee payer, as specified in the x402 accepts schema.
- `xSettlementAccount` (string) — Optional settlement account address; supported per the xSettlementAccountSupported feature flag in the accepts schema.

**Returns:** Returns a success flag and, on success, gift card details (code and/or redemption link) for the purchased $10 Instacart gift card.

**Example:** `{"payTo": "Ak3Zw57WFjq94FGuX4sWNetqiCpbWQgmLoNmfRzEsadx", "amount": "10000000", "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"}`

---

### `purchase-instacart-50-credit`

**Instacart $50 Credit Purchase** — Purchases a $50 Instacart credit by submitting an exact USDC payment of 50,000,000 atomic units on Solana mainnet via x402 v2 protocol.

*Use when:* Use when an agent needs to programmatically buy a $50 Instacart gift credit using on-chain USDC on Solana, with a 300-second settlement window and exact-amount payment enforcement.

*Not for:* Do not use for purchasing other Instacart credit denominations or for non-Solana payment methods; this endpoint accepts only exact USDC on Solana mainnet.

**Inputs:**

- `asset` (string, required) — SPL token mint address for the payment asset. Must be USDC on Solana mainnet.
- `payTo` (string, required) — Solana wallet address to send the payment to.
- `amount` (string, required) — Exact payment amount in atomic USDC units (6 decimals). Must be exactly 50000000 for this endpoint.
- `scheme` (string, required) — Payment scheme. Must be 'exact' for this endpoint.
- `network` (string, required) — Solana network identifier for the payment.

**Returns:** Returns a confirmation that the $50 Instacart credit purchase was processed after exact USDC payment is settled on Solana mainnet.

**Example:** `POST https://instacart.x402.fi/store/buy/instacart-50
{"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","payTo":"Ak3Zw57WFjq94FGuX4sWNetqiCpbWQgmLoNmfRzEsadx","amount":"50000000","scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"}`

---
