OpenCart has a REST API that you (or third parties) can use to communicate with the system. You make calls to routes, it sends you back JSON.
There are many things you can do with an API
catalog/controller/api
api/controller/method
. For example, to add a product to cart, you’d call api/cart/add
. If you don’t specify the method, it means you’re calling the index()
function of the controllerapi/login
)As of OpenCart 3, you have the following API endpoints available
api
├── cart
├── coupon
├── currency
├── customer
├── login
├── order
├── payment
├── reward
├── shipping
└── voucher
api
├── cart
│ ├── add
│ ├── edit
│ ├── remove
│ └── products
├── coupon
├── currency
├── customer
├── login
├── order
│ ├── add
│ ├── edit
│ ├── delete
│ ├── info
│ └── history
├── payment
│ ├── address
│ ├── methods
│ └── method
├── reward
│ ├── maximum
│ └── available
├── shipping
│ ├── address
│ ├── methods
│ └── method
└── voucher
└── add