Connect Bsale
Bsale is Drometra's first integration. Each business connects its own account, without sending keys by email, and Drometra reads the catalog, stock and customers to use them in orders and dispatches.
Un administrador conecta la cuenta
From the console, an administrator with two-step verification enters the company's RUT and a name for the connection. Drometra takes them to sign in to Bsale and, on return, checks that the Bsale account belongs to that same RUT. If it doesn't match, the authorization fails and nothing is created. The pending authorization expires after 10 minutes.
Behind it are POST /v1/integrations/bsale/authorizations and its /complete. The Bsale credential is stored encrypted and the API never returns it.
Elige qué se sincroniza
There are three streams: catalog (products and variants), stock (stock per branch) and customers (customers and contacts). Each one has its mapping, which says how each piece of data passes into Drometra, and is imported separately. The connection starts as read-only.
Lee lo sincronizado
Records are normalized and read by stream, paginated with after and limit, filtering by connection or searching with q. When a piece of Bsale data clashes with one in Drometra, it's kept as a conflict for you to review, without overwriting either.
curl "https://api.drometra.com/v1/integrations/canonical/stock?limit=100" \
-H "Authorization: Bearer $DROMETRA_TOKEN" \
-H "x-tenant-id: $DROMETRA_TENANT"Emitir documentos (opcional)
To issue from Drometra, an administrator chooses the branch, the VAT and the document types from those the business's account offers. Drometra reads the account again before saving and requires electronic receipts, invoices and credit notes (SII codes 39, 33 and 61) with 19% VAT. Connections are production ones, so whatever is issued is declared to the SII.
Desconectar
Disconnecting deletes the credential and leaves the connection inactive. If the same RUT is authorized later, the same connection is reactivated with the new credential.
