---
title: "Generate waybill"
method: GET
path: "/{countryCode}/2.0/reports/waybill"
tags: ["Order API"]
---

# Generate waybill

`GET /{countryCode}/2.0/reports/waybill`

Generates a waybill for an order.

You can generate a waybill only for an order that is successfully processed. After an order creation request is accepted by the order creation endpoint, the order goes into a queue for further processing. 
When it's fully processed, the platform generates a Pending Pickup webhook (see [Sample webhook payloads](#section/Receive-a-webhook/Sample-webhook-payloads)). This webhook gives your system an indication that a waybill can be generated.

### How to request access
By default, Ninja Van doesn't grant the permission to use the waybill generation endpoint to any shipper, even in the sandbox environment. To request access, take these steps:

1. Review the [Integration requirements](#section/Introduction/Integration-requirements).
2. Send an email to [developer support](#section/Introduction/Contact-information).

## Path parameters

- `countryCode` 'SG' | 'MY' | 'TH' | 'ID' | 'VN' | 'PH' | 'MM', required

## Query parameters

- `tids` string, required
- `h` integer
- `orientation` 'portrait' | 'landscape'

## Headers

- `Authorization` string, required

## Response `200`

Waybill successfully generated. A PDF file will be returned in the response.

## Other responses

- `400` — Waybill wasn't generated because of an invalid request.

---

[API](https://skmtc.net/ninjavan/apis/ninja-van-api.md) · [All operations](https://skmtc.net/ninjavan/apis/ninja-van-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ninjavan/ninja-van-api/versions/9096adaf76a2/schema)
