Zum Inhalt springen
Reseller API v1

Reseller API Documentation

Integrate HempWholesales directly into your shop. Retrieve products, place dropship orders, and manage white-label — all via API.

Base URL: http://localhost:9000
Auth: x-reseller-api-key: rk_xxx

Quick Start

1

Register

Create an account on our platform.

2

Generate API Key

Log in and create an API key under Profile → API Keys.

3

Get Started

Use your key in the x-reseller-api-key header for all API calls.

POST
/api/reseller/auth

Login — Receive JWT Token

curl -X POST http://localhost:9000/api/reseller/auth \
  -H "Content-Type: application/json" \
  -d '{"email":"reseller@example.com","password":"xxx"}'

# Response: {"token":"eyJhbG..."}
POST
/api/reseller/api-keys

Generate API Key (Bearer Token required)

curl -X POST http://localhost:9000/api/reseller/api-keys \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Mein Shopify Store"}'

# Response: {"api_key":"rk_a1b2c3d4...","name":"Mein Shopify Store"}

Ready for Integration?

Create your account and generate your first API key.

HempWholesales — B2B CBD Wholesale & White Label Partner