Receipt presets are customizable receipt configurations that Wix users can use to adjust the information, design, and branding of their receipts to align with their business needs.
The Receipt Presets API enables you to:
Each site supports multiple receipt presets. One preset should be designated as the default, which will automatically apply whenever receipts are created without specifying a particular preset.
This article shares some possible use cases you could support, as well as a sample flow that could support each use case. This can be a helpful jumping off point as you plan your implementation.
You can enable Wix users to customize the details of generated receipts with the Receipt Presets API.
A Receipt preset is a set of customizable receipt configurations that control the information, design, and branding of receipts to align with a site's business needs.
Receipt preset ID.
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.
Date and time the receipt preset was created.
Date and time the receipt preset was last updated.
Receipt preset name.
Display settings.
Custom fields. Values appear on the receipt in the specified order.
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.
Display values.
Custom field data for the receipt preset.
Extended fields must be configured in the app dashboard before they can be accessed with API calls.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Lists all available receipt presets.
By default the returned receipt presets are sorted by default
and updatedDate
in descending order.
You can only call this method when authenticated as a Wix app or Wix user identity.
List of receipt presets.
Retrieves a list of Receipt Presets
curl -X GET \
'https://www.wixapis.com/receipts/v1/receipt-presets' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
{
"receiptPresets": [
{
"id": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
"revision": 1,
"createdDate": "2024-10-30T17:22:10.299Z",
"updatedDate": "2024-10-30T17:22:10.299Z",
"name": "Invoice preset",
"templateSettingsId": "4fd78c54-b722-4300-ac62-ea71ceaec00f",
"displayValues": {
"titleOverride": "INV-Receipt"
},
"displaySettings": {
"businessDisplayOptions": {
"showBusinessEmail": true,
"showBusinessPhoneNumber": true,
"showBusinessAddress": true
},
"customerDisplayOptions": {
"showCustomerEmail": true,
"showCustomerPhoneNumber": true,
"showCustomerShippingAddress": true,
"showCustomerBillingAddress": true,
"showCustomerVatId": true
},
"itemsDisplayOptions": {
"showItemsDescription": true,
"showTax": true
},
"totalsDisplayOptions": {
"showTaxBreakdown": true,
"showItemSubtotalPerTaxBreakdown": true
}
},
"customFields": {
"headerCustomFields": [
{
"title": "Source",
"value": "Invoices"
}
],
"businessCustomFields": [
{
"title": "Business ID",
"value": "12345"
}
],
"customerCustomFields": [
{
"title": "Customer Type",
"value": "Invoice Customer"
}
],
"footerCustomFields": [
{
"title": "Terms",
"value": "This receipt align to the requirements of an example."
}
]
},
"default": false
},
{
"id": "68d9d9bd-3024-4544-aa50-bf398f6a9c93",
"revision": 1,
"createdDate": "2024-11-03T17:22:10.299Z",
"updatedDate": "2024-11-03T17:22:10.299Z",
"name": "Default Orders preset",
"templateSettingsId": "34b8928a-02c4-4ce4-a9f6-87373baabc80",
"displaySettings": {
"businessDisplayOptions": {
"showBusinessEmail": true,
"showBusinessPhoneNumber": true,
"showBusinessAddress": true
},
"customerDisplayOptions": {
"showCustomerEmail": true,
"showCustomerPhoneNumber": true,
"showCustomerShippingAddress": true,
"showCustomerBillingAddress": true,
"showCustomerVatId": true
},
"itemsDisplayOptions": {
"showItemsDescription": true,
"showTax": true
},
"totalsDisplayOptions": {
"showTaxBreakdown": true,
"showItemSubtotalPerTaxBreakdown": true
}
},
"customFields": {
"headerCustomFields": [
{
"title": "Source",
"value": "Orders"
}
],
"businessCustomFields": [
{
"title": "Business ID",
"value": "12345"
}
],
"customerCustomFields": [
{
"title": "Customer Type",
"value": "Invoice Customer"
}
],
"footerCustomFields": [
{
"title": "Terms",
"value": "This receipt align to the requirements of an example."
}
]
},
"default": true
}
]
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a receipt preset.
You can only call this method when authenticated as a Wix app or Wix user identity.
Receipt preset to create.
Created receipt preset.
Creates a Receipt Preset
curl -X POST \
'https://www.wixapis.com/receipts/v1/receipt-presets' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
"receiptPreset": {
"name": "Invoice preset",
"templateSettingsId": "4fd78c54-b722-4300-ac62-ea71ceaec00f",
"displayValue": {
"titleOverride": "INV-Receipt"
},
"displaySettings": {
"businessDisplayOptions": {
"showBusinessEmail": true,
"showBusinessPhoneNumber": true,
"showBusinessAddress": true
},
"customerDisplayOptions": {
"showCustomerEmail": true,
"showCustomerPhoneNumber": true,
"showCustomerShippingAddress": true,
"showCustomerBillingAddress": true,
"showCustomerVatId": true
},
"itemsDisplayOptions": {
"showItemsDescription": true,
"showTax": true
},
"totalsDisplayOptions": {
"showTaxBreakdown": true,
"showItemSubtotalPerTaxBreakdown": true
}
},
"customFields": {
"headerCustomFields": [
{
"title": "Source",
"value": "Invoices"
}
],
"businessCustomFields": [
{
"title": "Business ID",
"value": "12345"
}
],
"customerCustomFields": [
{
"title": "Customer Type",
"value": "Invoice Customer"
}
],
"footerCustomFields": [
{
"title": "Terms",
"value": "This receipt align to the requirements of an example."
}
]
}
}
}'
{
"receiptPreset": {
"id": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
"revision": 1,
"createdDate": "2024-10-30T17:22:10.299Z",
"updatedDate": "2024-10-30T17:22:10.299Z",
"name": "Invoice preset",
"templateSettingsId": "4fd78c54-b722-4300-ac62-ea71ceaec00f",
"displayValues": {
"titleOverride": "INV-Receipt"
},
"displaySettings": {
"businessDisplayOptions": {
"showBusinessEmail": true,
"showBusinessPhoneNumber": true,
"showBusinessAddress": true
},
"customerDisplayOptions": {
"showCustomerEmail": true,
"showCustomerPhoneNumber": true,
"showCustomerShippingAddress": true,
"showCustomerBillingAddress": true,
"showCustomerVatId": true
},
"itemsDisplayOptions": {
"showItemsDescription": true,
"showTax": true
},
"totalsDisplayOptions": {
"showTaxBreakdown": true,
"showItemSubtotalPerTaxBreakdown": true
}
},
"customFields": {
"headerCustomFields": [
{
"title": "Source",
"value": "Invoices"
}
],
"businessCustomFields": [
{
"title": "Business ID",
"value": "12345"
}
],
"customerCustomFields": [
{
"title": "Customer Type",
"value": "Invoice Customer"
}
],
"footerCustomFields": [
{
"title": "Terms",
"value": "This receipt align to the requirements of an example."
}
]
},
"default": false
}
}
There is 1 error with this status code.
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a receipt preset.
You can only call this method when authenticated as a Wix app or Wix user identity.
Receipt preset ID to retrieve.
Requested receipt preset.
Retrieves a Receipt Preset
curl -X GET \
'https://www.wixapis.com/receipts/v1/receipt-presets/4fd78c54-b722-4300-ac62-ea71ceaec00f' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
{
"receiptPreset": {
"id": "8046df3c-7575-4098-a5ab-c91ad8f33c47",
"revision": 1,
"createdDate": "2024-10-30T17:22:10.299Z",
"updatedDate": "2024-10-30T17:22:10.299Z",
"name": "Invoice preset",
"templateSettingsId": "4fd78c54-b722-4300-ac62-ea71ceaec00f",
"displayValues": {
"titleOverride": "INV-Receipt"
},
"displaySettings": {
"businessDisplayOptions": {
"showBusinessEmail": true,
"showBusinessPhoneNumber": true,
"showBusinessAddress": true
},
"customerDisplayOptions": {
"showCustomerEmail": true,
"showCustomerPhoneNumber": true,
"showCustomerShippingAddress": true,
"showCustomerBillingAddress": true,
"showCustomerVatId": true
},
"itemsDisplayOptions": {
"showItemsDescription": true,
"showTax": true
},
"totalsDisplayOptions": {
"showTaxBreakdown": true,
"showItemSubtotalPerTaxBreakdown": true
}
},
"customFields": {
"headerCustomFields": [
{
"title": "Source",
"value": "Invoices"
}
],
"businessCustomFields": [
{
"title": "Business ID",
"value": "12345"
}
],
"customerCustomFields": [
{
"title": "Customer Type",
"value": "Invoice Customer"
}
],
"footerCustomFields": [
{
"title": "Terms",
"value": "This receipt align to the requirements of an example."
}
]
},
"default": false
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.