Integration API v1
Products, stock and fulfillment infrastructure for external sales channels.
External platforms keep their sellers, storefronts, customers and sale prices. Newvelion remains the source of truth for products, stock, fulfillment and tracking.
Authentication
Use the API key and secret issued by an administrator. Send them as a single bearer credential in the format api_key.api_secret.
curl https://veliongroup.online/api/integrations/v1/products -H "Authorization: Bearer nv_live_xxx.nvs_xxx"
Endpoints
/api/integrations/v1/products/api/integrations/v1/products/:id/api/integrations/v1/products/:id/stock/api/integrations/v1/sellers/api/integrations/v1/products/mapping/api/integrations/v1/offers/api/integrations/v1/offers/:id/api/integrations/v1/orders/api/integrations/v1/orders/:externalOrderIdPricing modes
Fixed Offer
Newvelion controls the selling price and commission. The platform must use the returned fixed price.
Custom Pricing
The platform chooses the seller price, but the price can never be below Newvelion's ZAR economic base.
{
"external_seller_id": "seller_123",
"external_product_id": "prod_123",
"newvelion_product_id": "product-uuid",
"pricing_mode": "custom",
"sale_price": 299
}Creating an offer returns an offer_token and sales_url. For orders using that offer, send offer_token with the order. Newvelion validates the seller, product, pricing mode and exact offer price in the database.
Create an order
{
"external_order_id": "ORDER-82931",
"external_seller_id": "seller_123",
"currency": "ZAR",
"items": [
{
"external_product_id": "prod_123",
"newvelion_product_id": "product-uuid",
"quantity": 2,
"sale_price": 500
}
],
"customer": {
"name": "Customer Name",
"phone": "+27...",
"email": "customer@example.com"
},
"shipping_address": {
"country": "ZA",
"province": "Gauteng",
"city": "Johannesburg",
"address": "Street 1",
"postal_code": "2000",
"phone": "+27..."
}
}Send Idempotency-Key for safe retries. The database also enforces uniqueness by platform and external order ID, so repeated deliveries do not create duplicate orders.
Webhooks
Newvelion sends events such as order.created,order.processing, order.shipped,order.delivered, order.cancelled andorder.returned.
X-Newvelion-Event, X-Newvelion-Event-Id,X-Newvelion-Timestamp and X-Newvelion-Signature. The signature is HMAC-SHA256 over timestamp.payload.Errors
{
"error": {
"code": "PRODUCT_OUT_OF_STOCK",
"message": "The requested product quantity is out of stock.",
"request_id": "req_123"
}
}Rate limits
Integration API requests are limited per platform. The current v1 default is 120 requests per minute. The limit is enforced in PostgreSQL, not only in memory, so it remains consistent across serverless instances.