crm
crm copied to clipboard
Magento Customer create issue
When trying to create magneto customer getting error 403
With admin permissions
GET /api/magentocustomers - 200 POST /api/magentocustomers - 403
{
"errors": [
{
"status": "403",
"title": "access denied exception",
"detail": "Access Denied."
}
]
}
Just some extra info....
Working on clean basic setup, can create with API magento order, magento order items, magento addresses, just magento customer fails.
Hi @dainiusgliebus,
Have you provided the admin WSSE token to the POST request?
And please specify which version of orocrm are you using.
Version 3.1
Yep, token is provided and no issue (working with postman, so every call generate WSSE token). And WSSE token generation works.
P.S. if WSSE token is not send it normally returns error 401 Unauthorized.
Extra stuff...
If on post I send empty data I get this
{
"errors": [
{
"status": "400",
"title": "request data constraint",
"detail": "The request data should not be empty"
}
]
}
Or if I send data with no relationships I get this
{
"errors": [
{
"status": "400",
"title": "request data constraint",
"detail": "The 'relationships' property should not be empty",
"source": {
"pointer": "/data/relationships"
}
}
]
}
As well was checking permissions but they look ok