> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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. Provided by the caller on create.
           - 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`. Currency is `USD`, the only currency supported today.
           - 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.  Set to `true` when the invoice covers the agreement's remaining debt. 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.  Never negative. Currency is `USD`, the only currency supported today.  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.  Never negative. Currency is `USD`, the only currency supported today.
       - name: salesAmount  | type: Money | description: Total sales for the sales day that the remittance was calculated from.  Never negative. Currency is `USD`, the only currency supported today.
       - name: salesStartDate  | type: string | description: Date and time the sales day started, inclusive.  Must be earlier than `salesEndDate`. The sales window can't overlap another remittance invoice of the same cash advance agreement.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: salesEndDate  | type: string | description: Date and time the sales day ended, exclusive.
       - name: salesDay  | type: string | description: Sales day the remittance covers, in the cash advance agreement's timezone.  Date in `YYYY-MM-DD` format. Equal to the date of `salesStartDate` in that timezone.
       - 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: 

```