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

x-publisher-token
string
required

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.