What you'll need
- Your DotOne panel URL, for example
https://your-company.techdotbit.in. Every company has its own panel, and the URL decides which company's data a call reads and writes.
- An API key: an order key for pushing sales orders, or a staff key for the other documents. Both are explained under Authentication.
- The industry your company is set up for in DotOne. It decides which extra columns each document carries, such as sheet sizes for plywood or roll details for textiles.
- If you run more than one company on DotOne: the seller GSTIN of the company each sales order belongs to.
| Document | URL | Key |
| Sales orders | POST /api/v1/external/sales-orders | Order key |
| Invoices | /api/v1/sales/invoices | Staff key |
| Proforma invoices | /api/v1/sales/estimates | Staff key |
| Purchase orders | /api/v1/purchase/orders | Staff key |
| Customers | /api/v1/crm/customers | Staff key |
| Leads | /api/v1/crm/leads | Staff key |
The examples on this page use placeholder values. Replace the panel URL, keys, GSTINs, ids and items with your own.
Authentication
Use HTTPS only, and call the API from your server, never from a browser or mobile app. Every request body is JSON, sent with Content-Type: application/json.
Order key: for pushing sales orders
DotOne shares a key ID and a secret privately. Send them as two headers.
| Header | Value | Notes |
X-API-KEY | dk_xxxxxxxx | Key ID. Safe to show in logs. |
X-API-SECRET | your secret | Keep private. Shown once when the key is created. |
An order key works only on the sales order URLs. It is refused everywhere else.
Staff key: for invoices, proforma invoices, purchase orders, customers and leads
An administrator creates this key in the panel under Setup, Connect, API keys. The key is shown once. Send the whole key in one header.
| Header | Value | Notes |
X-API-Key | dk_xxxxxxxx_yoursecret | The whole key. Authorization: ApiKey dk_xxxxxxxx_yoursecret is also accepted. |
| Scope | Allows |
read | GET calls: lists and single records. |
write | POST, PUT, PATCH and DELETE calls. Give both scopes to a key that reads and writes. |
A staff key acts as one staff member and can never do more than that person can in the panel. To create invoices, for example, that staff member needs the create permission on invoices.
If a key leaks, revoke it in the panel or tell DotOne. A new one is issued within minutes. A revoked, expired or unknown key gets 401. A key made on one company's panel is unknown on every other panel.
Replies and errors
Check the HTTP status first. The sales order URLs reply with status and message; they are covered in their own section. Every other URL on this page replies in the shape below.
| HTTP | Code | Meaning | What to do |
| 200 | | Read, update or delete done. Purchase orders, customers and leads also reply 200 when created. | Read data. |
| 201 | | Invoice or proforma invoice created. | Store data.id against your record. |
| 400 | error | A business rule refused the record, such as a date outside the open financial year. | Read error.message, fix and resend. |
| 401 | unauthorized | Key missing, wrong, revoked or expired. | Check the header and the panel URL. |
| 403 | forbidden | The key lacks the scope, or its staff member lacks the permission. | Add the scope or the permission. |
| 404 | | Record or panel not found. | Check the id and the URL. |
| 409 | | Duplicate: a taken invoice number, or a lead that already exists. | Use the existing record. |
| 422 | validation_error | A column is missing or wrong. | error.details lists each column in loc, when the reply has it. |
Formats
- Dates are
YYYY-MM-DD. Date and time values are YYYY-MM-DD HH:MM:SS.
- Money and quantities come back as text, such as
"1234.56", so no decimals are lost.
- Unknown columns are ignored without an error on invoices, proforma invoices, customers and leads. Check the spelling of a column that seems to have no effect.
- Creating a record twice makes two records, except where this page says a duplicate is refused. Sales orders are the exception: resending an order updates it.
Send your first order
Post one sales order the moment it is made in your system. Missing customers and items are created for you.
A 201 reply means the order was created. Sending the same order_number for the same customer again updates that order, replies 200 with Sales order updated, and never creates a duplicate.
Order columns
Column names are case-sensitive. Where a row lists alternatives, any of them is accepted.
Order
| Column | Required | Meaning | Also accepted |
order_number | Yes | Your order number. Becomes the DotOne sales order code. | sales_order_code, po_number, purchase_order_number |
order_date | Recommended | Date as YYYY-MM-DD. Today when left out. | |
seller_gstin | Recommended | GSTIN of the selling company. Decides which company saves the order. | company_gstin, seller_gst |
seller_company | Without GSTIN | Selling company name. Case, punctuation and Pvt/Ltd are ignored. | seller_name, seller |
external_po_number | Optional | A separate PO number. The order number when left out. | |
priority | Optional | Default priority for the lines. | |
terms | Optional | Terms text for the order. | |
total_qty, total_value | Optional | Your own totals, kept for cross-checking. | external_total_qty, external_total_value |
format | Optional | standard or dimensional. Overrides the company's industry for this order. | order_format, industry_format |
Customer
Send customer as an object. The same columns are also accepted flat on the order, as customer_name, customer_gstin, customer_code, customer_phone, customer_email and customer_state_code.
| Column | Required | Meaning | Also accepted |
client_id | Optional | DotOne customer id, sent on the order. Matched first. | |
customer.name | Yes | Customer company name. Needed to create a new customer. | company, customer_name |
customer.gstin | Recommended | Finds the customer first; its first two digits set the state. | gst_number, vat |
customer.code | Optional | Your customer code. | customer_code, client_code |
customer.state_code | Without GSTIN | Two-digit GST state code, such as 09 Uttar Pradesh or 06 Haryana. Sets CGST+SGST or IGST. | gst_state_code |
customer.phone | Optional | Used only when DotOne creates a new customer. | phonenumber, mobile |
customer.email, address, city, state, zip | Optional | Used only when DotOne creates a new customer. | street; pincode, pin |
Lines
Send the lines in items. products is also accepted.
| Column | Required | Meaning | Also accepted |
item_id | Optional | DotOne item id. Matched first. | |
item_code | Recommended | Your item code. | product_code, sku, code |
item_name | Yes | Item name. Needed to create a new item. | product, item, name, description |
qty | Yes | Quantity, more than zero. | quantity, order_qty |
rate | Yes | Rate per unit before tax. When left out or zero, the price set in DotOne is used. | unit_price, rate_per_unit |
unit | Optional | Unit such as Nos or Sheet. | uom, item_unit |
hsn | Optional | HSN code. | hsn_code, hs_code |
discount_percent | Optional | Line discount in percent. | discount |
tax_percent | Optional | Tax rate in percent. | gst_percent, tax_rate |
brand | Optional | Brand name or DotOne brand id. | brand_id |
estimated_delivery | Optional | Expected delivery date. | |
priority | Optional | Priority of this line. | |
remarks | Optional | Note for the line. | remark, bottleneck_notes |
line_total | Optional | Line value. Quantity times rate when left out. | total |
Sizes for sheet goods
A company set up for plywood, laminates, doors, furniture or ACP takes dimensional orders, and every line needs its size. Without it the order is refused with Height is required on line 1 for dimensional orders. Companies in other industries need no size.
| Column | Required | Meaning | Also accepted |
height | Yes | Sheet length. | item_height, length |
width | Yes | Sheet width. | item_width |
thickness | Yes | Thickness. | item_thickness |
size_unit | Recommended | Unit of height and width: ft, in, mm, cm or m. When left out, a size of 100 or more is read as mm and a smaller one as feet. | feet, inch, metre |
grade | Optional | Grade, such as BWP or MR. | |
sqft_rate | Optional | Rate per square foot. When no rate is sent, the rate is worked out as this rate times the sheet area. | rate_per_sqft |
assembled_qty | Optional | Total area. Length times width times quantity when left out. | |
Routing and matching
When you run more than one company on DotOne, all of them can share one URL and one key. The seller GSTIN decides the company. The name is used only when no GSTIN is sent, and an unknown seller is refused rather than guessed.
| Seller sent | Order is saved in |
| GSTIN or name of the company whose panel you call, or no seller | That company |
| GSTIN or name of a linked company | The linked company's panel; the reply adds panel with that panel's name |
| Any other GSTIN or name | Refused with 400 |
Inside the company, DotOne matches in this order
| What | Matched by (first match wins) | If nothing matches |
| Order | order_number for the same customer | New sales order; a re-sent order updates it |
| Customer | DotOne client_id, GSTIN, customer code, then exact name | New customer is created |
| Item | DotOne item_id, item code, then exact item name | New item is created |
Names match exactly, never by "contains", so an order is never attached to the wrong product.
Order replies and errors
| HTTP | Meaning | What to do |
| 201 | Order created | Store sales_order_code and id against your order. |
| 200 | Order updated, or a bulk call finished | For bulk, read results order by order. |
| 400 | Order refused: missing column, size or unknown seller | Fix the order and send it again. |
| 401 | Key ID or secret missing or wrong | Check both headers. |
| 403 | The order API is switched off for that company, or the key is not an order key | Contact DotOne. |
| 502 | A linked company's panel was unavailable | Retry after a few minutes. |
| 524 | The call ran longer than 100 seconds | Send fewer orders per call; resending is safe. |
Reply columns
| Column | Meaning |
status | true when the order was saved. In a bulk reply, true only when no order failed. |
message | Sales order created, Sales order updated, or the reason it was refused. |
id | DotOne id of the sales order. |
sales_order_code, order_number, external_po_number | The order number as saved. |
format, template_key | standard or dimensional: how the lines were read. |
client_id | DotOne id of the customer the order was saved against. |
customer_created | true when a new customer was created for this order. |
items_created | Names of the items that were created for this order. |
panel | Present only when the order was saved in a linked company. |
Messages you may see
| Message | Cause |
order_number is required | No order number was sent. |
items array is required and must contain at least one line | No lines were sent. |
qty must be greater than zero on line N | A line has no quantity. |
item_code or item_name is required on line N | A line names no item. |
item_id X not found on line N | The DotOne item id does not exist. |
customer is required (name, GSTIN or customer code) | The order names no customer. |
Customer not found, and a name is needed to create it | The GSTIN or code is unknown and no name was sent. |
client_id X is not an active customer | The DotOne customer id is wrong or inactive. |
Height is required on line N for dimensional orders | A size is missing. The same message exists for Width and Thickness. |
Unknown seller GSTIN X: it is neither this company nor a linked company | The seller GSTIN matches none of your companies. |
Unknown seller company 'X': send seller_gstin, or the exact company name | The seller name matches none of your companies. |
Customer account is blocked | Credit control has blocked this customer in DotOne. |
At most 200 orders per call; send the rest in the next call | A bulk call was too large. |
Load this financial year's orders
Send the year one date range at a time, in batches of 50 orders. One call takes at most 200 orders, and a call longer than 100 seconds is cut off.
- Pick a date range, starting with April, the first month of the financial year.
- Read that range's orders, oldest first.
- Post them to the bulk URL in calls of 50. A month of 230 orders is 5 calls: 50, 50, 50, 50, 30.
- Save each call's
results, and note every failed order with its message.
- Repeat month by month up to today.
- Fix the failed orders and send only those again.
- Wait for each reply before the next call. Do not run calls in parallel.
A bulk call replies 200 even when some orders fail, so read failed and each entry in results.
Test first. Send 5 to 10 orders, with at least one for each of your companies, and ask DotOne to confirm them before loading the full year.
Invoices
Create and read sales invoices with a staff key. The customer must already exist in DotOne; send its id as clientid.
| Method | URL | Does |
GET | /api/v1/sales/invoices | List invoices |
POST | /api/v1/sales/invoices | Create an invoice. Replies 201. |
GET | /api/v1/sales/invoices/{id} | Read one invoice with its lines and payments |
PUT | /api/v1/sales/invoices/{id} | Replace an invoice |
DELETE | /api/v1/sales/invoices/{id} | Delete an invoice |
Invoice columns
| Column | Required | Meaning |
clientid | Yes | DotOne customer id (userid in the customer reply). |
date | Yes | Invoice date. Must fall in the open financial year. |
items | Yes | At least one line. |
number | Optional | Invoice number. Leave out to take the next number in the company's series. A taken number is refused with 409. |
duedate | Optional | Due date. Replaced by the customer's payment terms when the customer has them. |
currency | Optional | Currency id. 0 or left out means the company's base currency. |
estimate_id | Optional | Id of the proforma invoice this invoice bills. |
discount_percent, discount_total, discount_type | Optional | Discount on the whole invoice. discount_type is before_tax or after_tax. |
adjustment | Optional | Round-off or other adjustment. |
packing_charges, shipping_charges, other_charges | Optional | Charges added to the invoice. |
billing_street, billing_city, billing_state, billing_zip, billing_country | Optional | Bill-to address. The customer's address when left out. |
include_shipping, shipping_street, shipping_city, shipping_state, shipping_zip, shipping_country | Optional | Ship-to address. It sets the place of supply. |
reference_no, reference_date, buyers_order_no | Optional | Your references, such as the customer's PO number. |
transport | Optional | Object with transporter_name, vehicle_number, lr_number, dispatch_through, destination, distance. |
clientnote, adminnote, terms | Optional | Note for the customer, internal note, and terms. |
sale_agent, project_id | Optional | Staff id of the salesperson, and the project id. |
tags, custom_fields | Optional | Tags, and custom field values as {field id: value}. |
save_as_draft | Optional | true saves a draft, which takes its number when published. |
Line columns
| Column | Required | Meaning |
qty | Yes | Quantity. |
rate | Yes | Rate per unit before tax. |
description | Recommended | Item name as printed. |
item_id | Recommended | DotOne item id, so stock and reports follow the item. |
taxes | Recommended | List of taxes: [{"name": "CGST", "rate": 9}], or text such as "IGST|18". |
unit | Optional | Unit such as Nos or Kg. |
hs_code | Optional | HSN or SAC code. |
long_description | Optional | Extra description under the item name. |
discount_rate | Optional | Line discount in percent. |
free_qty | Optional | Free quantity given with the line. |
remark | Optional | Note for the line. |
source_estimate_item_id | Optional | Id of the proforma invoice line this line bills. |
GST in India. Name each tax head. A sale inside the state needs CGST and SGST at equal rates; a sale to another state needs IGST. A tax named plain GST is refused. The place of supply is the ship-to state, then the bill-to state, then the customer's state.
The full reply also carries status, status_label, currency, tags, custom_fields, transport_details and payments, plus the columns of your industry.
List invoices
| Filter | Meaning |
page, per_page | Page number from 1, and rows per page up to 200. 25 when left out. |
search | Text to find in the number or customer. |
clientid | One customer's invoices. |
status | Invoice status. Repeat it to ask for several. |
date_from, date_to | Invoice date range. |
sort, order | Column to sort by, and asc or desc. |
Purchase orders
The vendor and every item must already exist in DotOne. The PO number always comes from the company's own series and cannot be sent. Line columns here are named quantity and unit_price, not qty and rate.
| Method | URL | Does |
GET | /api/v1/purchase/orders | List purchase orders |
POST | /api/v1/purchase/orders | Create a purchase order. Replies 200. |
GET | /api/v1/purchase/orders/{id} | Read one with its lines |
PATCH | /api/v1/purchase/orders/{id} | Change only the columns you send |
DELETE | /api/v1/purchase/orders/{id} | Delete one |
GET | /api/v1/purchase/vendors | List vendors, to find the vendor id |
Purchase order columns
| Column | Required | Meaning |
vendor | Yes | DotOne vendor id. The vendor must be active. |
items | Yes | The lines. |
order_date | Recommended | Order date. Today when left out. |
delivery_date | Optional | Expected delivery date. |
pur_order_name | Optional | A short name for the order. |
vendor_pur_order_number | Optional | The vendor's own reference number. |
days_owed | Optional | Payment days, as text. |
buyer | Optional | Staff id of the buyer. |
pur_request | Optional | Id of the approved purchase request this order fulfils. |
estimate | Optional | Id of the approved vendor quotation this order is based on. |
currency, currency_rate | Optional | Currency id and exchange rate. The rate is needed for a foreign currency. |
discount_percent, discount_total, discount_type | Optional | Discount on the whole order. |
shipping_fee, other_charges, adjustment, round_off | Optional | Charges and adjustments. |
shipping_address, shipping_city, shipping_state, shipping_zip, shipping_country | Optional | Where the goods are delivered. |
vendornote, terms, tags, custom_fields | Optional | Note for the vendor, terms, tags and custom field values. |
Line columns
| Column | Required | Meaning |
item_code | Yes | DotOne item id, as text. item_name can be sent instead. An item that is not in the item master is refused. |
quantity | Yes | Quantity, more than zero. |
unit_price | Yes | Price per unit before tax. |
tax_select | Recommended | Taxes as text, such as ["CGST 9|9.00", "SGST 9|9.00"]. tax_name and tax_rate can be sent instead. |
unit_id | Optional | Unit id. The item's purchase unit when left out. |
description | Optional | Description for the line. |
discount_pct, discount_money | Optional | Line discount in percent or as an amount. |
The full reply also carries the lines, the totals and the approval state. A company with an approval rule saves the order as waiting for approval. Staff without permission to see purchase costs get the list without money columns.
List purchase orders
| Filter | Meaning |
page, per_page | Page number from 1, and rows per page up to 200. |
vendor | One vendor's orders. |
from_date, to_date | Order date range. |
delivery_from, delivery_to | Delivery date range. |
number, vendor_po, search | PO number, the vendor's reference, or free text. |
approve_status, delivery_status | Approval and delivery state. |
sort, direction | Sort column and direction. |
The reply's data holds items, total, page and per_page.
Customers
The customer's id is userid in the reply. Use it as clientid on invoices and proforma invoices.
| Method | URL | Does |
GET | /api/v1/crm/customers | List customers |
POST | /api/v1/crm/customers | Create a customer. Replies 200. |
GET | /api/v1/crm/customers/{id} | Read one |
PATCH | /api/v1/crm/customers/{id} | Change only the columns you send |
DELETE | /api/v1/crm/customers/{id} | Delete one |
Customer columns
| Column | Required | Meaning |
company | Yes | Company name. Letters and & . , ' - ( ) / only, no digits. |
customer_category_id | Yes | Id of the customer category. customer_category with the category name is also accepted. |
phonenumber | Yes | Exactly 10 digits. |
city | Yes | City, letters only. |
state | Yes | State. Filled from the GSTIN when left blank and a valid GSTIN is sent. |
zip | Yes | PIN code, exactly 6 digits. |
country | Optional | Country id. The company's default country when left out. |
vat | Recommended | GSTIN. Checked for a valid format and for a state that matches. |
pan_number | Optional | PAN. |
address | Optional | Street address. |
client_code | Optional | Your customer code, digits only. |
billing_street, billing_city, billing_state, billing_zip, billing_country | Optional | Bill-to address. |
shipping_street, shipping_city, shipping_state, shipping_zip, shipping_country | Optional | Ship-to address. |
payment_terms_days, credit_limit | Optional | Credit days and credit limit. |
default_currency | Optional | Currency id. |
website | Optional | Website. |
with_contact, firstname, lastname, email, contact_phonenumber | Optional | Send with_contact as true to create the main contact person with the customer. |
tags, custom_fields | Optional | Tags, and custom field values as {field id: value}. |
Duplicates are refused. A customer is not created when another customer already has the same GSTIN, the same phone number, or the same company name in the same city. The reply is 422 and names the column and the existing customer.
List customers
| Filter | Meaning |
page, per_page | Page number from 1, and rows per page up to 200. |
search | Text to find in the name, phone or GSTIN. |
active | Active or inactive customers. |
city, state, zip, country, phonenumber | Match on that column. |
group_id | Customers in one group. |
sort, order | Sort column and direction. |
The reply's data holds items, total, page and per_page.
Leads
Send enquiries from your website, marketplace or other software into the DotOne CRM. Any staff member's key can create leads.
| Method | URL | Does |
GET | /api/v1/crm/leads | List leads |
POST | /api/v1/crm/leads | Create a lead. Replies 200. |
GET | /api/v1/crm/leads/{id} | Read one |
PATCH | /api/v1/crm/leads/{id} | Change only the columns you send |
DELETE | /api/v1/crm/leads/{id} | Delete one |
Lead columns
| Column | Required | Meaning |
company | Yes | Company name. One lead per company per city. |
source | Yes | Id of the lead source, such as Website or IndiaMART. |
status | Yes | Id of the lead status. |
description | Yes | Remarks: what the enquiry is about. |
address, city, state, country | Yes | Address, with country as the country id. |
name | Recommended | Contact person. |
phonenumber | Recommended | Exactly 10 digits when sent. |
email | Recommended | Email address. |
zip | Optional | PIN code, 6 digits in India. |
title, website | Optional | Job title and website. |
vat | Optional | GSTIN. Must be valid and not on another lead. |
assigned | Optional | Staff id the lead is assigned to. |
lead_value | Optional | Expected value of the deal. |
customer_category_id | Optional | Id of the customer category. |
territory_id, zone_id, sales_area_id | Optional | Sales territory, zone and area ids. |
is_public | Optional | Whether all staff can see the lead. |
tags, custom_fields | Optional | Tags, and custom field values as {field id: value}. |
A company set up for textiles needs only company, name and phonenumber.
Duplicates are refused. A lead whose email or phone number is already on another lead gets 409 with code duplicate_lead. Treat that reply as "already in DotOne" and do not retry.
The ids for source, status and country are set per company. Ask DotOne for your list, or read them from the panel.
List leads
| Filter | Meaning |
page, per_page | Page number from 1, and rows per page up to 200. |
search | Text to find. |
status, source, assigned | Match on that id. Repeat one to ask for several. |
view | A ready-made view: my, not_assigned, created_today, followup_due, hot, cold, lost or junk. |
sort, order | Sort column and direction. Newest first when left out. |
The reply's data holds items, total, page and per_page.
Industry-wise columns
Each company's panel is set up for one industry, and that industry decides which extra columns its documents carry. Two companies in one group can therefore need different columns: a plywood company needs sheet sizes, a doors company does not.
- Every industry column is optional unless a table below marks it required.
- A block that belongs to another industry is ignored without an error, so sending it does no harm and has no effect.
- Columns you send come back with the same names when you read the document.
See which columns your company uses
Call this once with a staff key. The reply names the company's industry and which columns are switched on.
| Industry in DotOne | `pack_key` | Extra columns |
| Plywood and Laminates | plywood_laminates | Sheet size, area, rate per sq ft, grade |
| ACP / Aluminium Composite Panels | acp | Sheet size on sales orders |
| Adhesive Tapes | adhesive_tapes | Perforation |
| Garment Labels, Tags and Trims | tex_labels | Design, size-wise pieces, cartons |
| Spinning Mill (Yarn) | tex_spinning | Yarn count, lots, bags and weights |
| Technical Textiles and Non-Woven | tex_technical | GSM, width, rolls, medical batch |
| Textile Printing | tex_printing | Design, colourway, rolls |
| Other textile segments (denim, weaving, knitting, dyeing, garment and more) | tex_* | Customer brand; purchase specs for some |
| Oil Seed and Feed | oil_seed_feed | Broker, bags and quality terms on purchase orders |
| FMCG, Chemicals, Metals, Pharma, Automotive, Packaging, Generic and others | | The common columns only |
Any industry: common extra line columns
Accepted on invoice and proforma invoice lines for every company. Whether a column shows on screen and in print depends on the company's settings.
| Column | Meaning |
alt_qty, consumption_unit, unit_conversion_factor | A second quantity in another unit, such as boxes beside pieces, with its unit and conversion factor. |
pack | Standard packing, as text. |
hs_code | HSN or SAC code. |
remark | Note for the line. |
mo_type | How production treats the quantity: FIXED_QTY, FLEXIBLE_QTY, COMPENSATE_QTY or TRIAL_RND. |
tolerance | Allowed quantity tolerance, in percent. |
Plywood, laminates, doors and ACP
| Document | Column | Required | Meaning |
| Sales order line | height, width, thickness | Yes | Sheet size. See Sizes for sheet goods. |
| Sales order line | size_unit, grade, sqft_rate, assembled_qty | Optional | Unit, grade, rate per sq ft and total area. |
| Proforma invoice and invoice line | size_length, size_width, size_height | Optional | Sheet length, width and height. length, width and height are also accepted. |
| Proforma invoice line | assembled_qty | Optional | Total area. Worked out from length, width and quantity when both sizes are sent. |
| Proforma invoice and invoice line | sqft_rate | Optional | Rate per sq ft, printed for reference. The line is billed on rate. |
Adhesive tapes
| Document | Column | Meaning |
| Proforma invoice and invoice line | perforation | Perforation value. Kept apart from the tape size. |
| Proforma invoice and invoice line | perforation_unit_id | Id of the unit the perforation is measured in. |
Garment labels, tags and trims
| Document | Column | Meaning |
| Proforma invoice | label_details | Order terms: factory_po_no, brand_order_ref, moq, wastage_pct, delivery_days, advance_pct. |
| Proforma invoice line | label_details | One design: design_no, design_version, label_type, size_mm, fold_type, cut_type, pieces per size in qty_s, qty_m, qty_l, qty_xl, qty_xxl, and rate_per_1000. |
| Proforma invoice line | label_details.kind, charge_type | kind is design or charge. A charge line needs charge_type: artwork, sample, plate or setup. |
| Invoice | label_invoice | factory_po_no, end_brand, pi_ref. |
| Invoice line | label_invoice | Ordered pieces in ordered_s to ordered_xxl, delivered pieces in qty_s to qty_xxl, rate_per_1000, and cartons with carton_no, size, bundles, pieces_per_bundle. |
DotOne bills labels in thousands of pieces: it sets the line quantity to total pieces divided by 1,000, the unit to KPC and the rate to rate_per_1000. Total pieces must be a multiple of 10, and the cartons on an invoice line must add up to the delivered pieces.
Spinning mill (yarn)
| Document | Column | Meaning |
| Proforma invoice | yarn_details | yarn_count, blend, process (carded or combed), qty_kg, bags_cones, rate_per_kg, tolerance_pct. Printed on the document; totals still come from the lines. |
| Invoice | yarn_annexure | Up to 200 rows of yarn_lot, yarn_count, bags, gross_kg, net_kg. Net weight cannot be more than gross. |
| Invoice line | yarn_waste | true marks a waste sale. The line then needs its own hs_code. |
Technical textiles and non-woven
| Document | Column | Meaning |
| Proforma invoice | techtex_details | spec_no, gsm, width with width_unit (cm, mm, m or inch), treatment, pricing_basis (kg or sqm), basis_rate, test_standard. |
| Invoice | techtex_rolls | Up to 500 rolls of item_id, batch_no, roll_no, width_mm, length_m, net_kg, gross_kg. |
| Invoice line | techtex_medical | batch_no, expiry_date, licence_no. Kept only for items in the medical group. |
Textile printing
| Document | Column | Meaning |
| Proforma invoice | printing_details | design, colourway, no_of_colours, rate_per_metre, strike_off_ref. |
| Invoice | printing_rolls | Up to 500 rolls. Each needs design, colourway, roll_no and length_m, and a roll number can appear once. |
| Invoice line | printing_job_work | true marks print job-work. The line then needs a 6-digit SAC code starting with 99 in hs_code, such as 998821. |
All textile segments
| Document | Column | Meaning |
| Proforma invoice | client_brand_id | Id of the customer's brand the order is for. |
| Proforma invoice line | hs_code | Digits only. Letters, spaces or symbols are refused with 422. |
| Purchase order | vendor_brand_id | Id of the vendor's brand. |
| Purchase order | trim_quality_standard | Quality standard for labels: OEKO-TEX, REACH or OEKO-TEX + REACH. |
| Purchase order line | trim_spec, trim_alt_qty | The item's purchase specification as an object, and its second quantity such as cones, rolls or bales. |
The columns inside trim_spec depend on what is bought:
| Industry | Item bought | Columns in `trim_spec` (* required) |
| Garment labels | Yarn | shade_no*, denier*, filament |
| Garment labels | Ribbon | shade_no*, width_mm* |
| Garment labels | Board | gsm*, sheet_size |
| Spinning mill | Cotton | variety*, staple_mm*, mic*, rate_per_candy. Bales in trim_alt_qty are required, and the line unit must be Kg. |
| Spinning mill | Polyester or viscose fibre | fibre_type*, denier*, cut_length_mm* |
| Textile printing | Pigment | pigment_name*, shade* |
| Textile printing | Thickener | thickener_name*, grade |
| Textile printing | Screens | screen_type*, mesh_count*, width_size* |
| Technical textiles | Polymer and additives | material_type*, grade, shade |
| Denim | Yarn | yarn_type*, count*, spandex_denier |
| Denim | Indigo and chemicals | chemical_type*, strength, colour_index |
Oil seed and feed: purchase orders
These columns are sent flat on the purchase order, beside the common ones.
| Where | Column | Meaning |
| Order | broker_name, broker_firm, broker_gst_no, broker_pan, broker_phone | The broker. broker_id picks a saved broker. |
| Order | brokerage_type, brokerage_rate | How brokerage is charged: rs_per_qtl, per_bag, per_tonne or percent, and the rate. |
| Order | brokerage_paid_by, brokerage_gst_percent, brokerage_amount | Who pays (buyer, seller or split), GST on brokerage (18 when left out), and the amount, worked out when left out. |
| Order | weight_unit | qtl or mt. |
| Order | qc_std, analysis_conditions, analysis_attached | Quality standards as {parameter: percent}, the analysis terms, and whether an analysis report is attached. |
| Order | po_format | standard, or bardana for an order of bags. |
| Order | bardana_size, bardana_colour, bardana_quality, bardana_delivery_days, bardana_delivery_basis | Bag details when po_format is bardana. |
| Line | qty_bags, bags_min, bags_max, qty_min | Number of bags and the agreed minimum and maximum. |
| Line | line_colour, printing_charges | Bag colour and printing charges. |
What comes back
| Reading | Industry columns in the reply |
| An invoice or proforma invoice | Each line carries alt_qty, consumption_unit, unit_conversion_factor, pack, size_length, size_width, size_height, assembled_qty, hs_code, remark, mo_type, tolerance, perforation and sqft_rate. A column the company does not use is null. |
| A proforma invoice, textiles | label_details, yarn_details, techtex_details or printing_details, for the company's own segment. |
| An invoice, textiles | label_invoice, yarn_annexure, techtex_rolls or printing_rolls, with their totals, for the company's own segment. |
| A purchase order | Lines carry qty_bags, bags_min, bags_max, qty_min, line_colour and trim_spec. The order carries the broker and quality columns. |
| A sales order you pushed | The create reply does not echo the lines. Sizes show in the panel and on the sales order print. |
Go-live checklist
- Key ID and secret received privately from DotOne
- Every order carries
seller_gstin
- Every customer carries a GSTIN, or a
state_code when it has none
- Lines for sheet goods carry height, width and thickness
- Industry columns checked against your company's industry
- Test batch checked by DotOne in every company
- This year's orders loaded month by month, failures re-sent
- New orders sent in real time to the single-order URL
- Staff key has the
read and write scopes it needs, and its staff member has the permissions
- Customer, vendor, item, tax, lead source and lead status ids mapped from your system to DotOne
- Duplicate replies (
409 and 422) handled as "already in DotOne", not retried
Need help with a call? Send DotOne the URL, the order_number or record id, the time it was sent and the message from the reply, at support@techdotbit.com.