Questions tagged [commercetools]

The commercetools platform is a scalabale HTTP API-based cloud eCommerce solution that allows developers to create commerce solutions for all devices and platforms

The commercetools platform is a platform-as-a-Service eCommerce solution (formerly known as SPHERE.IO).

The HTTP API is the main and first-class way for developers to work with the platform.

You can work in your favorite programming language and framework and there are SDKs for Java 8, PHP and Node.js.

Getting started:

76 questions
0
votes
1 answer

How can we find item based in incomplete name?

I have a question about "How can we find product or something else by partial information (name for example)"?. For example in SQL we can use LIKE. What can we use in Commercetools to do the same? How can we find category by incomplete name in Java…
Mefisto_Fell
  • 876
  • 1
  • 10
  • 30
0
votes
2 answers

How can we find a product or category by incomplete name?

I recently work with Commercetools platform and I have such a question. How we can find product or category and so on by incomplete name? For example if in my url I wrote something like this https://localhost:8080/cat?catName=G I wanna find all…
Mefisto_Fell
  • 876
  • 1
  • 10
  • 30
0
votes
1 answer

How to get category by name?

I recently work with commerce tools platform and I have such a question. I have this query: CompletionStage> stage = QueryExecutionUtils.queryAll(client, CategoryQuery.of().byName(Locale.ENGLISH, "cat1")); final…
Mefisto_Fell
  • 876
  • 1
  • 10
  • 30
0
votes
1 answer

commercetools state machine customizations

Can you interact with the states of objects provided by commercetools? I have reviewed the documentation here and understand how to create new states and transition through them. Is it possible to change the state flow of a cart or a lineitem? …
dan
  • 1
0
votes
3 answers

Create sitemap from the content of the CommerceTools database

I need to create the sitemap file of my CommerceTools based shop and it would be great if it could be done automatically from the contents of the CTP database. Do you know if there is a module, tool or extension already developed that allows this…
MiguelHoz
  • 49
  • 6
0
votes
2 answers

How can I find a ProductVariant by his variantKey?

In my project I am now needing to obtain the variant of the product from the variantKey, but I have not found any method in the JVM SDK to do it. I tried to do it using the ProductByKeyGet method, but I only get the product if the value corresponds…
MiguelHoz
  • 49
  • 6
0
votes
1 answer

Remove discount code from customline Items in commercetools

I've added a discount code and successfully applied a discount to the customlineItems using the addDiscountCode API call(https://dev.commercetools.com/http-api-projects-carts.html#add-discountcode) and all the prices are calculated and the discount…
rhldonly1
  • 91
  • 4
0
votes
2 answers

How can I automate image upload to commercetools using JVM API

I'm a pretty new developer in CommerceTools and I've been working with this tool for just a few weeks. At this moment I need to develop a process that should be able to upload all the images related to a product from a folder to commercetools using…
MiguelHoz
  • 49
  • 6
0
votes
1 answer

Unable to delete product from commercetools api

I'm trying to delete from commercetools API via HTTP request. Following is my code : $url = 'https://api.sphere.io/test/products/xxxx'; $params = json_encode(array('version'=>1)); $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST,…
Gowri
  • 1,832
  • 3
  • 29
  • 53
0
votes
1 answer

commercetools: Insufficient scope on request

When I try to fetch products then I get the error message "Insufficient scope": curl -vsH "Authorization: Bearer MY_ACCESS_TOKEN" https://api.sphere.io/MY_PROJECT/products output: * Hostname was NOT found in DNS cache * Trying 162.13.76.39... *…
Dalek
  • 148
  • 8
0
votes
1 answer

commercetools: Is there any class in JVM SDK to generate OAuth2 token?

In the commercetools JVM SDK class SphereClient is no way to access the access token of the client, how can I achieve this?
Dalek
  • 148
  • 8
0
votes
1 answer

commercetools: In the JVM SDK is it possible to create a product from JSON?

For unit tests it would be nice to get a product from JSON data. [The question originated from a company internal support request.] edit: A normal JSON mapper would not work due to some special formats. The question is not about Jackson vs. Gson or…
Dalek
  • 148
  • 8
0
votes
1 answer

cannot create order due to missing prices

I try to create an order from a variant and I receive this error: The variant '2' of product '27610ab0-d9cf-4685-87e7-de6e41fd7dd4' does not contain a price for currency ''EUR' all countries, all customer groups and all channels. Why does it…
Dalek
  • 148
  • 8
-1
votes
1 answer

CommerceTools Initial Load

What is the best way to import >5 million records of customer into commerce tools? I only need it to load initial load but I don't need any sync services between external sources and commercetools multiple times process of finding delta can be done…
George
  • 41
  • 8
-1
votes
1 answer

Line item state update in commercetools

I need to update line item state to cancelled in commercetools, but I could not find any line item update action to update state in commercetools api, could you please help me?