Skip to main content
PATCH
Update a product

Authorizations

X-Suby-Api-Key
string
header
required

Secret API key. sk_live_… (production) or sk_sandbox_… (sandbox).

Path Parameters

id
string
required
Example:

"pro_abc123"

Body

application/json
name
string
Maximum string length: 200
description
string | null
Maximum string length: 2000
imageUrl
string<uri> | null
status
enum<string>

Toggle DRAFT↔ACTIVE to unpublish/publish; ARCHIVED to retire.

Available options:
DRAFT,
ACTIVE,
ARCHIVED
priceCents
string | null

New price in cents (string of digits). Applies to future charges only — existing Payments keep their snapshot.

Pattern: ^\d+$
currency
enum<string> | null
Available options:
EUR,
USD
quantity
integer | null

Stock cap; null = unlimited.

Required range: x >= 0
customFields
object[]

Extra fields collected on the hosted checkout page (max 10).

Maximum array length: 10
paymentMethods
enum<string>[] | null

Replaces the whole whitelist. null/[] clears it (inherit the Org-approved set).

Available options:
CARD,
APPLE_PAY,
GOOGLE_PAY,
KLARNA,
IDEAL,
BANCONTACT,
TWINT,
BLIK,
AFFIRM,
MULTIBANCO,
PAYPAL,
SEPA_DIRECT_DEBIT,
ACH_DIRECT_DEBIT,
STABLECOIN,
VOLATILE_CRYPTO
successUrl
string<uri> | null
cancelUrl
string<uri> | null

Response

Product updated

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload.

message
string