의사 결정 규칙 조회 lookup-decision-rule
요청 경로에 결정 규칙 id
을(를) 포함하는 Offer Library API에 대한 GET 요청을 수행하여 특정 결정 규칙을 조회할 수 있습니다.
API 형식
GET /{ENDPOINT_PATH}/offer-rules/{ID}
매개변수
설명
예
{ENDPOINT_PATH}
지속성 API의 끝점 경로입니다.
https://platform.adobe.io/data/core/dps/
{ID}
조회할 엔티티의 ID입니다.
offerRule1234
요청
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}'
응답
성공한 응답은 고유 결정 규칙 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
b22c9c5d-9208-48f4-b874-1cefb8df4d76