import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.teams.create({
data: {
type: "teams",
attributes: {
name: "Name",
currency: "USD",
address: "Address",
},
},
});
console.log(result);
}
run();{
"data": {
"id": "team_aEjv7ZKeWzCrjA5ANeMvImmKEoV",
"type": "teams",
"attributes": {
"name": "Name",
"slug": "name",
"address": "Address",
"currency": "USD",
"token": "token-for-team",
"enforce_mfa": false,
"customer_billing_id": "cus_hp2b02do",
"referred_code": null
}
},
"meta": {}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.teams.create({
data: {
type: "teams",
attributes: {
name: "Name",
currency: "USD",
address: "Address",
},
},
});
console.log(result);
}
run();{
"data": {
"id": "team_aEjv7ZKeWzCrjA5ANeMvImmKEoV",
"type": "teams",
"attributes": {
"name": "Name",
"slug": "name",
"address": "Address",
"currency": "USD",
"token": "token-for-team",
"enforce_mfa": false,
"customer_billing_id": "cus_hp2b02do",
"referred_code": null
}
},
"meta": {}
}Was this page helpful?