Cannot do POST /V1/carts/mine or PUT V1/guest-carts/{cartId} with Intergation tokens on Magento 2.4.6-p8 and 2.4.4-p12 #39730
Labels
Reported on 2.4.6
Indicates original Magento version for the Issue report.
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Preconditions and environment
Magento version: 2.4.* ( Tested on 2.4.3, 2.4.4 and 2.4.6)
On Magento 2.3.5 I was able to do POST /V1/carts/mine / POST /V1/carts/mine/items OR PUT V1/guest-carts/{cartId} with Intergation tokens, but on Magento 2.4.* it doesn't work.
Steps to reproduce
In admin under System>Extensions>Integrations create a new integration
Do POST /rest/default/V1/carts with Auth. type OAuth 1.0, Signature Method HMAC-SHA256 and enter the Integration keys and tokens there. As a result, quote id value will be generated;
Do POST /rest/default/V1/carts/mine/items with the same Auth. and with body (add the quote_id that was created with the previous request):
{
"cartItem": {
"sku": "{sku}",
"qty": 1,
"quote_id": {quote_id}
}
}
{
"customerId": {customer_id},
"storeId": 0
}
Expected result
Actual result
POST /V1/carts/mine / V1/carts/mine/items:
PUT V1/guest-carts/{cartId} :
Additional information
I'm investigating this, because the third party needs these requests to work with the integration token the same way as on the old setup (2.3.5).
In admin under System>Extensions>Integrations I have created an integration:
In admin Stores>Configurations>Services>OAuth>Consumer Settings "Allow OAuth Access Tokens to be used as standalone Bearer tokens" is set to Yes. Expiration Period is set to 30000.
Proposed solution
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: