nodejs
nodejs copied to clipboard
Everything related to the Node.js ecosystem for the commercetools platform.
Trying to get all existing categories with the following method: ``` async getAllCategories() { try { const response = await this.apiRoot .withProjectKey({ projectKey: this.projectKey }) .categories() .get() .execute() return response.body.results...
I believe that since the HTTP statuscode is already available on both error.status and response.statusCode, the field error.code should contain the commercetools error code string, as documented on https://docs.commercetools.com/api/errors.
### Description When using `byCustomerId` or `byCartId` in `api-request-builder`, the locally stored params are not cleared before the next call to `build`. ### Expected Behavior The `setDefaultParams` function should reset...
### Support reference number https://jira.commercetools.com/browse/SUPPORT-10115 ### Please update documentation to include discounted variant-sku,value.currencyCode,value.centAmount,country,customerGroup.groupName,channel.key,validFrom,validUntil,discounted.value.currencyCode,discounted.value.centAmount,discounted.discount.id
### Support reference number https://jira.commercetools.com/browse/SUPPORT-9609 Relevant CSV files are in ticket ### Description When using the Discount Code Generator tool, parameters can be set such that the code generator cannot...
### Support reference number https://jira.commercetools.com/servicedesk/customer/portal/1/SUPPORT-9100 ### Description I am trying the following doc to import and export coupons from CT, and it is not connecting to CT. for Importer module,...
### Description I was wondering what is expected behaviour from commercetools nodejs sdk perspective in the following scenario: 1. Create a customer: ```json { "key": "abc", "email": "[email protected]", "password": "password"...
In our unit tests we are using [unzip](https://github.com/commercetools/nodejs/blob/master/packages/product-json-to-csv/package.json#L62) module which comes from [this repo](https://github.com/EvanOxfeld/node-unzip) and has many open PRs, issues and [is not maintained anymore](https://github.com/EvanOxfeld/node-unzip/issues/95). We should switch to some...
### Description Currently there is no package for the types, it would be wonderfull if you can create one. ### Expected Behavior A package with the type definitions. ### Current...