Retrieve a list of paginated discount codes.
The 'Bearer' token can be obtained from the token management interface or via the login endpoint using your admin user credentials.
The offset - e.g 10 for listing discount codes starting with the 10th discount code.
The page for which you wish to retrieve discount codes. You will only be able to paginate by page if you do not specify an offset.
The number of discount codes to retrieve per page. The maximum (and default) is 100 per page.
An array or comma separated list allowing you to filter discount codes by type.
fixed, percentage, bxgy A list of attributes that you wish to be returned in the payload. When empty or omitted, all fields will be included by default. Use dot-notation for both top-level resources and child resources, i.e. discountCodes.code. Can be used in conjunction with except providing both parameters don't reference the same resource.
A list of attributes that you wish to exclude from the payload. When empty or omitted, all fields will be included by default. Use dot-notation for both top-level resources and child resources, i.e. discountCodes.code. Can be used in conjunction with only providing both parameters don't reference the same resource.
Controls records returned depending on their deletedAt status. This is a global flag, so will apply to all resources, including relationships such as resources returned under the included attribute.
true to include deleted recordsfalse to exclude deleted records (or leave blank)true, false