> 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

# GetReceiptPreset

# Package: receipts

# Namespace: ReceiptPresets

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

## Permission Scopes:
Manage Receipts: SCOPE.RECEIPTS.MANAGE

## Introduction

Retrieves a receipt preset.

---

## REST API

### Schema

```
 Method: getReceiptPreset
 Description: Retrieves a receipt preset.
 URL: https://www.wixapis.com/receipts/v1/receipt-presets/{receiptPresetId}
 Method: GET
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  receiptPresetId
 Method parameters: 
   param name: receiptPresetId | type:   none | required: true 
 Return type: GetReceiptPresetResponse
  - name: receiptPreset | type: ReceiptPreset | description: Requested receipt preset.  
     - name: id | type: string | description: Receipt preset GUID.  | read-only: true | validation: format GUID, immutable
     - name: revision | type: string | description: Revision number, which increments by 1 each time the receipt preset is updated. To prevent conflicting changes, the current revision must be passed when updating the receipt preset.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time the receipt preset was created.  | read-only: true | validation: format date-time, immutable
     - name: updatedDate | type: string | description: Date and time the receipt preset was last updated.  | read-only: true | validation: format date-time
     - name: name | type: string | description: Receipt preset name.  | validation: maxLength 100
     - name: displaySettings | type: DisplaySettings | description: Display settings.  
        - name: businessDisplayOptions | type: BusinessDisplayOptions | description: Business display options.  
           - name: showBusinessEmail | type: boolean | description: Whether to display the business email in the receipt.  
           - name: showBusinessPhoneNumber | type: boolean | description: Whether to display the business phone number in the receipt.  
           - name: showBusinessAddress | type: boolean | description: Whether to display the business address in the receipt.  
        - name: customerDisplayOptions | type: CustomerDisplayOptions | description: Customer display options.  
           - name: showCustomerEmail | type: boolean | description: Whether to display the customer's email in the receipt.  
           - name: showCustomerPhoneNumber | type: boolean | description: Whether to display the customer's phone number in the receipt.  
           - name: showCustomerShippingAddress | type: boolean | description: Whether to display the customer's shipping address in the receipt.  
           - name: showCustomerBillingAddress | type: boolean | description: Whether to display the customer's billing address in the receipt.  
           - name: showCustomerVatId | type: boolean | description: Whether to display the customer's VAT GUID in the receipt.  
           - name: showCustomerCompanyName | type: boolean | description: Whether to display the customer's company's name.  
        - name: itemsDisplayOptions | type: ItemsDisplayOption | description: Item display options.  
           - name: showItemsDescription | type: boolean | description: Whether to display item descriptions in the receipt.  
           - name: showTax | type: boolean | description: Whether to display item taxes in the receipt.  
        - name: totalsDisplayOptions | type: TotalsDisplayOption | description: Totals display options.  
           - name: showTaxBreakdown | type: boolean | description: Whether to display the tax breakdown in the receipt.  
           - name: showItemSubtotalPerTaxBreakdown | type: boolean | description: Whether to display the item subtotal per tax breakdown in the receipt.  
     - name: customFields | type: CustomFields | description: Custom fields. Values appear on the receipt in the specified order.  
        - name: headerCustomFields | type: array<CustomField> | description: Header custom fields.  | validation: maxItems 4
           - name: title | type: string | description: Title.  | validation: minLength 1, maxLength 100
           - name: value | type: string | description: Value.  | validation: maxLength 100
        - name: businessCustomFields | type: array<CustomField> | description: Business custom fields.  | validation: maxItems 4
        - name: customerCustomFields | type: array<CustomField> | description: Customer custom fields.  | validation: maxItems 4
        - name: footerCustomFields | type: array<FooterCustomField> | description: Footer custom fields.  | validation: maxItems 4
           - name: title | type: string | description: Title.  | validation: minLength 1, maxLength 200
           - name: value | type: string | description: Value.  | validation: maxLength 5000
     - name: default | type: boolean | description: Whether this is the default receipt preset. The default preset is used during receipt creation when a preset isn't specified or doesn't exist.  | read-only: true 
     - name: displayValues | type: DisplayValues | description: Display values.  
        - name: titleOverride | type: string | description: Text override for receipt title.  | validation: minLength 1, maxLength 20
     - name: extendedFields | type: ExtendedFields | description: Custom field data for the receipt preset.  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).  | validation: format map


```

### Examples

### Get Receipt Preset
Retrieves a Receipt Preset

