# Submits an invoice for processing

<span class="api-endpoint">POST {{<a href="#urlbases">baseURL</a>}}/pay-int-api/invoices/{{invoiceId}}/submit</span>

Endpoint: POST /pay-int-api/invoices/{id}/submit
Version: V1
Security: Bearer

## Path parameters:

  - `invoiceId` (string, required)
    The identifier of the invoice to submit.

## Header parameters:

  - `x-api-version` (string)

## Request fields (application/json):

  - `totalAmount` (number)
    Specifies the transaction's total amount. 

This includes the base amount, tips, taxes, shipping, discounts, and other charges.

Example: 3219.45
    Example: 3219.45

  - `accountNumber` (string)
    Specifies the payment target's bank account number.

Example: 5413591081013511
    Example: 5413591081013511

  - `expirationMonth` (integer)
    Specifies the expiration month of the card.

Example: 7
    Example: 7

  - `expirationYear` (integer)
    Specifies the expiration year of the card.

Example: 2032
    Example: 2032

  - `securityCode` (string)

  - `billingCountryId` (integer)
    Specifies the Flute country identifier.
Example: 1
    Example: 1

  - `billingPostalCode` (string)
    Specifies the billing postal or ZIP code.
Examples:
60612
60612-0001
    Example: 60612

  - `savePaymentMethod` (boolean)

## Response 200 fields (application/json):

  - `success` (boolean)
    Indicates the payment was successfully submitted.
If `true`, the payment was successfully submitted.
If `false`, the payment was not successfully submitted..
Example: true
    Example: true

  - `paymentMethodCreated` (boolean)
    Indicates the payment method was created.
If `true`, the payment method was created.
If `false`, the payment method was not created.
Example: true
    Example: true

  - `customerInfoSaved` (boolean)
    Indicates the customer info was saved.
If `true`, the customer info was saved.
If `false`, the customer info was not saved.
Example: true
    Example: true

## Response 400 fields (application/json):

  - `details` (string)
    Indicates details about the error.

Example: Validation failed: -- Email: 'Email' is not a valid email address. Severity: Error
    Example: Validation failed: -- Email: 'Email' is not a valid email address. Severity: Error

  - `statusCode` (integer)
    Specifies the HTTP response status code.
This is the HTTP status code returned by the attempted delivery.
The following is a list of HTTP response status codes that include but are not limited to:
| HTTP Status | Meaning |
|  --- | --- |
| 200 | Delivery succeeded |
| 400 | Bad request |
| 401 | Unauthorized |
| 404 | Endpoint not found |
| 429 | Rate limited |

Example: 401
    Example: 401

  - `source` (string)
    Indicates the source of the error.
Example: <Service>
    Example: <Service>

  - `exceptionType` (string)
    Indicates the error's exception type.

Example: FluentValidation.ValidationException
    Example: FluentValidation.ValidationException

  - `correlationId` (string)
    Indicates the correlation identifier.

Example: aa6cfcd0-0295-4a4c-b074-8c901f114fef
    Example: aa6cfcd0-0295-4a4c-b074-8c901f114fef

  - `entityId` (string)
    Indicates the entity identifier.
Example:
null

  - `errorCode` (string)
    Indicates the error code.
Example:
null

## Response 404 fields (application/json):

  - `details` (string)

  - `statusCode` (integer)
    Specifies the HTTP response status code.
This is the HTTP status code returned by the attempted delivery.
The following is a list of HTTP response status codes that include but are not limited to:
| HTTP Status | Meaning |
|  --- | --- |
| 200 | Delivery succeeded |
| 400 | Bad request |
| 401 | Unauthorized |
| 404 | Endpoint not found |
| 429 | Rate limited |

Example: 401
    Example: 401

  - `source` (string)

  - `exceptionType` (string)

  - `correlationId` (string)

  - `entityId` (string)

  - `errorCode` (string)

## Response 500 fields (application/json):

  - `details` (string)

  - `statusCode` (integer)
    Specifies the HTTP response status code.
This is the HTTP status code returned by the attempted delivery.
The following is a list of HTTP response status codes that include but are not limited to:
| HTTP Status | Meaning |
|  --- | --- |
| 200 | Delivery succeeded |
| 400 | Bad request |
| 401 | Unauthorized |
| 404 | Endpoint not found |
| 429 | Rate limited |

Example: 401
    Example: 401

  - `source` (string)

  - `exceptionType` (string)

  - `correlationId` (string)

  - `entityId` (string)

  - `errorCode` (string)

