Trade Partners – ReferenceAdding Trade Partners

Adding Trade Partners

Reference for the Add Trade Partners drawer: the Single Trade Partner form fields and validation, the 22-column bulk upload template and the results of an upload.

The Add Trade Partners drawer has two tabs: Single Trade Partner and Bulk Upload. For the steps, see Add Trade Partners.

Single Trade Partner form

FieldReq.TypeValues and validationDefault
Trade Partner NameYesTextAny text. The name cannot be left empty.Empty
Trade Partner IdentifierNoTextYour identifier for the partner. It can be left empty.Empty
PGLNNoNumberMust be a valid PGLN. A number that fails the check-digit test shows Invalid PGLN and nothing is created.Empty
DUNSNoNumberMust be a valid DUNS numberEmpty
Buyer / SupplierNoChoiceBuyer or Supplier. The form does not offer Other or Self; those values can be set only in the spreadsheet.Empty (Select buyer or supplier)

The Create Trade Partner button is greyed out while the form is empty. When the partner is created, its drawer opens on the Details tab and the new row appears in the list with Connection set to Not Connected and Type set to NonWholechain.

Bulk Upload

The Bulk Upload tab has two steps: step 1, Excel Template (downloads the template); step 2, a file box (click it or drag a file onto it) and an Upload button. Accepted file types are .xlsx and .xls.

Template layout

The template has 22 columns. Row 1 holds the headings and row 2 holds the field codes. Both rows must stay. Each row describes one Trade Partner and one Location for it.

ColumnKeyReq.Values
Trade Partner Number/IDtp_external_idNoYour identifier for the partner
Company Nametp_nameYesPartner name
Connection Typetp_connection_typeYesBuyer, Supplier, Other or Self. This column says what the partner is to you; it does not connect the partner.
PGLNtp_pglnNoValid PGLN
Company DUNStp_company_dunsNoValid DUNS number
Location Grouptp_location_groupNoName of an existing Location Group. If the group does not exist, the Location is not linked and no group is created; create the group first (see Location Groups).
Location Number/IDtp_location_external_idNoYour identifier for the Location
Location Nametp_location_nameNoLocation name
Address 1tp_address_1NoStreet address
Address 2tp_address_2NoAdditional address line
Citytp_cityNoCity
State/Provincetp_state_provinceNoState or province
Countrytp_countryNoCountry
Postal Codetp_postal_codeNoPostal code
Geocoordinatestp_geocoordinatesNolatitude,longitude, with both values, for example 37.7704,-122.3894. When an address is provided, Wholechain attempts to find the coordinates; if none can be found for the address, the Location is saved with 0, 0.
Contact Nametp_contact_nameNoContact person
Phone Numbertp_phone_numberNoContact phone
Phone Extensiontp_phone_extensionNoContact phone extension
Emailtp_emailNoContact email
GLNtp_glnNoValid GLN for the Location
Location DUNStp_location_dunsNoValid DUNS number for the Location
Polygontp_polygonNoLocation boundary in GeoJSON format

At a minimum, a row needs a Company Name and a Connection Type.

Results of an upload

OutcomeWhat you see
All rows acceptedThe new partners appear in the list; each shows 1 in Location(s). No confirmation count is shown.
Row matches an existing recordThe record is updated. If the record was created with an identifier and the file leaves the identifier blank, a new record is created instead, because a blank identifier counts as a value.
One or more rows rejectedAn error banner appears with Download issues file. Rows without errors can already have been added.
Locations createdEach Location is listed on the Locations page with the type Warehouse / Distribution Center, because this template has no Location Type column.

Add form compared with the spreadsheet

ItemSingle Trade Partner formExcel spreadsheet
What the partner is to youBuyer / Supplier: Buyer or Supplier (optional)Connection Type: Buyer, Supplier, Other or Self (required)
Required fieldsTrade Partner NameCompany Name and Connection Type
Connection status of a new partnerNot ConnectedNot Connected (the template has no connection column)

For the rules and messages that apply when adding Trade Partners, see Rules and restrictions and Messages.