Charge a credit card immediately

Charges a SchoolSet contract immediately through the selected merchant account using the credit-card fields sent as multipart form data.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects a multipart form.
merchant_account_idintegerRequired
contract_idintegerRequired
payment_amountdoubleRequired
credit_card_numberstringRequired
credit_card_exp_datestringRequiredformat: "^\\d{4}-\\d{2}$"
credit_card_cvcstringRequired
customer_billing_namestringRequired
customer_address_1string or nullOptional
customer_address_2string or nullOptional
customer_citystring or nullOptional
customer_statestring or nullOptional
customer_zipstring or nullOptional
customer_countrystring or nullOptional
customer_phonestring or nullOptional
customer_emailstring or nullOptionalformat: "email"
fees_prioritylist of integersOptional
notestring or nullOptional

Response

Credit-card payment accepted

statusstringOptional
messagestringOptional
datamap from strings to anyOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error