Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Update Coupon

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

MUTATIONupdateCoupon(input: UpdateCouponInput!, where: CommonFindDocumentDto!): Boolean!

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

Arguments

input*
where*

Returns

updateCoupon*Boolean!
Example Request
mutation UpdateCoupon($input: UpdateCouponInput!, $where: CommonFindDocumentDto!) {  updateCoupon(input: $input, where: $where)}
Variables
{  "input": {    "applicableForMinimumExpense": 10.5,    "code": "string"  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "updateCoupon": true  }}