Overview
What's New
Web Store
- Player Authentication
- Offers
- Personalization
- Webhooks
Checkout
- Checkout Session
- Orders
- Finance and Analytics
- Checkout Webhooks
Events Center
- Introduction
- Login Events
- Store Interaction Events
- Error Events
- Order Events
- Refund and Dispute Events
Checkout Session
Create Checkout Session API
Creates a checkout session.
POST
/
checkout
/
v1
/
session
curl --request POST \
--url https://api-sandbox.appcharge.com/checkout/v1/session \
--header 'Content-Type: application/json' \
--header 'x-publisher-token: <x-publisher-token>' \
--data '{
"priceDetails": {
"price": 1000,
"currency": "USD"
},
"offer": {
"name": "Treasure Chest",
"sku": "68452829c5e8",
"assetUrl": "https://media-dev.appcharge.com/image.png",
"description": "<string>",
"displayName": "<string>",
"pricePointMetadata": 123
},
"items": [
{
"name": "coins",
"assetUrl": "https://media-dev.appcharge.com/coin.png",
"sku": "coins_386f9b",
"quantity": 3300000,
"quantityDisplay": "3.3M",
"displayName": "<string>"
}
],
"customer": {
"id": "7c99fba665c4a",
"email": "customer@appcharge.com"
},
"sessionMetadata": {},
"redirectUrl": "<string>"
}'
{
"checkoutSessionToken": "<string>",
"purchaseId": "<string>",
"url": "<string>"
}
Headers
Your checkout token that will be presented at Appcharge's dashboard under Admin section -> Integration tab -> Publisher token
Body
application/json
Response
201
application/json
Checkout session created successfully.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api-sandbox.appcharge.com/checkout/v1/session \
--header 'Content-Type: application/json' \
--header 'x-publisher-token: <x-publisher-token>' \
--data '{
"priceDetails": {
"price": 1000,
"currency": "USD"
},
"offer": {
"name": "Treasure Chest",
"sku": "68452829c5e8",
"assetUrl": "https://media-dev.appcharge.com/image.png",
"description": "<string>",
"displayName": "<string>",
"pricePointMetadata": 123
},
"items": [
{
"name": "coins",
"assetUrl": "https://media-dev.appcharge.com/coin.png",
"sku": "coins_386f9b",
"quantity": 3300000,
"quantityDisplay": "3.3M",
"displayName": "<string>"
}
],
"customer": {
"id": "7c99fba665c4a",
"email": "customer@appcharge.com"
},
"sessionMetadata": {},
"redirectUrl": "<string>"
}'
{
"checkoutSessionToken": "<string>",
"purchaseId": "<string>",
"url": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.