DotOne API Implementation Guide

Connect your own software to DotOne. Send sales orders, invoices, proforma invoices, purchase orders, customers and leads, with the columns your industry uses and the exact reply to expect for each call.

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.
DocumentURLKey
Sales ordersPOST /api/v1/external/sales-ordersOrder key
Invoices/api/v1/sales/invoicesStaff key
Proforma invoices/api/v1/sales/estimatesStaff key
Purchase orders/api/v1/purchase/ordersStaff key
Customers/api/v1/crm/customersStaff key
Leads/api/v1/crm/leadsStaff 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.

HeaderValueNotes
X-API-KEYdk_xxxxxxxxKey ID. Safe to show in logs.
X-API-SECRETyour secretKeep 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.

HeaderValueNotes
X-API-Keydk_xxxxxxxx_yoursecretThe whole key. Authorization: ApiKey dk_xxxxxxxx_yoursecret is also accepted.
ScopeAllows
readGET calls: lists and single records.
writePOST, 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.

HTTPCodeMeaningWhat to do
200Read, update or delete done. Purchase orders, customers and leads also reply 200 when created.Read data.
201Invoice or proforma invoice created.Store data.id against your record.
400errorA business rule refused the record, such as a date outside the open financial year.Read error.message, fix and resend.
401unauthorizedKey missing, wrong, revoked or expired.Check the header and the panel URL.
403forbiddenThe key lacks the scope, or its staff member lacks the permission.Add the scope or the permission.
404Record or panel not found.Check the id and the URL.
409Duplicate: a taken invoice number, or a lead that already exists.Use the existing record.
422validation_errorA 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

ColumnRequiredMeaningAlso accepted
order_numberYesYour order number. Becomes the DotOne sales order code.sales_order_code, po_number, purchase_order_number
order_dateRecommendedDate as YYYY-MM-DD. Today when left out.
seller_gstinRecommendedGSTIN of the selling company. Decides which company saves the order.company_gstin, seller_gst
seller_companyWithout GSTINSelling company name. Case, punctuation and Pvt/Ltd are ignored.seller_name, seller
external_po_numberOptionalA separate PO number. The order number when left out.
priorityOptionalDefault priority for the lines.
termsOptionalTerms text for the order.
total_qty, total_valueOptionalYour own totals, kept for cross-checking.external_total_qty, external_total_value
formatOptionalstandard 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.

ColumnRequiredMeaningAlso accepted
client_idOptionalDotOne customer id, sent on the order. Matched first.
customer.nameYesCustomer company name. Needed to create a new customer.company, customer_name
customer.gstinRecommendedFinds the customer first; its first two digits set the state.gst_number, vat
customer.codeOptionalYour customer code.customer_code, client_code
customer.state_codeWithout GSTINTwo-digit GST state code, such as 09 Uttar Pradesh or 06 Haryana. Sets CGST+SGST or IGST.gst_state_code
customer.phoneOptionalUsed only when DotOne creates a new customer.phonenumber, mobile
customer.email, address, city, state, zipOptionalUsed only when DotOne creates a new customer.street; pincode, pin

Lines

Send the lines in items. products is also accepted.

ColumnRequiredMeaningAlso accepted
item_idOptionalDotOne item id. Matched first.
item_codeRecommendedYour item code.product_code, sku, code
item_nameYesItem name. Needed to create a new item.product, item, name, description
qtyYesQuantity, more than zero.quantity, order_qty
rateYesRate per unit before tax. When left out or zero, the price set in DotOne is used.unit_price, rate_per_unit
unitOptionalUnit such as Nos or Sheet.uom, item_unit
hsnOptionalHSN code.hsn_code, hs_code
discount_percentOptionalLine discount in percent.discount
tax_percentOptionalTax rate in percent.gst_percent, tax_rate
brandOptionalBrand name or DotOne brand id.brand_id
estimated_deliveryOptionalExpected delivery date.
priorityOptionalPriority of this line.
remarksOptionalNote for the line.remark, bottleneck_notes
line_totalOptionalLine 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.

