@crystallize/node-tripletex

1.0.1 • Public • Published

node-tripletex

Node Tripletex SDK for easy Tripletex integration in Node.JS. Generic Tripletex Node integration with specific support for the Crystallize headless ecommerce serce.

Crystallize enables you to build your next-gen e-commerce business by the help of Fast GraphQL API Service backed by super structured Product Information Management (PIM)

You can view the required body models documented in Tripletex documentation

Install

yarn add @crystallize/node-tripletex

Usage

Initiate the client

const client = new TripletexClient({
    testDrive: true,
    consumerToken: "MY_TRIPLETEX_CONSUMER_TOKEN",
    employeeToken: "MY_TRIPLETEX_EMPOLOYEE_TOKEN"
  });

Create an Access Token

await client.getAccessToken();

Fetch all Inventories

await client.getInventories();

Get all VAT Types

await client.getVatTypes();

Create an Order

await client.createOrder(cartData);

Create an OrderLine

await client.createOrderLine(orderLineData);

Create a Customer

await client.createCustomer(customerData);

Package Sidebar

Install

npm i @crystallize/node-tripletex

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

6.83 kB

Total Files

11

Last publish

Collaborators

  • crystallize-admin