get_payment_instructions
Create a new unpaid USDC invoice for a live-data package; this spends no funds.
Call only after choosing a current plan with list_data_plans and checking get_access_status.
Trading alone needs no data subscription. Requires a Bearer key and linked
Solana wallet; missing wallet returns 409, unknown plan 404, disabled sales 503.
Returns invoice id, payer, recipient, mint, atomic amount, memo and Unix expiry.
Each call creates another invoice, so retain its ID rather than retry blindly.
Next use prepare_invoice_payment, review/sign/broadcast with your wallet,
then confirm_invoice_payment with the transaction signature. get_invoice_status
checks settlement. submit_swap is for swaps, not invoice payments.
Never pay an expired invoice or repeat a payment while confirmation is pending.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Exact data-package id from list_data_plans. Current ids: day (Day Pass), starter (Starter), builder (Unlimited). Use the id, not the display name; confirm current price and availability first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID for prepare_invoice_payment, get_invoice_status and confirm_invoice_payment. | |
| memo | Yes | Exact payment memo binding the transaction to this invoice. | |
| mint | Yes | Native Solana USDC mint address required for this payment. | |
| paid | Yes | Whether the invoice has been settled. A newly created invoice is unpaid. | |
| plan | Yes | Selected plan ID from the current public plan catalog. | |
| payer | Yes | Linked Solana wallet that must authorize payment. | |
| amount | Yes | Exact invoice amount in USDC atomic units; divide by 10^decimals for USDC. | |
| created | Yes | Invoice creation time as Unix seconds. | |
| expires | Yes | Invoice expiry as Unix seconds; do not pay an expired invoice. | |
| network | Yes | Required payment network: solana-mainnet. | |
| decimals | Yes | USDC decimals: 6. | |
| recipient | Yes | Public payment recipient to verify before signing. | |
| payment_protocol | Yes | Payment workflow identifier: pumpview-invoice-v1. |