Pesquisar ofertas substitutas look-up-fallback-offers

Você pode pesquisar ofertas substitutas específicas fazendo uma solicitação GET para o Offer Library API que inclui a ID de oferta de fallback no caminho da solicitação.

Formato da API

GET /{ENDPOINT_PATH}/offers/{ID}?offer-type=fallback
Parâmetro
Descrição
Exemplo
{ENDPOINT_PATH}
O caminho do endpoint para APIs de persistência.
https://platform.adobe.io/data/core/dps/
{ID}
A ID da entidade que você deseja pesquisar.
fallbackOffer1234

Solicitação

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}'

Resposta

Uma resposta bem-sucedida retorna os detalhes da oferta substituta, incluindo informações sobre a oferta substituta e a id exclusiva da oferta substituta.

{
    "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"
                }
            ]
        }
    ]
}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76