with AmeriCommerce and Hathr AI?
Emit new event when a new document is created. See the documentation
Emit new event when a customer is created in your Americommerce store. See the documentation
Emit new event when a product is added to your Americommerce store. See the documentation
Emit new event when a new valid order (not declined or cancelled) is created in your Americommerce store. See the documentation
Changes the status of an existing order. See the documentation
Retrieves a list of all available documents. See the documentation
Creates a new order or updates an existing one. See the documentation here and here
Uploads a document that can be used in future chat requests. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
americommerce: {
type: "app",
app: "americommerce",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.americommerce.$auth.subdomain}.americommerce.com/api/v1/products.json`,
headers: {
"X-AC-Auth-Token": `${this.americommerce.$auth.api_token}`,
}
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hathr_ai: {
type: "app",
app: "hathr_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hathr.ai/v1/document/list`,
headers: {
Authorization: `Bearer ${this.hathr_ai.$auth.oauth_access_token}`,
},
})
},
})