POST api/newProduct/autoIsbn
Adding new product from external source with autogenerated isbn
Request Information
URI Parameters
None.
Body Parameters
New product informations.
NewProductAutoIsbnRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| CallbackUrl | string |
None. |
|
| CallbackToken | string |
None. |
|
| ParentIsbns | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"CallbackUrl": "sample string 2",
"CallbackToken": "sample string 3",
"ParentIsbns": "sample string 4"
}
application/xml, text/xml
Sample:
<NewProductAutoIsbnRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Name>sample string 1</Name> <CallbackUrl>sample string 2</CallbackUrl> <CallbackToken>sample string 3</CallbackToken> <ParentIsbns>sample string 4</ParentIsbns> </NewProductAutoIsbnRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Resonse if product pass validation.
ValidationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| IsValid | boolean |
None. |
|
| Errors | Collection of ValidationFailure |
None. |
Response Formats
application/json, text/json
Sample:
{
"errors": []
}
application/xml, text/xml
Sample:
<ValidationResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />