Schema Documentation

createCoupon

Description

The createCoupon mutation

Response

Returns a CreateCouponPayload

Arguments
NameDescription
input - CreateCouponInput! Input for the createCoupon mutation

Example

Query
mutation createCoupon($input: CreateCouponInput!){  createCoupon(input: $input){    clientMutationIdcodecoupon {      ...CouponFragment    }  }}
Variables
{"input":CreateCouponInput}
Response
{"data":{"createCoupon":{"clientMutationId":"xyz789","code":"abc123","coupon":Coupon}}}