v1
latestOpenAPI 3.1.02026-07-2665153355.3 KBPersonalization
Sync player information
<Note> This is a callback API. Appcharge calls this endpoint on your server when specific events occur. </Note>
Notifies your system to personalize the web store for a player. <br /> <br /> Appcharge calls this endpoint when: <ul><li>A player logs in to your web store.</li><li>A player completes a purchase.</li><li>Every 5 minutes after the player’s last sync.</li></ul> Your server responds with the most current player data and all available offers for the player. Appcharge then updates the web store for the player accordingly.
post/{YOUR_PERSONALIZE_WEBSTORE_ENDPOINT}
Headers
x-publisher-tokenstring
Publisher token.
signaturestring
The signed payload.
Request body
Response
Successful operation
Example response
{
"version": 2,
"logo": "MY_LOGO_ASSET_ID",
"status": "valid",
"profileFrameId": "profileFrame123",
"playerLevelName": "playerLevelName",
"bannerExternalId": "playerLevelAssetId",
"playerLevel": {
"assetId": "playerLevel1",
"text": "10%",
"endsIn": 1728283121000
},
"focus": {
"publisherBundleId": "bundle123"
},
"storeTheme": {
"bgImageMobile": "mobile_bg_2",
"bgImageDesktop": "desktop_bg_2",
"logo": "store_logo_2",
"profileFrameImage": "profile_frame_2",
"bannerImage": "banner_2",
"playerLevelImage": "player_level_2"
},
"balances": [
{
"publisherProductId": "product123",
"quantity": 5
}
],
"offers": [
{
"publisherOfferId": "offer123",
"priceDiscount": {
"priceBeforeDiscount": 100,
"discount": 20,
"type": "percentage"
},
"badges": [
{
"publisherBadgeId": "badge123",
"position": "center"
}
],
"dynamicOfferUi": {
"badges": [
{
"publisherBadgeId": "badge123",
"position": "center"
}
]
},
"productsSequence": [
{
"priceDiscount": {
"priceBeforeDiscount": 100,
"discount": 20,
"type": "percentage"
},
"badges": [
{
"publisherBadgeId": "badge123",
"position": "center"
}
],
"progressBarPoints": [
{
"publisherBarId": "progress-bar-1",
"points": 1000
}
],
"products": [
{
"publisherProductId": "product123",
"quantity": 2,
"traits": [
{
"assetId": "burn_damage_icon",
"text": "Burn Damage"
}
],
"rarityProductInfo": {
"stars": 5,
"tooltip": [
{
"sectionName": "Special Offers",
"products": [
{
"publisherProductId": "Coin",
"text": "20%"
}
]
}
]
}
}
]
}
]
}
]
}