How to configure and adapt Aimeos based shops as developer
Forum rules: Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#5853 by Anshul Dua
19 Mar 2018, 08:16
Hi Team,

I am doing through the JSONAPI, But I am not getting the USD price of product in the product listing API. BUT EUR is coming. Even i included the price in the URL.


I am getting the media and text. But not the price
#5854 by aimeos
19 Mar 2018, 08:22
Most of the time, the currency of the prices you've added in the admin interface doesn't match the currency of your locale. Have a look into the locale panel of the admin interface to see what is the first combination of site/language/currency that is used if you are not adding this information to the routes and URLs
#5855 by Anshul Dua
20 Mar 2018, 07:00
Thanks this is working.

Can you tell me how to add the product into a particular customer basket.

I am using this and getting the response

"errors": [
"title": "Not allowed for this resource"
#5869 by aimeos
22 Mar 2018, 08:12
The important thing is that you take the URL from the products:
Code: Select all    "data": [{
        "id": "1",
        "type": "product",
        "links": {
            "basket\/product": {
                "href": "http://localhost/default/jsonapi/basket?id=default&related=product",
                "allow": ["POST"]

The link (http://localhost/default/jsonapi/basket ... ed=product) might be different in your response. You need to take that and use a POST request to POST this data to the JSON API:
Code: Select allvar data = {data: [{
    attributes: {
        "": response[0]['id'], // from product response
        quantity: 1, // optional
        stocktype: "default", // warehouse code (optional)
        variant: [], // variant attribute IDs for selection products (optional)
        config: [], // config attribute IDs (optional)
        hidden: [], // hidden attribute IDs (optional)
        custom: {} // custom attribute ID/value pairs (optional)