CraftPayDocs
Getting started

Introduction

Read your store's packages, orders and servers from your own systems – a Discord bot, a website, a stats page or accounting software.

Base URL

Every endpoint lives under this address:

https://api.craftpay.net

Quick start

  1. 1Open the dashboard and go to your store → API.
  2. 2Create a key and copy it – it's shown only once.
  3. 3Send it in the Authorization header on every request.

Your first request:

curl
curl https://api.craftpay.net/v1/store \
  -H "Authorization: Bearer cp_sk_..."

The basics

  • Almost everything is GET. The only write is POST /v1/checkouts, which starts a purchase.
  • Every answer is JSON. Lists come back as { "data": [ … ] }, single objects as { "data": { … } }.
  • Amounts are integers in cents – 4900 means 49.00 – together with a currency code.
  • Dates are ISO 8601 in UTC, e.g. 2026-11-11T17:20:00.000Z.

Stuck? Write to mail@craftpay.net