- Submits an invoice for processing
POST {{baseURL}}/pay-int-api/invoices/{{invoiceId}}/submit
This endpoint submits an invoice for only card payments processing.
Submitting an invoice charges a card directly against its total, without waiting for the customer to visit a hosted payment page. The request carries the card number, expiration month and year, and security code, along with the cardholder's billing country and postal code.
It can also save the payment method to the customer's record when savePaymentMethod is true.
The response confirms the payment succeeded, a new payment method was created, and the customer's info was saved.
A separate endpoint, POST /pay-int-api/invoices/{invoiceId}/ach/submit, submits an invoice for ACH payment instead.
See Also:
To create an invoice, see POST /pay-int-api/invoices.
To publish an invoice, see POST /pay-int-api/invoices/publish.
To submit an ACH invoice for processing, see POST /pay-int-api/invoices/{invoiceId}/ach/submit.
To retrieve an invoice by ID, see GET /pay-int-api/invoices/{invoiceId}.
Specifies the request containing the details for invoice submission.
Specifies the transaction's total amount.
This includes the base amount, tips, taxes, shipping, discounts, and other charges.
Example: 3219.45
Specifies the payment target's bank account number.
Example: 5413591081013511
Specifies the billing postal or ZIP code.
Examples:
60612
60612-0001
- Mock serverhttps://developer.flute.com/_mock/api-reference/pay-int-api/invoices/{id}/submit
- Sandbox environmenthttps://sandbox.api.flute.com/pay-int-api/invoices/{id}/submit
- Production environmenthttps://api.flute.com/pay-int-api/invoices/{id}/submit
curl -i -X POST \
'https://developer.flute.com/_mock/api-reference/pay-int-api/invoices/{id}/submit' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'x-api-version: 1.0' \
-d '{
"totalAmount": 3219.45,
"accountNumber": "5413591081013511",
"expirationMonth": 7,
"expirationYear": 2032,
"securityCode": "123",
"billingCountryId": 1,
"billingPostalCode": "60612",
"savePaymentMethod": true
}'OK
Indicates the payment was successfully submitted.
If true, the payment was successfully submitted.
If false, the payment was not successfully submitted.
Example: true
Indicates the payment method was created.
If true, the payment method was created.
If false, the payment method was not created.
Example: true
{ "success": true, "paymentMethodCreated": true, "customerInfoSaved": true }