[Legacy]{class="badge informative"}
Look up a decision rule lookup-decision-rule
IMPORTANT
This page covers the legacy Decision Management APIs. If you are using the new Decisioning capability, refer to the Decisioning API developer guide.
Not sure which capability you are using? Learn about Decisioning.
ou can look up a specific decision rule by making a GET request to the Offer Library API that includes the decision rule id in the request path.
API format
GET /{ENDPOINT_PATH}/offer-rules/{ID}
Parameter
Description
Example
{ENDPOINT_PATH}The endpoint path for persistence APIs.
https://platform.adobe.io/data/core/dps/{ID}The id of the entity you wish to look up.
offerRule1234Request
curl -X GET 'https://platform.adobe.io/data/core/dps/offer-rules/offerRule1234' \
-H 'Accept: *,application/json' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {IMS_ORG}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'
Response
A successful response returns the details of the specific decision rule you looked up, including information about its unique decision rule id.
{
"created": "2022-09-16T18:59:53.651+00:00",
"modified": "2022-09-16T18:59:53.651+00:00",
"etag": 1,
"schemas": [
"https://ns.adobe.com/experience/offer-management/eligibility-rule;version=0.3"
],
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "offerRule1234",
"name": "Californians with one or more purchases greater than $1000",
"condition": {
"type": "PQL",
"format": "pql/text",
"value": "homeAddress.stateProvince.equals(\"CA\", false) and (select var1 from xEvent where var1.eventType.equals(\"purchase\", true) and (var1.commerce.order.priceTotal = 1000.0 and var1.commerce.order.currencyCode.equals(\"USD\", false)))"
}
}
recommendation-more-help
journey-optimizer-help