POST
/
v1
/
c
/
customer
/
{customer_id}
/
payment
/
session

Authorizations

wb-key
string
headerrequired

Body

application/json
address
boolean
required

whether to collect billing address

detach_previous_on_success
boolean | null
operation
enum<string>
required

The purpose of a payment session:

  • AddMethod - add a new payment method
Available options:
add_method
plan_id
string

Unique identifier of an object. Consists of object class prefix and a UUID

pricing_id
string

Unique identifier of an object. Consists of object class prefix and a UUID

provider
enum<string>

The payment providers known by the backend.

Those variants MUST be kept identical to the variants of the payment_provider enum of the postgres database

Available options:
authorize,
self_handled,
stripe

Response

200 - application/json
address
boolean
required

Indicates whether address is required

customer_id
string
required

Unique identifier of an object. Consists of object class prefix and a UUID

detach_previous_on_success
boolean
required

Determines whether previous payment method will be disabled and deregistered once current setup succeeds

operation
enum<string>
required

The purpose of a payment session:

  • AddMethod - add a new payment method
Available options:
add_method
provider
enum<string>
required

The payment providers known by the backend.

Those variants MUST be kept identical to the variants of the payment_provider enum of the postgres database

Available options:
authorize,
self_handled,
stripe
setup_intent
object

Payment Configuration setup intent

status
string
required

Payment Session Status

token
string
required

Unique identifier of an object. Consists of object class prefix and a UUID

wb_customer_id
string
required

Unique identifier of an object. Consists of object class prefix and a UUID