playbook-pricing

List My Promo Codes

Cross-playbook codes index for the current creator (PRD-008 FR-15).

The per-playbook list at GET /playbooks/{id}/promo-codes is fine when you're already on a playbook's page, but creators with multiple paid playbooks need a single dashboard. We join PromoCode → Playbook → Agent → User and filter by Agent.user_id == current user.

Returns each row enriched with playbook_name so the UI can render "LAUNCH20 — Customer support bot" in one column without a second fetch.

get/api/v1/playbooks/promo-codes

Request

  • Base URL: https://api.badgeia.com
  • URL: https://api.badgeia.com/api/v1/playbooks/promo-codes
  • Auth: none declared

Query parameters

include_revokedboolean

Response

Successful Response

idstring uuid required
playbook_idstring uuid nullable required
creator_user_idstring uuid nullable required
codestring required
discount_typestring required
discount_valueinteger required
max_redemptionsinteger nullable required
current_redemptionsinteger required
expires_atstring date-time nullable required
min_buyer_account_age_daysinteger required
created_atstring date-time required
revoked_atstring date-time nullable required
playbook_namestring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.