> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Remittance Invoices

# Type: Remittance Invoice Object

# Link: https://dev.wix.com/docs/api-reference/business-management/capital/remittance-invoices/remittance-invoice-object.md

## Description: A remittance invoice is the daily record of how much of a merchant's sales goes
towards repaying a cash advance agreement. One invoice is calculated at the beginning
of each day, covering the previous day's sales in the agreement's timezone.

A remittance invoice records an amount that's due to be collected, not money that has
already moved. When the funds are collected, the invoice is linked to a financial
operation and `financialOperationId` is populated.

## Schema:

```json
 Type: Remittance Invoice Object | type: RemittanceInvoice
 Description: A remittance invoice is the daily record of how much of a merchant's sales goes
towards repaying a cash advance agreement. One invoice is calculated at the beginning
of each day, covering the previous day's sales in the agreement's timezone.

A remittance invoice records an amount that's due to be collected, not money that has
already moved. When the funds are collected, the invoice is linked to a financial
operation and `financialOperationId` is populated.
       - name: id  | type: string | description: Remittance invoice ID.
           - name: value  | type: string | description: 
       - name: amount  | type: Money | description: Amount due to be collected as a remittance for the sales day.  Never negative. Equal to the sum of `cashAdvanceAmountPortion` and `cashAdvanceFeePortion`.
           - name: value  | type: string | description: Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.
           - name: currency  | type: string | description: Currency code. Must be valid ISO 4217 currency code (e.g., USD).
       - name: last  | type: boolean | description: Whether this is the last remittance invoice for the cash advance agreement.  This indicates that no further invoices are issued for the agreement. It doesn't indicate whether the remittance has been collected.
           - name: value  | type: boolean | description: 
       - name: cashAdvanceAmountPortion  | type: Money | description: Portion of `amount` applied to the principal advanced under the agreement.  For example, a 100 USD remittance may cover 80 USD of the advanced amount and 20 USD of the fee.
       - name: cashAdvanceFeePortion  | type: Money | description: Portion of `amount` applied to the agreement's fee.
       - name: salesAmount  | type: Money | description: Total sales for the sales day that the remittance was calculated from.
       - name: salesStartDate  | type: string | description: Date and time the sales day started.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: salesEndDate  | type: string | description: Date and time the sales day ended.
       - name: salesDay  | type: string | description: Sales day the remittance covers, in the cash advance agreement's timezone.  Date in `YYYY-MM-DD` format.
       - name: salesCount  | type: number | description: Number of sales included in the remittance.
           - name: value  | type: number | description: 
       - name: accountId  | type: string | description: Wix Payments account ID.
       - name: tenantId  | type: string | description: Internal identifier. Not required for third-party integrations.
       - name: siteId  | type: string | description: ID of the site the cash advance agreement belongs to.
       - name: sandbox  | type: boolean | description: Whether the remittance invoice was created in a test environment.
       - name: cashAdvanceAgreementId  | type: string | description: ID of the cash advance agreement the remittance invoice belongs to.
       - name: financialOperationId  | type: string | description: ID of the financial operation that collected the remittance.  Populated when the remittance is collected. A remittance invoice with no `financialOperationId` has been calculated but not yet collected.
       - name: createdDate  | type: string | description: Date and time the remittance invoice was created.
       - name: updatedDate  | type: string | description: Date and time the remittance invoice was updated.
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the remittance invoice is updated.
           - name: value  | type: string | description: 

```