API DocumentationOrders
Update order conversion date
PATCH
Updates the moment the order was placed before the order is archived, voided, shipped or has work orders.
Phasio API Bearer Tokenheader
AuthorizationBearer <token>id*integerFormat
int64application/json- body
conversionDate*stringMoment the customer placed the order, as an ISO-8601 instant. Future instants are rejected.
Format
date-timeConversion date updated
application/json- response
id*integerFormat
int64customerOrganisationId?integerFormat
int64customerOrganisationName?stringthreadId*integerFormat
int64createdAt*stringFormat
date-timeconversionDate?stringFormat
date-timeisConversionDateEditable*booleanupdateDt*stringFormat
date-timeisArchived*booleanisVoided*booleanisPurchaseOrder*booleanisInProject*booleanisSilent*booleanhasWorkOrders*booleanworkOrders*array<>source*stringbillingAddressId?integerFormat
int64currency*stringlocalCurrency*stringpaymentStatus*stringawaitingStatus*stringkanbanColumnId?stringcostCentreId?stringcostCentre?quoteNumber?stringorderNumber?stringstate*stringValue in
"QUOTE""ORDER""DRAFT"accountingSystemEstimateId?stringaccountingSystemEstimateNumber?stringaccountingSystemConfirmationId?stringaccountingSystemConfirmationNumber?stringaccountingSystemInvoiceId?stringaccountingSystemInvoiceNumber?stringaccountingSystemInvoiceStatus?stringValue in
"DRAFT""OPEN"affiliate?stringcreatedBy?owner?actorType?stringpaymentDueDate?stringFormat
date-timeproductionProgress?requisitionIds*array<>assemblyRequisitions*array<>expenses*array<|>shipping?|||shipments*array<|>discount?tax?price?numberlocalPrice?numbertopUpPrice?numberpurchaseOrderNumber?stringcustomerAcceptedTime?stringFormat
date-timeoperatorNote?stringcustomReference?stringbypassPurchasabilityChecks*booleansubscribedCustomerIds*array<>isEditable*booleanpricingFrozen*booleanlabels*array<>shipment?|||curl -X PATCH 'https://m-api.eu.phas.io/api/manufacturer/v1/order/0/conversion-date' \ -H 'Content-Type: application/json' \ -d '{ "conversionDate": "2019-08-24T14:15:22Z"}'{ "id": 0, "customerOrganisationId": 0, "customerOrganisationName": "string", "threadId": 0, "createdAt": "2019-08-24T14:15:22Z", "conversionDate": "2019-08-24T14:15:22Z", "isConversionDateEditable": true, "updateDt": "2019-08-24T14:15:22Z", "isArchived": true, "isVoided": true, "isPurchaseOrder": true, "isInProject": true, "isSilent": true, "hasWorkOrders": true, "workOrders": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "workOrderNumber": 0, "partName": "string", "quantity": 0, "startDate": "2019-08-24T14:15:22Z", "dueDate": "2019-08-24T14:15:22Z", "stages": [ { "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969", "name": "string", "quantity": 0 } ] } ], "source": "string", "billingAddressId": 0, "currency": "string", "localCurrency": "string", "paymentStatus": "string", "awaitingStatus": "string", "kanbanColumnId": "string", "costCentreId": "string", "costCentre": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "reference": "string", "deleted": true, "createdAt": "2019-08-24T14:15:22Z" }, "quoteNumber": "string", "orderNumber": "string", "state": "QUOTE", "accountingSystemEstimateId": "string", "accountingSystemEstimateNumber": "string", "accountingSystemConfirmationId": "string", "accountingSystemConfirmationNumber": "string", "accountingSystemInvoiceId": "string", "accountingSystemInvoiceNumber": "string", "accountingSystemInvoiceStatus": "DRAFT", "affiliate": "string", "createdBy": { "email": "string", "firstName": "string", "lastName": "string" }, "owner": { "email": "string", "firstName": "string", "lastName": "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", "accountingCategoryCode": "string", "quantity": 0, "unitPrice": 0, "localUnitPrice": 0, "price": 0, "costForOperator": 0 } ], "shipping": { "id": 0, "operatorId": 0, "shippingMode": "SELF_COLLECTION", "shippingMethodId": 0, "customerOrganisationId": 0, "rateId": "string", "toAddressId": 0, "expectedDispatchDate": "2019-08-24", "incoterm": "EXW", "dispatchDate": "2019-08-24", "toAddress": { "addressId": 0, "isBillingAddress": true, "isShippingAddress": 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, "taxId": "string" }, "fromAddress": { "addressId": 0, "isBillingAddress": true, "isShippingAddress": 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, "taxId": "string" }, "carrierAccountProvider": "string", "carrierAccountServiceType": "string", "carrierAccountServiceName": "string", "estimatedRate": 0, "finalRatePaid": 0 }, "shipments": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "type": "COURIER", "status": "PREPARED", "incoterm": "EXW", "fromAddress": { "street1": "string", "street2": "string", "city": "string", "state": "string", "country": "string", "zip": "string", "name": "string", "company": "string", "phone": "string", "email": "string", "jurisdictionIsoCode": "string", "residential": true, "taxId": "string" }, "parcels": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "grossWeightGrams": 0, "netWeightGrams": 0, "value": 0, "width": 0, "height": 0, "length": 0, "allocations": [ { "requisitionId": 0, "quantity": 0 } ] } ], "preparedAt": "2019-08-24T14:15:22Z", "preparedBy": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "firstName": "string", "lastName": "string", "displayName": "string" }, "releasedAt": "2019-08-24T14:15:22Z", "releasedBy": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "firstName": "string", "lastName": "string", "displayName": "string" }, "fulfilledAt": "2019-08-24T14:15:22Z", "fulfilledBy": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "firstName": "string", "lastName": "string", "displayName": "string" }, "documents": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "contentType": "string", "size": 0, "uploadedBy": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "firstName": "string", "lastName": "string", "displayName": "string" }, "createdAt": "2019-08-24T14:15:22Z" } ] } ], "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, "pricingFrozen": true, "labels": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "color": "string", "sequence": 0, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" } ], "shipment": { "id": 0, "operatorId": 0, "shippingMode": "SELF_COLLECTION", "shippingMethodId": 0, "customerOrganisationId": 0, "rateId": "string", "toAddressId": 0, "expectedDispatchDate": "2019-08-24", "incoterm": "EXW", "dispatchDate": "2019-08-24", "toAddress": { "addressId": 0, "isBillingAddress": true, "isShippingAddress": 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, "taxId": "string" }, "fromAddress": { "addressId": 0, "isBillingAddress": true, "isShippingAddress": 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, "taxId": "string" }, "carrierAccountProvider": "string", "carrierAccountServiceType": "string", "carrierAccountServiceName": "string", "estimatedRate": 0, "finalRatePaid": 0 }}