API reference

deleteWhiteLabelDiscount

Required permission: WhiteLabelDiscountWrite

graphql
deleteWhiteLabelDiscount(
  whiteLabelId: ID!
  discountId: ID!
): DeletionStatus

Arguments

Name Type Description
whiteLabelId ID!
discountId ID!

Returns

DeletionStatus

Example

graphql
mutation DeleteWhiteLabelDiscount($whiteLabelId: ID!, $discountId: ID!) {
  deleteWhiteLabelDiscount(whiteLabelId: $whiteLabelId, discountId: $discountId)
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { deleteWhiteLabelDiscount(...) { __typename } }"}'