ColumnRequiredMeaningAlso accepted
heightYesSheet length.item_height, length
widthYesSheet width.item_width
thicknessYesThickness.item_thickness
size_unitRecommendedUnit 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
gradeOptionalGrade, such as BWP or MR.
sqft_rateOptionalRate per square foot. When no rate is sent, the rate is worked out as this rate times the sheet area.rate_per_sqft
assembled_qtyOptionalTotal 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 sentOrder is saved in
GSTIN or name of the company whose panel you call, or no sellerThat company
GSTIN or name of a linked companyThe linked company's panel; the reply adds panel with that panel's name
Any other GSTIN or nameRefused with 400

Inside the company, DotOne matches in this order

WhatMatched by (first match wins)If nothing matches
Orderorder_number for the same customerNew sales order; a re-sent order updates it
CustomerDotOne client_id, GSTIN, customer code, then exact nameNew customer is created
ItemDotOne item_id, item code, then exact item nameNew item is created

Names match exactly, never by "contains", so an order is never attached to the wrong product.

Order replies and errors

HTTPMeaningWhat to do
201Order createdStore sales_order_code and id against your order.
200Order updated, or a bulk call finishedFor bulk, read results order by order.
400Order refused: missing column, size or unknown sellerFix the order and send it again.
401Key ID or secret missing or wrongCheck both headers.
403The order API is switched off for that company, or the key is not an order keyContact DotOne.
502A linked company's panel was unavailableRetry after a few minutes.
524The call ran longer than 100 secondsSend fewer orders per call; resending is safe.

Reply columns

ColumnMeaning
statustrue when the order was saved. In a bulk reply, true only when no order failed.
messageSales order created, Sales order updated, or the reason it was refused.
idDotOne id of the sales order.
sales_order_code, order_number, external_po_numberThe order number as saved.
format, template_keystandard or dimensional: how the lines were read.
client_idDotOne id of the customer the order was saved against.
customer_createdtrue when a new customer was created for this order.
items_createdNames of the items that were created for this order.
panelPresent only when the order was saved in a linked company.

Messages you may see

MessageCause
order_number is requiredNo order number was sent.
items array is required and must contain at least one lineNo lines were sent.
qty must be greater than zero on line NA line has no quantity.
item_code or item_name is required on line NA line names no item.
item_id X not found on line NThe 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 itThe GSTIN or code is unknown and no name was sent.
client_id X is not an active customerThe DotOne customer id is wrong or inactive.
Height is required on line N for dimensional ordersA size is missing. The same message exists for Width and Thickness.
Unknown seller GSTIN X: it is neither this company nor a linked companyThe seller GSTIN matches none of your companies.
Unknown seller company 'X': send seller_gstin, or the exact company nameThe seller name matches none of your companies.
Customer account is blockedCredit control has blocked this customer in DotOne.
At most 200 orders per call; send the rest in the next callA 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.

  1. Pick a date range, starting with April, the first month of the financial year.
  2. Read that range's orders, oldest first.
  3. Post them to the bulk URL in calls of 50. A month of 230 orders is 5 calls: 50, 50, 50, 50, 30.
  4. Save each call's results, and note every failed order with its message.
  5. Repeat month by month up to today.
  6. Fix the failed orders and send only those again.
  7. 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.

MethodURLDoes
GET/api/v1/sales/invoicesList invoices
POST/api/v1/sales/invoicesCreate 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

