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

Authorizations

wb-key
string
header
required

Path Parameters

customer_id
string
required

Id of the customer

Body

application/json

An inbound payment session for creation (a different one is used for updating, see FI-360)

address
boolean
required

whether to collect billing address

operation
enum<string>
required

The purpose of a payment session:

  • AddMethod - add a new payment method
Available options:
add_method
detach_previous_on_success
boolean | null
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

Payment Session used to configure Payment Method

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
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

setup_intent
object

Payment Configuration setup intent