Discussions

Ask a Question
Back to All

Unable to create Cart

Hello team,

I am trying to create a cart but I got "The access token provided is invalid." as response

Here is my login response which gives me accesstoken

{
"access_token": "MTVhMTI1O........WQ4Mg",
"expires_in": 3600,
"token_type": "bearer",
"scope": null
}

Here is my cart request

curl --location --request POST 'https://api.musement.com/api/v3/carts'
--header 'Authorization: Bearer MTVhMTI1OG........WQ4Mg'
--header 'Cache-Control: no-cache'
--header 'Content-Type: application/json'
--header 'X-Musement-Currency: USD'
--data-raw '[]'

Here is my response :

{
"code": "1401",
"message": "The access token provided is invalid."
}

Waiting for your quick response