---
title: "Start a new topup session with stripe"
method: POST
path: "/api/topup/stripe/{productSlug}"
tags: ["Premium"]
---

# Start a new topup session with stripe

`POST /api/topup/stripe/{productSlug}`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/topup/stripe/{productSlug}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `GoogleToken`

## Path parameters

- `productSlug` string, required

## Request body

- TopUpArguments: Additional arguments for a topup
  - `coinAmount` integer, required: A specific amount of coins to topup
  - `successUrl` string, nullable: The url to redirect to after successful payment
  - `cancelUrl` string, nullable: The url to redirect to when user aborts payment
  - `creatorCode` string, nullable: An optional creator code to apply to the purchase
  - `discountcode` string, nullable: An optional discount code to apply to the purchase

## Response `200`

OK

- TopUpIdResponse
  - `id` string, nullable
  - `dirctLink` string, nullable
  - `directLink` string, nullable
  - `trialDays` integer, nullable

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

## Changes

- **2026-11-21** `e51c5614068b`: 3 info
  - added the optional property `trialDays` to the response with the `200` status (media type: text/plain)
  - added the optional property `trialDays` to the response with the `200` status (media type: application/json)
  - added the optional property `trialDays` to the response with the `200` status (media type: text/json)
- **2026-08-04** `41f7cdd4406b`: 4 breaking, 15 info
  - the request property `coinAmount` became required (media type: application/json-patch+json)
  - the request property `coinAmount` became required (media type: application/json)
  - the request property `coinAmount` became required (media type: text/json)
  - the request property `coinAmount` became required (media type: application/*+json)
  - …15 more

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/topup/stripe/:productSlug/post.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
