{"id":21043402,"url":"https://github.com/crystallizeapi/node-tripletex","last_synced_at":"2025-03-13T21:44:46.977Z","repository":{"id":55541117,"uuid":"303366320","full_name":"CrystallizeAPI/node-tripletex","owner":"CrystallizeAPI","description":"A connector Package to the Tripletex API","archived":false,"fork":false,"pushed_at":"2020-12-22T23:24:23.000Z","size":7,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-20T17:49:48.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CrystallizeAPI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-12T11:12:23.000Z","updated_at":"2020-12-23T01:39:55.000Z","dependencies_parsed_at":"2022-08-15T02:50:42.455Z","dependency_job_id":null,"html_url":"https://github.com/CrystallizeAPI/node-tripletex","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-tripletex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-tripletex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-tripletex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CrystallizeAPI%2Fnode-tripletex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CrystallizeAPI","download_url":"https://codeload.github.com/CrystallizeAPI/node-tripletex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243489805,"owners_count":20298997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T14:12:41.910Z","updated_at":"2025-03-13T21:44:46.953Z","avatar_url":"https://github.com/CrystallizeAPI.png","language":"JavaScript","readme":"# node-tripletex\n\nNode Tripletex SDK for easy Tripletex integration in Node.JS. Generic Tripletex Node integration with specific support for the [Crystallize headless ecommerce serce](https://crystallize.com/).\n\nCrystallize enables you to build your next-gen e-commerce business by the help of [Fast GraphQL API Service](https://crystallize.com/product/graphql-commerce-api) backed by super structured [Product Information Management (PIM)](https://crystallize.com/product/product-information-management)\n\nYou can view the required body models documented in [Tripletex documentation](https://tripletex.no/v2-docs/#/)\n\n## Install\n\n```\nyarn add @crystallize/node-tripletex\n```\n\n## Usage\n\n### Initiate the client\u003cbr/\u003e\n\n```\nconst client = new TripletexClient({\n    testDrive: true,\n    consumerToken: \"MY_TRIPLETEX_CONSUMER_TOKEN\",\n    employeeToken: \"MY_TRIPLETEX_EMPOLOYEE_TOKEN\"\n  });\n```\n\n### Create an Access Token\u003cbr/\u003e\n\n```\nawait client.getAccessToken();\n```\n\n### Fetch all Inventories\u003cbr/\u003e\n\n```\nawait client.getInventories();\n```\n\n### Get all VAT Types\u003cbr/\u003e\n\n```\nawait client.getVatTypes();\n```\n\n### Create an Order\u003cbr/\u003e\n\n```\nawait client.createOrder(cartData);\n```\n\n### Create an OrderLine\u003cbr/\u003e\n\n```\nawait client.createOrderLine(orderLineData);\n```\n\n### Create a Customer\u003cbr/\u003e\n\n```\nawait client.createCustomer(customerData);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystallizeapi%2Fnode-tripletex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrystallizeapi%2Fnode-tripletex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystallizeapi%2Fnode-tripletex/lists"}