Skip to main content

Sage b7

Workist connects to your installation through the Sage b7 REST API. This requires Sage b7 version 2025.02 or later. Workist reads customers, addresses, contact persons, articles, customer article numbers and open offers as master data. Completed orders become orders (Aufträge) in Sage b7, requests for quotation become offers (Angebote). If you want, Workist checks the prices of an order against the Sage b7 price finding. Nothing is installed in Sage b7. You only register Workist as an app and set up a user for the access.

Overview​

Prerequisites

  • Sage b7 version 2025.02 or later. Older versions do not support the connection via API.
  • Sage b7 with the REST API set up. You or your Sage b7 partner do the setup, see Setup in Sage b7.
  • Workist is registered as an app in Sage b7, with permission for customers, addresses, contact persons, articles, orders and offers, see Setup in Sage b7.
  • A Sage b7 user that Workist logs in with.
  • Workist must be able to reach the URL of your installation's webservice. You grant the access, for example by allowing incoming traffic from Workist's IP addresses, see Setup in Sage b7.

Data flow

DirectionContentWhen
Sage b7 → WorkistCustomers, addresses, contact persons, articles, customer article numbers, open offersdaily at 04:00 German time and on demand
Sage b7 → WorkistSales price per order line, if the price check is switched onwhen an order is processed and when someone changes quantity, unit, article or customer
Workist → Sage b7Order with lines, delivery and invoice addressas soon as an order is completed
Workist → Sage b7Offer with lines, delivery and invoice addressas soon as a request for quotation is completed

What We Read from Sage b7​

Master data in WorkistSource in Sage b7
CustomersCustomers
Customer contactsContact persons of the customers
Delivery addressesAddresses of the customers
Invoice addressesAddresses of the customers (the same as the delivery addresses)
ArticlesArticles
Customer articlesCustomer part numbers from the order lines of the last three years
Open quotesOffers in status "Angebot erfasst", per line
  • Workist does not read customers, addresses and contact persons marked as inactive. It also does not read contact persons and addresses of suppliers and prospects.
  • Workist does not read addresses without an address id.
  • Workist takes over articles with a sales block as inactive.
  • Sage b7 has no list of its own for customer article numbers. Workist therefore takes over every customer part number that appears on an order line of the last three years, together with the part number of the line.
  • Workist does not read offers whose validity has expired.
  • Workist does not read customer-specific prices, unit conversions or framework contracts from Sage b7.

The field reference lists the fields Workist takes over in detail.

What We Write to Sage b7​

Order from a purchase order

For every completed order, Workist creates an order in Sage b7:

  • Header: customer, order number as customer order number, order date, delivery date as requested date, commission and project number. The order type comes from the setup; the order date in Sage b7 is the day of the transfer.
  • Lines: article number as part number, quantity and unit, delivery date of the line as requested date, commission number and comment of the line. Sage b7 determines prices with its own price finding.
  • Addresses: delivery and invoice address from the document. If the address is matched to an address of the customer from Sage b7, Workist sends only its address id. Without a match, Workist sends the address as text: company name (else name), street, postcode and city, as far as the document contains them.

Offer from a request for quotation

For every completed request for quotation, Workist creates an offer. It contains the same information as an order, with the request number and request date instead of the order number and order date. The offer is assigned to the customer, not to a prospect.

As the reference on the document in the Workbench, Workist stores the order or offer number from Sage b7.

The field reference lists the fields Workist fills in detail.

Setup in Sage b7​

Your responsibility

Setting up the REST API in Sage b7 is the customer's responsibility, with your Sage b7 partner if needed. Workist cannot do the setup for you. The instructions are in chapter 2 "Einrichten der REST API" (setting up the REST API) of the Sage b7 REST API handbook.

It is also your responsibility to give Workist access to the URL of the webservice, for example by allowing incoming traffic from Workist's IP addresses in your firewall. Your Workist contact provides the IP addresses.

