Retrieve a list of publications. To return a particular publication, you can use the source_id query parameter and provide the source_id of the publication you are looking for specifically.
🚧 Important!
If you want to scroll through a huge set of records, it is recommended to use the Exports API. This API will return an error
page_over_limitif you reach a page above 1000.
The filters query parameter allows for joining multiple parameters with logical operators. The syntax looks as follows:
"$in"
"$not_in"
"$is"
"$is_not"
"$has_value"
"$is_unknown"
"$contains"
"$starts_with"
"$ends_with"
"$more_than"
"$less_than"
"$more_than_equal"
"$less_than_equal"
GET /v1/publications?filters[customer_id][conditions][$is][0]=cust_lUET6gRpO5Wxlg5p2j2gRCgL
GET /v1/publications?filters[customer_id][conditions][$in][0]=cust_lUET6gRpO5Wxlg5p2j2gRCgL&filters[customer_id][conditions][$in][1]=cust_aR7NfHusxT7PdTMAKMfWDXnc
GET /v1/publications?filters[customer_id][conditions][$is][0]=cust_lUET6gRpO5Wxlg5p2j2gRCgL&filters[customer_id][conditions][$is][1]=cust_aR7NfHusxT7PdTMAKMfWDXnc&filters[junction]=OR
The access token received from the authorization server in the OAuth 2.0 flow.
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 <= 100Which page of results to return. The lowest value is 1.
1 <= x <= 100Sorts 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.
Returns a list of publications you've previously created with 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.
Response schema model for publishing vouchers to a specific customer.
Total number of publications.