> 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

# Package: receipts

# Namespace: receipts

# Webhook link: https://dev.wix.com/docs/api-reference/business-management/get-paid/receipts/receipts/receipt-sent.md

# Webhook Permissions Scopes IDs:
Manage Receipts: SCOPE.RECEIPTS.MANAGE

## Introduction

Triggered when a receipt is sent.

---

## REST API

### Schema

```
Webhook: Receipt Sent
Description: Triggered when a receipt is sent.
Event body:
 - name: id | type: string | description: Unique event ID. Allows clients to ignore duplicate events.
 - name: entityFqdn | type: string | description: Fully qualified domain name of the entity associated with the event.
 - name: slug | type: string | description: Event name.
 - name: entityId | type: string | description: ID of the entity associated with the event.
 - name: eventTime | type: string (date-time) | description: Event timestamp.
 - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application such as GDPR.
 - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
 - name: actionEvent | type: object | description: Custom action event details.
    - name: body | type: Sent | description: The event body.
        - name: receipt | type: Receipt | description: Receipt that was sent.
           - name: id | type: string | description: Receipt GUID.
           - name: revision | type: string | description: Revision number, which increments by 1 each time the receipt is updated. To prevent conflicting changes, the current revision must be passed when updating the receipt.
           - name: createdDate | type: string | description: Date and time the receipt was created.
           - name: updatedDate | type: string | description: Date and time the receipt was last updated. Relevant updates include receipt regeneratation and number allocation changes. Updates to financial information are not stored.
           - name: numbering | type: Numbering | description: Receipt numbering.
              - name: number | type: integer | description: Receipt number.
              - name: prefix | type: string | description: Receipt prefix that will be displayed before the receipt number.
              - name: suffix | type: string | description: Receipt suffix that will be displayed after the receipt number.
              - name: displayNumber | type: string | description: Full receipt display number, in [prefix][number][suffix] format.
           - name: regionalProperties | type: RegionalProperties | description: Regional properties pertaining to the receipt. When regional properties are not provided, defaults are taken from the site's properties, available in the Site Properties API.
              - name: locale | type: Locale | description: Locale. Determines formating of numbers, dates and times.
                 - name: languageCode | type: string | description: Two-letter language code in [ISO-639-1 alpha-2](https://en.wikipedia.org/wiki/ISO_639-1) format. For example: `en`, `de`, `ja`.
                 - name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format. For example: `US`, `DE`, `JP`.
              - name: timeZone | type: string | description: Time zone. Determines offset of dates and times.
              - name: language | type: string | description: Receipt language. Determines the language of receipt static content (i.e. field and column titles). If not provided, defaults to locale's language. Two-letter language code in [ISO-639-1 alpha-2](https://en.wikipedia.org/wiki/ISO_639-1) format.
           - name: currency | type: string | description: Currency code in [ISO-4217 alphabetic](https://www.iso.org/iso-4217-currency-codes.html) format.
           - name: sourceReference | type: SourceReference | description: Details about the associated Wix eCommerce or Wix Payments order.
              - ONE-OF:
                 - name: wixPaymentOrder | type: WixPayment | description: Wix Payments order. Required when `receiptOrderType` is `WIX_PAYMENT`.
                    - name: orderId | type: string | description: Wix Payments order GUID.
                    - name: transactionId | type: string | description: Wix Payments transaction GUID.
                 - name: wixEcomOrder | type: WixEcom | description: Wix eCommerce order. Required when `receiptOrderType` is `WIX_ECOM`.
                    - name: orderId | type: string | description: Wix eCommerce order GUID.
                    - name: transactionId | type: string | description: Wix eCommerce transaction GUID.
              - name: appId | type: string | description: GUID of the app that generated the receipt.
              - name: externalReferenceId | type: string | description: External reference GUID. For example: Wix eCommerce `orderId`, Wix Events `eventId`.
              - name: receiptOrderType | type: ReceiptOrderType | description: Order type.
                   - enum:
                   -     WIX_PAYMENT: Receipt for Wix Payments payment.
                   -     WIX_ECOM: Receipt for Wix eCommerce payment.
           - name: businessDetails | type: BusinessDetails | description: Business details. When business properties are not provided, defaults are taken from the site's properties, available in the Site Properties API.
              - name: name | type: string | description: Business name.
              - name: email | type: string | description: Business email.
              - name: phone | type: string | description: Business phone.
              - name: address | type: Address | description: Business address.
                 - ONE-OF:
                    - name: streetAddress | type: StreetAddress | description: Street name and number.
                       - name: number | type: string | description: Street number.
                       - name: name | type: string | description: Street name.
                       - name: apt | type: string | description: Apartment number.
                    - name: addressLine | type: string | description: Main address line, usually street and number as free text.
                 - name: country | type: string | description: Country code.
                 - name: subdivision | type: string | description: Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY
                 - name: city | type: string | description: City name.
                 - name: postalCode | type: string | description: Zip/postal code.
                 - name: addressLine2 | type: string | description: Free text providing more detailed address info. Usually contains Apt, Suite, and Floor.
              - name: logo | type: Image | description: Business logo.
                 - name: id | type: string | description: WixMedia image GUID.
                 - name: url | type: string | description: Image URL.
                 - name: height | type: integer | description: Original image height.
                 - name: width | type: integer | description: Original image width.
                 - name: altText | type: string | description: Image alt text.
                 - name: filename | type: string | description: Image filename.
           - name: customer | type: Customer | description: Customer details.
              - name: contactId | type: string | description: Customer's contact GUID.
              - name: contactDetails | type: FullAddressContactDetails | description: Customer's contact details.
                 - name: firstName | type: string | description: Contact's first name.
                 - name: lastName | type: string | description: Contact's last name.
                 - name: phone | type: string | description: Contact's phone number.
                 - name: company | type: string | description: Contact's company name.
                 - name: email | type: string | description: Email associated with the address.
                 - name: vatId | type: VatId | description: Tax info. Currently usable only in Brazil.
                    - name: id | type: string | description: Customer's tax GUID.
                    - name: type | type: VatType | description: Tax type.  Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
                           - enum:
                           -     UNSPECIFIED: 
                           -     CPF: CPF - for individual tax payers.
                           -     CNPJ: CNPJ - for corporations
              - name: billingAddress | type: Address | description: Customer's billing address.
              - name: shippingAddress | type: Address | description: Customer's shipping address.
              - name: shippingAddressContactDetails | type: ShippingAddressContactDetails | description: Shipping address contact details. Allows to have a separate contact details (name, email, etc.) for the shipping address.
                 - name: firstName | type: string | description: Contact's first name.
                 - name: lastName | type: string | description: Contact's last name.
                 - name: phone | type: string | description: Contact's phone number.
                 - name: company | type: string | description: Contact's company name.
                 - name: email | type: string | description: Email associated with the address.
           - name: lineItems | type: array<LineItem> | description: Line item details.
              - name: id | type: string | description: Line item GUID.
              - name: name | type: string | description: Line item name.
              - name: description | type: string | description: Line item description.
              - name: quantity | type: string | description: Line item quantity.
              - name: price | type: string | description: Line item unit price per unit after discounts.
              - name: priceBeforeDiscounts | type: string | description: Line item price per unit before discounts.
              - name: taxBreakdown | type: array<LineItemTax> | description: Line item tax breakdown.
                 - name: taxName | type: string | description: Tax name.
                 - name: taxRate | type: string | description: Tax rate percentage. For example: 0.1000 means 10% tax, and 2.1000 means 210% tax.
                 - name: taxableAmount | type: string | description: Amount of the line item price that is taxable.
                 - name: taxAmount | type: string | description: Amount of tax calculated for this line item.
                 - name: exemptAmount | type: string | description: Exempt amount from tax calculated for this line item.
              - name: totals | type: LineItemTotals | description: Line item totals.
                 - name: totalDiscount | type: string | description: Line item total discount.
                 - name: totalPriceBeforeTax | type: string | description: Line item total price after discounts and before taxes.
                 - name: totalTax | type: string | description: Line item total applied tax.
                 - name: totalPriceAfterTax | type: string | description: Line item total price after taxes and discounts.
                 - name: totalExemptAmount | type: string | description: Line item total price that was exempt from tax.
                 - name: totalPriceAfterLineItemDiscounts | type: string | description: Line item total price after line-item-level (local) discounts have been applied, but before any receipt-level (global) discounts are allocated and before tax.
              - name: discounts | type: array<LineItemDiscount> | description: Line item discount breakdown.
                 - ONE-OF:
                    - name: fixedDiscount | type: string | description: Fixed monetary amount discount.
                    - name: percentageDiscount | type: string | description: Percentage-based discount (0-100).
                 - name: id | type: string | description: GUID of the discount.
                 - name: name | type: string | description: Name or description of the discount.
                 - name: discountType | type: DiscountType | description: Type of the discount.
                       - enum:
                       -     FIXED: Fixed monetary amount discount.
                       -     PERCENTAGE: Percentage-based discount.
           - name: shippingInfo | type: ShippingInfo | description: Shipping info.
              - name: title | type: string | description: Shipping title.
              - name: priceBeforeTax | type: string | description: Shipping amount after discounts (when relevant), and before tax.
              - name: priceAfterTax | type: string | description: Shipping price after all discounts (if any exist), and after tax.
              - name: taxBreakdown | type: array<ShippingTax> | description: Shipping tax breakdown.
                 - name: name | type: string | description: Tax name.
                 - name: rate | type: string | description: Tax rate percentage. Example: 0.1000 signifies 10% tax and 2.1000 signifies 210% tax.
                 - name: amount | type: string | description: Tax amount.
                 - name: exemptAmount | type: string | description: Exempt amount from tax.
              - name: exemptAmount | type: string | description: Shipping price that was exempt from tax.
           - name: additionalFees | type: array<AdditionalFee> | description: Additional fees.
              - name: name | type: string | description: Additional fee name.
              - name: priceBeforeTax | type: string | description: Additional fee price before taxes.
              - name: priceAfterTax | type: string | description: Additional fee amount after taxes. If no taxes apply to this fee, this will be the same as `priceBeforeTax`.
              - name: taxBreakdown | type: array<AdditionalFeeTax> | description: Additional fee tax breakdown.
                 - name: name | type: string | description: Tax name.
                 - name: rate | type: string | description: Tax rate. Example: 0.1000 signifies 10% tax and 2.1000 signifies 210% tax.
                 - name: amount | type: string | description: Tax amount.
                 - name: exemptAmount | type: string | description: Exempt amount from tax.
              - name: exemptAmount | type: string | description: Additional fee price that was exempt from tax.
           - name: discounts | type: array<Discount> | description: Discounts.
              - name: amount | type: string | description: Discount amount.
              - name: displayName | type: string | description: Discount name.
           - name: payment | type: Payment | description: Payment details.
              - name: paymentMethod | type: string | description: Payment method.
              - name: paymentMethodDetails | type: string | description: Payment details.
              - name: amount | type: string | description: Payment amount.
              - name: transactionDate | type: string | description: Payment transaction date.
              - name: cashRounding | type: CashRounding | description: Details about cash rounding applied to this payment, when relevant.
                 - name: roundingAmount | type: string | description: The difference between 'amount' and 'unroundedAmount'. A positive value indicates the price was rounded up; a negative value indicates a round-down.
                 - name: unroundedAmount | type: string | description: Payment amount before cash rounding was applied.
           - name: totals | type: Totals | description: Summaries of totals including tax, shipping, additional fees and discounts.
              - name: subtotal | type: string | description: Subtotal of all line items, before discounts and before taxes.
              - name: shipping | type: string | description: Shipping price, before discounts and tax.
              - name: discount | type: string | description: Discount amount.
              - name: additionalFees | type: string | description: Additional fee amount, before discounts and tax.
              - name: tax | type: string | description: Tax amount.
              - name: total | type: string | description: Total amount after all calculations. Equates to: subtotal - discounts + taxes + shipping + additional_fees.
              - name: exempt | type: string | description: Total amount that was exempt from tax.
           - name: taxBreakdown | type: array<Tax> | description: Tax and taxable amounts breakdowns.
              - name: name | type: string | description: Tax name.
              - name: rate | type: string | description: Tax rate percentage, as a positive decimal numeral. For example, "0.13".
              - name: taxAmount | type: string | description: Tax amount.
              - name: taxableAmount | type: string | description: Taxable amount this tax applies to.
              - name: exemptAmount | type: string | description: Exempt amount from tax.
           - name: taxExempt | type: boolean | description: Indicates if there were exempt from tax.
           - name: presetId | type: string | description: Receipt preset GUID. Defaults to the default receipt preset GUID, available with Get Default Receipt Preset GUID.
           - name: customFields | type: CustomFields | description: Custom fields for this receipt. Values appear on the receipt in the specified order.
              - name: headerCustomFields | type: array<CustomField> | description: Header custom fields.
                 - name: title | type: string | description: Title.
                 - name: value | type: string | description: Value.
              - name: businessCustomFields | type: array<CustomField> | description: Business custom fields.
              - name: customerCustomFields | type: array<CustomField> | description: Customer custom fields.
              - name: footerCustomFields | type: array<FooterCustomField> | description: Footer custom fields.
                 - name: title | type: string | description: Title.
                 - name: value | type: string | description: Value.
           - name: document | type: Document | description: Document details.
              - name: status | type: DocumentStatus | description: Document status.
                   - enum:
                   -     PROCESSING: Generation is in progress. Call Get Receipt after 6-10 seconds to check the updated status.
                   -     AVAILABLE: Generation was successful. You can downloaded the document using the `downloadUrl`.
                   -     FAILED: Generation has failed. You can retrigger document generation by calling Regenerate Receipt Document.
              - name: downloadUrl | type: string | description: Document download URL.
              - name: startGenerationTime | type: string | description: Document start generation time.
           - name: extendedFields | type: ExtendedFields | description: Custom field data for the receipt. Extended fields must be configured in the app dashboard before they can be accessed with API calls.
              - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).
        - name: automatic | type: boolean | description: Receipt was sent in automatic or manual flow.

```