Workist authenticates by login and token: Workist logs in with a Sage b7 user and the App Key and receives a token, which it uses to access the REST API. Before you set up the integration in the Workbench, Workist must therefore be created as an application in screen bv280:

  1. Register Workist as an app in screen bv280 (app registrations). Sage b7 generates the App Key, which you enter in the Workbench later.
  2. On the API permissions tab, allow the app to the access Workist needs: reading customers, addresses, contact persons and articles, reading and creating orders and offers and, for the price check, querying sales prices.
  3. In screen bv285, grant the user Workist logs in with the LOGIN right of this app.

If you regenerate the app secret or revoke the app's refresh tokens, Workist logs in again on the next transfer by itself. You don't need to change anything in the Workbench.

According to the Sage b7 documentation, using API functions deactivates a possible connection to accounting software by default. Clarify this with your Sage b7 partner if needed.

Setup in the Workbench​

  1. Open Settings → Business Systems (ERP) → Integrations and click Connect next to Sage b7.

  2. Enter the connection:

    FieldContent
    Integration nameany name
    Webservice URLaddress of the REST API of your installation: <protocol>://<server>:<port>/<webapp>/callin/api/v1
    b7 user, passworduser Workist logs in with
    App KeyApp Key of the Workist app from screen bv280
    User group, company, factory, languagelogin data of the user in Sage b7. Company 1, factory 1 and language de_de are prefilled
    Order type (orders)order type (Auftragsart) of the orders Workist creates. Empty: Sage b7 default
    Order type (offers)order type (Auftragsart) of the offers Workist creates. Empty: Sage b7 default
    Check order prices against Sage b7, Compare againstsettings of the price check. Off by default
    Order channels, RFQ channelschannels whose documents Workist transfers to Sage b7
  3. Click Create. Workist logs in to Sage b7. If Sage b7 rejects the login, the integration is not saved and Workist shows the message from Sage b7.

  4. Use Trigger master data update in the list of integrations to load the master data right away. Otherwise Workist loads it the following night.

When you edit the integration later, leave password and App Key empty if they stay the same. If you change login data or the webservice URL, Workist logs in again when saving.

How the master data reaches the channels and how Workist switches the channels to the integration is described in What All Connectors Have in Common.

Customizing the Field Mapping​

What Workist writes into the order and the offer is defined by the integration's Output Studio, on the Order Output Studio and RFQ Output Studio tabs. Without changes, the standard mapping applies, shown in the Filled by default column of the field reference. The other fields you can map are listed there too, for example sales price, discount or payment terms. Agree changes with your Workist contact.

Regardless of the mapping:

  • The customer number must be an account number made of digits.
  • Every line needs a part number.
  • Workist sets the UUID, order type and document date itself if the mapping doesn't fill them.

Price Check Against the Sage b7 Price Finding​

If Check order prices against Sage b7 is switched on, Workist asks Sage b7 for every order line which sales price it determines for this customer, this article and this quantity, with your price lists, quantity breaks and customer discounts. The price at the order date applies, without an order date today's price. Workist checks the ordered unit price against this price with the check Unit price / gross price mismatch check (see Validation Checks). If someone changes quantity, unit, article or customer in the Workbench, Workist asks for the price again.

  • Compare against defines what is compared: the unit price before discount (default) or the net price after the discounts Sage b7 determines for the customer.
  • Sage b7 states the price per price unit, for example per 100 pieces. Workist converts it to one unit.
  • The check Unit price / gross price mismatch check must be switched on in the channel.
  • Without a customer number, Sage b7 determines no price. Workist then checks the lines without a target price.
  • If Sage b7 cannot price a line, for example because the article is missing, Workist checks this line without a target price.
  • If the ordered unit differs from the sales unit Sage b7 prices in, Workist also checks this line without a target price.
  • If the price check is switched off, the check compares against the list price of the article from the master data.

Error Handling​

If Sage b7 rejects an order or offer, the document appears among the open documents again, with the message from Sage b7. Workist does not retry automatically. Fix the cause, for example a part number unknown in Sage b7, and complete the document again after Reopen for assistance.