ColumnRequiredMeaning
clientidYesDotOne customer id (userid in the customer reply).
dateYesInvoice date. Must fall in the open financial year.
itemsYesAt least one line.
numberOptionalInvoice number. Leave out to take the next number in the company's series. A taken number is refused with 409.
duedateOptionalDue date. Replaced by the customer's payment terms when the customer has them.
currencyOptionalCurrency id. 0 or left out means the company's base currency.
estimate_idOptionalId of the proforma invoice this invoice bills.
discount_percent, discount_total, discount_typeOptionalDiscount on the whole invoice. discount_type is before_tax or after_tax.
adjustmentOptionalRound-off or other adjustment.
packing_charges, shipping_charges, other_chargesOptionalCharges added to the invoice.
billing_street, billing_city, billing_state, billing_zip, billing_countryOptionalBill-to address. The customer's address when left out.
include_shipping, shipping_street, shipping_city, shipping_state, shipping_zip, shipping_countryOptionalShip-to address. It sets the place of supply.
reference_no, reference_date, buyers_order_noOptionalYour references, such as the customer's PO number.
transportOptionalObject with transporter_name, vehicle_number, lr_number, dispatch_through, destination, distance.
clientnote, adminnote, termsOptionalNote for the customer, internal note, and terms.
sale_agent, project_idOptionalStaff id of the salesperson, and the project id.
tags, custom_fieldsOptionalTags, and custom field values as {field id: value}.
save_as_draftOptionaltrue saves a draft, which takes its number when published.

Line columns

ColumnRequiredMeaning
qtyYesQuantity.
rateYesRate per unit before tax.
descriptionRecommendedItem name as printed.
item_idRecommendedDotOne item id, so stock and reports follow the item.
taxesRecommendedList of taxes: [{"name": "CGST", "rate": 9}], or text such as "IGST|18".
unitOptionalUnit such as Nos or Kg.
hs_codeOptionalHSN or SAC code.
long_descriptionOptionalExtra description under the item name.
discount_rateOptionalLine discount in percent.
free_qtyOptionalFree quantity given with the line.
remarkOptionalNote for the line.
source_estimate_item_idOptionalId 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

FilterMeaning
page, per_pagePage number from 1, and rows per page up to 200. 25 when left out.
searchText to find in the number or customer.
clientidOne customer's invoices.
statusInvoice status. Repeat it to ask for several.
date_from, date_toInvoice date range.
sort, orderColumn to sort by, and asc or desc.

Proforma invoices

In DotOne a quotation and a proforma invoice are the same document. Send notify_inventory as 1 to save it as a proforma invoice, which also tells stores and production about the order. Without it the document is saved as a quotation.

MethodURLDoes
GET/api/v1/sales/estimates?proforma=trueList proforma invoices
POST/api/v1/sales/estimatesCreate a quotation or proforma invoice. Replies 201.
GET/api/v1/sales/estimates/{id}Read one with its lines
PUT/api/v1/sales/estimates/{id}Replace one
DELETE/api/v1/sales/estimates/{id}Delete one
POST/api/v1/sales/estimates/{id}/notify-inventoryTurn a quotation into a proforma invoice. It cannot be turned back.
POST/api/v1/sales/estimates/{id}/convert-to-invoiceMake the invoice from a proforma invoice. Replies 201.

Proforma invoice columns

ColumnRequiredMeaning
clientidYesDotOne customer id.
dateYesDocument date. Must fall in the open financial year.
itemsYesAt least one line. The line columns are the same as on an invoice.
notify_inventoryYes1 for a proforma invoice. 0 or left out for a quotation.
expirydateOptionalValid-until date.
numberOptionalDocument number. Leave out to take the next number. Quotations and proforma invoices share one series, and a taken number is refused with 422.
reference_noOptionalYour reference, such as the customer's PO number.
currencyOptionalCurrency id. 0 or left out means the base currency.
payment_termsOptionalPayment terms for this document.
discount_percent, discount_total, discount_type, adjustmentOptionalAs on an invoice.
billing_*, shipping_*, transportOptionalAddresses and transport, as on an invoice. include_shipping is 1 or 0 here.
production_type, production_assigned_toOptionalHow the order is produced, and the staff id it is assigned to.
clientnote, adminnote, terms, tags, custom_fieldsOptionalAs on an invoice.
save_as_draftOptionaltrue saves a draft.

The full reply carries the whole document, with its number, totals and the columns of your industry on each line.

List proforma invoices

This list pages with limit and offset, not page.

