PayNow

CreateCheckoutSessionLineDto

Represents a line item in a checkout session request

product_idFlakeIdRequired
quantityintegerRequired
The quantity of this product to purchase
custom_variablesobjectOptional
Key-value pair mapping custom variable identifiers to their selected values. Required only when the product includes custom variables.
gift_toCustomerPlatformAccountDtoOptional
Represents a customer platform association, used for gifting
idstringRequired
The account ID on the platform
platformenumRequired
Possible enum values
  • invalid
  • steam

    Steam profile platform - the ID param must be a Steam ID 64.

  • minecraft

    Minecraft profile platform - the ID param must be a Minecraft nick. If your store platform is Geyser, this automatically sets the Minecraft platform based on the prefix configured in store settings.

  • paynow_name

    PayNow name profile platform - the ID param must be a PayNow username.

  • paynow

    PayNow name profile platform - the ID param must be a PayNow username.

  • minecraft_java_name

    Minecraft Java Profile Platform - the ID param must be a Java minecraft nick.

  • minecraft_bedrock_name

    Minecraft Bedrock Profile Platform - the ID param must be a Bedrock minecraft nick.

  • xbox_xuid

    Minecraft Xbox XUID Profile Platform - the ID param must be an xbox xuid

  • minecraft_uuid

    Minecraft profile platform - the ID param must be a Minecraft UUID.

gift_to_customer_idFlakeIdOptional
selected_gameserver_idFlakeIdOptional
subscriptionbooleanOptional
Determines whether this line should create a subscription
trialbooleanOptional
Indicates whether the product should be trialed
Example
{
  "product_id": "411486491630370816",
  "quantity": 0,
  "subscription": true,
  "trial": true,
  "gift_to": {
    "id": "76561198152492642",
    "platform": "invalid"
  },
  "gift_to_customer_id": "411486491630370816",
  "selected_gameserver_id": "411486491630370816",
  "custom_variables": {}
}