Skip to main content
POST
Initiate a payment (deprecated)

Authorizations

X-Suby-Api-Key
string
header
required

API key authentication

Body

application/json
productId
string
required
customerId
string

Optional. Links to an existing customer by their stable id. Takes precedence over customerEmail (see POST /api/payment/create).

Maximum string length: 255
customerEmail
string<email>

Optional. If omitted, the customer is created on the hosted checkout page (see POST /api/payment/create).

externalRef
string
metadata
object
successUrl
string<uri>
cancelUrl
string<uri>
priceCents
string
currency
enum<string>
Available options:
USD,
EUR

Response

Payment initiated

success
boolean
Example:

true

data
object