Create an Order
Submit a new fulfillment order to the Fulfillio warehouse.
You can freely submit orders with fake or test data — orders are not processed by staff until manually confirmed inside the app. To confirm an order, open it and click Confirm order on the order page. If you prefer orders to be confirmed automatically, you can enable this in Settings.
Endpoint
POST https://wms.fulfillio.si/api/v1/orders
Content-Type: application/json
Minimal Example
A minimal order with only the required fields:
{
"apiKey": "YOUR_API_KEY",
"orderInfo": {
"firstName": "Marc",
"lastName": "Opaces",
"email": "marc@example.com",
"phone": "+1234567890",
"countryCode": "HU",
"city": "Budapest",
"postalCode": "1111",
"streetName": "Street Test",
"streetNumber": "33",
"packetaBranchId": 123,
"orderItems": [
{
"sku": "MY-SKU-55",
"quantity": 4
}
]
}
}
Full Example
A complete order demonstrating all available fields, including COD and billing info:
For an order to be treated as Cash on Delivery, set isCod to true and provide codValue. Passing codValue alone is not enough: if isCod is false, null, or omitted, the order is not considered a COD order. Always set codCurrency as well; if omitted, EUR is used by default.
{
"apiKey": "YOUR_API_KEY",
"orderInfo": {
"firstName": "Marc",
"lastName": "Opaces",
"email": "marcmarc444@yahoo.com",
"phone": "+1234567890",
"countryCode": "HU",
"city": "Budapest",
"postalCode": "1111",
"streetName": "Street Test",
"streetNumber": "33",
"flatNumber": "5",
"message": "",
"isCod": true,
"codValue": 550,
"codCurrency": "HUF",
"courierCode": "packeta",
"packetaBranchId": 123,
"carrierPickupPointCode": "HU12345",
"externalOrderId": "69458",
"externalOrderNumber": "445URA2",
"orderItems": [
{
"sku": "MY-SKU-55",
"quantity": 4
}
],
"billingInfo": {
"billingFirstName": "Marko",
"billingLastName": "Petrovič",
"billingStreet": "Dunavska",
"billingHouseNumber": "37",
"billingPostalCode": "11000",
"billingCity": "Beograd",
"billingCountry": "RS",
"billingEmail": "marko.petrovic@example.com",
"billingPhone": "+381641234567",
"buyerTaxNumber": "RS123456789",
"orderReference": "ORD-2026-000123",
"methodOfPayment": "BankTransfer",
"vatTransactionType": "106",
"billingItems": [
{
"price": 199.99,
"vatRate": 27,
"description": "Wireless Barcode Scanner",
"productCode": "WBS-001",
"quantity": 2
},
{
"price": 49.9,
"vatRate": 27,
"description": "Thermal Label Roll 100x150mm",
"productCode": "TLR-100150",
"quantity": 5
}
]
}
}
}
Code Examples
Node.js (fetch)
const response = await fetch("https://wms.fulfillio.si/api/v1/orders", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
apiKey: process.env.FULFILLIO_API_KEY,
orderInfo: {
firstName: "Marc",
lastName: "Opaces",
email: "marc@example.com",
phone: "+1234567890",
countryCode: "HU",
city: "Budapest",
postalCode: "1111",
streetName: "Street Test",
streetNumber: "33",
courierCode: "packeta",
packetaBranchId: 123,
orderItems: [{ sku: "MY-SKU-55", quantity: 4 }],
},
}),
})
const data = await response.json()
console.log(data)
Python (requests)
import requests
import os
payload = {
"apiKey": os.environ["FULFILLIO_API_KEY"],
"orderInfo": {
"firstName": "Marc",
"lastName": "Opaces",
"email": "marc@example.com",
"phone": "+1234567890",
"countryCode": "HU",
"city": "Budapest",
"postalCode": "1111",
"streetName": "Street Test",
"streetNumber": "33",
"courierCode": "packeta",
"packetaBranchId": 123,
"orderItems": [{"sku": "MY-SKU-55", "quantity": 4}],
},
}
response = requests.post(
"https://wms.fulfillio.si/api/v1/orders",
json=payload,
)
print(response.json())
PHP (cURL)
<?php
$payload = json_encode([
"apiKey" => getenv("FULFILLIO_API_KEY"),
"orderInfo" => [
"firstName" => "Marc",
"lastName" => "Opaces",
"email" => "marc@example.com",
"phone" => "+1234567890",
"countryCode" => "HU",
"city" => "Budapest",
"postalCode" => "1111",
"streetName" => "Street Test",
"streetNumber" => "33",
"courierCode" => "packeta",
"packetaBranchId"=> 123,
"orderItems" => [["sku" => "MY-SKU-55", "quantity" => 4]],
],
]);
$ch = curl_init("https://wms.fulfillio.si/api/v1/orders");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Courier Selection
By default, Fulfillio resolves the courier from your courier routing configuration. You can optionally request a courier with courierCode.
Allowed values:
packetaglspost_si
If courierCode is omitted, invalid, or not available for your account, Fulfillio uses the default courier resolution.
GLS Dropoff Point Example
Use glsDropoffPointId when you want GLS delivery to a GLS dropoff point. You can find point IDs in the GLS Delivery Point finder with map.
{
"apiKey": "YOUR_API_KEY",
"orderInfo": {
"firstName": "Marc",
"lastName": "Opaces",
"email": "marc@example.com",
"phone": "+1234567890",
"countryCode": "HU",
"city": "Budapest",
"postalCode": "1111",
"streetName": "Street Test",
"streetNumber": "33",
"courierCode": "gls",
"glsDropoffPointId": "123456",
"orderItems": [
{
"sku": "MY-SKU-55",
"quantity": 4
}
]
}
}
Response
Success — 200 OK
{
"orderId": 1042,
"message": "Order added successfully"
}
Validation error — 400 Bad Request
Returned when required fields are missing or have invalid values. The body contains an array of Zod validation issues:
{
"message": "Bad request",
"issues": [
{
"code": "too_small",
"path": ["orderInfo", "orderItems"],
"message": "orderItems must have at least 1 element"
}
]
}
Invalid API key — 401 Unauthorized
{ "message": "Unauthorized" }
Notes
courierCodeis optional. Use it only when you want to request a specific courier. Allowed values arepacketa,gls, andpost_si. If omitted, invalid, or unavailable for your account, default courier resolution is used.glsDropoffPointIdis optional and only used when the resolved courier is GLS. You can find point IDs in the GLS Delivery Point finder with map.- Unknown SKUs do not reject the order. If a SKU is not found in the warehouse system, the order item is still created but with no product linked. The item will appear in the app with just the raw SKU string and will require manual resolution. Always verify your SKUs are registered in Fulfillio before submitting orders in production.
- The
packetaBranchIdis optional — if omitted, the system will attempt to auto-resolve a Packeta branch based on the destination country and your courier configuration. Provide it explicitly when you need to target a specific branch. - For carrier PUDO delivery, you must also supply
carrierPickupPointCode. See carrier PUDOs. billingInfois optional. Include it only when you need invoicing or VAT data forwarded to e-Računi.
Next: Field Reference →