Getting Started

Create a PAT and make your first API call

Overview

The ZeroShop Admin API lets you programmatically manage every aspect of your shop — products, orders, customers, settings, and more. All endpoints live under https://yourshop.zeroshop.io/admin/api and return JSON.

This guide walks you through creating an access token and making your first API call. You'll have a working integration in under 5 minutes.

Create a Personal Access Token

Personal Access Tokens (PATs) are the recommended way to authenticate with the API. To create one:

  1. Log into your shop admin panel
  2. Go to Settings → Personal Access Tokens
  3. Click "Create Token" and give it a descriptive name
  4. Copy the token — it starts with zspat_ and won't be shown again

Tokens inherit the permissions of your user role. They expire after 90 days by default, but you can configure this (or set them to never expire) when creating the token.

Your First API Call

Let's verify your token works by fetching your shop settings:

curl https://yourshop.zeroshop.io/admin/api/settings \
  -H "Authorization: Bearer zspat_your_token_here"

You should receive a JSON response with your shop's configuration.

Create a Product

Now let's create your first product via the API. Prices are in cents — 1999 means $19.99:

curl -X POST https://yourshop.zeroshop.io/admin/api/products \
  -H "Authorization: Bearer zspat_your_token_here" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Classic T-Shirt",
    "description": "A comfortable everyday tee",
    "price": 2999,
    "product_type": "physical",
    "visible": true
  }'

Next Steps

We value your privacy

We use cookies for essential site functionality and, with your consent, analytics to understand how our platform is used. No personal data is shared with third parties. See our Privacy Policy for details.