API DocumentationCart resource
Get cart pre-order (quote + purchasability)
Generates a bundled quote and purchasability check for a cart via the pre-order pipeline. Exposed for analytics consumers needing the quoted total alongside cart contents.
AuthorizationBearer <token>
In: header
Path Parameters
cartIdinteger
ID of the cart to pre-order
Format
int64Response Body
curl -X GET "http://m-api-dev.phas.io/api/manufacturer/v1/cart/1/pre-order"{
"quote": {
"currency": "string",
"localCurrency": "string",
"price": 0,
"localPrice": 0,
"subtotal": 0,
"localSubtotal": 0,
"tax": {
"components": [
{
"shortName": "string",
"longName": "string",
"percentage": 0,
"amount": 0,
"localAmount": 0
}
],
"totalPrice": 0,
"localTotalPrice": 0,
"totalPercentage": 0,
"isTaxAppliedToShipping": true,
"isTaxExempted": true,
"isTaxReverseCharged": true,
"accountingSystemTaxId": "string"
},
"lineItems": [
{
"name": "string",
"basePrice": 0,
"termPrice": 0
}
],
"discount": 0,
"localDiscount": 0,
"shipment": {
"price": 0,
"localPrice": 0,
"accountingCategory": "string"
},
"topUp": {
"price": 0,
"localPrice": 0,
"accountingCategory": "string"
},
"requisitions": {
"property1": {
"partRevisionId": "d6aa80a1-8f9a-4090-941a-f51f551521b8",
"localManufacturingPrice": 0,
"manufacturingPrice": 0,
"localPostProcessingPrice": 0,
"postProcessingPrice": 0,
"localUnitPrice": 0,
"unitPrice": 0,
"localPrice": 0,
"price": 0,
"postProcessingOptions": [
{
"id": 0,
"price": 0,
"localPrice": 0,
"variables": {
"property1": 0,
"property2": 0
}
}
],
"accountingCategoryCode": "string",
"quantity": 0,
"variables": {
"property1": 0,
"property2": 0
},
"reviewRequired": true
},
"property2": {
"partRevisionId": "d6aa80a1-8f9a-4090-941a-f51f551521b8",
"localManufacturingPrice": 0,
"manufacturingPrice": 0,
"localPostProcessingPrice": 0,
"postProcessingPrice": 0,
"localUnitPrice": 0,
"unitPrice": 0,
"localPrice": 0,
"price": 0,
"postProcessingOptions": [
{
"id": 0,
"price": 0,
"localPrice": 0,
"variables": {
"property1": 0,
"property2": 0
}
}
],
"accountingCategoryCode": "string",
"quantity": 0,
"variables": {
"property1": 0,
"property2": 0
},
"reviewRequired": true
}
},
"exchangeRate": 0,
"expenses": {
"property1": 0,
"property2": 0
},
"dispatchDate": "2019-08-24"
},
"purchasability": {
"parts": {
"property1": {
"partRevisionId": "d6aa80a1-8f9a-4090-941a-f51f551521b8",
"warnings": {
"hasOptimalWallThickness": true
},
"limits": {
"withinBoundingBoxLimit": true,
"withinWallThicknessLimit": true
},
"values": {
"boundingBox": [
0
],
"wallThicknessLimit": 0,
"wallThicknessWarning": 0
}
},
"property2": {
"partRevisionId": "d6aa80a1-8f9a-4090-941a-f51f551521b8",
"warnings": {
"hasOptimalWallThickness": true
},
"limits": {
"withinBoundingBoxLimit": true,
"withinWallThicknessLimit": true
},
"values": {
"boundingBox": [
0
],
"wallThicknessLimit": 0,
"wallThicknessWarning": 0
}
}
},
"withinBoundingBoxLimit": true,
"withinMaximumOrderValue": true,
"isMaterialPurchasable": true,
"isPostProcessingPurchasable": true,
"withinWallThicknessLimit": true,
"isPriceReviewRequired": true,
"canBePurchased": true
}
}Empty