Plans
POST/v1/plan-offers

Publish plan offer

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/plan-offers" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"name":"Example","count":1,"amount_base_units":1}'

Publishes an installment or subscription offer for the caller's merchant. Console session or API key with catalog:edit; only VERIFIED merchants with a verified Solana payTo, and plans run on Solana only.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/plan-offersBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissioncatalog:edit
Held by merchant_owner, merchant_developer. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
name*Name
description?Description
Default""
kind?Kind
Default"installment"
count*Count
amount_base_units*Amount Base Units

Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).

period_seconds?Period Seconds
Default86400
network?|

Network as a CAIP-2 id, for example eip155:84532 (Base Sepolia) or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet).

asset?Asset

Asset symbol, for example USDC or USDT; USD for card amounts.

Default"USDC"

Response Body

Success.

application/json
  1. response
id*Id
name*Name
description?string|null
kind*Kind
total_base_units*Total Base Units

Total in integer base units, carried as a string.

count*Count
amount_base_units*Amount Base Units

Amount in integer base units, carried as a string (USDC and USDT have 6 decimals: "50000" = 0.05).

period_seconds*Period Seconds
network*Network

Network as a CAIP-2 id, for example eip155:84532 (Base Sepolia) or solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 (Solana devnet).

asset*Asset

Asset symbol, for example USDC or USDT; USD for card amounts.

payee*Payee
status*Status

Current state; the allowed values and moves are in the state machines reference.

created_at?|

Creation time, ISO 8601 UTC.

[key: string]?any