curl
curl -O -J https://api.urbnbox.com/api/vendor/v1/orders/csv-templateimport requests
resp = requests.get('https://api.urbnbox.com/api/vendor/v1/orders/csv-template')
with open('urbnbox-orders-template.csv', 'wb') as f:
f.write(resp.content)
print('Template saved.')const fs = require('fs');
const https = require('https');
https.get('https://api.urbnbox.com/api/vendor/v1/orders/csv-template', (res) => {
res.pipe(fs.createWriteStream('urbnbox-orders-template.csv'));
res.on('end', () => console.log('Template saved.'));
});<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://portal.urbnbox.io/api/vendor/v1/orders/csv-template",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://portal.urbnbox.io/api/vendor/v1/orders/csv-template"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://portal.urbnbox.io/api/vendor/v1/orders/csv-template")
.asString();require 'uri'
require 'net/http'
url = URI("https://portal.urbnbox.io/api/vendor/v1/orders/csv-template")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyexternal_reference,client_name,client_phone,description,quantity,unit_price_kes,pickup_type
ORD-001,Jane Doe,0712345678,Blue hoodie size M,2,1500,delivery
ORD-002,John Smith,0798765432,Running shoes size 42,1,4500,lockerDelivery orders
Download orders CSV template
Returns urbnbox-orders-template.csv — a pre-formatted CSV with correct headers and two example rows. No authentication required. Fill it in, then POST to /api/vendor/v1/orders/import-csv.
Column order (do not change):
| # | Column | Required | Notes |
|---|---|---|---|
| 1 | external_reference | Yes | Your order ID — used for idempotency |
| 2 | client_name | Yes | Recipient full name |
| 3 | client_phone | Yes | Kenyan number (07xx or +254xx) |
| 4 | description | Yes | Item description |
| 5 | quantity | Yes | Positive integer |
| 6 | unit_price_kes | Yes | Price in KES, e.g. 1500 |
| 7 | pickup_type | Yes | delivery or locker |
Example file contents:
external_reference,client_name,client_phone,description,quantity,unit_price_kes,pickup_type
ORD-001,Jane Doe,0712345678,Blue hoodie size M,2,1500,delivery
ORD-002,John Smith,0798765432,Running shoes size 42,1,4500,locker
GET
/
api
/
vendor
/
v1
/
orders
/
csv-template
curl
curl -O -J https://api.urbnbox.com/api/vendor/v1/orders/csv-templateimport requests
resp = requests.get('https://api.urbnbox.com/api/vendor/v1/orders/csv-template')
with open('urbnbox-orders-template.csv', 'wb') as f:
f.write(resp.content)
print('Template saved.')const fs = require('fs');
const https = require('https');
https.get('https://api.urbnbox.com/api/vendor/v1/orders/csv-template', (res) => {
res.pipe(fs.createWriteStream('urbnbox-orders-template.csv'));
res.on('end', () => console.log('Template saved.'));
});<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://portal.urbnbox.io/api/vendor/v1/orders/csv-template",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://portal.urbnbox.io/api/vendor/v1/orders/csv-template"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://portal.urbnbox.io/api/vendor/v1/orders/csv-template")
.asString();require 'uri'
require 'net/http'
url = URI("https://portal.urbnbox.io/api/vendor/v1/orders/csv-template")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyexternal_reference,client_name,client_phone,description,quantity,unit_price_kes,pickup_type
ORD-001,Jane Doe,0712345678,Blue hoodie size M,2,1500,delivery
ORD-002,John Smith,0798765432,Running shoes size 42,1,4500,lockerResponse
200 - text/csv
CSV template file — save and open in Excel or Google Sheets
The response is of type string.