Hi,
first you need to install the webservices plugin
https://github.com/PhocaCz/PhocaCartWebservicesPlugin
Use the dev version, as it contains more defined routes.
Then the API is acccesible at
GET /api/v1/phocacart/products
PATCH /api/v1/phocacart/products
GET /api/v1/phocacart/products/{id}
PATCH /api/v1/phocacart/products/{id}
GET /api/v1/phocacart/variants
GET /api/v1/phocacart/status
GET /api/v1/phocacart/orders
GET /api/v1/phocacart/orders/{id}
PATCH /api/v1/phocacart/orders/{id}
GET /api/v1/phocacart/products/stock
POST /api/v1/phocacart/products/stock
Note, that this is still under development, and some endpoints could change in future.
Pavel
first you need to install the webservices plugin
https://github.com/PhocaCz/PhocaCartWebservicesPlugin
Use the dev version, as it contains more defined routes.
Then the API is acccesible at
GET /api/v1/phocacart/products
PATCH /api/v1/phocacart/products
GET /api/v1/phocacart/products/{id}
PATCH /api/v1/phocacart/products/{id}
GET /api/v1/phocacart/variants
GET /api/v1/phocacart/status
GET /api/v1/phocacart/orders
GET /api/v1/phocacart/orders/{id}
PATCH /api/v1/phocacart/orders/{id}
GET /api/v1/phocacart/products/stock
POST /api/v1/phocacart/products/stock
Note, that this is still under development, and some endpoints could change in future.
Pavel
Statistics: Posted by Cony — 10 Nov 2024, 22:35