Created
August 16, 2023 15:17
-
-
Save 0-Sony/322d2e305bbd685b0b6ac22340672a0b to your computer and use it in GitHub Desktop.
Magento 2 : Create Company via API (Postman example)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method @POST : www.mydomaine.com/rest/{storeCode}/V1/company | |
{ | |
"company": { | |
"status": 1, | |
"company_name": "MY COMPANY", | |
"company_email": "[email protected]", | |
"street": [ | |
"10 rue du test" | |
], | |
"city": "Paris", | |
"country_id": "FR", | |
"region": "", | |
"region_id": "", | |
"postcode": "75013", | |
"telephone": "0102030405", | |
"super_user_id": 1234, // given id when the customer is created | |
"customer_group_id": 1 | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method @POST : www.mydomaine.com/rest/{storeCode}/V1/customers | |
{ | |
"customer": { | |
"dob": "01/01/2000", | |
"email": "[email protected]", | |
"firstname": "John", | |
"lastname": "Doe", | |
"website_id": 1 | |
}, | |
"password": "azeaze123*" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment