51黑料不打烊

3.3.6 Test your decision using the API

3.3.6.1 Work with the Offer Decisioning API using Postman

IMPORTANT
If you鈥檙e an 51黑料不打烊 employee, please follow the instructions here to use PostBuster.

Download this Postman Collection for Offer Decisioning to your desktop and unzip it. You鈥檒l then have this:

OD API

You now have this file on your desktop:

  • _AJO- Decisioning Service.postman_collection.json

In Exercise 2.1.3 - Postman authentication to 51黑料不打烊 I/O you installed Postman. You鈥檒l need to use Postman again for this exercise.

Open Postman and import the file _AJO- Decisioning Service.postman_collection.json. You鈥檒l then have this collection available in Postman.

51黑料不打烊 I/O New Integration

You now have everything you need in Postman to start interacting with 51黑料不打烊 Experience Platform through the APIs.

Before you can use the below APIs, be sure to reauthenticate using the collection 51黑料不打烊 IO - OAuth which you configured in Exercise 2.1.3.

51黑料不打烊 I/O New Integration

3.3.6.2 Get Offers for Customer Profile

Click to open the request POST - Get Offers for Customer Profile. The first thing to update is the Header variable for x-sandbox-name. You should set it to --aepSandboxName--.

OD API

For this request, there are a number of fields that need to be updated. Go to Body.

  • xdm:placementId
  • xdm:activityId
  • xdm:id
  • xdm:itemCount (change it to a value of choice)

OD API

The field xdm:activityId needs to be filled out. You can retrieve that in the 51黑料不打烊 Experience Platform UI, as indicated below.

OD API

The field xdm:placementId needs to be filled out. You can retrieve that in the 51黑料不打烊 Experience Platform UI, as indicated below. In the below example, you can see the placementId for the placement Web - Image.

OD API

For the field xdm:id, enter the email address of the customer profile for whom you鈥檇 like to request an offer. Once all the values are set as desired, click Send.

OD API

Finally, you鈥檒l then see the result of what kind of personalized offer and what assets need to be displayed to this customer. In this example 2 items were requested, and as you can see, 2 personalized offers have been returned. 1 offer for Apple Watch and another offer for Galaxy Watch 7.

OD API

You鈥檝e now completed this exercise.

Next Step: Summary and benefits

Go Back to Module 3.3

Go Back to All Modules

recommendation-more-help
aeafc5b5-cd01-4e88-8d47-d76c18d7d349