FilterMeaning
proformatrue for proforma invoices only.
limit, offsetRows per call up to 200 (25 when left out), and how many rows to skip.
client_idOne customer's documents. Note the underscore, unlike the invoice list.
statusStatus from 1 to 5. 1 is Draft.
date_from, date_toDocument date range.
search, numberText to find, or an exact document number.
sort_by, sort_dirSort column, such as date, number or total, and direction.

The reply's data holds total, limit, offset, a summary with total_amount and total_count, and the rows in data.data.

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.

MethodURLDoes
GET/api/v1/purchase/ordersList purchase orders
POST/api/v1/purchase/ordersCreate 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/vendorsList vendors, to find the vendor id

Purchase order columns

ColumnRequiredMeaning
vendorYesDotOne vendor id. The vendor must be active.
itemsYesThe lines.
order_dateRecommendedOrder date. Today when left out.
delivery_dateOptionalExpected delivery date.
pur_order_nameOptionalA short name for the order.
vendor_pur_order_numberOptionalThe vendor's own reference number.
days_owedOptionalPayment days, as text.
buyerOptionalStaff id of the buyer.
pur_requestOptionalId of the approved purchase request this order fulfils.
estimateOptionalId of the approved vendor quotation this order is based on.
currency, currency_rateOptionalCurrency id and exchange rate. The rate is needed for a foreign currency.
discount_percent, discount_total, discount_typeOptionalDiscount on the whole order.
shipping_fee, other_charges, adjustment, round_offOptionalCharges and adjustments.
shipping_address, shipping_city, shipping_state, shipping_zip, shipping_countryOptionalWhere the goods are delivered.
vendornote, terms, tags, custom_fieldsOptionalNote for the vendor, terms, tags and custom field values.

Line columns

ColumnRequiredMeaning
item_codeYesDotOne item id, as text. item_name can be sent instead. An item that is not in the item master is refused.
quantityYesQuantity, more than zero.
unit_priceYesPrice per unit before tax.
tax_selectRecommendedTaxes as text, such as ["CGST 9|9.00", "SGST 9|9.00"]. tax_name and tax_rate can be sent instead.
unit_idOptionalUnit id. The item's purchase unit when left out.
descriptionOptionalDescription for the line.
discount_pct, discount_moneyOptionalLine 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

FilterMeaning
page, per_pagePage number from 1, and rows per page up to 200.
vendorOne vendor's orders.
from_date, to_dateOrder date range.
delivery_from, delivery_toDelivery date range.
number, vendor_po, searchPO number, the vendor's reference, or free text.
approve_status, delivery_statusApproval and delivery state.
sort, directionSort 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.

MethodURLDoes
GET/api/v1/crm/customersList customers
POST/api/v1/crm/customersCreate 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

ColumnRequiredMeaning
companyYesCompany name. Letters and & . , ' - ( ) / only, no digits.
customer_category_idYesId of the customer category. customer_category with the category name is also accepted.
phonenumberYesExactly 10 digits.
cityYesCity, letters only.
stateYesState. Filled from the GSTIN when left blank and a valid GSTIN is sent.
zipYesPIN code, exactly 6 digits.
countryOptionalCountry id. The company's default country when left out.
vatRecommendedGSTIN. Checked for a valid format and for a state that matches.
pan_numberOptionalPAN.
addressOptionalStreet address.
client_codeOptionalYour customer code, digits only.
billing_street, billing_city, billing_state, billing_zip, billing_countryOptionalBill-to address.
shipping_street, shipping_city, shipping_state, shipping_zip, shipping_countryOptionalShip-to address.
payment_terms_days, credit_limitOptionalCredit days and credit limit.
default_currencyOptionalCurrency id.
websiteOptionalWebsite.
with_contact, firstname, lastname, email, contact_phonenumberOptionalSend with_contact as true to create the main contact person with the customer.
tags, custom_fieldsOptionalTags, 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

FilterMeaning
page, per_pagePage number from 1, and rows per page up to 200.
searchText to find in the name, phone or GSTIN.
activeActive or inactive customers.
city, state, zip, country, phonenumberMatch on that column.
group_idCustomers in one group.
sort, orderSort 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.

