LogoLogo
CommunitySupport PortalYouTubeStart a free trial
  • Welcome
  • Commerce Engine
  • Orchestration Engine
  • API Documentation
  • Release Notes
  • Changelog
  • Emporix API
    • List of API Services
  • OpenAPI Generator
  • Standard Practices
    • General Info
    • Mixins
    • Query Parameter
    • Translations
    • Custom ID
    • Upsert
    • B2B Token
  • API Guides and References
    • Authorization
      • OAuth Service
        • API Reference
          • Customer Token
          • Anonymous Token
          • Service Access Token
          • Models
        • View Raw API Specification
    • Artificial Intelligence
      • AI Service
        • AI Tutorials
        • API Reference
          • Text Generation
          • AI Completions
          • Models
        • View Raw API Specification
    • Configuration
      • Configuration Service
        • Language Tutorials
        • API Reference
          • Tenant configurations
          • Client configurations
          • Global configurations
          • Models
        • View Raw API Specification
      • Country Service
        • Country Tutorial
        • API Reference
          • Countries
          • Regions
          • Models
        • View Raw API Specification
      • Currency Service
        • Currency Tutorial
        • API Reference
          • Currencies
          • Currency exchange
          • Models
        • View Raw API Specification
      • Unit Handling Service
        • Unit Handling Tutorial
        • API Reference
          • Unit management
          • Type management
          • Unit conversion
          • Models
        • View Raw API Specification
      • Site Settings Service
        • Site Settings Tutorial
        • API Reference
          • Mixins
          • Site settings
          • Models
        • View Raw API Specification
      • Indexing Service
        • Indexing Tutorial
        • API Reference
          • Configuration
          • Public Configuration
          • Reindex
          • Models
        • View Raw API Specification
    • Catalogs and Categories
      • Catalog Service
        • Catalog Tutorials
        • API Reference
          • List catalogs
          • Catalog management
          • Models
        • View Raw API Specification
      • Category Service
        • Category Tutorials
        • API Reference
          • Category Resources
          • Category Assignment Resources
          • Assignment Resources
          • Category Tree Resources
          • Models
        • View Raw API Specification
    • Products, Labels and Brands
      • Product Service
        • Product Tutorial
        • API Reference
          • Products
          • Product Templates
          • Models
        • View Raw API Specification
      • Label Service
        • Label Tutorial
        • API Reference
          • Label
          • Media
          • Models
        • View Raw API Specification
      • Brand Service
        • Brand Tutorial
        • API Reference
          • Brands
          • Media
          • Models
        • View Raw API Specification
    • Prices and Taxes
      • Price Service
        • Price Tutorials
        • API Reference
          • Price lists
          • Price matching
          • Price models
          • Prices
          • Prices assigned to price lists
          • Models
        • View Raw API Specification
      • Tax Service
        • Tax Tutorials
        • API Reference
          • Taxes
          • Tax calculation
          • Models
        • View Raw API Specification
    • Users and Permissions
      • IAM Service
        • IAM Tutorial
        • API Reference
          • Access Controls
          • Group Assignments
          • Groups
          • Permissions
          • Resources
          • Roles
          • Access Control Templates
          • Users
          • Management Dashboard Users
          • Models
        • View Raw API Specification
      • Session-context Service
        • Session-context Tutorial
        • API Reference
          • Session management
          • Session context modification
          • Own session management
          • Own session context modification
          • Models
        • View Raw API Specification
    • Companies and Customers
      • Customer Management
        • Customer Management Tutorial
        • API Reference
          • Locations
          • Contact Assignments
          • Legal Entities
          • Models
        • View Raw API Specification
      • Customer Service (Customer Managed)
        • API Reference
          • Addresses
          • Authentication and authorization
          • Account and profile
          • Double opt In
          • Credentials
          • Models
        • View Raw API Specification
      • Customer Service (Tenant Managed)
        • API Reference
          • Account and profile
          • Addresses
          • Models
        • View Raw API Specification
      • Customer Segments
        • Segments Tutorial
        • API Reference
          • Segments
          • Customers Assignments
          • Items Assignments
          • Models
        • View Raw API Specification
      • Approval Service
        • Approval Tutorials
        • API Reference
          • Approvals
          • Approval
          • Search
          • Models
        • View Raw API Specification
    • Delivery and Shipping
      • Shipping Service
        • Shipping Tutorial
        • API Reference
          • Customer Group Relations
          • Delivery Windows
          • Shipping Cost
          • Shipping Methods
          • Shipping Zones
          • Shipping Groups
          • Sites
          • Delivery Times Management
          • Delivery Times Slots Management
          • Delivery Cycles
          • Models
        • View Raw API Specification
      • Delivery Providers Service
        • API Reference
          • Delivery Orders
          • Delivery Plan
          • Models
        • View Raw API Specification
    • Rewards and Promotions
      • Coupon Service
        • Coupon Tutorial
        • API Reference
          • Coupon Management
          • Coupon Validation
          • Coupon Redemption
          • Referral Coupon Management
          • Models
        • View Raw API Specification
      • Reward-points Service
        • Reward-points Tutorial
        • API Reference
          • Redeem Options Management
          • Signed In Customer Reward Points
          • Reward Points Management
          • Models
        • View Raw API Specification
    • Quotes
      • Quote Service
        • Quote Tutorial
        • API Reference
          • Quote management
          • Quote history
          • Quote pdf
          • Quote reason
          • Models
        • View Raw API Specification
    • Checkout
      • Cart Service
        • Cart Tutorial
        • API Reference
          • Carts
          • Cart items
          • Discounts
          • Models
        • View Raw API Specification
      • Payment-gateway Service
        • Payment-gateway Tutorial
        • API Reference
          • Payment
          • Payment frontend
          • Payment mode
          • Transaction
          • Payment mode frontend
          • Models
        • View Raw API Specification
      • Checkout Service
        • Checkout Tutorial
        • API Reference
          • Checkouts
          • Models
        • View Raw API Specification
      • Fee Service
        • Fee Tutorial
        • API Reference
          • Fee management
          • Item Fee management
          • Product Fees management
          • Item Fee search
          • Models
        • View Raw API Specification
      • Shopping List
        • API Reference
          • Shopping Lists
          • Models
        • View Raw API Specification
    • Orders
      • Availability Service
        • Availability Tutorial
        • API Reference
          • Locations
          • Availabilities
          • Models
        • View Raw API Specification
      • Order Service
        • Order Tutorial
        • API Reference
          • Orders (tenant Managed)
          • Orders (customer Managed)
          • Models
        • View Raw API Specification
      • Pick-pack Service
        • API Reference
          • Orders
          • Assignees
          • Order cycles
          • Recalculations
          • Events
          • Models
        • View Raw API Specification
      • Invoice Service
        • Invoice Tutorial
        • API Reference
          • Invoice Jobs
          • Models
        • View Raw API Specification
      • Returns Service
        • Returns Tutorial
        • API Reference
          • Returns
          • Models
        • View Raw API Specification
      • SEPA Export Service
        • API Reference
          • Files
          • Jobs
          • Models
        • View Raw API Specification
    • Utilities
      • Schema Service
        • Schema Tutorial
        • API Reference
          • Schema
          • Type
          • Reference
          • Custom Schema Type
          • Custom Instance
          • Models
        • View Raw API Specification
      • Sequential-id Service
        • Sequential-id Tutorial
        • API Reference
          • Sequential IDs management
          • Models
        • View Raw API Specification
    • Media
      • Media Service
        • Media Tutorial
        • API Reference
          • Assets
          • Models
        • View Raw API Specification
    • Webhooks
      • Webhook Service
        • Webhooks Tutorial
        • API Reference
          • Config
          • Events
          • Svix Emporix Shared Account
          • Models
        • View Raw API Specification
      • Events-Availability
      • Events-Cart
      • Events-Catalog
      • Events-Category
      • Events-Client Management
      • Events-Customer
      • Events-Index
      • Events-Order
      • Events-Price
      • Events-Product
      • Events-Quote
      • Events-Product
    • Integrations
      • Identity Providers
        • Auth0
      • Workflow Automation
        • Emporix and Make