```curl
curl -X GET \
  'https://www.wixapis.com/receipts/v1/receipt-presets/4fd78c54-b722-4300-ac62-ea71ceaec00f' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.getPaid.receiptPresets.getReceiptPreset(receiptPresetId)
 Description: Retrieves a receipt preset.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  receiptPresetId
 Method parameters: 
   param name: receiptPresetId | type: string | description: Receipt preset GUID to retrieve. | required: true | validation: format GUID
 Return type: PROMISE<ReceiptPreset>
  - name: _id | type: string | description: Receipt preset GUID.  | read-only: true | validation: format GUID, immutable
  - name: revision | type: string | description: Revision number, which increments by 1 each time the receipt preset is updated. To prevent conflicting changes, the current revision must be passed when updating the receipt preset.  | read-only: true | validation: format int64
  - name: _createdDate | type: Date | description: Date and time the receipt preset was created.  | read-only: true | validation: immutable
  - name: _updatedDate | type: Date | description: Date and time the receipt preset was last updated.  | read-only: true 
  - name: name | type: string | description: Receipt preset name.  | validation: maxLength 100
  - name: displaySettings | type: DisplaySettings | description: Display settings.  
     - name: businessDisplayOptions | type: BusinessDisplayOptions | description: Business display options.  
        - name: showBusinessEmail | type: boolean | description: Whether to display the business email in the receipt.  
        - name: showBusinessPhoneNumber | type: boolean | description: Whether to display the business phone number in the receipt.  
        - name: showBusinessAddress | type: boolean | description: Whether to display the business address in the receipt.  
     - name: customerDisplayOptions | type: CustomerDisplayOptions | description: Customer display options.  
        - name: showCustomerEmail | type: boolean | description: Whether to display the customer's email in the receipt.  
        - name: showCustomerPhoneNumber | type: boolean | description: Whether to display the customer's phone number in the receipt.  
        - name: showCustomerShippingAddress | type: boolean | description: Whether to display the customer's shipping address in the receipt.  
        - name: showCustomerBillingAddress | type: boolean | description: Whether to display the customer's billing address in the receipt.  
        - name: showCustomerVatId | type: boolean | description: Whether to display the customer's VAT GUID in the receipt.  
        - name: showCustomerCompanyName | type: boolean | description: Whether to display the customer's company's name.  
     - name: itemsDisplayOptions | type: ItemsDisplayOption | description: Item display options.  
        - name: showItemsDescription | type: boolean | description: Whether to display item descriptions in the receipt.  
        - name: showTax | type: boolean | description: Whether to display item taxes in the receipt.  
     - name: totalsDisplayOptions | type: TotalsDisplayOption | description: Totals display options.  
        - name: showTaxBreakdown | type: boolean | description: Whether to display the tax breakdown in the receipt.  
        - name: showItemSubtotalPerTaxBreakdown | type: boolean | description: Whether to display the item subtotal per tax breakdown in the receipt.  
  - name: customFields | type: CustomFields | description: Custom fields. Values appear on the receipt in the specified order.  
     - name: headerCustomFields | type: array<CustomField> | description: Header custom fields.  | validation: maxItems 4
        - name: title | type: string | description: Title.  | validation: minLength 1, maxLength 100
        - name: value | type: string | description: Value.  | validation: maxLength 100
     - name: businessCustomFields | type: array<CustomField> | description: Business custom fields.  | validation: maxItems 4
     - name: customerCustomFields | type: array<CustomField> | description: Customer custom fields.  | validation: maxItems 4
     - name: footerCustomFields | type: array<FooterCustomField> | description: Footer custom fields.  | validation: maxItems 4
        - name: title | type: string | description: Title.  | validation: minLength 1, maxLength 200
        - name: value | type: string | description: Value.  | validation: maxLength 5000
  - name: default | type: boolean | description: Whether this is the default receipt preset. The default preset is used during receipt creation when a preset isn't specified or doesn't exist.  | read-only: true 
  - name: displayValues | type: DisplayValues | description: Display values.  
     - name: titleOverride | type: string | description: Text override for receipt title.  | validation: minLength 1, maxLength 20
  - name: extendedFields | type: ExtendedFields | description: Custom field data for the receipt preset.  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).  | validation: format map


```

### Examples

### getReceiptPreset
```javascript
import { receiptPresets } from '@wix/get-paid';

async function getReceiptPreset(receiptPresetId) {
  const response = await receiptPresets.getReceiptPreset(receiptPresetId);
};
```

### getReceiptPreset (with elevated permissions)
```javascript
import { receiptPresets } from '@wix/get-paid';
import { auth } from '@wix/essentials';

async function myGetReceiptPresetMethod(receiptPresetId) {
  const elevatedGetReceiptPreset = auth.elevate(receiptPresets.getReceiptPreset);
  const response = await elevatedGetReceiptPreset(receiptPresetId);
}
```

### getReceiptPreset (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { receiptPresets } from '@wix/get-paid';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { receiptPresets },
  // Include the auth strategy and host as relevant
});


async function getReceiptPreset(receiptPresetId) {
  const response = await myWixClient.receiptPresets.getReceiptPreset(receiptPresetId);
};
```

---