MethodURLDoes
GET/api/v1/crm/leadsList leads
POST/api/v1/crm/leadsCreate 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

ColumnRequiredMeaning
companyYesCompany name. One lead per company per city.
sourceYesId of the lead source, such as Website or IndiaMART.
statusYesId of the lead status.
descriptionYesRemarks: what the enquiry is about.
address, city, state, countryYesAddress, with country as the country id.
nameRecommendedContact person.
phonenumberRecommendedExactly 10 digits when sent.
emailRecommendedEmail address.
zipOptionalPIN code, 6 digits in India.
title, websiteOptionalJob title and website.
vatOptionalGSTIN. Must be valid and not on another lead.
assignedOptionalStaff id the lead is assigned to.
lead_valueOptionalExpected value of the deal.
customer_category_idOptionalId of the customer category.
territory_id, zone_id, sales_area_idOptionalSales territory, zone and area ids.
is_publicOptionalWhether all staff can see the lead.
tags, custom_fieldsOptionalTags, 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

FilterMeaning
page, per_pagePage number from 1, and rows per page up to 200.
searchText to find.
status, source, assignedMatch on that id. Repeat one to ask for several.
viewA ready-made view: my, not_assigned, created_today, followup_due, hot, cold, lost or junk.
sort, orderSort 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 Laminatesplywood_laminatesSheet size, area, rate per sq ft, grade
ACP / Aluminium Composite PanelsacpSheet size on sales orders
Adhesive Tapesadhesive_tapesPerforation
Garment Labels, Tags and Trimstex_labelsDesign, size-wise pieces, cartons
Spinning Mill (Yarn)tex_spinningYarn count, lots, bags and weights
Technical Textiles and Non-Woventex_technicalGSM, width, rolls, medical batch
Textile Printingtex_printingDesign, colourway, rolls
Other textile segments (denim, weaving, knitting, dyeing, garment and more)tex_*Customer brand; purchase specs for some
Oil Seed and Feedoil_seed_feedBroker, bags and quality terms on purchase orders
FMCG, Chemicals, Metals, Pharma, Automotive, Packaging, Generic and othersThe 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.

ColumnMeaning
alt_qty, consumption_unit, unit_conversion_factorA second quantity in another unit, such as boxes beside pieces, with its unit and conversion factor.
packStandard packing, as text.
hs_codeHSN or SAC code.
remarkNote for the line.
mo_typeHow production treats the quantity: FIXED_QTY, FLEXIBLE_QTY, COMPENSATE_QTY or TRIAL_RND.
toleranceAllowed quantity tolerance, in percent.

Plywood, laminates, doors and ACP

DocumentColumnRequiredMeaning
Sales order lineheight, width, thicknessYesSheet size. See Sizes for sheet goods.
Sales order linesize_unit, grade, sqft_rate, assembled_qtyOptionalUnit, grade, rate per sq ft and total area.
Proforma invoice and invoice linesize_length, size_width, size_heightOptionalSheet length, width and height. length, width and height are also accepted.
Proforma invoice lineassembled_qtyOptionalTotal area. Worked out from length, width and quantity when both sizes are sent.
Proforma invoice and invoice linesqft_rateOptionalRate per sq ft, printed for reference. The line is billed on rate.

Adhesive tapes

DocumentColumnMeaning
Proforma invoice and invoice lineperforationPerforation value. Kept apart from the tape size.
Proforma invoice and invoice lineperforation_unit_idId of the unit the perforation is measured in.

Garment labels, tags and trims

DocumentColumnMeaning
Proforma invoicelabel_detailsOrder terms: factory_po_no, brand_order_ref, moq, wastage_pct, delivery_days, advance_pct.
Proforma invoice linelabel_detailsOne 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 linelabel_details.kind, charge_typekind is design or charge. A charge line needs charge_type: artwork, sample, plate or setup.
Invoicelabel_invoicefactory_po_no, end_brand, pi_ref.
Invoice linelabel_invoiceOrdered 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)

