@affilitix/api-sdk-js
TypeScript icon, indicating that this package has built-in type declarations

0.7.53 • Public • Published

Usage Examples

Category Repository

Retrieve all shop categories

Retrieve all products for a category

const sdk = new SalesSDK(apiUrl, shopKey);
const includes: ProductInclude[] = [
    ProductInclude.CONTENT,
    ProductInclude.SKUS,
    ProductInclude.SKU_PRICECATEGORY,
    ProductInclude.SKU_PRICEMODEL
];
try {
    const products = await sdk.category.keyRef('<ANY-CATEGORY-KEY>').product({includes: includes});
    const relationships = sdk.product.relationships(products);

    // Do something with results
    console.log(products);
    console.log(relationships);
} catch (error) {
    console.log(error);
}

Product Repository

master

detail

ShoppingCart Repository

master

detail

setReferenceKey

createArticle

deleteArticle

paymentMethode

ticketOption

setTicketOption

setPaymentMethod

Order Repository

Readme

Keywords

Package Sidebar

Install

npm i @affilitix/api-sdk-js

Weekly Downloads

22

Version

0.7.53

License

MIT

Unpacked Size

478 kB

Total Files

65

Last publish

Collaborators

  • fwege
  • ykonda_cc
  • ploth
  • gerritschroeerfw
  • tom.kramer