Powered by GitBook
LogoLogo

Resources

  • Emporix.com
  • Developer Policy
  • Terms of Use

Find us

  • LinkedIn

© 2025 Emporix. All Rights Reserved.

On this page

Was this helpful?

Export as PDF
  1. API Guides and References
  2. Rewards and Promotions
  3. Coupon Service
  4. API Reference

Coupon Management

PreviousAPI ReferenceNextCoupon Validation

Was this helpful?

  • GETRetrieving list of coupons by criteria
  • POSTCreating a new coupon
  • GETRetrieving information about particular coupon by code
  • PUTUpdating the coupon by code
  • DELETEDeleting a coupon by code
  • PATCHPartially updating the coupon by code

Retrieving list of coupons by criteria

get

Retrieves a list of coupons by the specified criteria. Supports sorting and paging.

The endpoint was previously available under the /coupon-v2/ base path.


Required scopes

  • coupon.coupon_manage

  • coupon.coupon_read

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Query parameters
sortstringOptional

The list of comma-separated properties used to sort the results. By default, the column values are sorted in ascending order. Can either be in the form of fieldName or fieldName:asc,fieldName:desc. If you want to sort by localized attributes, you must use the following form: fieldName.language or fieldName.language:asc,fieldName.language:desc.

pageNumberinteger · min: 1Optional

