getOffers() only returning one offer per mbox | Community
Skip to main content
Level 2
February 6, 2026
Question

getOffers() only returning one offer per mbox

  • February 6, 2026
  • 0 replies
  • 0 views

We were instructed as part of a solution review to look into reducing redundant calls as we were frequently making back to back calls to target. After some code analysis it was determined that these were a call to getOffer for target-global-mbox activity offers (primarily used for message banners on our application) and getOffers prefetches for AB tests.

I have looked into migrating our messaging offers to its own dedicated mbox so they can be retrieved as part of the getOffers prefetch. It appears that unlike getOffer, which returns all global mbox offers, getOffers will only prefetch the best priority offer associated with each given mbox. Is there a way to direct target to instead return all associated offers?

Current implementation of getOffer request and response:

{
"requestId": "50e9ed2910ba416eb7cc0d133194eff8",
"context": {
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
"clientHints": {
"mobile": false,
"platform": "macOS",
"browserUAWithMajorVersion": "\"Not(A:Brand\";v=\"8\", \"Chromium\";v=\"144\", \"Google Chrome\";v=\"144\""
},
"timeOffsetInMinutes": -300,
"channel": "web",
"screen": {
"width": 854,
"height": 728,
"orientation": "landscape",
"colorDepth": 30,
"pixelRatio": 2
},
"window": {
"width": 854,
"height": 728
},
"browser": {
"host": "localhost",
"webGLRenderer": "ANGLE (Apple, ANGLE Metal Renderer: Apple M1 Max, Unspecified Version)"
},
"address": {
"url": "http://localhost:63836/customers/account",
"referringUrl": ""
},
"crossDomain": "disabled"
},
"id": {
"tntId": "56cc14960ceb481194e615f058417edb.34_0",
"marketingCloudVisitorId": "28429689468474185770844681054743174392"
},
"property": {
"token": "dc823abc-f6cf-89df-0558-9154a1f47b51"
},
"experienceCloud": {
"audienceManager": {
"locationHint": 7,
"blob": "RKhpRz8krg2tLO6pguXWp5olkAcUniQYPHaMWWgdJ3xzPWQmdj0y"
},
"analytics": {
"logging": "server_side",
"supplementalDataId": "1465576D94BD355E-6FE7807D15548463",
"trackingServer": "metrics.amica.com",
"trackingServerSecure": "smetrics.amica.com"
}
},
"execute": {
"pageLoad": {
"parameters": {
"state": "RI",
"zipCode": "02864",
"lobs": ""
}
}
},
"telemetry": {
"entries": [
{
"execution": 133.5,
"parsing": 0.1,
"request": {
"responseSize": 4765
},
"telemetryServerToken": "p4YQxyYgYUTaezwmtUViaJ0BeFeJ4OFfaYpHQgh8iDY=",
"mode": "edge",
"features": {
"prefetchMboxCount": 7,
"decisioningMethod": "server-side"
},
"requestId": "3b7f4f91a15c43f886b21f1354760e2a",
"timestamp": 1770404415118
}
]
}
}
{
"status": 200,
"requestId": "50e9ed2910ba416eb7cc0d133194eff8",
"client": "amica",
"id": {
"tntId": "56cc14960ceb481194e615f058417edb.34_0",
"marketingCloudVisitorId": "28429689468474185770844681054743174392"
},
"edgeHost": "mboxedge34.tt.omtrdc.net",
"telemetryServerToken": "p4YQxyYgYUTaezwmtUViaJ0BeFeJ4OFfaYpHQgh8iDY=",
"execute": {
"pageLoad": {
"options": [
{
"content": {
"offerType": "banner",
"aemMessage": {
"name": "my-banner",
"type": "info",
"messageText": "Test Message",
"dismissable": "false",
"location": "title"
}
},
"type": "json",
"responseTokens": {
"experience.id": "0",
"activity.name": "Account Card - html parser test",
"geo.city": "lincoln",
"activity.id": "160057",
"geo.state": "rhode island",
"experience.name": "Experience A",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
},
{
"content": {
"offerType": "banner",
"aemMessage": {
"name": "my-banner",
"type": "info",
"messageText": "A second banner",
"dismissable": "false",
"location": "title"
}
},
"type": "json",
"responseTokens": {
"experience.id": "0",
"activity.name": "Account Card - html parser test Copy",
"geo.city": "lincoln",
"activity.id": "317254",
"geo.state": "rhode island",
"experience.name": "Experience A",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
}
}
}

GetOffers testing request and response (only one messaging-mbox offer is returned despite there being multiple available):
 

{
"requestId": "71a4d1be52ac459495bd3378a94a9248",
"context": {
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
"clientHints": {
"mobile": false,
"platform": "macOS",
"browserUAWithMajorVersion": "\"Not(A:Brand\";v=\"8\", \"Chromium\";v=\"144\", \"Google Chrome\";v=\"144\""
},
"timeOffsetInMinutes": -300,
"channel": "web",
"screen": {
"width": 854,
"height": 728,
"orientation": "landscape",
"colorDepth": 30,
"pixelRatio": 2
},
"window": {
"width": 854,
"height": 728
},
"browser": {
"host": "localhost",
"webGLRenderer": "ANGLE (Apple, ANGLE Metal Renderer: Apple M1 Max, Unspecified Version)"
},
"address": {
"url": "http://localhost:63836/customers/account",
"referringUrl": ""
},
"crossDomain": "disabled"
},
"id": {
"tntId": "56cc14960ceb481194e615f058417edb.34_0",
"marketingCloudVisitorId": "28429689468474185770844681054743174392"
},
"property": {
"token": "dc823abc-f6cf-89df-0558-9154a1f47b51"
},
"experienceCloud": {
"audienceManager": {
"locationHint": 7,
"blob": "RKhpRz8krg2tLO6pguXWp5olkAcUniQYPHaMWWgdJ3xzPWQmdj0y"
},
"analytics": {
"logging": "server_side",
"supplementalDataId": "6773BE1E76B2F064-2391034D3346F37E",
"trackingServer": "metrics.amica.com",
"trackingServerSecure": "smetrics.amica.com"
}
},
"prefetch": {
"mboxes": [
{
"parameters": {
"state": "RI",
"zipCode": "02864",
"lobs": ""
},
"index": 0,
"name": "messaging-mbox"
},
{
"index": 1,
"name": "tal-38-calendly-link-relocated"
},
{
"index": 2,
"name": "tal-75-monthly-equivalent"
},
{
"index": 3,
"name": "tal-71-monthly-equivalent"
},
{
"index": 4,
"name": "tal-92-were-here-to-help"
},
{
"index": 5,
"name": "tal-114-call-wait-time-messaging"
},
{
"index": 6,
"name": "qbit-2192-custom-vehicle-comp-collision-coverages"
},
{
"index": 7,
"name": "dare-110-onboarding-contextual-copy"
}
]
},
"telemetry": {
"entries": [
{
"execution": 443.5,
"parsing": 0,
"request": {
"responseSize": 6012
},
"telemetryServerToken": "sWzAuPN0jRUiKvgomAHTpxQFEt7C+BA0WG69QBk5C4w=",
"mode": "edge",
"features": {
"prefetchMboxCount": 8,
"decisioningMethod": "server-side"
},
"requestId": "71fe488612bd4779bade9d085d2adf87",
"timestamp": 1770403844226
}
]
}
}
{
"status": 200,
"requestId": "71a4d1be52ac459495bd3378a94a9248",
"client": "amica",
"id": {
"tntId": "56cc14960ceb481194e615f058417edb.34_0",
"marketingCloudVisitorId": "28429689468474185770844681054743174392"
},
"edgeHost": "mboxedge34.tt.omtrdc.net",
"prefetch": {
"mboxes": [
{
"index": 0,
"name": "messaging-mbox",
"state": "S6ycT2f0PIhUM5rYiLduSEq9D/lmUZ1UzkOJwOrpmiFJyHFuyqSeVtl2hpMUxZoVICtW9kRtkJr0IvC3DHRBBZi38L3Wza6QQPVmUUGyVdI=",
"options": [
{
"content": {
"offerType": "banner",
"conversions": [
{
"id": "my-conversion",
"mbox": "clicked-moratorium-call"
}
],
"aemMessage": {
"name": "my-banner",
"type": "info",
"messageText": "Test Message",
"dismissable": "false",
"location": "title",
"button": {
"name": "amica-contact-phone-link",
"phoneIntlId": "800-242-6422",
"formattedPhoneIntlId": "CALL 800-242-6422"
}
}
},
"type": "json",
"eventToken": "V2oDwxCZNLt5MuWThQflIZ3BNhkKdJh9FdggP2851yeuymNPLcsei1nC7oVyi16G/aczykolnb4dUCw19kHL+w==",
"responseTokens": {
"experience.id": "0",
"activity.name": "Account Card - html parser test",
"geo.city": "lincoln",
"activity.id": "160057",
"geo.state": "rhode island",
"experience.name": "Experience A",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
},
{
"index": 1,
"name": "tal-38-calendly-link-relocated",
"state": "S6ycT2f0PIhUM5rYiLduSEq9D/lmUZ1UzkOJwOrpmiFy7PjD1VRz8so16yX91aeAICtW9kRtkJr0IvC3DHRBBZi38L3Wza6QQPVmUUGyVdI=",
"options": [
{
"content": {
"offerType": "abtest",
"experienceGroup": "B"
},
"type": "json",
"eventToken": "k5ls7BI2DG1QTTlFX0JOYrHIOKMJSfhZpJ/Iaj88vWuuymNPLcsei1nC7oVyi16G/aczykolnb4dUCw19kHL+w==",
"responseTokens": {
"experience.id": "1",
"activity.name": "Calendly Link in Quote Card",
"geo.city": "lincoln",
"activity.id": "268816",
"geo.state": "rhode island",
"experience.name": "Calendly Link in Quote Card",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
},
{
"index": 2,
"name": "tal-75-monthly-equivalent",
"state": "S6ycT2f0PIhUM5rYiLduSEq9D/lmUZ1UzkOJwOrpmiEIr4Cva+yjNkPAt1tf0c+jICtW9kRtkJr0IvC3DHRBBZi38L3Wza6QQPVmUUGyVdI=",
"options": [
{
"content": {
"offerType": "abtest",
"experienceGroup": "A"
},
"type": "json",
"eventToken": "mQcpiop5o/An1TJZD0p7h53BNhkKdJh9FdggP2851yfZ9ODJEg5+xiJvnW45OpL4/aczykolnb4dUCw19kHL+w==",
"responseTokens": {
"experience.id": "0",
"activity.name": "PIF Monthly Equivalent",
"geo.city": "lincoln",
"activity.id": "281126",
"geo.state": "rhode island",
"experience.name": "Do Not Show Monthly Equivalent (Control)",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
},
{
"index": 3,
"name": "tal-71-monthly-equivalent",
"state": "S6ycT2f0PIhUM5rYiLduSEq9D/lmUZ1UzkOJwOrpmiHvfv7yxGuPVygXvd54SIOMICtW9kRtkJr0IvC3DHRBBZi38L3Wza6QQPVmUUGyVdI=",
"options": [
{
"content": {
"offerType": "abtest",
"experienceGroup": "B"
},
"type": "json",
"eventToken": "+kSmDTOASvYHjuQyONroh7HIOKMJSfhZpJ/Iaj88vWuuymNPLcsei1nC7oVyi16G/aczykolnb4dUCw19kHL+w==",
"responseTokens": {
"experience.id": "1",
"activity.name": "PIF EAS Monthly Equivalent",
"geo.city": "lincoln",
"activity.id": "281882",
"geo.state": "rhode island",
"experience.name": "Show Monthly Equivalent",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
},
{
"index": 4,
"name": "tal-92-were-here-to-help",
"state": "S6ycT2f0PIhUM5rYiLduSEq9D/lmUZ1UzkOJwOrpmiF1xyB2l6/XPWOjsiFpsEUUICtW9kRtkJr0IvC3DHRBBZi38L3Wza6QQPVmUUGyVdI=",
"options": [
{
"content": {
"offerType": "abtest",
"experienceGroup": "B"
},
"type": "json",
"eventToken": "G3SrkQnUE2qGM1IRyqit9rHIOKMJSfhZpJ/Iaj88vWuuymNPLcsei1nC7oVyi16G/aczykolnb4dUCw19kHL+w==",
"responseTokens": {
"experience.id": "1",
"activity.name": "TAL-92 - Show Need Help Options",
"geo.city": "lincoln",
"activity.id": "289131",
"geo.state": "rhode island",
"experience.name": "Show New Options",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
},
{
"index": 5,
"name": "tal-114-call-wait-time-messaging",
"state": "S6ycT2f0PIhUM5rYiLduSEq9D/lmUZ1UzkOJwOrpmiF1wZFQGygA0Rv4K9AB0m0EICtW9kRtkJr0IvC3DHRBBZi38L3Wza6QQPVmUUGyVdI=",
"options": [
{
"content": {
"offerType": "abtest",
"experienceGroup": "B"
},
"type": "json",
"eventToken": "uEYMUkSXJcS6uPdxV37BwbHIOKMJSfhZpJ/Iaj88vWuuymNPLcsei1nC7oVyi16G/aczykolnb4dUCw19kHL+w==",
"responseTokens": {
"experience.id": "1",
"activity.name": "TAL-114 - Call Wait Time Messaging",
"geo.city": "lincoln",
"activity.id": "294847",
"geo.state": "rhode island",
"experience.name": "Show Messaging",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
},
{
"index": 6,
"name": "qbit-2192-custom-vehicle-comp-collision-coverages",
"state": "S6ycT2f0PIhUM5rYiLduSEq9D/lmUZ1UzkOJwOrpmiFeim2i9pQlavxOW/++OszfICtW9kRtkJr0IvC3DHRBBZi38L3Wza6QQPVmUUGyVdI=",
"options": [
{
"content": {
"offerType": "abtest",
"experienceGroup": "B"
},
"type": "json",
"eventToken": "gwQpxI6E7lXizWDeJ2fCALHIOKMJSfhZpJ/Iaj88vWuuymNPLcsei1nC7oVyi16G/aczykolnb4dUCw19kHL+w==",
"responseTokens": {
"experience.id": "1",
"activity.name": "QBIT-2192 - Custom Vehicle Coverages",
"geo.city": "lincoln",
"activity.id": "297317",
"geo.state": "rhode island",
"experience.name": "Customer Coverages",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
},
{
"index": 7,
"name": "dare-110-onboarding-contextual-copy",
"state": "S6ycT2f0PIhUM5rYiLduSEq9D/lmUZ1UzkOJwOrpmiGQ0NHaNfnjO9JjxvhJRL7uICtW9kRtkJr0IvC3DHRBBZi38L3Wza6QQPVmUUGyVdI=",
"options": [
{
"content": {
"offerType": "abtest",
"experienceGroup": "A"
},
"type": "json",
"eventToken": "48jof0sKCQoiNXtxACtiZJ3BNhkKdJh9FdggP2851yfZ9ODJEg5+xiJvnW45OpL4/aczykolnb4dUCw19kHL+w==",
"responseTokens": {
"experience.id": "0",
"activity.name": "DARE-110 - Onboarding Contextual Copy",
"geo.city": "lincoln",
"activity.id": "313668",
"geo.state": "rhode island",
"experience.name": "Do Not Show Copy (Control)",
"geo.zip": "02865",
"geo.country": "united states"
},
"sourceType": "target"
}
]
}
]
},
"telemetryServerToken": "sWzAuPN0jRUiKvgomAHTpxQFEt7C+BA0WG69QBk5C4w="
}