Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Remove Coupon

Coupon will delete on which tenant user has access to. Requires a signed-in staff user. Needs the `Coupon` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONremoveCoupon(where: CommonFindDocumentDto!): Boolean!

Coupon will delete on which tenant user has access to. Requires a signed-in staff user. Needs the Coupon delete permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

where*

Returns

removeCoupon*Boolean!
Example Request
mutation RemoveCoupon($where: CommonFindDocumentDto!) {  removeCoupon(where: $where)}
Variables
{  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "removeCoupon": true  }}