The page number to be retrieved where the size of the pages must be specified by the pageSize parameter. The number of the first page is 1.

Default: 1
pageSizeinteger · min: 1Optional

The number of documents being retrieved on the page.

Default: 16
totalCountbooleanOptional

This parameter requests to return the total number of object in the collection fulfilling the criteria together with the response. This number will be returned in the 'items-count' header.

qstringOptional

The simple query criteria based on available fields to limit returned results or a set of modified documents.

showDeletedbooleanOptional

Includes deleted coupons in the result.

Default: false
Responses
200
The list of coupons has been retrieved successfully.
application/json
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
401
Example response
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
500
Some server side error occurred.
application/json
get
GET /coupon/{tenant}/coupons HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "name": "MW2023_7",
    "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: MW2023_7",
    "discountType": "PERCENT",
    "discountPercentage": 7,
    "allowAnonymous": false,
    "maxRedemptionsPerCustomer": -1,
    "categoryRestricted": false,
    "segmentRestricted": false,
    "metadata": {
      "version": 1
    },
    "code": "MW2023_7",
    "status": "EXPIRED",
    "maxRedemptions": -1,
    "redemptionCount": 0,
    "deleted": false,
    "restrictions": {
      "validFrom": "2023-02-09T06:45:33.779Z",
      "validUntil": "2023-07-31T05:45:25.934Z",
      "minOrderValue": {
        "amount": 150,
        "currency": "EUR"
      },
      "validFor": []
    }
  },
  {
    "name": "MW2023_10",
    "description": "BUY MORE SAVE MORE! 10% off orders over 500€! Use code: MW2023_10",
    "discountType": "PERCENT",
    "discountPercentage": 10,
    "allowAnonymous": false,
    "maxRedemptionsPerCustomer": -1,
    "categoryRestricted": false,
    "segmentRestricted": false,
    "metadata": {
      "version": 3
    },
    "code": "MW2023_10",
    "status": "VALID",
    "maxRedemptions": -1,
    "redemptionCount": 0,
    "deleted": false,
    "restrictions": {
      "validFrom": "2023-02-09T06:47:29.177Z",
      "minOrderValue": {
        "amount": 500,
        "currency": "EUR"
      },
      "validFor": []
    }
  },
  {
    "name": "COUPON_FOR_SEGMENTS",
    "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: COUPON_FOR_SEGMENTS",
    "discountType": "PERCENT",
    "discountPercentage": 7,
    "allowAnonymous": false,
    "maxRedemptionsPerCustomer": 1,
    "categoryRestricted": false,
    "segmentRestricted": true,
    "metadata": {
      "version": 1
    },
    "code": "MW2023_7",
    "status": "VALID",
    "maxRedemptions": -1,
    "redemptionCount": 0,
    "deleted": false,
    "restrictions": {
      "validFrom": "2023-02-09T06:45:33.779Z",
      "validUntil": "2023-07-31T05:45:25.934Z",
      "segments": [
        "segmentId1",
        "segmentId2"
      ],
      "minOrderValue": {
        "amount": 150,
        "currency": "EUR"
      },
      "validFor": []
    }
  }
]

