View as Markdown

llms.txt

The API reference isn't available right now

This instance couldn't load its API specification. The reference returns as soon as the specification is readable again.

Back to the API reference

No such model

This instance publishes no model under that name. It may have been renamed, or no operation this installation serves uses it.

Back to the API reference

This reference may be out of date

This instance couldn't reach its API specification on the last attempt, so this page shows the copy fetched before that. Anything added or changed since then is missing here, and the reference updates itself as soon as the specification is readable again. Last fetched 2026-10-23 00:19 UTC.

API reference Models

SuggestPromotionCodesInput

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

What the caller has filled in so far, from which promotion codes are suggested.

Values

Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

Fields

Field Type Description
merchantId required string (uuid) The merchant the promotion will belong to. When given, codes the merchant already uses are left out of the suggestions. The caller must be authorized over the merchant. Conditional: When MerchantId is not null. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
excludePromotionId required string (uuid) The promotion being edited, so its own current code is not treated as taken. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
style required PromotionCodeSuggestionStyle PromotionCodeSuggestionStyle Memorable marketing codes, or private single-use ones.
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
Memorable A marketing code a customer can read off a flyer and type at checkout, built from the promotion's own value, name, start date and scope, for example WELCOME10. Guessable by design.
Private A code for a single customer or a goodwill discount: a word, a hyphen and four characters drawn from a cryptographic random source, for example THANKS-K7Q2. Nothing in it comes from the promotion's own details, so it cannot be inferred from a flyer or a name. It is still a short bearer value: give the promotion a redemption limit rather than relying on the suffix to keep it private.
count required integer (int32) How many suggestions to return, between 1 and `MaxCount`. min 1max 10
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
discountType required PromotionDiscountType PromotionDiscountType Whether the value is a percentage or a flat amount. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
Percent A percentage of the amount, for example 10 meaning 10%.
Flat A flat amount in the promotion's currency, for example 5 meaning 5.00.
value required number (double) The percentage, or the flat amount. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
currency required string The ISO 4217 currency, when the promotion has one. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
name required string The operator-facing promotion name. Its first word may appear in a suggestion. nullablemax length 128
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
startsAtUtc required string (date-time) When the promotion starts. The season and month in a suggestion are read from it. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
appliesToScope required PromotionAppliesToScope PromotionAppliesToScope What the promotion applies to. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
Any Anything the merchant charges for. No target list is consulted.
HostedPages Only the named hosted payment pages.
Products Only the named products.
Plans Only the named contract plans.
durationMode required PromotionDurationMode PromotionDurationMode How long the discount runs on a recurring charge. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.
FirstBillOnly Discount only the first bill.
Cycles Discount a fixed number of billing cycles.
UntilRemoved Discount every bill until someone takes the promotion off the subscription.
durationCycles required integer (int32) How many billing cycles the discount runs for. nullable
Values: Values combine: send one or more member names separated by a comma and a space, or the integer sum of their values. Responses carry the names.

This model has no documented fields.

Reconnecting to the server

Could not reconnect

This session has ended

Attempt 1

Your work on this page is still here. Retrying keeps it; reloading starts the page again.

The server no longer holds this page's state, so it has to be loaded again.