promotion33 ops

API de Promotion

Marketing campaigns, coupon codes, and gift card programs.

Consultas

CONSULTA

adminListRedemptions

#

Redemptions of one coupon, gift card, gift-card batch or campaign, newest first (admin)

Argumentos

  • input!
Devuelve!
CONSULTA

campaign

#

Get a campaign by ID

Argumentos

  • id!
Devuelve
CONSULTA

campaignStatistics

#

Get campaign statistics (admin)

Argumentos

  • campaignId!
Devuelve!
CONSULTA

checkGiftCardBalance

#

Check gift card balance detail. Same visibility as giftCardBalance.

Argumentos

  • giftCardId!
Devuelve!
CONSULTA

coupon

#

Get a coupon by code

Argumentos

  • codeString!
Devuelve
CONSULTA

couponById

#

One coupon by id (admin)

Argumentos

  • id!
Devuelve
CONSULTA

couponStatistics

#

Usage and discount totals for one coupon (admin)

Argumentos

  • couponId!
Devuelve!
CONSULTA

exportCampaignCodes

Obsoleta#

Motivo de la obsolescencia: Use exportCampaignCodesResult; BET-205

Argumentos

  • input!
Devuelve!
CONSULTA

exportCampaignCodesResult

#

Export campaign coupon codes to CSV or PDF (admin)

Argumentos

  • input!
Devuelve!
CONSULTA

exportGiftCards

Obsoleta#

Motivo de la obsolescencia: Use exportGiftCardsResult; BET-205

Argumentos

  • input
Devuelve!
CONSULTA

exportGiftCardsResult

#

Export gift cards to CSV or PDF (admin)

Argumentos

  • input
Devuelve!
CONSULTA

giftCardBatch

#

One gift-card batch by id (admin)

Argumentos

  • id!
Devuelve
CONSULTA

giftCardBatches

#

List gift card batches (admin)

Argumentos

  • input
Devuelve!
CONSULTA

giftCardBatchStatistics

#

Card counts and issued / redeemed / outstanding value for one gift-card batch (admin)

Argumentos

  • batchId!
Devuelve!
CONSULTA

giftCardById

#

One gift card by id, so admin pages never put a redeemable code in a URL (admin)

Argumentos

  • id!
Devuelve
CONSULTA

listCampaigns

#

List campaigns with filtering (admin)

Argumentos

  • input
Devuelve!
CONSULTA

listCoupons

#

List coupons with filtering (admin)

Argumentos

  • input
Devuelve!
CONSULTA

listGiftCards

#

List gift cards with pagination, filtering, and sorting (admin)

Argumentos

  • input
Devuelve!

Mutaciones

MUTACIÓN

applyCoupon

Obsoleta#

Apply a coupon to an order

Motivo de la obsolescencia: Price coupons through createTaxiQuote(input.couponCode) before booking; BET-222

Argumentos

  • input!
Devuelve!
MUTACIÓN

cancelGiftCard

#

Void an active gift card (admin)

Argumentos

  • giftCardId!
Devuelve!
MUTACIÓN

cancelGiftCardBatch

#

Void every active card in a batch; redeemed and expired cards are left as they are (admin)

Argumentos

  • batchId!
Devuelve!
MUTACIÓN

createCampaign

#

Create a new campaign (admin only)

Argumentos

  • input!
Devuelve!
MUTACIÓN

createCoupon

#

Create a new coupon (admin only)

Argumentos

  • input!
Devuelve!
MUTACIÓN

deleteCampaign

#

Delete a campaign (admin only)

Argumentos

  • campaignId!
DevuelveBoolean!
MUTACIÓN

deleteCoupon

#

Delete a coupon that was never redeemed; a redeemed one is expired instead so its redemption history keeps pointing at it (admin)

Argumentos

  • couponId!
Devuelve!
MUTACIÓN

generateCampaignCoupons

#

Create up to 1000 unique coupon codes for a campaign from one template (admin)

Argumentos

  • input!
Devuelve!
MUTACIÓN

issueGiftCardBatch

#

Issue gift cards in batch (admin only)

Argumentos

  • input!
Devuelve!
MUTACIÓN

redeemGiftCard

#

Redeem a gift card to wallet

Argumentos

  • input!
Devuelve!
MUTACIÓN

sendCampaignNotification

#

Send campaign notifications manually (admin only) Allows sending notifications for active campaigns: - For campaigns that didn't auto-send on activation - For re-sending notifications (e.g., follow-up reminders) - With optional delivery channel overrides

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateCampaign

#

Update a campaign (admin only)

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateCoupon

#

Update a coupon's fields (admin only)

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateCouponStatus

#

Update a coupon's status (admin only)

Argumentos

  • input!
Devuelve!
MUTACIÓN

updateGiftCard

#

Change an active gift card's expiry and/or message (admin)

Argumentos

  • input!
Devuelve!