Skip to Content
Bhakti BaazarDevelopers
API referenceDocuments

Download the tax invoice

GET
/orders/{orderId}/invoice

Scope: documents:read

A link to the invoice PDF, valid for an hour. The PDF shows the customer’s name and address, so this works only until 90 days after the order closes (410 CUSTOMER_DATA_EXPIRED). 409 INVOICE_NOT_READY until the invoice exists.

Authorization

sellerApiKey
headerAuthorizationBearer <bbsk_live_…>

A Seller API key, bbsk_live_…

Path Parameters

orderId*string

The order id (not the order number)

Formatuuid

Response Body

application/json
  1. response
url*string

Download link. Anyone holding it can read the file until it expires.

expiresAt*string
Formatdate-time
invoiceNumber*string
invoiceDate*string
Formatdate-time
Example Request
curl -X GET 'https://api.bhaktibaazar.com/seller-api/v1/orders/497f6eca-6276-4993-bfeb-53cbbbba6f08/invoice'
Example Response
{  "url": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "invoiceNumber": "BBSL-C-I-2612-000042",  "invoiceDate": "2019-08-24T14:15:22Z"}