The Locate API is a REST API that enables you to access the Locate inventory management system from your own applications. With the Locate API, you can create, update, and delete inventory items, track inventory levels, and manage orders and invoices.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
locate: {
type: "app",
app: "locate",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.locate.$auth.subdomain}.locateinv.com/salesordertype`,
headers: {
"Content-Type": `application/json`,
"Accept": `application/json`,
},
auth: {
username: `${this.locate.$auth.api_key}`,
password: `${this.locate.$auth.api_key}`,
},
})
},
})
Locate uses API keys for authentication. When you connect your Locate account, Pipedream securely stores the keys so you can easily authenticate to Locate APIs in both code and no-code steps.
For api_key
, go to Setup > Users. Click on the “New User” button in the top right of the table. Enter a First Name and Last Name to identify the account. Select “API” from the User Type drop-down.
For subdomain
, the subdomain with your Locate URL https://{subdomain}.locateinv.com/