[Legacy]{class="badge informative"}
Look up a personalized offer look-up-personalized-offer
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.
A personalized offer is a customizable marketing message based on eligibility rules and constraints.
You can look up specific personalized offers by making a GET request to the Offer Library API that includes either the personalized offer @id or the name of the personalized offer in the request path.
API format
GET /{ENDPOINT_PATH}/{CONTAINER_ID}/queries/core/search?schema={SCHEMA_PERSONALIZED_OFFER}&{QUERY_PARAMS}
Parameter
Description
Example
{ENDPOINT_PATH}The endpoint path for repository APIs.
https://platform.adobe.io/data/core/xcore/{CONTAINER_ID}The container where the personalized offers are located.
e0bd8463-0913-4ca1-bd84-6309134ca1f6{SCHEMA_PERSONALIZED_OFFER}Defines the schema associated with personalized offers.
https://ns.adobe.com/experience/offer-management/personalized-offer;version=0.5idA string used to match the
@id property of the entities. The string is matched exactly. The parameter “id” and “name” cannot be used together.xcore:personalized-offer:124cc332095cfa74nameA string used to match the xdm:name property of the entities. The string is matched exactly, with capitalization, but wild card characters can be used. The parameters
id and name cannot be used togetherDiscount offerRequest
curl -X GET \
'https://platform.adobe.io/data/core/xcore/e0bd8463-0913-4ca1-bd84-6309134ca1f6/instances?schema=https://ns.adobe.com/experience/offer-management/personalized-offer;version=0.5&name=Discount%20offer' \
-H 'Accept: *,application/vnd.adobe.platform.xcore.hal+json; schema="https://ns.adobe.com/experience/xcore/hal/results"' \
-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 placement including information about your container ID, instance ID and, unique personalized offer @id.
{
"containerId": "e0bd8463-0913-4ca1-bd84-6309134ca1f6",
"schemaNs": "https://ns.adobe.com/experience/offer-management/personalized-offer;version=0.5",
"requestTime": "2023-10-21T20:59:16.238585Z",
"_embedded": {
"results": [
{
"instanceId": "fb2aad00-130e-11eb-aa26-21e7b1fa6da6",
"schemas": [
"https://ns.adobe.com/experience/offer-management/personalized-offer;version=0.5"
],
"productContexts": [
"acp"
],
"repo:etag": 1,
"repo:createdDate": "2023-10-20T20:01:02.927874Z",
"repo:lastModifiedDate": "2023-10-20T20:01:02.927874Z",
"repo:createdBy": "{CREATED_BY}",
"repo:lastModifiedBy": "{MODIFIED_BY}",
"repo:createdByClientId": "{CREATED_CLIENT_ID}",
"repo:lastModifiedByClientId": "{MODIFIED_CLIENT_ID}",
"_score": 0,
"_instance": {
"xdm:name": "Discount offer",
"xdm:representations": [
{
"xdm:components": [
{
"dc:language": [
"en"
],
"@type": "https://ns.adobe.com/experience/offer-management/content-component-json",
"dc:format": "application/json"
}
],
"xdm:placement": "xcore:offer-placement:12428d436d87dc84"
}
],
"xdm:rank": {
"xdm:priority": 1
},
"xdm:selectionConstraint": {
"xdm:startDate": "2023-10-01T16:00:00Z",
"xdm:endDate": "2021-12-13T16:00:00Z",
"xdm:eligibilityRule": "xcore:eligibility-rule:124cb4511da781fc"
},
"xdm:status": "draft",
"xdm:cappingConstraint": {
"xdm:globalCap": 150
},
"xdm:tags": [
"xcore:tag:1246d138ec8cca1f"
],
"@id": "xcore:personalized-offer:124cc332095cfa74"
},
"_links": {
"self": {
"name": "https://ns.adobe.com/experience/offer-management/personalized-offer;version=0.5#fb2aad00-130e-11eb-aa26-21e7b1fa6da6",
"href": "/e0bd8463-0913-4ca1-bd84-6309134ca1f6/instances/fb2aad00-130e-11eb-aa26-21e7b1fa6da6",
"@type": "https://ns.adobe.com/experience/offer-management/personalized-offer;version=0.5"
}
}
}
],
"total": 1,
"count": 1
},
"_links": {
"self": {
"href": "/e0bd8463-0913-4ca1-bd84-6309134ca1f6/instances?schema=https://ns.adobe.com/experience/offer-management/personalized-offer;version=0.5&name=Discount%20offer",
"@type": "https://ns.adobe.com/experience/xcore/hal/results"
}
}
}
recommendation-more-help
journey-optimizer-help