Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Query Parameters
Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
1 <= x <= 100
Which page of results to return. The lowest value is 1
.
1 <= x <= 100
Sorts the results using one of the filtering options, where the dash -
preceding a sorting option means sorting in a descending order.
id
, -id
, voucher_code
, -voucher_code
, tracking_id
, -tracking_id
, customer_id
, -customer_id
, created_at
, -created_at
, channel
, -channel
Filters by a given campaign name.
Filters by a unique customer ID.
"cust_nk0N1uNQ1YnupAoJGOgvsODC"
Filters by a given voucher code.
"2CpRCE2c"
Filters by a publication result.
SUCCESS
, FAILURE
Filters by a voucher type.
discount
, loyalty
This filter works only for the true
option. If set to true
, the query returns only publications of codes from referral campaigns.
Filters for listing publications.
Using this endpoint with a particular publication source_id
, which was sent with the original request to create a publication, returns in the response, exactly the same code published initially because the code was assigned to the given publication. As a result, you can use this endpoint as a reference and return a code that was assigned in a publication by using a particular source_id
.
Response
Returns a list of publications you've previously created with <!-- [create publication](OpenAPI.json/paths/~1publications/post) -->create publication or implicitly by the distribution manager. The publications are returned in sorted order, with the most recent ones appearing first.
Response body schema for listing publications using GET v1/publications
.
The type of the object represented by JSON. This object stores information about publications in a dictionary.
Identifies the name of the attribute that contains the array of publications.
Contains array of publication objects, voucher object will be simplified.
- Valid Single Voucher
- Valid Multiple Vouchers
- Invalid
Total number of publications.