DocBridge Document API — request payload & integration reference for sale orders, sales, purchases and returns, plus the outbox and inbox document feeds.
All documents are sent to a single endpoint, and read back from the outbox and inbox endpoints. Your X-Organization-Id and Basic-auth credentials are shared during onboarding. Request access →
Introduction
The DocBridge Document API lets your application create and send business documents — sale orders, sales, purchases and returns — to BUSY through DocBridge. Every send request is a JSON POST to the same endpoint; the document_type decides which document is created.
Two read-only endpoints complete the loop: outbox lists the documents you have sent, and inbox lists the documents you have received.
This documentation is intended for developers and integration teams implementing DocBridge integrations.
Unique organization ID provided by the integrating organization.
Authorization
Basic (Base64)
Content-Type
application/json — required on POST requests only.
Endpoints
POST https://docbridge.bignext.in/api/documents/send/
GET https://docbridge.bignext.in/api/documents/outbox
GET https://docbridge.bignext.in/api/documents/inbox
Authentication
Authorization Rule: Basic (Base64) — use Basic Authentication with the required credentials encoded using Base64 (Username:Password).
Defines the JSON request structure used by DocBridge for creating or sending a Sale Order document. The request uses the standard envelope containing document_type, receiver and payload; the Sale Order business data is contained inside the payload object.
Integration Constants
Parameter
Value / Rule
document_type
sale_order
receiver
8bb8dd87-3dce-4f02-a6cc-9ef7d84056f2
transaction_type
12
1. Request Overview
Property
Type
Required
Description
document_type
string
Yes
Must be sale_order.
receiver
UUID / string
Yes
Fixed receiver ID for the integration.
payload
object
Yes
Contains the complete Sale Order header and item-level data.
Defines the JSON request structure used by DocBridge for creating or sending a Sale (sales invoice) document. The request uses the standard envelope containing document_type, receiver and payload; the Sale business data is contained inside the payload object.
Integration Constants
Parameter
Value / Rule
document_type
sale
receiver
8bb8dd87-3dce-4f02-a6cc-9ef7d84056f2
transaction_type
9
1. Request Overview
Property
Type
Required
Description
document_type
string
Yes
Must be sale.
receiver
UUID / string
Yes
Fixed receiver ID for the integration.
payload
object
Yes
Contains the complete Sale header and item-level data.
Defines the JSON request structure used by DocBridge for creating or sending a Sale Return document. The request uses the standard envelope containing document_type, receiver and payload; the Sale Return business data is contained inside the payload object.
Integration Constants
Parameter
Value / Rule
document_type
sale_return
receiver
8bb8dd87-3dce-4f02-a6cc-9ef7d84056f2
transaction_type
3
1. Request Overview
Property
Type
Required
Description
document_type
string
Yes
Must be sale_return.
receiver
UUID / string
Yes
Fixed receiver ID for the integration.
payload
object
Yes
Contains the complete Sale Return header and item-level data.
Defines the JSON request structure used by DocBridge for creating or sending a Purchase Order document. The request uses the standard envelope containing document_type, receiver and payload; the Purchase Order business data is contained inside the payload object.
Integration Constants
Parameter
Value / Rule
document_type
purchase_order
receiver
8bb8dd87-3dce-4f02-a6cc-9ef7d84056f2
transaction_type
13
1. Request Overview
Property
Type
Required
Description
document_type
string
Yes
Must be purchase_order.
receiver
UUID / string
Yes
Fixed receiver ID for the integration.
payload
object
Yes
Contains the complete Purchase Order header and item-level data.
2. Purchase Order Payload Fields
Field
Type
Required
Description
remarks
string
No
General remarks associated with the Purchase Order.
Defines the JSON request structure used by DocBridge for creating or sending a Purchase (purchase invoice) document. The request uses the standard envelope containing document_type, receiver and payload; the Purchase business data is contained inside the payload object.
Integration Constants
Parameter
Value / Rule
document_type
purchase
receiver
8bb8dd87-3dce-4f02-a6cc-9ef7d84056f2
transaction_type
2
1. Request Overview
Property
Type
Required
Description
document_type
string
Yes
Must be purchase.
receiver
UUID / string
Yes
Fixed receiver ID for the integration.
payload
object
Yes
Contains the complete Purchase header and item-level data.
Location / branch / warehouse associated with the purchase.
transaction_date
date string
Yes
Transaction/bill date in YYYY-MM-DD format.
transaction_type
integer
Yes
Transaction type code. Value for Purchase is 2.
transaction_number
string
Yes
Unique transaction/bill number.
transaction_tax_type
string
Yes
Tax classification. Example: Central-ItemWise.
transaction_series_name
string
Yes
Transaction series under which the purchase is recorded.
3. Item Entry Structure11 fields · each object in item_entries is one item line
#
Field
Type
Required
Description
1
serial_no
integer
Yes
Sequential item line number.
2
item_name
string
Yes
Name of the item/product being billed.
3
quantity
number
Yes
Quantity billed.
4
list_price
number
Yes
List price of the item.
5
discount_percent
number
No
Discount percentage applied to the item.
6
net_price
number
Yes
Net unit price.
7
net_amount
number
Yes
Net amount of the item line.
8
tax_rate
number
Yes
Applicable tax rate percentage.
9
tax_amount
number
Yes
Tax amount calculated for the item line.
10
description
string
No
Additional item-level description.
11
short_remarks
string
No
Short remarks associated with the item line.
4. Complete Purchase Request
Request body · purchase
{
"document_type": "purchase",
"receiver": "8bb8dd87-3dce-4f02-a6cc-9ef7d84056f2",
"payload": {
"remarks": "Material received against PO #PO-201",
"party_name": "BIGNEXT TECHNOLOGIES",
"item_entries": [
{
"serial_no": 1,
"item_name": "PG ALU TWIN F 10.0 SQ PVC INS 90M B",
"quantity": 16,
"list_price": 5213,
"discount_percent": 0,
"net_price": 5213,
"net_amount": 83408,
"tax_rate": 18,
"tax_amount": 15013.4,
"description": "#U2KLJP-2026-10-670",
"short_remarks": "Received in good condition"
}
],
"location_name": "LUDHIANA",
"transaction_date": "2026-10-07",
"transaction_type": 2,
"transaction_number": "#PB-310",
"transaction_tax_type": "Central-ItemWise",
"transaction_series_name": "Main"
}
}
Code Samples
POST/api/documents/send/ purchase_return
Purchase Return API
Defines the JSON request structure used by DocBridge for creating or sending a Purchase Return document. The request uses the standard envelope containing document_type, receiver and payload; the Purchase Return business data is contained inside the payload object.
Integration Constants
Parameter
Value / Rule
document_type
purchase_return
receiver
8bb8dd87-3dce-4f02-a6cc-9ef7d84056f2
transaction_type
10
1. Request Overview
Property
Type
Required
Description
document_type
string
Yes
Must be purchase_return.
receiver
UUID / string
Yes
Fixed receiver ID for the integration.
payload
object
Yes
Contains the complete Purchase Return header and item-level data.
2. Purchase Return Payload Fields
Field
Type
Required
Description
remarks
string
No
General remarks associated with the Purchase Return.
Returns the documents your organization has sent through DocBridge. Use it to confirm that a document created with the send endpoints was accepted, and to reconcile what has already been pushed to BUSY.
Unique organization ID provided by the integrating organization.
Authorization
Yes
Basic (Base64) — base64(USERNAME:PASSWORD). See Authentication.
No Content-Type header is needed — this is a read-only request with no body.
3. Query Parameters
Both parameters are optional filters. Omit them to return the full outbox; combine them to narrow the result further.
Parameter
Type
Required
Description
status
string
No
Returns only the sent documents currently in the given status. Accepted values are shared with your organization during onboarding.
transaction_type
integer
No
Returns only documents of the given transaction type code — for example 12 for a Sale Order. See Document Types for the full list.
Filtered request · outbox
# every sale order in the outbox
curl --location 'https://docbridge.bignext.in/api/documents/outbox?transaction_type=12' \
--header 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
--header 'Authorization: Basic base64(USERNAME:PASSWORD)'
# both filters together
curl --location 'https://docbridge.bignext.in/api/documents/outbox?status=STATUS_VALUE&transaction_type=12' \
--header 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
--header 'Authorization: Basic base64(USERNAME:PASSWORD)'
4. Complete Outbox Request
Without filters, the endpoint returns the full outbox.
Returns the documents your organization has received through DocBridge. Poll it to pick up incoming orders, invoices and returns sent to you by your trading partners.