Creating a new coupon

post

Creates a coupon.

By default, the coupon code is saved in uppercase. To ensure that the code is saved both in upper and lower case, set the enableCouponCodeCaseSensitivity configuration to true in the configuration service or System Preferences.

The endpoint was previously available under the /coupon-v2/ base path.


Required scopes

  • coupon.coupon_manage

Authorizations
Path parameters
tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Body

Coupon creation schema.

codestringOptional

e.g.: WINTER-SALE, 10OFF. If not provided, a code will be auto generated.

namestringRequired

Coupon name.

descriptionstringOptional

Coupon description.

discountTypestring · enumOptional

'PERCENT' for relative values, 'ABSOLUTE' for float values, referring to a specific currency, 'FREE_SHIPPING' for reducing the shipping cost to 0.

Default: ABSOLUTEPossible values:
discountPercentagenumber · max: 100Optional

A discount percentage within the range [0.00, 100.00]. Must be specified only if type is 'PERCENT'.

discountAbsoluteall ofOptional
and
anyOptional

Must be specified only if type is 'ABSOLUTE'. Defines the amount that should be substracted from the cart subtotal.

allowAnonymousbooleanOptional

Specifies if the coupon can be redeemed by anonymous user. If set to false, only logged-in customers can redeem it.

Default: false
maxRedemptionsnumberOptional

Maximum number of redemptions; -1 designates 'unlimited' (seller-only).

Default: -1
maxRedemptionsPerCustomernumberOptional

Maximum number of redemptions per customer; -1 designates 'unlimited'. Cannot be specified for coupons which can be redeemed by anonymous users.

Default: -1
discountCalculationTypestring · enumOptional

Determines whether the coupon is applied to the total or subtotal value of the order.

Default: SUBTOTALPossible values:
categoryRestrictedbooleanOptional

Defines if the coupon has category restrictions.


Info: Cannot be combined together with the segment restrictions.

Default: false
segmentRestrictedbooleanOptional

Defines if the coupon has segment restrictions. If the value is set to true, the restrictions.segments must be provided.


Info: Cannot be combined neither with the category restrictions nor with customers restrictions.

Default: false
issuedTostringOptional

The Id of the customer who originally received the coupon (seller-only).

Responses
201
The resource has been successfully created.
application/json
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
401
Example response
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
409
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
application/json
500
Some server side error occurred.
application/json
post
POST /coupon/{tenant}/coupons HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 572

{
  "code": "ENG2OC0",
  "name": "Winter Sale 2018",
  "description": "Great Winter Discount of 25 USD in December 2018 and January 2019 for all Orders over 50 USD",
  "discountType": "ABSOLUTE",
  "discountAbsolute": {
    "amount": 24.99,
    "currency": "USD"
  },
  "allowAnonymous": false,
  "maxRedemptions": -1,
  "maxRedemptionsPerCustomer": -1,
  "categoryRestricted": false,
  "segmentRestricted": false,
  "restrictions": {
    "validFor": [
      "C0123456789",
      "C0123456788"
    ],
    "validFrom": "2014-12-01T00:00:00.000Z",
    "validUntil": "2015-01-31T23:59:59.999Z",
    "minOrderValue": {
      "amount": 49.99,
      "currency": "USD"
    }
  },
  "issuedTo": "C01234567989"
}
{
  "id": "ENG2OC0"
}

Retrieving information about particular coupon by code

get

Retrieves coupon details.

