Generated by API Evangelist
Written by API Evangelist tooling for Dub's API. It is a proposal applied on top of the contract, not a document Dub publishes.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Dub Discount Codes API
version: 1.0.0
extends: openapi/dub-discount-codes-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-19'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 3
- target: $.paths['/discount-codes'].get
update:
x-apievangelist-phrasing:
intent: List discount codes
effect: read
questions:
- Which discount codes have been issued to a partner?
- Can I find a discount code by its code, like PARTNER10OFF?
instructions:
- text: List discount codes for partner {partnerId}.
slots:
partnerId: query.partnerId
- text: Find discount code {code} in program {discountId}.
slots:
code: query.code
discountId: query.discountId
method: generated
generated: '2026-11-19'
- target: $.paths['/discount-codes'].post
update:
x-apievangelist-phrasing:
intent: Create a discount code for a partner
effect: write
questions:
- How do I give a partner their own discount code?
- Can I attach a discount code to a partner's referral link?
instructions:
- text: Create discount code {code} for partner {partnerId} on link {linkId}.
slots:
code: requestBody.code
partnerId: requestBody.partnerId
linkId: requestBody.linkId
- text: Give partner {partnerId} a discount code linked to {linkId}.
slots:
partnerId: requestBody.partnerId
linkId: requestBody.linkId
method: generated
generated: '2026-11-19'
- target: $.paths['/discount-codes/{idOrCode}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a discount code
effect: destructive
questions:
- How do I remove a discount code a partner no longer needs?
- Does deleting a discount code also disable it in Stripe or Shopify?
instructions:
- text: Delete discount code {idOrCode}.
slots:
idOrCode: path.idOrCode
- text: Remove the {idOrCode} discount code.
slots:
idOrCode: path.idOrCode
method: generated
generated: '2026-11-19'
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.