Skip to content
ERP integration

Your customers on Sage order from your live catalog.

Sage X3 calls Distrify with its built in REST client. Your stock, prices, lead times and compliance data land in the screen the buyer is already working in, no export, no portal, no second login.

Your customer
their ERP
Your catalog
your Distrify workspace
AsksSTM32F407 · qty 2,500
Answers0,1980 € · 3,224 pcs · 5 days
At a glance

What this integration actually is.

How it connects
Sage X3 calls Distrify with its built in REST client.
Effort
Days for the first use case
Built by
Their Sage partner or IT
Direction
Outbound only
The mechanism

Three ways Sage can make the call.

Older X3 patch levels truncate long header values, so check the patch level before scoping.

EXEC_REST_WS

X3’s outgoing REST call. Register Distrify once in the UI.

4GL script

Fires on the purchase or item screen.

Sage 100, 200, Intacct

Connect through an integration platform instead.

The call

What your customer writes, once.

Written in 4GL. One endpoint, two headers, a part number in and a priced, current answer back.

  • One endpoint for search, availability, pricing and orders
  • Two headers: a client id and an API key
  • No inbound connection to your network
Local Char HCOD(100)(1..10), HVAL(100)(1..10)
Local Clbfile RESHEAD(0), RESBODY(0)
Local Integer RETVAL
HCOD(1) = "X-DISTRIFY-Client-Id" : HVAL(1) = CLIENTID
HCOD(2) = "X-DISTRIFY-Api-Key" : HVAL(2) = APIKEY
"DISTRIFY" is the entry created under Web Services > Rest web services
RETVAL = func ASYRRESTCLI.EXEC_REST_WS("DISTRIFY", "POST",
"/api/method/distrify_studio.distrify_electronics"
+ ".public_api.v1.components.search_keyword",
PCOD, PVAL, HCOD, HVAL,
'{"Keywords":"' + [F:POD]ITMREF + '"}',
0, "", RESHEAD, RESBODY)
If RETVAL = 200 : # parse RESBODY onto the PO line
Else : Infbox "Distrify lookup failed (" + num$(RETVAL) + ")"
Endif
The contract

The same fields on every ERP.

The integration differs; the answer does not. Seventeen fields come back on every call, whichever system asked.

GroupFields
CommercialStock · Price breaks · MOQ · Pack quantity · Lead time
LifecycleLifecycle status · TARIC
Trade and customsHTSUS · ECCN · Country of origin · RoHS
ComplianceREACH · Pb-free · AEC-Q200 · EOL · NCNR
DocumentsDatasheet

Electronics buying has gone digital. Time your distribution did too.

Thirty minutes on your own parts: send us a price list and we show it running live across every channel.

We reply within one working day. No newsletter, no drip campaign.