Skip to main content

API\u0027s

Supplier reference for the dsdlink RASIntegration_ImportDataForSupplier API that sends Objectives (e.g. chain mandates) to distributors: field definitions and a sample POST request. Requires v24.01+.

B
Written by Bailey Naas-Thornton

Minimum Version Required: 24.01

Fields And Definitions

  • Supplier: Encompass dsdlink Global Supplier ID*
    ​
    ​

  • Objective: Name of the Objective (example: Bob’s Brewery Chain Mandates)
    ​
    ​

  • DistributorNum: Encompass dsdlink ID*
    ​
    ​

  • Distributor Customer Num: Distributor Customer ID*
    ​
    ​

  • Product: Encompass dsdlink Global Product ID*
    ​
    ​

  • Start Date: Date you would like the Objective to start
    ​
    ​

  • End Date: Deadline to complete the Objective
    ​
    ​

  • Suppliers Foreign Key: Your internal key for a given line item
    ​
    ​

  • Quantity (Optional): Quantity of units to be sold
    ​
    ​

  • Detail (Optional): Any additional information you’d like to include (selling story, notes, etc.)

*Encompass can provide these values

Best Practices

Sample Request:

// Request (

// APICommand=RASIntegration_ImportDataForSupplier&

// EncompassID=DSDLink&

// APIToken=APIToken

// )

url += "APICommand=RASIntegration_ImportDataForSupplier&EncompassID";

url += "&EncompassID=DSDLink";

url += "&APIToken={{APIToken}}";

url += "&FileName={{DataFileName}}";

const postData = new FormData();

data.append("TextBody", DataFile);

fetch(url, {

method: "POST",

headers: {

"Content-Type": "application/x-www-form-urlencoded; charset=utf-8",

},

body: postData,

});

PDF

Did this answer your question?