Without a transfer to Sage b7, Workist reports on the document:

  • a missing customer number or a customer number that is not made of digits only,
  • a document without lines or a line without an article number.

If Sage b7 rejects the login, for example because the password was changed, the transfer fails with the message from Sage b7. Enter the new login data in the integration and complete the documents again.

Limitations​

  • Workist only knows customer article numbers that were used in an order of the last three years.
  • Workist does not convert offers into orders. Every order becomes a new order in Sage b7.
  • Workist does not change existing orders and offers. If a document is corrected in Workist after the transfer, apply the change in Sage b7.
  • Workist does not send the country of addresses, because Sage b7 uses its own country keys.

Field Reference​

Fields Read​

Customers​

Workist columnFrom Sage b7
client_id1konto
client_id2mc
company_namename_1
miscname_2 + name_3
address1strasse
address2adr_zusatz
zip_codeplz_str
cityort
po_boxpostfach
domaininetadr
ilniln
vatust_identnr

Workist does not take over the country, because Sage b7 uses its own country keys. The domain comes from the customer's web address.

Customer Contacts​

Workist columnFrom Sage b7
partition_idkonto
contact_idansprnr
first_namename_2
last_namename_1
phonetelefon
emailemail

Delivery and Invoice Addresses​

Both address types have the same fields.

Workist columnFrom Sage b7
partition_idkonto
address_id1anschrid
address_id2anschrnr
address_id3kurzbez
namename_1
miscname_2 + name_3
address1strasse
address2adr_zusatz
zip_codeplz_str
cityort
po_boxpostfach
phonetelefon

Articles​

Workist columnFrom Sage b7
article_id1identnr
article_id3ean
descriptionben
description_boostedben1 + kurz_ben
gross_pricelistenpreis
sales_unitsme
extra_datavar

The variant is stored in the article's extra data.

Customer Articles​

Workist columnFrom Sage b7
partition_idkonto
article_id1identnr
article_id2kdidentnr
descriptionben_1
extra_datavar

Open Quotes​

Workist columnFrom Sage b7
partition_idkonto
offer_numberangebnr
valid_fromang_dat
valid_untildatbis
position_numberangebpos
article_id1identnr
article_descriptionben_1
quantitymenge_vk
unitmevk
unit_pricevkpreis

Workist does not take over offer lines without a part number.

Fields Written​

Listed are the fields Workist can send to Sage b7. The Filled by default column shows which of them Workist fills without further setup. The others can be mapped in the Output Studio. Order and offer number, prices without a mapping, totals and all other fields are set by Sage b7 itself.

Order – Header​

FieldSage b7Filled by defaultNote
uuidUUIDyesIdentifier Workist assigns to the document
kontoCustomer number (Konto)yesCustomer number from the document. Required, digits only
auf_artOrder type (Auftragsart)yesOrder type from the setup. Empty: Sage b7 default
auf_datOrder dateyesDay of the transfer
best_nrCustomer order numberyesOrder number
best_nr2Customer order number 2–
best_datOrder date of the customeryesOrder date
best_sbOrder clerk–
angebnrOffer number–Offer the order is based on
wunsch_termRequested dateyesDelivery date
lief_termDelivery date–
kd_zeichenCustomer reference–
ansprnrContact person number–
kkomm_nrCommission numberyesCommission number
projekt_idProjectyesProject number
zbPayment terms–
lbDelivery terms–
vers_artShipping method–
txt1Text 1–
txt2Text 2–
adressid_lsDelivery address idyesAddress id of the matched delivery address from Sage b7. Workist then does not send the delivery address as text
anschrlsDelivery address number–
anschrift_ls.name_1Delivery address: name 1yesCompany name, else name
anschrift_ls.name_2Delivery address: name 2–
anschrift_ls.name_3Delivery address: name 3–
anschrift_ls.strasseDelivery address: streetyesStreet and number
anschrift_ls.adr_zusatzDelivery address: address addition–
anschrift_ls.plz_strDelivery address: postcodeyesPostcode
anschrift_ls.ortDelivery address: cityyesCity
anschrift_ls.emailDelivery address: email–
anschrift_ls.telefonDelivery address: phone–
adressid_rgInvoice address idyesAddress id of the matched invoice address from Sage b7. Workist then does not send the invoice address as text
anschrrgInvoice address number–
anschrift_rg.name_1Invoice address: name 1yesCompany name, else name
anschrift_rg.name_2Invoice address: name 2–
anschrift_rg.strasseInvoice address: streetyesStreet and number
anschrift_rg.plz_strInvoice address: postcodeyesPostcode
anschrift_rg.ortInvoice address: cityyesCity

