You can look up specific fallback offers by making a GET request to the Offer Library API that includes the fallback offer id in the request path.
API format
GET /{ENDPOINT_PATH}/offers/{ID}?offer-type=fallback
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. | fallbackOffer1234 |
Request
curl -X GET 'https://platform.adobe.io/data/core/dps/offers/fallbackOffer1234?offer-type=fallback' \
-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 fallback-offer including information your fallback-offer and unique fallback offer id.
{
"created": "2023-06-08T14:04:41.011+00:00",
"modified": "2023-06-08T14:04:41.011+00:00",
"etag": 1,
"schemas": [
"https://ns.adobe.com/experience/offer-management/fallback-offer;version=0.8"
],
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "fallbackOffer1234",
"name": "Fallback Offer Web",
"description": "Fallback Offer Web Description",
"status": "draft",
"representations": [
{
"channel": "https://ns.adobe.com/xdm/channel-types/web",
"placement": "offerPlacement1234",
"components": [
{
"type": "imagelink",
"format": "image/png",
"deliveryURL": "https://mysite.com"
}
]
}
]
}