Adds a payment type to an account.
The unique ID of the account.
A valid API key with a scope of AccountLists
The name of the payment type. Maximum length is 32 characters and it cannot be empty.
Indicates if the payment type is active or inactive. The default is active.
Indicates whether this payment type represents a credit/debit card payment (true) versus something else such as cash or check (false). The default is false.
"paymentType": "Visa/Mastercard",
paymentType is required, cannot be empty, and cannot exceed 32 characters.
A payment type's name must be unique within an account. If a payment type with the same name already exists for the account, the request will fail with a 409 Conflict.
If active is omitted, the payment type is created as active. If creditOrDebit is omitted, the payment type is created as false (not a credit/debit card payment).
Location — the URL of the newly created payment type.
The payment type was created.
The payment type was not created. This occurs if paymentType is missing, empty, or exceeds 32 characters.
The API key is missing, invalid, disabled, or does not have the correct scope.
The API key does not belong to this account, the account does not have the API-keys feature, or the key does not have the required scope.
A payment type with that name already exists for this account.
The unique ID of the payment type.
The name of the payment type.
Indicates if the payment type is active or inactive.
Indicates whether this payment type represents a credit/debit card payment (true) or something else (false).