Skip to content

Offer restrictions

In Resamania, offers can be restricted based on specific criteria to prevent anyone from purchasing them.

This documentation mirrors the official product documentation available here.

List of available restrictions (non-exhaustive)

Each product can have one or more of the following restrictions:

  • By club / club group
  • By user role
  • By member age
  • By member state
  • By sales channel
  • By member debt
  • By member tags (included or excluded)
  • By a validity period during which the offer is available
  • By day of sale

These restrictions are enforced both when adding the product to the cart and when validating the sale (its first payment).

Where to find restriction details

Details for these restrictions are provided in the context property of each Offer.

Restrictions based on member tags

parameterdescriptionexample
contactTagsIncludedTags that the member must have[ "member" ]
contactTagsIncludedExpressionWhether all tags must be included (and) or only one of them (or)or
contactTagsExcludedTags that the member must not have[ "member" ]
contactTagsExcludedExpressionWhether all tags must be excluded (and) or only one of them (or)or
json
{
    "@context": "\/demoapi\/contexts\/Offer",
    "@id": "\/demoapi\/offers\/37039",
    "@type": "Offer",
    "product": {
        "@id": "\/demoapi\/products\/49149",
        "@type": "http:\/\/schema.org\/Product",
        "description": "",
        "name": "Requiring tag",
        // ...
    },
    "name": "Payment in full",
    "description": null,
    "level": 0,
    "context": {
        "contactTagsIncluded": [
            "member"
        ],
        "contactTagsExcluded": [
            "fountain"
        ],
        "contactTagsIncludedExpression": "or",
        "contactTagsExcludedExpression": "or",
        "watchContactTags": false
    },
    // ...