POST api/Orders/customer/{userId}/placeorder/{pid}
Place a new order
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pid | integer |
Required |
|
| userId | string |
None. |
Body Parameters
None.
Response Information
Resource Description
OrderDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ProductId | integer |
None. |
|
| TaskId | integer |
None. |
|
| State | States |
None. |
|
| PartNumber | string |
None. |
|
| PartName | string |
None. |
|
| OrderDate | date |
None. |
|
| SalesPrice | decimal number |
None. |
|
| SalesTax | decimal number |
None. |
|
| ToolingCharge | decimal number |
None. |
|
| UnitPrice | decimal number |
None. |
|
| Quantity | decimal number |
None. |
|
| ShippedDate | date |
None. |
|
| CarrierName |
ShippingAccount CarrierName to be used in the part Shipment |
string |
None. |
| CarrierType |
ShippingAccount CarrierType to be used in the part Shipment |
SHIPPING_CARRIER_TYPE |
None. |
| ShippingAccountNumber |
ShippingAccount ShippingAccountNumber to be used in the part Shipment |
string |
None. |
| TrackingNumber | string |
None. |
|
| ShippingId | integer |
None. |
|
| ShipLeadingTime | integer |
None. |
|
| CustomerPONumber | string |
None. |
|
| EstimateCompletionDate | date |
None. |
|
| IsForToolingOnly | boolean |
None. |
|
| IsRiskBuild | boolean |
None. |
|
| IsReorder | boolean |
None. |
|
| Buyer | string |
None. |
|
| DesireShippingDate | date |
None. |
|
| EarliestShippingDate | date |
None. |
|
| CreatedByUserId | string |
None. |
|
| ModifiedByUserId | string |
None. |
|
| Notes | string |
None. |
|
| RejectReason | string |
None. |
|
| ProductDrawingUri | Collection of string |
None. |
|
| VendorQuoteUri | Collection of string |
None. |
|
| PODocUri | Collection of string |
None. |
|
| VendorPODocUri | Collection of string |
None. |
|
| ProofDocUri | Collection of string |
None. |
|
| ProofRejectDocUri | Collection of string |
None. |
|
| SampleRejectDocUri | Collection of string |
None. |
|
| PackingSlipDocUri | Collection of string |
None. |
|
| InspectionReportDocUri | Collection of string |
None. |
|
| VendorInvoice | Collection of string |
None. |
|
| PaymentDocUri | Collection of string |
None. |
|
| Shipping | ShippingDTO |
None. |
|
| _updatedAt | date |
None. |
|
| ProductSharingId | integer |
None. |
|
| OrderCompanyName | string |
None. |
|
| ExpeditedShipmentRequestId | integer |
None. |
|
| InitiateCompanyId | integer |
None. |
|
| IsExpeditedShipmentAccepted | boolean |
None. |
|
| NewDesireShippingDate | date |
None. |
|
| ExpeditedShipmentType | EXPEDITED_SHIPMENT_TYPE |
None. |
|
| IsRequestedByCustomer | boolean |
None. |
|
| IsRequestedByVendor | boolean |
None. |
|
| CancelOrderRequest | boolean |
None. |
|
| IsOrderCancelled | boolean |
None. |
|
| CancelOrderReason | string |
None. |
|
| DenyCancelOrderReason | string |
None. |
|
| OrderCancelledBy | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"productId": 2,
"taskId": 3,
"state": 1,
"partNumber": "sample string 4",
"partName": "sample string 5",
"orderDate": "2026-01-12T15:41:57.2983579+00:00",
"salesPrice": 1.0,
"salesTax": 1.0,
"toolingCharge": 1.0,
"unitPrice": 1.0,
"quantity": 7.0,
"shippedDate": "2026-01-12T15:41:57.2983579+00:00",
"carrierName": "sample string 8",
"carrierType": 1,
"shippingAccountNumber": "sample string 9",
"trackingNumber": "sample string 10",
"shippingId": 1,
"shipLeadingTime": 1,
"customerPONumber": "sample string 11",
"estimateCompletionDate": "2026-01-12T15:41:57.2983579+00:00",
"isForToolingOnly": true,
"isRiskBuild": true,
"isReorder": true,
"buyer": "sample string 13",
"desireShippingDate": "2026-01-12T15:41:57.2983579+00:00",
"earliestShippingDate": "2026-01-12T15:41:57.2983579+00:00",
"createdByUserId": "sample string 14",
"modifiedByUserId": "sample string 15",
"notes": "sample string 16",
"rejectReason": "sample string 17",
"productDrawingUri": [
"sample string 1",
"sample string 2"
],
"vendorQuoteUri": [
"sample string 1",
"sample string 2"
],
"poDocUri": [
"sample string 1",
"sample string 2"
],
"vendorPODocUri": [
"sample string 1",
"sample string 2"
],
"proofDocUri": [
"sample string 1",
"sample string 2"
],
"proofRejectDocUri": [
"sample string 1",
"sample string 2"
],
"sampleRejectDocUri": [
"sample string 1",
"sample string 2"
],
"packingSlipDocUri": [
"sample string 1",
"sample string 2"
],
"inspectionReportDocUri": [
"sample string 1",
"sample string 2"
],
"vendorInvoice": [
"sample string 1",
"sample string 2"
],
"paymentDocUri": [
"sample string 1",
"sample string 2"
],
"shipping": {
"id": 1,
"attention_FreeText": "sample string 1",
"phoneNumber": "sample string 2",
"emailAddress": "sample string 3",
"address": {
"id": 1,
"country": "sample string 1",
"stateOrProvinceName": "sample string 2",
"city": "sample string 3",
"addressLine1": "sample string 4",
"addressLine2": "sample string 5",
"zipCode": "sample string 6",
"postalCode": "sample string 7",
"isBilling": true,
"isShipping": true,
"isMainAddress": true
}
},
"_updatedAt": "2026-01-12T15:41:57.2983579+00:00",
"productSharingId": 18,
"orderCompanyName": "sample string 19",
"expeditedShipmentRequestId": 1,
"initiateCompanyId": 1,
"isExpeditedShipmentAccepted": true,
"newDesireShippingDate": "2026-01-12T15:41:57.2983579+00:00",
"expeditedShipmentType": 1,
"isRequestedByCustomer": true,
"isRequestedByVendor": true,
"cancelOrderRequest": true,
"isOrderCancelled": true,
"cancelOrderReason": "sample string 22",
"denyCancelOrderReason": "sample string 23",
"orderCancelledBy": 1
}