// Create a customer
const resp = await fetch(".../customer/addUpdate", {
method: "POST",
headers: {
"X-Access-Token": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
displayName: "ABC Plumbing",
primaryContact: {
firstName: "John",
lastName: "Doe"
}
})
});
const { success, _id } = await resp.json();
Obtenir un aperçu de HyfinFonctionnalités, intégrations et comment les utiliser.
// Create a customer
const resp = await fetch(".../customer/addUpdate", {
method: "POST",
headers: {
"X-Access-Token": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
displayName: "ABC Plumbing",
primaryContact: {
firstName: "John",
lastName: "Doe"
}
})
});
const { success, _id } = await resp.json();