API to setup manufacturer profile for a registered user
URL : /api/manufacturer
Method : POST
Auth required : YES,
Headers : multipart/form-data, authentication: Bearer Token
Form Data
| Name | Value |
|---|---|
| manufacturer | json string |
| trustedCertificateDoc | file upload |
manufacturer
{
"name": "[Valid Name with alphabets and space]",
"email": "[Valid Organization email id]",
"mobileNumber": "[Valid mobile number]",
"contactNumber": "[Valid Organization Landline number]",
"country": "[Valid Country as String]",
"addressList": [{
"lineOne": "[Valid Line One as String]",
"lineTwo": "[Valid Line Two as String]",
"city": "[Valid City as String]",
"state": "[Valid State as String]",
"country":"[Valid Country as String]",
"pinCode": "[Valid PinCode as String]",
}]
}
Code : 200 OK
Content example
{
"id": 1,
"name": "Digitalsky",
"mobileNumber": "9880098880",
"contactNumber": "080-456677888",
"country": "India",
"addressList": [{
"lineOne": "#25, xyz Building",
"lineTwo": "Sample",
"city": "Bangalore",
"state": "Karnataka",
"country":"India",
"pinCode": "560001",
}]
}
Condition : If provided with invalid payload
Code : 400 BAD REQUEST