get https://api.voucherify.io/v1/publications
Returns
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.
Pagination
If you want to scroll through a huge set of records, it is recommended to use Exports API. This API will return an error
page_over_limit
if you reach a page above 1000.
filters
query param allow for joining multiple parameters with logical operators. The syntax looks as follows:
filters[<field_name>][conditions][<operator>][<index>]=<value>
Operators:
"$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"
Example 1 - list publications of a given customer
GET /v1/publications?filters[customer_id][conditions][$is][0]=cust_lUET6gRpO5Wxlg5p2j2gRCgL
Example 2 - list publications of 2 customers
GET /v1/publications?filters[customer_id][conditions][$in][0]=cust_lUET6gRpO5Wxlg5p2j2gRCgL&filters[customer_id][conditions][$in][1]=cust_aR7NfHusxT7PdTMAKMfWDXnc
or with the junction
operator
GET /v1/publications?filters[customer_id][conditions][$is][0]=cust_lUET6gRpO5Wxlg5p2j2gRCgL&filters[customer_id][conditions][$is][1]=cust_aR7NfHusxT7PdTMAKMfWDXnc&filters[junction]=OR