Plans
PATCH/v1/plan-offers/{offer_id}

Update plan offer

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

Renames, re-describes, archives or republishes one of the caller merchant's plan offers (status published or archived). Console session or API key with catalog:edit.

Server URLhttps://api.52-28-238-205.sslip.io
PATCH/v1/plan-offers/{offer_id}Base URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • offer_idstringrequired

    Published plan offer id (pof_...).

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)

Path Parameters

offer_id*Offer Id

Published plan offer id (pof_...).

Request Body

application/json
  1. body
status?|

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

name?string|null
description?string|null

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