Skip to content

Choose an existing payment-provider account

POST
/payments/connect
curl --request POST \
--url https://example.com/payments/connect \
--cookie __Host-bottle.session_token=<__Host-bottle.session_token>
provider
string

Provider account selection

Media typeapplication/json
object
url
required
string format: uri

Example generated

{
"url": "https://example.com"
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Not a member, or without the permission this needs

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

A working account is already connected

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}

Payments are not configured on this installation

Media typeapplication/json
object
error
required
string
message
required
string

Example

{
"error": "not_found",
"message": "Customer not found"
}