フォールバックオファーの検索

最終更新日: 2023-11-07
  • 作成対象:
  • Experienced
    Developer

特定のフォールバックオファーを検索するには、リクエストパスにフォールバックオファー ID を含む Offer Library API に GET リクエストを実行します。

API 形式

GET /{ENDPOINT_PATH}/offers/{ID}?offer-type=fallback
パラメーター 説明
{ENDPOINT_PATH} 永続性 API のエンドポイントパス。 https://platform.adobe.io/data/core/dps/
{ID} 検索するエンティティの ID。 fallbackOffer1234

リクエスト

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

応答

応答が成功すると、フォールバックオファーの詳細(フォールバックオファーの情報や一意のフォールバックオファー 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"
                }
            ]
        }
    ]
}

このページ