Skip to main content
GET
Lista os cupons

Authorizations

Authorization
string
header
required

Chave de API (prefixo rstr_) enviada como Authorization: Bearer rstr_....

Query Parameters

limit
integer
default:25
Required range: 1 <= x <= 100
starting_after
string
Pattern: ^coup_[0-9A-HJKMNP-TV-Z]{26}$
ending_before
string
Pattern: ^coup_[0-9A-HJKMNP-TV-Z]{26}$
program_id
string

Filtra cupons por programa.

Example:

"prog_01J9ZQ8H6K3M2N4P5R6S7T8U9V"

affiliate_id
string

Filtra cupons por afiliado.

Example:

"aff_01J9ZQ8H6K3M2N4P5R6S7T8U9V"

status
enum<string>

Filtra cupons por status.

Available options:
pending,
active,
sync_failed,
inactive
Example:

"active"

Response

200 - application/json

Default Response

data
object[]
required
hasMore
boolean
required
nextCursor
string | null
required

Cursor da próxima página (use em starting_after).

previousCursor
string | null
required

Cursor da página anterior (use em ending_before).