Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Add To Cart API and Read From Cart API, unable to retrieve configurable product variant - Magento 2.4.4-p4

So I was creating an add to cart API and read from cart API The problem that I encounter is unable to retrieve variant of configurable product Below are my addToCart API code /** * POST add to ...
Mohd Farhan Bin Ramli's user avatar
1 vote
0 answers
59 views

Magento2.4.4p4 REST API Error 'Class string does not exist'

I had this issue during when I create a custom Rest API in fresh magento 2.4.4p4 As you can see the error I get is Class string does not exist Below are my code folder structure, which I found to be ...
Mohd Farhan Bin Ramli's user avatar
0 votes
1 answer
79 views

Magento2.4.4p4 REST API Error 'Class array does not exist'

I had this issue during when I create a custom Rest API in fresh magento 2.4.4p4 As you can see the error I get is "Class array does not exist" Below are my code folder structure, which I ...
Mohd Farhan Bin Ramli's user avatar
3 votes
4 answers
694 views

Unable to set customer group when create customer with REST API

In Magento 2.4.5 I'm trying to create customer with REST API. In the payload I specify the group ID, but the new customer always get the default group ID. Example payload: $customerData = [ 'customer' ...
Vincenzo Di Deo's user avatar
0 votes
1 answer
263 views

How to add new fields to M2.4.2 CMS REST API response?

How would I go about adding new custom fields I have created for CMS pages to M2.4.2 CMS REST API responses (and possibly even search/filtering)? For example, if I want to add new fields to retrieving ...
drgandynt's user avatar
0 votes
0 answers
147 views

Can I use a PUT request when required fields aren't filled in?

I'm trying to run about 10,000 put requests to update pricing via the API. A lot of the products have fields that are required, but aren't filled in. Everything works when I update the pricing with a ...
web master's user avatar
0 votes
2 answers
2k views

REST API: Consumer is not authorized to access %resources

I'm in the middle of finishing a Magento 2 store for a client. The last I had on my to-do list, was connect Magento to their accounting software through the REST API. However, apparently there's some ...
Jason's user avatar
  • 180