
Magento 2 Integration: Add customer using rest with Python
- or -
Post a project like this975
€20(approx. $23)
- Posted:
- Proposals: 4
- Remote
- #3923367
- Awarded
Description
Experience Level: Entry
I need to solve the problem that does not allow me to add a customer using "rest" integration, using python.
All work must be done through my laptop (I.e. using teamviewer, or something similar)
----------------------------------------------------------------------
Here are some facts:
1) I have written a python program to do two things:
a) Update a photo on a particular product SKU
b) Add a new customer
I attach the python code (with token replaced with 'xxxxxxx').
Part (a) works fine.
Part (b) fails
Here are the messages shown when I run the python code:
python test.py
Posted Successfully for: Remove photo from product with SKU: 1004
Posted Successfully for: Assign photo to product for SKU: 1004
Error: Post Failed for: Add Customer Name / Status code: 500 / endpoint URL:https://computron.gr/rest/V1/customers
Both parts use the same headers and token. Since the first part works fine, it means that there is no problem with headers and token.
2) I have tried running python using the following endpoints, with same result:
rest/V1/customers
rest/all/V1/customers
rest/wholesale/V1/customers (where 'wholesale' is a store code)
3) I attach two files:
a) Python Code
b) Integration screenshot showing that all resources are available
All work must be done through my laptop (I.e. using teamviewer, or something similar)
----------------------------------------------------------------------
Here are some facts:
1) I have written a python program to do two things:
a) Update a photo on a particular product SKU
b) Add a new customer
I attach the python code (with token replaced with 'xxxxxxx').
Part (a) works fine.
Part (b) fails
Here are the messages shown when I run the python code:
python test.py
Posted Successfully for: Remove photo from product with SKU: 1004
Posted Successfully for: Assign photo to product for SKU: 1004
Error: Post Failed for: Add Customer Name / Status code: 500 / endpoint URL:https://computron.gr/rest/V1/customers
Both parts use the same headers and token. Since the first part works fine, it means that there is no problem with headers and token.
2) I have tried running python using the following endpoints, with same result:
rest/V1/customers
rest/all/V1/customers
rest/wholesale/V1/customers (where 'wholesale' is a store code)
3) I attach two files:
a) Python Code
b) Integration screenshot showing that all resources are available
Zisos K.
93% (12)Projects Completed
15
Freelancers worked with
13
Projects awarded
41%
Last project
6 Dec 2024
Greece
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies