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:
- Channel partner credentials. The administrator creates a channel application bound to your partner account and returns a
request-tokensecret; alternatively, log in to the portal to obtain a session token. - 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_idvalues in the bound set are accepted and any other explicitly supplied id is rejected. Whenshop_idis omitted, the order is placed on the platform primary shop, so no bound shop is required. - Account manager. The member must have a bound account manager (
bind_manager_id), or a shop responsible person (shop_responsible_person) configured; otherwise submit returns400.
Base URL
| Environment | Base URL | Purpose |
|---|---|---|
| Production | https://apigate.e2c-energy.com | Live partner data |
| Sandbox | https://tapi.e2c-energy.com | Integration and testing |
| Partner portal | https://partners.e2c-energy.com | Self-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:
POST https://apigate.e2c-energy.com/channel/api/v1/sandbox/init
Authorization: Bearer <production session token>role=adminonly; syncs the member identity,user_typeand capabilities into the test environment.- Returns
{ member_id, sandbox_token }and stores it int_member.sandbox_token. - Subsequent business requests to
tapi.e2c-energy.comuseAuthorization: Bearer <sandbox_token>. POST /channel/api/v1/sandbox/tokenreturns 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 -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:
{ "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
- Authentication — credential forms, whitelist and sandbox.
- Capabilities — capability enum and path gates.
- Order List API — pagination and filters.
- Order Detail API — addresses, line items and packages.
- Order Tracking API — query by order or tracking number.
- Order Documents API — invoices, packing slips and labels.
- Submit Order API — full request/response reference.
- Inventory List API — owned and platform stock.
- FAQ — common questions and error handling.