نقلة
Docs menuGet a waybill request

GET Get a waybill request

العربية

One waybill request and its result.

GET /waybills/requests/{uuid}
Scope
waybills.create Sensitive Action
Full address
https://naqllah.com/api/apps/v1/waybills/requests/{uuid}
Rate limit
120 a minute per store, 1200 a minute across all stores
The merchant reads
Issue shipping waybills for orders through Naqllah carriers (the cost is taken from the store balance)

Request

Parameters

NameInTypeDescription
uuidrequired path string · uuid The request id as returned.

Samples

Each sample reads the access token from the environment variable NAQLLAH_ACCESS_TOKEN.

cURL
curl "https://naqllah.com/api/apps/v1/waybills/requests/3c9e1f20-8b6a-4d0e-9f51-2a7c4b8d6e10" \
  -H "Authorization: Bearer $NAQLLAH_ACCESS_TOKEN"
PHP
<?php
$ch = curl_init('https://naqllah.com/api/apps/v1/waybills/requests/3c9e1f20-8b6a-4d0e-9f51-2a7c4b8d6e10');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 10,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('NAQLLAH_ACCESS_TOKEN'),
        'Accept: application/json',
    ],
]);

$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

$json = json_decode($body, true);
if ($status >= 400) {
    throw new RuntimeException($json['error'] ?? 'http_' . $status);
}
$data = $json['data'];
Node.js
// Node.js 18+ (fetch is built in)
const res = await fetch('https://naqllah.com/api/apps/v1/waybills/requests/3c9e1f20-8b6a-4d0e-9f51-2a7c4b8d6e10', {
  headers: {
    Authorization: `Bearer ${process.env.NAQLLAH_ACCESS_TOKEN}`,
    Accept: 'application/json',
  },
});

const json = await res.json();
if (!res.ok) throw new Error(json.error);
const { data } = json;
Python
import os
import requests

res = requests.get(
    "https://naqllah.com/api/apps/v1/waybills/requests/3c9e1f20-8b6a-4d0e-9f51-2a7c4b8d6e10",
    headers={
        "Authorization": f"Bearer {os.environ['NAQLLAH_ACCESS_TOKEN']}",
        "Accept": "application/json",
    },
    timeout=10,
)

body = res.json()
if res.status_code >= 400:
    raise RuntimeError(body["error"])
data = body["data"]

Response

On success the answer is 200 with this body. The example uses sample data.

FieldTypeNotes
data object —
data.id string uuid
data.scope string —
data.status string one of running done failed refused
data.mode string one of auto notify conditions
data.reason string may be null
data.result object may be null
data.error string may be null
data.created_at string —
200 · JSON
{
    "data": {
        "id": "3c9e1f20-8b6a-4d0e-9f51-2a7c4b8d6e10",
        "scope": "waybills.create",
        "status": "done",
        "mode": "notify",
        "reason": null,
        "result": {
            "awb": "7781204512"
        },
        "error": null,
        "created_at": "2026-11-04 11:02:09"
    }
}

Errors

HTTPCodeMeaning
401invalid_tokenThe access token is invalid or expired.
401not_installedThe app is not installed on this store.
402payment_requiredThe app's subscription on this store is unpaid.
403app_suspendedThe app or the developer account is suspended.
403insufficient_scopeThe merchant has not granted this permission to the app.
404not_foundNot found.
429rate_limitedThe app is over its request limit. Try again shortly.

All error codes

Rate limits

120 requests a minute per store, and 1200 requests a minute for your app across all stores. Over the limit you get 429 with Retry-After. Every answer carries X-RateLimit-Limit and X-RateLimit-Remaining.

Try it

Fill in the request and see the answer this endpoint gives.

Mock Answers come from this page's examples and rules, in your browser. Nothing is sent to any store, and no token leaves this page. To call the real API, use the test store with your own token.

Trying needs JavaScript; the samples above work without it.

Version v1.0.0 Changelog Service status openapi-v1.json Support