PEWES ENERGY Reseller API

Trade accounts with an API key

GitHub OpenAPI

Operations 5

GET /api/reseller/v1/me The company, reseller level and card behind the key #
GET /api/reseller/v1/products Every can with its SKU, retail price, trade price and stock #
GET /api/reseller/v1/orders Find orders by your own reference #
POST /api/reseller/v1/orders Create a dropship order charged to the card on file #
GET /api/reseller/v1/orders/{id} One order with status, totals and tracking #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pewesenergy-com:pewesenergy-com-reseller-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pewesenergy-com-reseller-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PEWES ENERGY Reseller API
  version: 1.0.0
  summary: Catalogue, price list and dropshipping orders for PEWES ENERGY.
  description: PEWES ENERGY is a headless WooCommerce demonstration store. The catalogue endpoint is public. The reseller endpoints need an API key issued to an approved trade account; orders created through them are charged to the card on file and run against Stripe in test mode, so nothing is shipped.
  contact:
    name: PEWES ENERGY
    url: https://pewesenergy.com/contact
  termsOfService: https://pewesenergy.com/terms
servers:
- url: https://pewesenergy.com
tags:
- name: reseller
  description: Trade accounts with an API key
paths:
  /api/reseller/v1/me:
    get:
      operationId: getReseller
      tags:
      - reseller
      summary: The company, reseller level and card behind the key
      security:
      - resellerKey: []
      responses:
        '200':
          description: The reseller account
        '401':
          description: Missing or wrong key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: No reseller pricing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/reseller/v1/products:
    get:
      operationId: listResellerProducts
      tags:
      - reseller
      summary: Every can with its SKU, retail price, trade price and stock
      security:
      - resellerKey: []
      responses:
        '200':
          description: The trade catalogue
        '401':
          description: Missing or wrong key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/reseller/v1/orders:
    get:
      operationId: listResellerOrders
      tags:
      - reseller
      summary: Find orders by your own reference
      security:
      - resellerKey: []
      parameters:
      - name: reference
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      responses:
        '200':
          description: Matching orders
        '401':
          description: Missing or wrong key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    post:
      operationId: createResellerOrder
      tags:
      - reseller
      summary: Create a dropship order charged to the card on file
      security:
      - resellerKey: []
      parameters:
      - name: Idempotency-Key
        in: header
        required: true
        schema:
          type: string
          maxLength: 190
        description: A retry with the same key never creates a second order
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - items
              - shipping
              properties:
                reference:
                  type: string
                  description: Your own order reference
                items:
                  type: array
                  minItems: 1
                  items:
                    type: object
                    required:
                    - sku
                    - quantity
                    properties:
                      sku:
                        type: string
                      quantity:
                        type: integer
                        minimum: 1
                shipping:
                  type: object
                  required:
                  - first_name
                  - last_name
                  - address_1
                  - city
                  - postcode
                  - country
                  properties:
                    first_name:
                      type: string
                    last_name:
                      type: string
                    company:
                      type: string
                    address_1:
                      type: string
                    address_2:
                      type: string
                    city:
                      type: string
                    state:
                      type: string
                    postcode:
                      type: string
                    country:
                      type: string
                      description: ISO 3166-1 alpha-2
                    phone:
                      type: string
                    email:
                      type: string
                      format: email
                note:
                  type: string
      responses:
        '200':
          description: A replay of an order already created with this Idempotency-Key
        '201':
          description: The order was created and charged
        '400':
          description: Malformed body or missing Idempotency-Key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or wrong key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: No card on file or the card was declined
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: A can is out of stock or the same key is still being processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The order content does not validate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /api/reseller/v1/orders/{id}:
    get:
      operationId: getResellerOrder
      tags:
      - reseller
      summary: One order with status, totals and tracking
      security:
      - resellerKey: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The order
        '404':
          description: Unknown order
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    resellerKey:
      type: http
      scheme: bearer
      description: A reseller key issued by PEWES ENERGY after the call booked at /become-a-reseller. No self-service registration.
externalDocs:
  description: Reseller API documentation
  url: https://pewesenergy.com/become-a-reseller/api