API DocumentationManufacturer order controller
Create a new order
Creates a new manufacturing order with the provided details
AuthorizationBearer <token>
In: header
Query Parameters
threadId?integer
ID of the thread to associate with the order
Format
int64customerOrganisationIdinteger
ID of the customer organisation to associated with the order
Format
int64requisitionsarray<CreateRequisitionDto>
assemblyRequisitionsarray<CreateAssemblyRequisitionDto>
expensesarray<CreateFixedExpenseDto | CreateHourlyExpenseDto>
currencystring
Value in
"USD" | "SGD" | "EUR" | "INR" | "JPY" | "AUD" | "GBP" | "NZD" | "MYR" | "CAD" | "CHF" | "DKK" | "SEK" | "MXN" | "ZAR" | "UAH" | "NOK" | "PHP" | "TRY"sourcestring
discountId?integer
Format
int64operatorNote?string
isSilent?boolean
affiliate?string
paymentDueDate?string
Format
date-timediscount?CreateCustomerDiscountDto | CreateGenericDiscountDto | CreateInstantDiscountDto
discountTypestring
percentagenumber
code?string
startTime?string
Format
date-timeendTime?string
Format
date-timecustomerId?integer
Format
int64discountTypestring
percentagenumber
code?string
startTime?string
Format
date-timeendTime?string
Format
date-timegenericDiscountNoe?string
discountTypestring
percentagenumber
note?string
shipment?CarrierAccountShipmentDto | FixedPriceShipmentDto | SelfCollectionShipmentDto
id?integer
Format
int64operatorIdinteger
Format
int64shippingModestring
Value in
"SELF_COLLECTION" | "FIXED_PRICE" | "CARRIER_ACCOUNT"shippingMethodId?integer
Format
int64customerOrganisationId?integer
Format
int64rateId?string
toAddressId?integer
Format
int64status?string
dispatchDate?string
Format
datetoAddressDto?CustomerOrganisationAddressDto | OperatorAddressDto
addressIdinteger
Format
int64isBillingAddressboolean
street1string
street2string
citystring
state?string
countrystring
countryAlpha2Codestring
countryAlpha3Codestring
jurisdictionIsoCode?string
zipstring
namestring
companystring
phonestring
emailstring
residentialboolean
addressTypestring
isDeletedboolean
addressIdinteger
Format
int64isBillingAddressboolean
street1string
street2string
citystring
state?string
countrystring
countryAlpha2Codestring
countryAlpha3Codestring
jurisdictionIsoCode?string
zipstring
namestring
companystring
phonestring
emailstring
residentialboolean
addressTypestring
isDeletedboolean
fromAddressDto?CustomerOrganisationAddressDto | OperatorAddressDto
addressIdinteger
Format
int64isBillingAddressboolean
street1string
street2string
citystring
state?string
countrystring
countryAlpha2Codestring
countryAlpha3Codestring
jurisdictionIsoCode?string
zipstring
namestring
companystring
phonestring
emailstring
residentialboolean
addressTypestring
isDeletedboolean
addressIdinteger
Format
int64isBillingAddressboolean
street1string
street2string
citystring
state?string
countrystring
countryAlpha2Codestring
countryAlpha3Codestring
jurisdictionIsoCode?string
zipstring
namestring
companystring
phonestring
emailstring
residentialboolean
addressTypestring
isDeletedboolean
carrierAccountProvider?string
carrierAccountServiceType?string
carrierAccountServiceName?string
estimatedRate?number
finalRatePaid?number
labelId?string
labelUrl?string
qrCodeUrl?string
trackingDto?TrackingDto
id?integer
Format
int64operatorIdinteger
Format
int64shippingModestring
Value in
"SELF_COLLECTION" | "FIXED_PRICE" | "CARRIER_ACCOUNT"shippingMethodId?integer
Format
int64customerOrganisationId?integer
Format
int64rateId?string
toAddressId?integer
Format
int64status?string
dispatchDate?string
Format
daterate?number
toAddressDto?CustomerOrganisationAddressDto | OperatorAddressDto
addressIdinteger
Format
int64isBillingAddressboolean
street1string
street2string
citystring
state?string
countrystring
countryAlpha2Codestring
countryAlpha3Codestring
jurisdictionIsoCode?string
zipstring
namestring
companystring
phonestring
emailstring
residentialboolean
addressTypestring
isDeletedboolean
addressIdinteger
Format
int64isBillingAddressboolean
street1string
street2string
citystring
state?string
countrystring
countryAlpha2Codestring
countryAlpha3Codestring
jurisdictionIsoCode?string
zipstring
namestring
companystring
phonestring
emailstring
residentialboolean
addressTypestring
isDeletedboolean
trackingDto?TrackingDto
name?string
id?integer
Format
int64operatorIdinteger
Format
int64shippingModestring
Value in
"SELF_COLLECTION" | "FIXED_PRICE" | "CARRIER_ACCOUNT"shippingMethodId?integer
Format
int64customerOrganisationId?integer
Format
int64rateId?string
toAddressId?integer
Format
int64status?string
dispatchDate?string
Format
datecontactName?string
contactPhoneNumber?string
rate?number
name?string
billingAddressId?integer
Format
int64markPaymentConfirmedboolean
ccCustomerIdsarray<integer>
customReference?string
Response Body
curl -X POST "http://m-api-dev.phas.io/api/manufacturer/v1/order?threadId=0&customerOrganisationId=0" \ -H "Content-Type: application/json" \ -d '{ "requisitions": [ { "requisitionIntentId": "4f452163-bc37-4324-abb4-e054f8422f48", "partRevisionId": "d6aa80a1-8f9a-4090-941a-f51f551521b8", "units": "CENTIMETERS", "quantity": 0, "materialId": 0, "processPricesId": "efb221a2-6f82-4cf4-8be0-20aae2aa874c", "postProcessing": [ { "postProcessingId": 0, "variables": { "property1": 0, "property2": 0 } } ], "variables": { "property1": 0, "property2": 0 }, "comments": [ { "message": "string", "conversationType": "string" } ] } ], "assemblyRequisitions": [ { "requisitionIntentId": "4f452163-bc37-4324-abb4-e054f8422f48", "assemblyId": "177e95d7-b841-4a88-9b1d-2e76eb106c0b", "quantity": 0 } ], "expenses": [ { "name": "string", "type": "string" } ], "currency": "USD", "source": "string", "markPaymentConfirmed": true, "ccCustomerIds": [ 0 ] }'{
"order": {
"id": 0,
"customerOrganisationId": 0,
"customerOrganisationName": "string",
"threadId": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updateDt": "2019-08-24T14:15:22Z",
"isArchived": true,
"isVoided": true,
"isPurchaseOrder": true,
"isInProject": true,
"isSilent": true,
"source": "string",
"billingAddressId": 0,
"currency": "string",
"localCurrency": "string",
"paymentStatus": "string",
"awaitingStatus": "string",
"kanbanColumnId": "string",
"quoteNumber": "string",
"orderNumber": "string",
"accountingSystemEstimateId": "string",
"accountingSystemEstimateNumber": "string",
"accountingSystemConfirmationId": "string",
"accountingSystemConfirmationNumber": "string",
"accountingSystemInvoiceId": "string",
"accountingSystemInvoiceNumber": "string",
"affiliate": "string",
"manufacturerUsername": "string",
"actorType": "string",
"paymentDueDate": "2019-08-24T14:15:22Z",
"productionProgress": {
"volume": 0,
"quantity": 0
},
"requisitionIds": [
0
],
"assemblyRequisitions": [
{
"id": 0,
"assemblyId": "177e95d7-b841-4a88-9b1d-2e76eb106c0b",
"assemblyName": "string",
"quantity": 0,
"assemblyPricePaid": 0,
"totalPricePaid": 0,
"partCount": 0,
"createdAt": "2019-08-24T14:15:22Z"
}
],
"expenses": [
{
"expenseId": 0,
"name": "string",
"description": "string",
"type": "string",
"price": 0,
"costForOperator": 0
}
],
"shipment": {
"id": 0,
"operatorId": 0,
"shippingMode": "SELF_COLLECTION",
"shippingMethodId": 0,
"customerOrganisationId": 0,
"rateId": "string",
"toAddressId": 0,
"status": "string",
"dispatchDate": "2019-08-24",
"toAddressDto": {
"addressId": 0,
"isBillingAddress": true,
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"country": "string",
"countryAlpha2Code": "string",
"countryAlpha3Code": "string",
"jurisdictionIsoCode": "string",
"zip": "string",
"name": "string",
"company": "string",
"phone": "string",
"email": "string",
"residential": true,
"addressType": "string",
"isDeleted": true
},
"fromAddressDto": {
"addressId": 0,
"isBillingAddress": true,
"street1": "string",
"street2": "string",
"city": "string",
"state": "string",
"country": "string",
"countryAlpha2Code": "string",
"countryAlpha3Code": "string",
"jurisdictionIsoCode": "string",
"zip": "string",
"name": "string",
"company": "string",
"phone": "string",
"email": "string",
"residential": true,
"addressType": "string",
"isDeleted": true
},
"carrierAccountProvider": "string",
"carrierAccountServiceType": "string",
"carrierAccountServiceName": "string",
"estimatedRate": 0,
"finalRatePaid": 0,
"labelId": "string",
"labelUrl": "string",
"qrCodeUrl": "string",
"trackingDto": {
"id": 0,
"shipmentId": 0,
"trackingNumber": "string"
}
},
"discount": {
"discountId": 0,
"discountType": "string",
"code": "string",
"percentage": 0,
"startTime": "2019-08-24T14:15:22Z",
"endTime": "2019-08-24T14:15:22Z",
"customerId": 0,
"customerEmail": "string",
"customerPhoneNumber": "string"
},
"tax": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"components": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"shortName": "string",
"longName": "string",
"percentage": 0,
"amount": 0,
"localAmount": 0
}
],
"totalPrice": 0,
"localTotalPrice": 0,
"isTaxAppliedToShipping": true,
"isTaxExempted": true,
"accountingSystemTaxId": "string",
"taxNumber": "string"
},
"price": 0,
"localPrice": 0,
"topUpPrice": 0,
"purchaseOrderNumber": "string",
"customerAcceptedTime": "2019-08-24T14:15:22Z",
"operatorNote": "string",
"customReference": "string",
"bypassPurchasabilityChecks": true,
"subscribedCustomerIds": [
0
],
"isEditable": true
},
"requisitions": {
"property1": {
"id": 0,
"partSpecificationId": "00ed504c-6ecc-48e1-8d82-d5b33aa8626d",
"partRevisionId": "d6aa80a1-8f9a-4090-941a-f51f551521b8",
"orderId": 0,
"orderNumber": "string",
"customerOrganisationId": 0,
"customerOrganisationName": "string",
"pricingType": "string",
"manualPrice": 0,
"pricePaid": 0,
"quantity": 0,
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdated": "2019-08-24T14:15:22Z",
"leadTimeId": "d4f8e2ce-2958-4e33-9da6-3f42e4f728f1",
"workflow": [
{
"statusId": "e900225c-0629-4e96-be6e-86a17a309645",
"sequence": 0
}
],
"variables": {
"property1": 0,
"property2": 0
},
"postProcessingVariables": [
{
"postProcessingId": 0,
"variables": {
"property1": 0,
"property2": 0
}
}
],
"duration": 0
},
"property2": {
"id": 0,
"partSpecificationId": "00ed504c-6ecc-48e1-8d82-d5b33aa8626d",
"partRevisionId": "d6aa80a1-8f9a-4090-941a-f51f551521b8",
"orderId": 0,
"orderNumber": "string",
"customerOrganisationId": 0,
"customerOrganisationName": "string",
"pricingType": "string",
"manualPrice": 0,
"pricePaid": 0,
"quantity": 0,
"createdAt": "2019-08-24T14:15:22Z",
"lastUpdated": "2019-08-24T14:15:22Z",
"leadTimeId": "d4f8e2ce-2958-4e33-9da6-3f42e4f728f1",
"workflow": [
{
"statusId": "e900225c-0629-4e96-be6e-86a17a309645",
"sequence": 0
}
],
"variables": {
"property1": 0,
"property2": 0
},
"postProcessingVariables": [
{
"postProcessingId": 0,
"variables": {
"property1": 0,
"property2": 0
}
}
],
"duration": 0
}
}
}Empty
Empty
Last updated on