Rest Api to add address, delete address and get address
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Rest Api to add address, delete address and get address
Hello, we need REST APIs for addresses.
Like
1. Add new address
2. Delete address
3. Get all addresses
Additional
4. Get last orders
5. add a review on orders
6. get reviews of a product
7. check the product is available in stocks
I need all those above APIs. Will you please help me to discover them?
Like
1. Add new address
2. Delete address
3. Get all addresses
Additional
4. Get last orders
5. add a review on orders
6. get reviews of a product
7. check the product is available in stocks
I need all those above APIs. Will you please help me to discover them?
Re: Rest Api to add address, delete address and get address
Did you read the documentation of the JSON REST API?
https://aimeos.org/docs/Developers/Client/JSONAPI
If customers are logged in, you can also manage their addresses using the ".../jsonapi/customer/address" endpoint:
https://github.com/aimeos/ai-client-jso ... andard.php
https://github.com/aimeos/ai-client-jso ... andard.php
https://aimeos.org/docs/Developers/Client/JSONAPI
https://aimeos.org/docs/Developers/Clie ... _addressestraiyani75 wrote: ↑05 Dec 2019, 07:53 Hello, we need REST APIs for addresses.
Like
1. Add new address
2. Delete address
3. Get all addresses
If customers are logged in, you can also manage their addresses using the ".../jsonapi/customer/address" endpoint:
https://github.com/aimeos/ai-client-jso ... andard.php
For logged in customers, you have access to the last orders using a GET request to the ".../jsonapi/order" endpoint:
https://github.com/aimeos/ai-client-jso ... andard.php
Reviews are not yet implemented in Aimeos.
https://aimeos.org/docs/Developers/Clie ... r_products
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Re: Rest Api to add address, delete address and get address
hello,
In this link, https://aimeos.org/docs/Developers/Clie ... _addresses
It only shows to set the address on an existing cart.
But, We need to add/delete the address for the user base only. Then he can use address from an already added address
In this link, https://aimeos.org/docs/Developers/Clie ... _addresses
It only shows to set the address on an existing cart.
But, We need to add/delete the address for the user base only. Then he can use address from an already added address
Re: Rest Api to add address, delete address and get address
There is no explicit documentation for that yet, but it works by using the "customer/address" endpoint and GET/POST/PATCH request like for other endpoints. If you use a GET request to ".../jsonapi/customer/address" for a logged in user, you will get back the already stored delivery addresses. Each contains a link to delete it if necessary. Use an OPTIONS request to ".../jsonapi/customer/address" to see what properties you have to POST.If customers are logged in, you can also manage their addresses using the ".../jsonapi/customer/address" endpoint:
https://github.com/aimeos/ai-client-jso ... andard.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Advanced
- Posts: 114
- Joined: 08 Nov 2019, 11:56
Re: Rest Api to add address, delete address and get address
How do i call options call on this.
http://ebdaa-ecommerce-dev.mzadqatar.co ... er/address
it returns me, 404 error code
http://ebdaa-ecommerce-dev.mzadqatar.co ... er/address
it returns me, 404 error code
Re: Rest Api to add address, delete address and get address
Sorry, this is the correct link for Laravel which is also returned by the customer endpoint for logged in users:
http://ebdaa-ecommerce-dev.mzadqatar.co ... ed=address
http://ebdaa-ecommerce-dev.mzadqatar.co ... ed=address
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star