❗️ Deprecated
This endpoint represents the deprecated version of the API responsible for qualification, and we do not recommend using it. The new Qualifications API introduces additional features and improvements while maintaining backward compatibility. Developers are encouraged to migrate to the latest version to take advantage of the latest enhancements and bug fixes. No updates will be provided to the deprecated endpoint.
The method can be used for sending a request to display all campaigns qualified to the given customer and context (e.g., order).
The maximum number of returned campaigns is 50.
DISCOUNT_COUPONSGIFT_VOUCHERSREFERRAL_PROGRAMA checking logic will be run only among campaigns and will ignore generic (standalone) vouchers. For generic (standalone) vouchers, you should run a dedicated endpoint for searching and identifing vouchers.
As a recommended subsequent step after selecting a qualified campaign is to publish a voucher code from that campaign. The API method for publishing will return a unique code which will belong to a given customer.
As a sample use case, you can imagine a requirement of displaying coupons (grouped in campaigns) that a customer is eligible to use. The customer should get assigned to the particular voucher from the campaign and then may redeem that particular code when he/she places an order.
Read about Qualification API limits before you start.
The access token received from the authorization server in the OAuth 2.0 flow.
This parameter set to true will ask only for verifying vouchers' validation rules only against conditions applied to audiences' attributes (belonging into segment and Customer metadata)
The number of campaigns to be qualified. The maximum number is 50.
1 <= x <= 50Sorts the results using one of the filtering options, where the dash - means sorting in a descending order.
created_at, -created_at, updated_at, -updated_at, type, -type, code, -code, category, -category, campaign, -campaign Request body schema for POST v1/campaigns/qualification.
Customer's information.
Order information. This object enables you to pass purchase transaction data. Read what properties you can use in the Order object.
This operation returns the list of valid and active campaigns based on the qualification of a given context (e.g., customer profile, redemptions metadata, order).
Read about Qualification API limits before you start.
Response body schema for POST v1/campaigns/qualification.
The type of the object represented by JSON. This object stores information about campaigns in a dictionary.
Identifies the name of the attribute that contains the array of campaign objects.
Contains array of campaign objects.
Total valid and active campaigns matching the qualification criteria in given context.
Unique qualification ID.
"qfl_dNZ3gWfKVNa8Zw15hn30uqdU"
Timestamp representing the date and time when the qualification was created. The value is shown in the ISO 8601 format.
"2023-04-04T13:13:03.119Z"
Hashed customer source ID.