Charge a split payment by credit card

Charges an immediate credit-card payment and distributes the approved amount across selected contracts and fee allocations.

Authentication

AuthorizationBearer

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

Request

This endpoint expects a multipart form.
merchant_account_idintegerRequired
credit_card_numberintegerRequired
credit_card_exp_datestringRequiredformat: "^\\d{4}-\\d{2}$"
credit_card_cvcintegerRequired
customer_billing_namestringRequired<=255 characters
customer_address_1string or nullOptional<=255 characters
customer_address_2string or nullOptional<=255 characters
customer_citystring or nullOptional<=255 characters
customer_statestring or nullOptional<=255 characters
customer_zipstring or nullOptional<=255 characters
customer_countrystring or nullOptional<=255 characters
customer_phonestring or nullOptional<=255 characters
customer_emailstring or nullOptionalformat: "email"
contracts_idlist of integersRequired
payment_amountslist of doublesRequired
payment_total_amountdoubleRequired>=0.01
contract_fees_types_idlist of integers or nullOptional
is_creditboolean or nullOptional
notestring or nullOptional<=255 characters

Response

The card split result is returned with gateway status and PaymentResource items
statusstringOptional
messagestringOptional
datalist of objectsOptional

Errors

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