Order – Lines​

FieldSage b7Filled by defaultNote
identnrPart numberyesArticle number. Required
varVariant–
kdidentnrCustomer part number–
menge_vkQuantity (sales unit)yesQuantity
mevkSales unityesUnit
vkpreisSales price–Without a value Sage b7 determines the price
pevkPrice unit–1 = per 1, 2 = per 10, 3 = per 100 units
rabattDiscount (%)–
wunsch_termRequested dateyesDelivery date of the line
lief_termDelivery date–
kkomm_nrCommission numberyesCommission number of the line
ben_1Description 1–
ben_2Description 2–
txt_komLine noteyesLine comment

Offer – Header​

FieldSage b7Filled by defaultNote
uuidUUIDyesIdentifier Workist assigns to the document
kontoCustomer number (Konto)yesCustomer number from the document. Required, digits only
satzartAccount record typeyes1 = customer
auf_artOrder type (Auftragsart)yesOrder type from the setup. Empty: Sage b7 default
ang_datOffer dateyesDay of the transfer
anfr_nrRequest numberyesRequest number
anfr_nr2Request number 2–
anfr_datRequest dateyesRequest date
datbisValid until–
wunsch_termRequested dateyesDelivery date
kommentarComment–
ansprnrContact person number–
kkomm_nrCommission numberyesCommission number
projekt_idProjectyesProject number
zbPayment terms–
lbDelivery terms–
vers_artShipping method–
txt1Text 1–
txt2Text 2–
adressid_lsDelivery address idyesAddress id of the matched delivery address from Sage b7. Workist then does not send the delivery address as text
anschrlsDelivery address number–
anschrift_ls.name_1Delivery address: name 1yesCompany name, else name
anschrift_ls.name_2Delivery address: name 2–
anschrift_ls.name_3Delivery address: name 3–
anschrift_ls.strasseDelivery address: streetyesStreet and number
anschrift_ls.adr_zusatzDelivery address: address addition–
anschrift_ls.plz_strDelivery address: postcodeyesPostcode
anschrift_ls.ortDelivery address: cityyesCity
anschrift_ls.emailDelivery address: email–
anschrift_ls.telefonDelivery address: phone–
adressid_rgInvoice address idyesAddress id of the matched invoice address from Sage b7. Workist then does not send the invoice address as text
anschrrgInvoice address number–
anschrift_rg.name_1Invoice address: name 1yesCompany name, else name
anschrift_rg.name_2Invoice address: name 2–
anschrift_rg.strasseInvoice address: streetyesStreet and number
anschrift_rg.plz_strInvoice address: postcodeyesPostcode
anschrift_rg.ortInvoice address: cityyesCity

Offer – Lines​

FieldSage b7Filled by defaultNote
identnrPart numberyesArticle number. Required
varVariant–
kdidentnrCustomer part number–
menge_vkQuantity (sales unit)yesQuantity
mevkSales unityesUnit
vkpreisSales price–Without a value Sage b7 determines the price
pevkPrice unit–1 = per 1, 2 = per 10, 3 = per 100 units
rabattDiscount (%)–
wunsch_termRequested dateyesDelivery date of the line
lief_termDelivery date–
kkomm_nrCommission numberyesCommission number of the line
ben_1Description 1–
ben_2Description 2–
txt_komLine noteyesLine comment