DocumentColumnMeaning
Proforma invoiceyarn_detailsyarn_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.
Invoiceyarn_annexureUp to 200 rows of yarn_lot, yarn_count, bags, gross_kg, net_kg. Net weight cannot be more than gross.
Invoice lineyarn_wastetrue marks a waste sale. The line then needs its own hs_code.

Technical textiles and non-woven

DocumentColumnMeaning
Proforma invoicetechtex_detailsspec_no, gsm, width with width_unit (cm, mm, m or inch), treatment, pricing_basis (kg or sqm), basis_rate, test_standard.
Invoicetechtex_rollsUp to 500 rolls of item_id, batch_no, roll_no, width_mm, length_m, net_kg, gross_kg.
Invoice linetechtex_medicalbatch_no, expiry_date, licence_no. Kept only for items in the medical group.

Textile printing

DocumentColumnMeaning
Proforma invoiceprinting_detailsdesign, colourway, no_of_colours, rate_per_metre, strike_off_ref.
Invoiceprinting_rollsUp to 500 rolls. Each needs design, colourway, roll_no and length_m, and a roll number can appear once.
Invoice lineprinting_job_worktrue 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

DocumentColumnMeaning
Proforma invoiceclient_brand_idId of the customer's brand the order is for.
Proforma invoice linehs_codeDigits only. Letters, spaces or symbols are refused with 422.
Purchase ordervendor_brand_idId of the vendor's brand.
Purchase ordertrim_quality_standardQuality standard for labels: OEKO-TEX, REACH or OEKO-TEX + REACH.
Purchase order linetrim_spec, trim_alt_qtyThe 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:

IndustryItem boughtColumns in `trim_spec` (* required)
Garment labelsYarnshade_no*, denier*, filament
Garment labelsRibbonshade_no*, width_mm*
Garment labelsBoardgsm*, sheet_size
Spinning millCottonvariety*, staple_mm*, mic*, rate_per_candy. Bales in trim_alt_qty are required, and the line unit must be Kg.
Spinning millPolyester or viscose fibrefibre_type*, denier*, cut_length_mm*
Textile printingPigmentpigment_name*, shade*
Textile printingThickenerthickener_name*, grade
Textile printingScreensscreen_type*, mesh_count*, width_size*
Technical textilesPolymer and additivesmaterial_type*, grade, shade
DenimYarnyarn_type*, count*, spandex_denier
DenimIndigo and chemicalschemical_type*, strength, colour_index

Oil seed and feed: purchase orders

These columns are sent flat on the purchase order, beside the common ones.

WhereColumnMeaning
Orderbroker_name, broker_firm, broker_gst_no, broker_pan, broker_phoneThe broker. broker_id picks a saved broker.
Orderbrokerage_type, brokerage_rateHow brokerage is charged: rs_per_qtl, per_bag, per_tonne or percent, and the rate.
Orderbrokerage_paid_by, brokerage_gst_percent, brokerage_amountWho pays (buyer, seller or split), GST on brokerage (18 when left out), and the amount, worked out when left out.
Orderweight_unitqtl or mt.
Orderqc_std, analysis_conditions, analysis_attachedQuality standards as {parameter: percent}, the analysis terms, and whether an analysis report is attached.
Orderpo_formatstandard, or bardana for an order of bags.
Orderbardana_size, bardana_colour, bardana_quality, bardana_delivery_days, bardana_delivery_basisBag details when po_format is bardana.
Lineqty_bags, bags_min, bags_max, qty_minNumber of bags and the agreed minimum and maximum.
Lineline_colour, printing_chargesBag colour and printing charges.

What comes back

ReadingIndustry columns in the reply
An invoice or proforma invoiceEach 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, textileslabel_details, yarn_details, techtex_details or printing_details, for the company's own segment.
An invoice, textileslabel_invoice, yarn_annexure, techtex_rolls or printing_rolls, with their totals, for the company's own segment.
A purchase orderLines 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 pushedThe 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.

Ready to connect your software to DotOne?

Ask for your API key, or see the summary of every DotOne API.