POST v1/Products/{id}/Suppliers
Adds or updates ProductSupplier
Request Information
Requires Authorization!
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The id of the Product |
integer |
Required. |
Body Parameters
The ProductSupplier
ProductSupplierName | Description | Type | Additional information |
---|---|---|---|
PurchaseProduct | PurchaseProduct |
None. |
|
Id | integer |
Must be 0 |
|
ProductId | integer |
Required |
|
ProductCode | string |
None. |
|
SupplierId | integer |
Required |
|
SupplierCompanyName | string |
None. |
|
PurchaseProduct | PurchaseProductBase |
None. |
|
Priority | integer |
Required |
Request Formats
application/json, text/json
Sample:
Sample not available.
Response Information
Resource Description
ProductSupplier
Name | Description | Type | Additional information |
---|---|---|---|
PurchaseProduct | PurchaseProduct |
None. |
|
Id | integer |
Must be 0 |
|
ProductId | integer |
Required |
|
ProductCode | string |
None. |
|
SupplierId | integer |
Required |
|
SupplierCompanyName | string |
None. |
|
PurchaseProduct | PurchaseProductBase |
None. |
|
Priority | integer |
Required |
Response Formats
application/json, text/json
Sample:
Sample not available.