The endpoint was previously available under the /coupon-v2/ base path.


Required scopes

  • coupon.coupon_redeem_on_behalf - needed only if the service should use the customer identification specified in the request query (customerNumber attribute) instead of the one associated with current authentication token.

Authorizations
Path parameters
codestringRequired

Code of a coupon

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Query parameters
customerNumberstringOptional

Customer number (ID) of customer on behalf of which we request coupon information. Needed only in case of retrieving coupon eligible for other customer than the caller.

Responses
200
The coupon has been successfully retrieved.
application/json
Responseall of
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
401
Example response
application/json
404
The requested resource does not exist.
application/json
500
Some server side error occurred.
application/json
get
GET /coupon/{tenant}/coupons/{code} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "name": "MW2023_7",
  "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: MW2023_7",
  "discountType": "PERCENT",
  "discountPercentage": 7,
  "allowAnonymous": false,
  "maxRedemptionsPerCustomer": -1,
  "categoryRestricted": false,
  "segmentRestricted": false,
  "metadata": {
    "version": 1
  },
  "code": "MW2023_7",
  "status": "EXPIRED",
  "maxRedemptions": -1,
  "redemptionCount": 0,
  "deleted": false,
  "restrictions": {
    "validFrom": "2023-02-09T06:45:33.779Z",
    "validUntil": "2023-07-31T05:45:25.934Z",
    "minOrderValue": {
      "amount": 150,
      "currency": "EUR"
    },
    "validFor": []
  }
}

Deleting a coupon by code

delete

Deletes an existing coupon.

The endpoint was previously available under the /coupon-v2/ base path.


Required scopes

  • coupon.coupon_manage

Authorizations
Path parameters
codestringRequired

Code of a coupon

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Responses
204
Coupon with given code has been successfully deleted.
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
401
Example response
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
The requested resource does not exist.
application/json
500
Some server side error occurred.
application/json
delete
DELETE /coupon/{tenant}/coupons/{code} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Updating the coupon by code

put

Updates an existing coupon.

The endpoint was previously available under the /coupon-v2/ base path.


Required scopes

  • coupon.coupon_manage

Authorizations
Path parameters
codestringRequired

Code of a coupon

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Query parameters
partialbooleanRequired

If true, a partial update will be supported, otherwise the full object replacement will be performed.

This parameter is DEPRECATED. For partial updates, please use PATCH method instead.

Body

Coupons describe voucher alike commerce capabilities, e.g. 10% off winter accessories.

namestringOptional

Coupon name.

descriptionstringOptional

Coupon description.

discountTypestring · enumOptional

'PERCENT' for relative values, 'ABSOLUTE' for float values, referring to a specific currency, 'FREE_SHIPPING' for reducing the shipping cost to 0.

Possible values:
discountPercentagenumber · max: 100Optional

A discount percentage within the range [0.00, 100.00]. Must be specified only if type is 'PERCENT'.

allowAnonymousbooleanOptional

Specifies if the coupon can be redeemed by anonymous user. If set to false, only logged-in customers can redeem it.

Default: false
maxRedemptionsnumberOptional

Maximum number of redemptions; -1 designates 'unlimited' (seller-only).

Default: -1
maxRedemptionsPerCustomernumberOptional

Maximum number of redemptions per customer; -1 designates 'unlimited'. Cannot be specified for coupons which can be redeemed by anonymous users.

Default: -1
discountCalculationTypestring · enumOptional

Determines whether the coupon is applied to the total or subtotal value of the order.

Default: SUBTOTALPossible values:
categoryRestrictedbooleanOptional

Defines if the coupon has category restrictions.


Info: Cannot be combined together with the segment restrictions.

Default: false
segmentRestrictedbooleanOptional

Defines if the coupon has segment restrictions. If the value is set to true, the restrictions.segments must be provided.


Info: Cannot be combined neither with the category restrictions nor with customers restrictions.

Default: false
issuedTostringOptional

The Id of the customer who originally received the coupon (seller-only).

