[Verouderd]{class="badge informative"}
Alternatieve aanbiedingen weergeven list-fallback-offers
Aan klanten wordt een terugvalaanbieding gestuurd als zij niet in aanmerking komen voor andere aanbiedingen. De stappen om een reserveaanbieding tot stand te brengen bestaan uit het creëren van één of verscheidene vertegenwoordiging, zoals wanneer het creëren van een aanbieding.
U kunt een lijst met alle fallback-aanbiedingen weergeven door één GET-aanvraag voor de Offer Library API uit te voeren.
API formaat
GET /{ENDPOINT_PATH}/offers?offer-type=fallback&{QUERY_PARAMS}
{ENDPOINT_PATH}https://platform.adobe.io/data/core/dps{QUERY_PARAMS}limit=2Verzoek
curl -X GET 'https://platform.adobe.io/data/core/dps/offers?offer-type=fallback&limit=2' \
-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}'
Query-parameters gebruiken using-query-parameters
U kunt queryparameters gebruiken om de resultaten te filteren en te pagineren wanneer u bronnen weergeeft.
Paginering paging
De gemeenschappelijkste vraagparameters voor het pagineren omvatten:
propertyEen optioneel eigenschapsfilter:
- De eigenschappen worden gegroepeerd door EN-bewerking.
- De parameters kunnen als zo worden herhaald: property= {PROPERTY_EXPR}[&property= {PROPERTY_EXPR2}… ] of property= {PROPERTY_EXPR1}[, {PROPERTY_EXPR2}… ]
- Eigenschapexpressies hebben de notatie
[ !]field[op]valueen ondersteunenopin[==,!=,<=,>=,<,>,~]reguliere expressies.
property=name!=abc&property=id~.*1234.*&property=description equivalent with property=name!=abc,id~.*1234.*,description.orderByorderby=field1[,-fields2,field3,...]orderby=id, -namelimitlimit=5Reactie
Een succesvolle reactie keert een lijst van reserveaanbiedingen terug die u toegang tot hebt.
{
"results": [
{
"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": "offerPlacement5678",
"components": [
{
"type": "imagelink",
"format": "image/png",
"deliveryURL": "https://mysite.com"
}
]
}
]
},
{
"created": "2022-10-07T11:23:55.885+00:00",
"modified": "2022-10-07T11:23:55.885+00:00",
"etag": 1,
"schemas": [
"https://ns.adobe.com/experience/offer-management/fallback-offer;version=0.7"
],
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "fallbackOffer5678",
"name": "Fallback Offer email",
"status": "approved",
"representations": [
{
"channel": "https://ns.adobe.com/xdm/channel-types/email",
"placement": "offerPlacement1234",
"components": [
{
"type": "component-text",
"format": "text/template",
"content": "Get free shipping!"
}
]
}
],
"labels": [
"core/C1"
]
}
],
"count": 2,
"total": 3,
"_links": {
"self": {
"href": "/offers?offer-type=fallback&href={SELF_HREF}&limit=2",
"type": "application/json"
},
"next": {
"href": "/offers?offer-type=fallback&href={NEXT_HREF}&limit=2",
"type": "application/json"
}
}
}