JSON API for Creating Coupon with Configs and Decorators
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
JSON API for Creating Coupon with Configs and Decorators
Hi,
I am trying to create a coupon with configs and decorators by using JSON API Admin,
this is the request data which I call the API
inside the coupon.config I use the object with decorators key and value
and this is the response I received. As I understand the requirement is coupon.config is an array
The problem is: when I call using the array, such as
coupon.config : [{key, val},{key, val}]
The JSON API will accepted and store the array
However, the backend wont work and keep it the same
{0: [{key, val},{key, val}]}
While using the JQADM the result in database is an object and everything will be fine
{
{key: value},
{key:value}
}
I am trying to create a coupon with configs and decorators by using JSON API Admin,
this is the request data which I call the API
inside the coupon.config I use the object with decorators key and value
and this is the response I received. As I understand the requirement is coupon.config is an array
The problem is: when I call using the array, such as
coupon.config : [{key, val},{key, val}]
The JSON API will accepted and store the array
However, the backend wont work and keep it the same
{0: [{key, val},{key, val}]}
While using the JQADM the result in database is an object and everything will be fine
{
{key: value},
{key:value}
}
Re: JSON API for Creating Coupon with Configs and Decorators
Which Aimeos version do you use? Think, it's already fixed in 2020.07.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: JSON API for Creating Coupon with Configs and Decorators
thank you for your reply
This is my environment code
"php": "^7.2.5",
"aimeos/aimeos-laravel": "~2020.04",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0"
could you help me with a example which you call JSON API admin to create and modify Coupon with configs and decorators?
This is my environment code
"php": "^7.2.5",
"aimeos/aimeos-laravel": "~2020.04",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"laravel/framework": "^7.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0"
could you help me with a example which you call JSON API admin to create and modify Coupon with configs and decorators?
Re: JSON API for Creating Coupon with Configs and Decorators
Please update to the current 2020.07 release first as the problem should be fixed there.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: JSON API for Creating Coupon with Configs and Decorators
As I upgraded to the 07.2020 version, the issues resolved!
Have a good day, thank you so much for your support!
Have a good day, thank you so much for your support!