Responses
200
The coupon has been successfully updated.
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
401
Example response
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
The requested resource does not exist.
application/json
409
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
application/json
500
Some server side error occurred.
application/json
put
PUT /coupon/{tenant}/coupons/{code} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 459

{
  "name": "MW2023_7",
  "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: MW2023_7",
  "discountType": "PERCENT",
  "discountPercentage": 7,
  "allowAnonymous": false,
  "maxRedemptionsPerCustomer": -1,
  "categoryRestricted": false,
  "segmentRestricted": false,
  "metadata": {
    "version": 4
  },
  "maxRedemptions": -1,
  "restrictions": {
    "validFrom": "2023-02-09T06:45:33.779Z",
    "validUntil": "2023-07-31T05:45:25.934Z",
    "minOrderValue": {
      "amount": 150,
      "currency": "EUR"
    },
    "validFor": []
  }
}

No content

Partially updating the coupon by code

patch

Partially updates an existing coupon.

The endpoint was previously available under the /coupon-v2/ base path.


Required scopes

  • coupon.coupon_manage

Authorizations
Path parameters
codestringRequired

Code of a coupon

tenantstring · min: 3 · max: 16Required

The tenant that the caller is acting upon.

Please note that this value is always lowercase.

Body

Coupons describe voucher alike commerce capabilities, e.g. 10% off winter accessories.

namestringOptional

Coupon name.

descriptionstringOptional

Coupon description.

discountTypestring · enumOptional

'PERCENT' for relative values, 'ABSOLUTE' for float values, referring to a specific currency, 'FREE_SHIPPING' for reducing the shipping cost to 0.

Possible values:
discountPercentagenumber · max: 100Optional

A discount percentage within the range [0.00, 100.00]. Must be specified only if type is 'PERCENT'.

allowAnonymousbooleanOptional

Specifies if the coupon can be redeemed by anonymous user. If set to false, only logged-in customers can redeem it.

Default: false
maxRedemptionsnumberOptional

Maximum number of redemptions; -1 designates 'unlimited' (seller-only).

Default: -1
maxRedemptionsPerCustomernumberOptional

Maximum number of redemptions per customer; -1 designates 'unlimited'. Cannot be specified for coupons which can be redeemed by anonymous users.

Default: -1
discountCalculationTypestring · enumOptional

Determines whether the coupon is applied to the total or subtotal value of the order.

Default: SUBTOTALPossible values:
categoryRestrictedbooleanOptional

Defines if the coupon has category restrictions.


Info: Cannot be combined together with the segment restrictions.

Default: false
segmentRestrictedbooleanOptional

Defines if the coupon has segment restrictions. If the value is set to true, the restrictions.segments must be provided.


Info: Cannot be combined neither with the category restrictions nor with customers restrictions.

Default: false
issuedTostringOptional

The Id of the customer who originally received the coupon (seller-only).

Responses
200
The coupon has been successfully updated.
400
Request syntactically incorrect. Any details will be provided within the response payload.
application/json
401
Example response
application/json
403
Access forbidden. The caller is not allowed to access this resource.
application/json
404
The requested resource does not exist.
application/json
409
Creation failed because there was a conflict with another resource. Any details will be provided within the response payload.
application/json
500
Some server side error occurred.
application/json
patch
PATCH /coupon/{tenant}/coupons/{code} HTTP/1.1
Host: api.emporix.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 459

{
  "name": "MW2023_7",
  "description": "BUY MORE SAVE MORE! 7% off orders over 150€! Use code: MW2023_7",
  "discountType": "PERCENT",
  "discountPercentage": 7,
  "allowAnonymous": false,
  "maxRedemptionsPerCustomer": -1,
  "categoryRestricted": false,
  "segmentRestricted": false,
  "metadata": {
    "version": 4
  },
  "maxRedemptions": -1,
  "restrictions": {
    "validFrom": "2023-02-09T06:45:33.779Z",
    "validUntil": "2023-07-31T05:45:25.934Z",
    "minOrderValue": {
      "amount": 150,
      "currency": "EUR"
    },
    "validFor": []
  }
}

No content