Accept, Content-Type, and Authorization headers. See Client Requirements and Authentication for details.
X-Include header
TheX-Include request header retrieves additional metadata such as total record counts. The following keys are supported:
| HTTP Method | X-Include key | Response header | Description |
|---|---|---|---|
| any | noHateoas | Removes all HATEOAS-related links from the response. | |
| GET | totalCount | X-Include-Total-Count | Returns the total number of entities. |
| DELETE | totalCount | X-Include-Total-Count | Returns the total number of entities. |
| DELETE | deletedCount | X-Include-Deleted-Count | Returns the number of deleted entities. |
Example 1: Total number of existing records
Retrieve the total count of resource records. RequestExample 2: Total number of deleted records
RequestExample 3: Delete with filter and retrieve deleted count
The query string filter specifies which records to delete. See Filters for details. RequestStorefront-specific headers
The following request headers are available for the storefront API:| HTTP Method | Request header | Description |
|---|---|---|
| any | X-Localization-ID | By default, locale-sensitive data is returned in the locale selected for the current website. Use this header to specify a different locale. The list of available localization IDs can be retrieved via /api/localizations. |
| any | X-Currency | By default, currency-related data is returned in the currency selected for the current website. Use this header to specify a different currency. The list of available currency codes can be retrieved via /api/currencies. Note: This header is available for OroCommerce Enterprise Edition only. |