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 keyActive packages with price and a ready buyUrl.
Request
curl https://api.craftpay.net/v1/public/mist/packagesResponse · 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 keyCategories in display order.
Request
curl https://api.craftpay.net/v1/public/mist/categoriesResponse · 200
{
"data": [{ "id": "cm3k9x5aa0002", "name": "Ranks", "sortOrder": 0 }]
}Get the store
GET
/v1/public/{slug}/store Public – no keyName, currency and address.
Request
curl https://api.craftpay.net/v1/public/mist/storeResponse · 200
{
"data": { "id": "cm3k9x2f80001", "name": "Mist Network", "slug": "mist", "currency": "EUR", … }
}Stuck? Write to mail@craftpay.net