TypeScript client for the Sellsy API, auto-generated from OpenAPI spec
npm install @getyetty-sdk/sellsyTypeScript client for the Sellsy API, auto-generated from the official OpenAPI specification.
This package is not officially maintained by Sellsy. It is auto-generated from the publicly available OpenAPI specification. While we strive to keep it up-to-date through daily automated updates, there may be occasional discrepancies or delays.
Use at your own risk. For production applications, always test thoroughly and consider the official Sellsy documentation as the source of truth.
Due to the complexity of the Sellsy OpenAPI specification, some generated TypeScript types may have incomplete type definitions. The SDK functions work correctly at runtime, but TypeScript may report type errors for some advanced use cases. This is a known issue with the upstream code generator when handling complex nested schemas.
- 🔒 Fully typed TypeScript client
- 🤖 Auto-generated from the official Sellsy OpenAPI spec
- 🔄 Daily automated updates to stay in sync with API changes
- 📦 Tree-shakable, zero runtime dependencies (standalone bundle)
- 🚀 ESM module
- Node.js >= 24.0.0
``bash`
npm install @getyetty-sdk/sellsy
`typescript
import { client } from '@getyetty-sdk/sellsy';
// Configure the default client with your API key
client.setConfig({
baseUrl: 'https://api.sellsy.com/',
headers: {
Authorization: Bearer ${process.env.SELLSY_API_KEY},`
},
});
`typescript
import { getContacts, getContact, createContact } from '@getyetty-sdk/sellsy';
// List contacts
const contacts = await getContacts({
query: {
limit: 20,
offset: 0,
},
});
// Get a specific contact
const contact = await getContact({
path: {
id: 'contact-id',
},
});
// Create a new contact
const newContact = await createContact({
body: {
// contact data
},
});
`
`typescript
import {
createClient,
createClientWithApiKey,
createConfig,
getContacts,
} from '@getyetty-sdk/sellsy';
const sellsy = createClient(
createConfig({
baseUrl: 'https://api.sellsy.com/',
headers: {
Authorization: Bearer ${process.env.SELLSY_API_KEY},
},
}),
);
// Or alternatively if you just have to provide an API key
const sellsy = createClientWithApiKey(process.env.SELLSY_API_KEY);
// Use the custom client
const contacts = await getContacts({
client: sellsy,
query: { limit: 10 },
});
``
For detailed API documentation, please refer to the official Sellsy API docs.
MIT