Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento Customer create issue #325

Open
dainiusgliebus opened this issue Jan 30, 2019 · 2 comments
Open

Magento Customer create issue #325

dainiusgliebus opened this issue Jan 30, 2019 · 2 comments
Labels

Comments

@dainiusgliebus
Copy link

dainiusgliebus commented Jan 30, 2019

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.

@anyt anyt added the question label Jan 30, 2019
@anyt
Copy link
Contributor

anyt commented Jan 30, 2019

Hi @dainiusgliebus,

Have you provided the admin WSSE token to the POST request?

And please specify which version of orocrm are you using.

@dainiusgliebus
Copy link
Author

dainiusgliebus commented Jan 30, 2019

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
screen shot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants