CraftPayDocs
API reference

Public catalog

Read-only data you can load straight from the browser: no API key, and CORS is open. Use your store's slug – the mist in mist.craftpay.net.

List packages

GET/v1/public/{slug}/packages Public – no key

Active packages with price and a ready buyUrl.

Request
curl https://api.craftpay.net/v1/public/mist/packages
Response · 200
{
  "data": [
    {
      "id": "cm3k9x8qw0004",
      "name": "VIP",
      "price": { "amount": 499, "currency": "EUR" },
      "type": "ONE_TIME",
      "categoryId": "cm3k9x5aa0002",
      "buyUrl": "https://mist.craftpay.net/checkout?add=cm3k9x8qw0004"
    }
  ]
}

List categories

GET/v1/public/{slug}/categories Public – no key

Categories in display order.

Request
curl https://api.craftpay.net/v1/public/mist/categories
Response · 200
{
  "data": [{ "id": "cm3k9x5aa0002", "name": "Ranks", "sortOrder": 0 }]
}

Get the store

GET/v1/public/{slug}/store Public – no key

Name, currency and address.

Request
curl https://api.craftpay.net/v1/public/mist/store
Response · 200
{
  "data": { "id": "cm3k9x2f80001", "name": "Mist Network", "slug": "mist", "currency": "EUR", … }
}

Stuck? Write to mail@craftpay.net