Skip to content
This page is not yet translated. Showing English content.

Getting Started ​

The Channel Partner API lets an external partner submit orders into the e2c-energy platform on behalf of the shops bound to that partner. Identity is resolved by the server from your token — you never pass a partner id in the request body, so a partner can only ever act within its own bound shops.

Prerequisites ​

Before you can submit orders you need the following three things. Credentials and shops can be provisioned by an e2c-energy administrator or obtained/created self-service in the partner portal; the account manager must be bound by an administrator or configured on the shop:

  1. Channel partner credentials. The administrator creates a channel application bound to your partner account and returns a request-token secret; alternatively, log in to the portal to obtain a session token.
  2. Shop ownership (optional). An administrator may bind one or more shops to your account, and you may also create shops yourself in the portal (they are bound automatically). Only shop_id values in the bound set are accepted and any other explicitly supplied id is rejected. When shop_id is omitted, the order is placed on the platform primary shop, so no bound shop is required.
  3. Account manager. The member must have a bound account manager (bind_manager_id), or a shop responsible person (shop_responsible_person) configured; otherwise submit returns 400.

Base URL ​

EnvironmentBase URLPurpose
Productionhttps://apigate.e2c-energy.comLive partner data
Sandboxhttps://tapi.e2c-energy.comIntegration and testing
Partner portalhttps://partners.e2c-energy.comSelf-service orders, outbound, inventory and reconciliation

All Channel Partner endpoints live under /channel/api/v1/.

Use the sandbox for development and E2E testing. Do not write test data to production. The sandbox may be reset; do not rely on it for long-term storage.

Sandbox ​

The sandbox is initialized from the production portal; no separate account request is needed:

text
POST https://apigate.e2c-energy.com/channel/api/v1/sandbox/init
Authorization: Bearer <production session token>
  • role=admin only; syncs the member identity, user_type and capabilities into the test environment.
  • Returns { member_id, sandbox_token } and stores it in t_member.sandbox_token.
  • Subsequent business requests to tapi.e2c-energy.com use Authorization: Bearer <sandbox_token>.
  • POST /channel/api/v1/sandbox/token returns the stored sandbox token.
  • Identity endpoints (/channel/api/v1/auth/*) always use the production gateway; business data follows the environment gateway.

Partner Portal ​

The partner portal is live at https://partners.e2c-energy.com. It provides self-service orders, inventory, outbound, dispatch, webhook and reconciliation, with a sidebar generated from granted capabilities (see Capabilities).

The session token obtained when logging in to the portal works for API calls; third-party systems without a portal account can still use the request-token secret.

Your first request ​

Submit an order with a single POST call. Send your token in the Authorization: Bearer (or request-token) header and the order payload as JSON.

cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/order/submit' \
  -H 'request-token: YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "shop_id": 123,
  "shop_order_no": "SO-1001",
  "shipping_standard": "STD",
  "payment_method": "bank_transfer",
  "purchase_time": "2026-07-22 10:00:00",
  "billing_address": {
    "full_name": "John Doe",
    "country_code": "DE",
    "province": "Bavaria",
    "city": "Munich",
    "address1": "Marienplatz 1"
  },
  "shipping_address": {
    "full_name": "John Doe",
    "country_code": "DE",
    "province": "Bavaria",
    "city": "Munich",
    "address1": "Marienplatz 1"
  },
  "order_item": [
    {
      "quantity": 1,
      "price": 49.9,
      "item": {
        "title": "Portable Power Station",
        "shop_sku": "PPS-500",
        "sale_price": 49.9,
        "weight": 5.2,
        "weight_unit": "kg",
        "images": {
          "3241": [
            "https://cdn.example.com/pps500-main.jpg"
          ]
        },
        "primary_image_key": "id",
        "variant": {
          "shop_sku": "PPS-500-BLK",
          "sku": "PPS-500-BLK",
          "standard": {
            "id": "3241"
          },
          "sale_price": 49.9,
          "weight": 5.2,
          "weight_unit": "kg"
        }
      }
    }
  ],
  "order_amount": [
    {
      "subject": "Product Total",
      "amount": 49.9,
      "currency": "EUR",
      "fee_code": "sub_total"
    },
    {
      "subject": "Tax",
      "amount": 10.48,
      "currency": "EUR",
      "fee_code": "tax"
    }
  ]
}'

A successful response returns the created order id:

json
{ "code": 200, "msg": "order submit succeed", "data": { "order_id": 456 } }

Warehouse service ​

The same base URL serves warehouse service requests. Partner operations are described in the Partner Guide; carriers use the Carrier Guide. Warehouse internal operations are not part of this API.

Next steps ​