Lookup a decision item
Last update: August 29, 2024
- Topics:
- Decision Management
- API
- Collections
CREATED FOR:
- Experienced
- Developer
To look up specific decision items by make a GET request to the Offer Library API that includes the id in the request path.
API format
GET /{ENDPOINT_PATH}/offer-items/{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. | offerItem1234 |
Request
curl -X GET 'https://platform.adobe.io/data/core/dps/offer-items/offerItem1234' \
-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}' \
-H 'x-schema-id: {SCHEMA_ID}'
Response
A successful response returns the details of the decision item.
{
"created": "2024-06-10T16:00:34.014Z",
"modified": "2024-07-09T22:59:21.507Z",
"etag": 1,
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "offerItem5678",
"_experience": {
"decisioning": {
"offeritem": {
"fCapConstraintsLastIndex": 0,
"lifecycleStatus": "approved"
},
"decisionitem": {
"itemCalendarConstraints": {
"endDate": "2030-12-31T08:00:00.000Z",
"startDate": "2024-06-10T04:00:00.000Z"
},
"itemCatalogID": "itemCatalong1234",
"itemConstraints": {
"eligibilityRule": "rule1234",
"profileConstraintType": "eligibilityRule"
},
"itemDescription": "Offer item description",
"itemID": "offerItem5678",
"itemLabels": [],
"itemName": "Offer Item One",
"itemPriority": 1,
"itemTags": []
}
}
},
"_<imsOrg>": {
"some_field": "some value"
}
}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76