PaymentGateways
Create PaymentGateway
Create a new PaymentGateway record.
POST
Create PaymentGateway
A PaymentGateway represents a connection to one of the supported payment gateways used to process card payments.
Each gateway can be associated to one or more locations (
Business entity) via the DefaultPaymentGatewayId property on the business. A gateway is configured with a specific PaymentGatewayType (e.g. stripe, braintree, adyen) and the corresponding credentials (AccessToken, ConfigurationXml).
An optional TransactionFee can be set to track per-transaction costs, and a FinancialAccountId and TaxRateId can be linked for accounting purposes.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the PaymentGateway-Create role.Enums
ePaymentGatewayType — PaymentGatewayType values
ePaymentGatewayType — PaymentGatewayType values
Request Body
Required Fields
The payment provider to use (e.g. stripe, braintree, adyen). Determines which credentials are required. Defaults to
ePaymentGatewayType.test.Optional Fields
Code Examples
Response
200
Example Response
400
Example Response