### Examples


```curl
{
  "id": "6c0097ce-c2eb-482e-bd59-79ba20d12c31",
  "entityFqdn": "wix.receipts.v1.receipt",
  "slug": "sent",
  "entityId": "b2cfeb72-cc80-4158-9447-182c0c30daff",
  "actionEvent": {
    "body": {
      "receiptId": "b2cfeb72-cc80-4158-9447-182c0c30daff",
      "automatic": true
    }
  },
  "eventTime": "2025-01-20T09:21:41.201645208Z",
  "triggeredByAnonymizeRequest": false
}

```

---

## JavaScript SDK

### Schema

```
Webhook: onReceiptSent
Description: Triggered when a receipt is sent.
Payload: ReceiptSentEnvelope
  - name: data | type: Sent | description: none
     - name: receipt | type: Receipt | description: Receipt that was sent.
        - name: _id | type: string | description: Receipt GUID.
        - name: revision | type: string | description: Revision number, which increments by 1 each time the receipt is updated. To prevent conflicting changes, the current revision must be passed when updating the receipt.
        - name: _createdDate | type: Date | description: Date and time the receipt was created.
        - name: _updatedDate | type: Date | description: Date and time the receipt was last updated. Relevant updates include receipt regeneratation and number allocation changes. Updates to financial information are not stored.
        - name: numbering | type: Numbering | description: Receipt numbering.
           - name: number | type: integer | description: Receipt number.
           - name: prefix | type: string | description: Receipt prefix that will be displayed before the receipt number.
           - name: suffix | type: string | description: Receipt suffix that will be displayed after the receipt number.
           - name: displayNumber | type: string | description: Full receipt display number, in [prefix][number][suffix] format.
        - name: regionalProperties | type: RegionalProperties | description: Regional properties pertaining to the receipt. When regional properties are not provided, defaults are taken from the site's properties, available in the Site Properties API.
           - name: locale | type: Locale | description: Locale. Determines formating of numbers, dates and times.
              - name: languageCode | type: string | description: Two-letter language code in [ISO-639-1 alpha-2](https://en.wikipedia.org/wiki/ISO_639-1) format. For example: `en`, `de`, `ja`.
              - name: country | type: string | description: Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#officially_assigned_code_elements) format. For example: `US`, `DE`, `JP`.
           - name: timeZone | type: string | description: Time zone. Determines offset of dates and times.
           - name: language | type: string | description: Receipt language. Determines the language of receipt static content (i.e. field and column titles). If not provided, defaults to locale's language. Two-letter language code in [ISO-639-1 alpha-2](https://en.wikipedia.org/wiki/ISO_639-1) format.
        - name: currency | type: string | description: Currency code in [ISO-4217 alphabetic](https://www.iso.org/iso-4217-currency-codes.html) format.
        - name: sourceReference | type: SourceReference | description: Details about the associated Wix eCommerce or Wix Payments order.
           - ONE-OF:
              - name: wixPaymentOrder | type: WixPayment | description: Wix Payments order. Required when `receiptOrderType` is `WIX_PAYMENT`.
                 - name: orderId | type: string | description: Wix Payments order GUID.
                 - name: transactionId | type: string | description: Wix Payments transaction GUID.
              - name: wixEcomOrder | type: WixEcom | description: Wix eCommerce order. Required when `receiptOrderType` is `WIX_ECOM`.
                 - name: orderId | type: string | description: Wix eCommerce order GUID.
                 - name: transactionId | type: string | description: Wix eCommerce transaction GUID.
           - name: appId | type: string | description: GUID of the app that generated the receipt.
           - name: externalReferenceId | type: string | description: External reference GUID. For example: Wix eCommerce `orderId`, Wix Events `eventId`.
           - name: receiptOrderType | type: ReceiptOrderType | description: Order type.
                 - enum:
                 -     WIX_PAYMENT: Receipt for Wix Payments payment.
                 -     WIX_ECOM: Receipt for Wix eCommerce payment.
        - name: businessDetails | type: BusinessDetails | description: Business details. When business properties are not provided, defaults are taken from the site's properties, available in the Site Properties API.
           - name: name | type: string | description: Business name.
           - name: email | type: string | description: Business email.
           - name: phone | type: string | description: Business phone.
           - name: address | type: Address | description: Business address.
              - name: city | type: string | description: none
              - name: subdivision | type: string | description: none
              - name: country | type: string | description: none
              - name: postalCode | type: string | description: none
              - name: addressLine1 | type: string | description: none
              - name: addressLine2 | type: string | description: none
           - name: logo | type: string | description: Business logo.
        - name: customer | type: Customer | description: Customer details.
           - name: contactId | type: string | description: Customer's contact GUID.
           - name: contactDetails | type: FullAddressContactDetails | description: Customer's contact details.
              - name: firstName | type: string | description: Contact's first name.
              - name: lastName | type: string | description: Contact's last name.
              - name: phone | type: string | description: Contact's phone number.
              - name: company | type: string | description: Contact's company name.
              - name: email | type: string | description: Email associated with the address.
              - name: vatId | type: VatId | description: Tax info. Currently usable only in Brazil.
                 - name: _id | type: string | description: Customer's tax GUID.
                 - name: type | type: VatType | description: Tax type.  Supported values: + `CPF`: for individual tax payers + `CNPJ`: for corporations
                         - enum:
                         -     UNSPECIFIED: 
                         -     CPF: CPF - for individual tax payers.
                         -     CNPJ: CNPJ - for corporations
           - name: billingAddress | type: Address | description: Customer's billing address.
           - name: shippingAddress | type: Address | description: Customer's shipping address.
           - name: shippingAddressContactDetails | type: ShippingAddressContactDetails | description: Shipping address contact details. Allows to have a separate contact details (name, email, etc.) for the shipping address.
              - name: firstName | type: string | description: Contact's first name.
              - name: lastName | type: string | description: Contact's last name.
              - name: phone | type: string | description: Contact's phone number.
              - name: company | type: string | description: Contact's company name.
              - name: email | type: string | description: Email associated with the address.
        - name: lineItems | type: array<LineItem> | description: Line item details.
           - name: _id | type: string | description: Line item GUID.
           - name: name | type: string | description: Line item name.
           - name: description | type: string | description: Line item description.
           - name: quantity | type: string | description: Line item quantity.
           - name: price | type: string | description: Line item unit price per unit after discounts.
           - name: priceBeforeDiscounts | type: string | description: Line item price per unit before discounts.
           - name: taxBreakdown | type: array<LineItemTax> | description: Line item tax breakdown.
              - name: taxName | type: string | description: Tax name.
              - name: taxRate | type: string | description: Tax rate percentage. For example: 0.1000 means 10% tax, and 2.1000 means 210% tax.
              - name: taxableAmount | type: string | description: Amount of the line item price that is taxable.
              - name: taxAmount | type: string | description: Amount of tax calculated for this line item.
              - name: exemptAmount | type: string | description: Exempt amount from tax calculated for this line item.
           - name: totals | type: LineItemTotals | description: Line item totals.
              - name: totalDiscount | type: string | description: Line item total discount.
              - name: totalPriceBeforeTax | type: string | description: Line item total price after discounts and before taxes.
              - name: totalTax | type: string | description: Line item total applied tax.
              - name: totalPriceAfterTax | type: string | description: Line item total price after taxes and discounts.
              - name: totalExemptAmount | type: string | description: Line item total price that was exempt from tax.
              - name: totalPriceAfterLineItemDiscounts | type: string | description: Line item total price after line-item-level (local) discounts have been applied, but before any receipt-level (global) discounts are allocated and before tax.
           - name: discounts | type: array<LineItemDiscount> | description: Line item discount breakdown.
              - ONE-OF:
                 - name: fixedDiscount | type: string | description: Fixed monetary amount discount.
                 - name: percentageDiscount | type: string | description: Percentage-based discount (0-100).
              - name: _id | type: string | description: GUID of the discount.
              - name: name | type: string | description: Name or description of the discount.
              - name: discountType | type: DiscountType | description: Type of the discount.
                     - enum:
                     -     FIXED: Fixed monetary amount discount.
                     -     PERCENTAGE: Percentage-based discount.
        - name: shippingInfo | type: ShippingInfo | description: Shipping info.
           - name: title | type: string | description: Shipping title.
           - name: priceBeforeTax | type: string | description: Shipping amount after discounts (when relevant), and before tax.
           - name: priceAfterTax | type: string | description: Shipping price after all discounts (if any exist), and after tax.
           - name: taxBreakdown | type: array<ShippingTax> | description: Shipping tax breakdown.
              - name: name | type: string | description: Tax name.
              - name: rate | type: string | description: Tax rate percentage. Example: 0.1000 signifies 10% tax and 2.1000 signifies 210% tax.
              - name: amount | type: string | description: Tax amount.
              - name: exemptAmount | type: string | description: Exempt amount from tax.
           - name: exemptAmount | type: string | description: Shipping price that was exempt from tax.
        - name: additionalFees | type: array<AdditionalFee> | description: Additional fees.
           - name: name | type: string | description: Additional fee name.
           - name: priceBeforeTax | type: string | description: Additional fee price before taxes.
           - name: priceAfterTax | type: string | description: Additional fee amount after taxes. If no taxes apply to this fee, this will be the same as `priceBeforeTax`.
           - name: taxBreakdown | type: array<AdditionalFeeTax> | description: Additional fee tax breakdown.
              - name: name | type: string | description: Tax name.
              - name: rate | type: string | description: Tax rate. Example: 0.1000 signifies 10% tax and 2.1000 signifies 210% tax.
              - name: amount | type: string | description: Tax amount.
              - name: exemptAmount | type: string | description: Exempt amount from tax.
           - name: exemptAmount | type: string | description: Additional fee price that was exempt from tax.
        - name: discounts | type: array<Discount> | description: Discounts.
           - name: amount | type: string | description: Discount amount.
           - name: displayName | type: string | description: Discount name.
        - name: payment | type: Payment | description: Payment details.
           - name: paymentMethod | type: string | description: Payment method.
           - name: paymentMethodDetails | type: string | description: Payment details.
           - name: amount | type: string | description: Payment amount.
           - name: transactionDate | type: Date | description: Payment transaction date.
           - name: cashRounding | type: CashRounding | description: Details about cash rounding applied to this payment, when relevant.
              - name: roundingAmount | type: string | description: The difference between 'amount' and 'unroundedAmount'. A positive value indicates the price was rounded up; a negative value indicates a round-down.
              - name: unroundedAmount | type: string | description: Payment amount before cash rounding was applied.
        - name: totals | type: Totals | description: Summaries of totals including tax, shipping, additional fees and discounts.
           - name: subtotal | type: string | description: Subtotal of all line items, before discounts and before taxes.
           - name: shipping | type: string | description: Shipping price, before discounts and tax.
           - name: discount | type: string | description: Discount amount.
           - name: additionalFees | type: string | description: Additional fee amount, before discounts and tax.
           - name: tax | type: string | description: Tax amount.
           - name: total | type: string | description: Total amount after all calculations. Equates to: subtotal - discounts + taxes + shipping + additional_fees.
           - name: exempt | type: string | description: Total amount that was exempt from tax.
        - name: taxBreakdown | type: array<Tax> | description: Tax and taxable amounts breakdowns.
           - name: name | type: string | description: Tax name.
           - name: rate | type: string | description: Tax rate percentage, as a positive decimal numeral. For example, "0.13".
           - name: taxAmount | type: string | description: Tax amount.
           - name: taxableAmount | type: string | description: Taxable amount this tax applies to.
           - name: exemptAmount | type: string | description: Exempt amount from tax.
        - name: taxExempt | type: boolean | description: Indicates if there were exempt from tax.
        - name: presetId | type: string | description: Receipt preset GUID. Defaults to the default receipt preset GUID, available with Get Default Receipt Preset GUID.
        - name: customFields | type: CustomFields | description: Custom fields for this receipt. Values appear on the receipt in the specified order.
           - name: headerCustomFields | type: array<CustomField> | description: Header custom fields.
              - name: title | type: string | description: Title.
              - name: value | type: string | description: Value.
           - name: businessCustomFields | type: array<CustomField> | description: Business custom fields.
           - name: customerCustomFields | type: array<CustomField> | description: Customer custom fields.
           - name: footerCustomFields | type: array<FooterCustomField> | description: Footer custom fields.
              - name: title | type: string | description: Title.
              - name: value | type: string | description: Value.
        - name: document | type: Document | description: Document details.
           - name: status | type: DocumentStatus | description: Document status.
                 - enum:
                 -     PROCESSING: Generation is in progress. Call Get Receipt after 6-10 seconds to check the updated status.
                 -     AVAILABLE: Generation was successful. You can downloaded the document using the `downloadUrl`.
                 -     FAILED: Generation has failed. You can retrigger document generation by calling Regenerate Receipt Document.
           - name: downloadUrl | type: string | description: Document download URL.
           - name: startGenerationTime | type: Date | description: Document start generation time.
        - name: extendedFields | type: ExtendedFields | description: Custom field data for the receipt. Extended fields must be configured in the app dashboard before they can be accessed with API calls.
           - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).
     - name: automatic | type: boolean | description: Receipt was sent in automatic or manual flow.
  - name: metadata | type: EventMetadata | description: none
     - name: instanceId | type: string | description: App instance GUID.
     - name: eventType | type: string | description: Event type.
     - name: identity | type: IdentificationData | description: The identification type and identity data.
        - ONE-OF:
           - name: anonymousVisitorId | type: string | description: GUID of a site visitor that has not logged in to the site.
           - name: memberId | type: string | description: GUID of a site visitor that has logged in to the site.
           - name: wixUserId | type: string | description: GUID of a Wix user (site owner, contributor, etc.).
           - name: appId | type: string | description: GUID of an app.
        - name: identityType | type: WebhookIdentityType | description: 
             - enum: UNKNOWN, ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP
     - name: accountInfo | type: AccountInfo | description: Details related to the account
        - name: accountId | type: string | description: GUID of the Wix account associated with the event.
        - name: parentAccountId | type: string | description: GUID of the parent Wix account. Only included when accountId belongs to a child account.
        - name: siteId | type: string | description: GUID of the Wix site associated with the event. Only included when the event is tied to a specific site.
     - name: _id | type: string | description: Event GUID. With this GUID you can easily spot duplicated events and ignore them.
     - name: entityFqdn | type: string | description: Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities. For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
     - name: slug | type: string | description: Event action name, placed at the top level to make it easier for users to dispatch messages. For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
     - name: entityId | type: string | description: GUID of the entity associated with the event.
     - name: eventTime | type: Date | description: Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`.
     - name: triggeredByAnonymizeRequest | type: boolean | description: Whether the event was triggered as a result of a privacy regulation application (for example, GDPR).
     - name: originatedFrom | type: string | description: If present, indicates the action that triggered the event.
     - name: entityEventSequence | type: string | description: A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number. You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.

```

### Examples


```javascript
import { receipts } from '@wix/get-paid';

receipts.onReceiptSent((event) => {
    // handle your event here
});
```


```javascript
import { createClient, AppStrategy } from '@wix/sdk';
import { receipts } from '@wix/get-paid';

const wixClient = createClient({
  auth: AppStrategy({
    appId: 'MY-APP-ID',
    publicKey: 'YOUR_APP_PUBLIC_KEY',
  }),
  modules: {
      receipts,
    },
});

wixClient.receipts.onReceiptSent((event) => {
    // handle your event here
});
```

---