POST v1/Products/{id}/Suppliers
Adds or updates ProductSupplier
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The id of the Product |
integer |
Required. |
Body Parameters
The ProductSupplier
ProductSupplier| Name | Description | Type | Additional information |
|---|---|---|---|
| PurchaseProduct | PurchaseProduct |
None. |
|
| Id | integer |
Must be 0 (for insert operations) |
|
| 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 (for insert operations) |
|
| 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.