POST
/
v1
/
contracts
/

Body

application/json

Provide a new customer and a new payment account to create a new contract for the new customer and payment account.

customer
object
required

New Customer details.

paymentAccount
object
required

New Payment Account details.

contract
object
required

New Contract details.

customerId
string

Existing customer ID. If provided, a new customer will not be created. Note: You cannot provide both a customerId and a new customer object at the same time.

paymentAccountId
string

Existing payment account ID. If provided, a new payment account will not be created. Note: You cannot provide both a paymentAccountId and a new paymentAccount object at the same time.

Response

201 - application/json

The request was successfully processed, and the contract has been created. As well as new customer and/or a new payment account if they were part of the request.

contract
object
required

Schema defining the contract details.

customer
object
required

Schema representing a customer.

paymentAccount
object
required

Schema representing a payment account.