Send as invoice data
JSON Format (Recommended)โ
curl -X POST https://app.goroute.ai/peppol-api/api/v1/invoices \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"invoice": {
"document_type": "invoice",
"number": "OM-INV-2026-001",
"issue_date": "2026-02-08",
"due_date": "2026-03-10",
"currency": "OMR",
"seller": {
"name": "Al Haya Trading LLC",
"vat_number": "OM1234567890",
"peppol_id": "0248:OM1100012345",
"phone": "+968 24000000",
"address": {
"street": "Sultan Qaboos Street",
"city": "Muscat",
"postal_code": "100",
"country": "OM"
}
},
"buyer": {
"name": "Oman National Corp",
"vat_number": "OM9876543210",
"peppol_id": "0248:OM1100054321",
"address": {
"street": "Al Khuwair Road",
"city": "Muscat",
"postal_code": "200",
"country": "OM"
}
},
"lines": [
{
"description": "IT Consulting Services - January 2026",
"quantity": 160,
"unit": "HUR",
"unit_price": 25.000,
"tax_rate": 5,
"tax_category": "S"
}
],
"totals": {
"net_amount": 4000.000,
"tax_amount": 200.000,
"payable_amount": 4200.000
}
}
}'
Python (requests)โ
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://app.goroute.ai/peppol-api"
payload = {
"invoice": {
"document_type": "invoice",
"number": "OM-INV-2026-001",
"issue_date": "2026-02-08",
"currency": "OMR",
"seller": {
"name": "Al Haya Trading LLC",
"vat_number": "OM1234567890",
"peppol_id": "0248:OM1100012345",
"phone": "+968 24000000",
"address": {"street": "Sultan Qaboos Street", "city": "Muscat",
"postal_code": "100", "country": "OM"}
},
"buyer": {
"name": "Oman National Corp",
"vat_number": "OM9876543210",
"peppol_id": "0248:OM1100054321",
"address": {"street": "Al Khuwair Road", "city": "Muscat",
"postal_code": "200", "country": "OM"}
},
"lines": [
{
"description": "IT Consulting Services",
"quantity": 160,
"unit": "HUR",
"unit_price": 25.000,
"tax_rate": 5,
"tax_category": "S"
}
],
"totals": {
"net_amount": 4000.000,
"tax_amount": 200.000,
"payable_amount": 4200.000
}
}
}
response = requests.post(
f"{BASE_URL}/api/v1/invoices",
headers={"X-API-Key": API_KEY},
json=payload
)
result = response.json()
print(f"Transaction: {result['transaction_id']}")
print(f"Status: {result['status']}")
# On this path GoRoute renders the UBL, so a B2C invoice gets its
# QR code added for you.