Part
A Part object represents a specific part that you add to an Order as part of a Service.
Find line item assignments to line items
Find line item assignments to parts and tires
Query String parameters
- Name
laborIds- Type
- array
- Description
- ids of labors to assign
- Name
partIds- Type
- array
- Description
- ids of parts to assign
- Name
tireIds- Type
- array
- Description
- ids of tires to assign
- Name
userId- Type
- string
- Description
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
labors- Type
- array Required
- Description
- Name
parts- Type
- array Required
- Description
- Name
tires- Type
- array Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Request
curl https://api.shopmonkey.cloud/v3/line_item_assignment \
-H "Authorization: Bearer ${SM_TOKEN}"
Example Responseapplication/json
{
"success": true,
"data": {
"labors": [
{
"laborId": null,
"userId": "userId"
}
],
"parts": [
{
"partId": null,
"userId": "userId"
}
],
"tires": [
{
"tireId": null,
"userId": "userId"
}
]
}
}
Bulk line item assignments
Bulk line item assignments
Body parameters
Consumes
The following content type is required: application/json
Array of objects with the following properties:
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/line_item_assignment/bulk \
-H "Authorization: Bearer ${SM_TOKEN}" \
-X PUT -H 'Content-Type: application/json' \
--data '{}'
Example Responseapplication/json
{
"success": true
}
Update Bulk Parts
Update Bulk Parts for an Order
URL parameters
- Name
orderId- Type
- string Required
- Description
- the id for the order
Body parameters
Consumes
The following content type is required: application/json
Array of objects with the following properties:
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
order- Type
- object Required
- Description
- Order schema
Properties for order object
- Name
allowCollectPayment- Type
- boolean Required
- Description
- Name
allowCustomerApplyCoupon- Type
- boolean Required
- Description
- Name
allowCustomerAuthorization- Type
- boolean Required
- Description
- Name
allowCustomerViewActivity- Type
- boolean Required
- Description
- Name
allowCustomerViewAuthorizations- Type
- boolean Required
- Description
- Name
allowCustomerViewInspections- Type
- boolean Required
- Description
- Name
allowCustomerViewMessages- Type
- boolean Required
- Description
- Name
appliedDiscountValueType- Type
- one of: Percent, FixedCents Required
- Description
- Name
appointmentDates- Type
- array Required
- Description
- Name
archived- Type
- boolean Required
- Description
- Name
assignedTechnicianIds- Type
- array Required
- Description
- Name
attributionMessageId- Type
- string Required
- Description
- Name
attributionSource- Type
- one of: WorkRequestForm, AppointmentScheduler, Manual, FuzzyCampaignSMSDelivered, FuzzyCampaignEmailRead Required
- Description
- Name
authorized- Type
- boolean Required
- Description
- Name
authorizedDate- Type
- string Required
- Description
- Name
automatedCampaignId- Type
- string Required
- Description
- Name
coalescedName- Type
- string Required
- Description
- , "generatedName"
- Name
companyId- Type
- string Required
- Description
- Name
complaint- Type
- string Required
- Description
- Name
completedAuthorizedLaborHours- Type
- number Required
- Description
- Name
completedDate- Type
- string Required
- Description
- Name
completedLaborHours- Type
- number Required
- Description
- Name
conversationId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerId- Type
- string Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- // number of services that were deferred, excluding hidden, revived, and maually excluded
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
depositFullyPaid- Type
- boolean Required
- Description
- Name
depositFullyPaidDate- Type
- string Required
- Description
- Name
dueDate- Type
- string Required
- Description
- Name
emailId- Type
- string Required
- Description
- id of the email to use instead of the customer's default email
- Name
externalNumber- Type
- string Required
- Description
- allow user to override generated number
- Name
fullyPaidDate- Type
- string Required
- Description
- Name
generatedCustomerName- Type
- string Required
- Description
- "[firstName] [lastName]" pulled from the customer, if any
- Name
generatedName- Type
- string Required
- Description
- Name
generatedVehicleName- Type
- string Required
- Description
- "[year] [make] [model] [submodel]" pulled from the vehicle, if any
- Name
hasPayments- Type
- boolean Required
- Description
- if the order has any payments associated with it
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
inspectionCount- Type
- integer Required
- Description
- Name
inspectionReviewStatus- Type
- one of: None, Reviewed, NotReviewed Required
- Description
- Name
inspectionStatus- Type
- one of: None, Completed, NotCompleted Required
- Description
- Name
invoiced- Type
- boolean Required
- Description
- Name
invoicedDate- Type
- string Required
- Description
- Name
invoiceLockState- Type
- one of: Unlocked, Locked, PreviouslyLocked Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
messageCount- Type
- integer Required
- Description
- Name
messagedDate- Type
- string Required
- Description
- Name
mileageIn- Type
- number Required
- Description
- Name
mileageOut- Type
- number Required
- Description
- Name
name- Type
- string Required
- Description
- Name
number- Type
- string Required
- Description
- COLLATE "en-u-kn-true"
- Name
oneTimeCampaignId- Type
- string Required
- Description
- Name
orderCreatedDate- Type
- string Required
- Description
- allow user to override created date
- Name
paid- Type
- boolean Required
- Description
- Name
paymentDueDate- Type
- string Required
- Description
- Name
paymentTermId- Type
- string Required
- Description
- id of the payment term for the order
- Name
phoneNumberId- Type
- string Required
- Description
- id of the phone number to use instead of the customer's default number
- Name
publicId- Type
- string Required
- Description
- Name
purchaseOrderNumber- Type
- string Required
- Description
- Name
readOnly- Type
- boolean Required
- Description
- if this order should not be editable in the UI
- Name
readOnlyReason- Type
- string Required
- Description
- a friendly explanation of why (eg. "migrated from previous system"
- Name
recommendation- Type
- string Required
- Description
- Name
repairOrderDate- Type
- string Required
- Description
- // the date the order was moved into repair order status
- Name
requireESignatureOnAuthorization- Type
- boolean Required
- Description
- Name
requireESignatureOnInspection- Type
- boolean Required
- Description
- Name
requireESignatureOnInvoice- Type
- boolean Required
- Description
- Name
sentToCarfax- Type
- boolean Required
- Description
- Name
serviceWriterId- Type
- string Required
- Description
- Name
shopUnreadMessageCount- Type
- integer Required
- Description
- Name
statementId- Type
- string Required
- Description
- a statement this order included in
- Name
status- Type
- one of: Estimate, RepairOrder, Invoice Required
- Description
- Name
taxConfigId- Type
- string Required
- Description
- Name
totalAuthorizedLaborHours- Type
- number Required
- Description
- Name
totalLaborHours- Type
- number Required
- Description
- Name
transactionFeeConfigId- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
updatedSinceSignedInvoice- Type
- boolean Required
- Description
- Name
vehicleId- Type
- string Required
- Description
- Name
workflowStatusDate- Type
- string Required
- Description
- Name
workflowStatusDuration- Type
- object Required
- Description
- Stores how many time the order has been in each status
- Name
workflowStatusId- Type
- string Required
- Description
- Name
workflowStatusPosition- Type
- number Required
- Description
- Name
appliedDiscountCents- Type
- integer Required
- Description
- the total discount applied to the order in cents
- Name
appliedDiscountPercent- Type
- number Required
- Description
- the total discount applied to the order in percent
- Name
discountCents- Type
- integer Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
epaCents- Type
- integer Required
- Description
- Name
feesCents- Type
- integer Required
- Description
- Name
gstCents- Type
- integer Required
- Description
- Name
hstCents- Type
- integer Required
- Description
- Name
laborCents- Type
- integer Required
- Description
- Name
paidCostCents- Type
- integer Required
- Description
- Name
partsCents- Type
- integer Required
- Description
- Name
pstCents- Type
- integer Required
- Description
- Name
remainingCostCents- Type
- integer Required
- Description
- Name
requestedDepositCents- Type
- integer Required
- Description
- Name
shopSuppliesCents- Type
- integer Required
- Description
- Name
subcontractsCents- Type
- integer Required
- Description
- Name
taxCents- Type
- integer Required
- Description
- Name
tiresCents- Type
- integer Required
- Description
- Name
totalCostCents- Type
- integer Required
- Description
- Name
transactionalFeeSubtotalCents- Type
- integer Required
- Description
- // value before taxes
- Name
transactionalFeeTotalCents- Type
- integer Required
- Description
- Name
appointments- Type
- array Required
- Description
- Deprecated: will return []
- Name
authorizations- Type
- array Required
- Description
- Deprecated: will return []
- Name
automatedCampaign- Type
- object Required
- Description
- AutomatedCampaign schema
- Name
couponOrderDiscount- Type
- object Required
- Description
- CouponOrderDiscount schema
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
customer- Type
- object Required
- Description
- Name
files- Type
- array
- Description
- Name
inspections- Type
- array Required
- Description
- Deprecated: will return []
- Name
limitedView- Type
- boolean Required
- Description
- true when this is the limited order view of another company's order, with its money fields withheld as null
- Name
location- Type
- object
- Description
- The location the order belongs to. Returned by the find-one route to HQ callers and to shops with data sharing enabled.
- Name
oneTimeCampaign- Type
- object Required
- Description
- OneTimeCampaign schema
- Name
paymentTerm- Type
- object
- Description
- Name
profitability- Type
- object Required
- Description
- Name
services- Type
- array Required
- Description
- Soon will be deprecated!
- Name
vehicle- Type
- object Required
- Description
- Name
workflowStatus- Type
- object Required
- Description
- WorkflowStatus schema
Properties for automatedCampaign object
- Name
activatedByUserId- Type
- string Required
- Description
- Name
activatedDate- Type
- string Required
- Description
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
cannedServiceId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deferredServiceId- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
nextRunAt- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
reminderType- Type
- one of: Days, Weeks, Months, Years Required
- Description
- Name
reminderValue- Type
- integer Required
- Description
- Name
status- Type
- one of: Draft, Error, Paused, Active Required
- Description
- Name
type- Type
- one of: CannedServiceReminder, DeferredServiceReminder, CustomerLastServiceDate, AnyServiceFollowUp Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for couponOrderDiscount object
- Name
appliedByCustomerId- Type
- string Required
- Description
- the customer that applied the discount
- Name
appliedByUserId- Type
- string Required
- Description
- the user that applied the discount
- Name
appliedDate- Type
- string Required
- Description
- the time the discount was applied
- Name
appliedDiscountCents- Type
- integer Required
- Description
- The discount amount applied when the coupon was redeemed
- Name
companyId- Type
- string Required
- Description
- Name
couponCodeId- Type
- string Required
- Description
- the code entered; null if it has no code row
- Name
couponId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
orderId- Type
- string Required
- Description
- Name
redeemedDate- Type
- string Required
- Description
- the time the discount was redeemed
- Name
redeemedOrderTotalCents- Type
- integer Required
- Description
- Name
status- Type
- one of: Applied, Invalid, Redeemed Required
- Description
- Name
statusDate- Type
- string Required
- Description
- the time the status was last updated
- Name
statusInvalidReason- Type
- one of: Expired, NotStarted, NotApplicable, MinimumSpend, MaxRedemptions, AlreadyUsed Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for customer object
- Name
address1- Type
- string Required
- Description
- Name
address2- Type
- string Required
- Description
- Name
appointmentCount- Type
- integer Required
- Description
- Name
city- Type
- string Required
- Description
- Name
coalescedFirstNameOrCompanyName- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
companyName- Type
- string Required
- Description
- Name
country- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerType- Type
- one of: Customer, Fleet Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
dotNumber- Type
- string Required
- Description
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the customer in an external system
- Name
finixIdentityId- Type
- string Required
- Description
- Name
firstName- Type
- string Required
- Description
- Name
fleetId- Type
- string Required
- Description
- Name
gstExempt- Type
- boolean Required
- Description
- CA specific
- Name
hqCustomerId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for customer processing after HQ customer deletion
- Name
hstExempt- Type
- boolean Required
- Description
- CA specific
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
laborMatrixId- Type
- string Required
- Description
- Name
laborRateId- Type
- string Required
- Description
- Name
lastName- Type
- string Required
- Description
- Name
lastTimeOrderWorked- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
marketingOptIn- Type
- boolean Required
- Description
- was never used
- Name
messageCount- Type
- integer Required
- Description
- Name
normalizedFirstName- Type
- string Required
- Description
- Name
normalizedLastName- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- if fleet, contains the normalized companyName, else normalized firstName lastName
- Name
note- Type
- string Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the customer
- Name
paymentTermId- Type
- string Required
- Description
- Name
postalCode- Type
- string Required
- Description
- Name
preferredContactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
preferredLanguage- Type
- one of: en, en_US, fr_CA, es_MX Required
- Description
- Name
pricingMatrixId- Type
- string Required
- Description
- Name
pstExempt- Type
- boolean Required
- Description
- CA specific
- Name
publicId- Type
- string Required
- Description
- Name
referralSourceId- Type
- string Required
- Description
- Name
showLaborHours- Type
- boolean Required
- Description
- visibility overrides for labor hours, taking precedence over location configuration settings
- Name
showLaborNote- Type
- boolean Required
- Description
- visibility overrides for labor note, taking precedence over location configuration settings
- Name
showPartCostAndQuantity- Type
- boolean Required
- Description
- visibility overrides for part and tire price and quantity, taking precedence over location configuration settings
- Name
showPartNote- Type
- boolean Required
- Description
- visibility overrides for part and tire note, taking precedence over location configuration settings
- Name
showPartNumber- Type
- boolean Required
- Description
- visibility overrides for part and tire part number, taking precedence over location configuration settings
- Name
showSubcontractNote- Type
- boolean Required
- Description
- visibility overrides for subcontract note, taking precedence over location configuration settings
- Name
state- Type
- string Required
- Description
- Name
statementCount- Type
- integer Required
- Description
- Name
taxExempt- Type
- boolean Required
- Description
- US specific
- Name
transactionCount- Type
- integer Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vehicleCount- Type
- integer Required
- Description
- Name
website- Type
- string Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
bnplPrequalificationData- Type
- one of: any, null, any
- Description
- Sunbit pre-qualification results; amount, date, etc.
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
emails- Type
- array Required
- Description
- Name
phoneNumbers- Type
- array Required
- Description
Properties for location object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for oneTimeCampaign object
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
campaignSegmentationId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
sentByUserId- Type
- string Required
- Description
- Name
sentDate- Type
- string Required
- Description
- Name
status- Type
- one of: Draft, Error, Sending, Sent Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for paymentTerm object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for profitability object
- Name
labor- Type
- object Required
- Description
- Name
parts- Type
- object Required
- Description
- Name
subcontracts- Type
- object Required
- Description
- Name
tires- Type
- object Required
- Description
- Name
totalDiscountCents- Type
- number Required
- Description
- Name
totalDiscountPercent- Type
- number Required
- Description
- Name
totalProfitCents- Type
- number Required
- Description
- Name
totalProfitPercent- Type
- number Required
- Description
- Name
totalRetailCents- Type
- number Required
- Description
- Name
totalWholesaleCents- Type
- number Required
- Description
Properties for labor object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for parts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for subcontracts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for tires object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for vehicle object
- Name
appointmentCount- Type
- integer Required
- Description
- Name
baseId- Type
- integer Required
- Description
- vcdb base id
- Name
bedLength- Type
- string Required
- Description
- Name
bodyStyle- Type
- string Required
- Description
- Name
bodyStyleId- Type
- integer Required
- Description
- vcdb body style id
- Name
coalescedVINorHIN- Type
- string Required
- Description
- Name
color- Type
- one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
computed_ymm- Type
- string Required
- Description
- Name
configurationStatus- Type
- one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customPhoto- Type
- boolean Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
drivetrain- Type
- one of: RWD, FWD, FourWD, AWD Required
- Description
- Name
drivetype- Type
- string Required
- Description
- Name
drivetypeId- Type
- integer Required
- Description
- vcdb drivetype id
- Name
drivingCondition- Type
- one of: Normal, Severe Required
- Description
- Name
engine- Type
- string Required
- Description
- Name
engineHoursLogs- Type
- object Required
- Description
- an array of engine hours logs { engineId: string; inHours: number; outHours: number; orderId: string; }
- Name
engineId- Type
- integer Required
- Description
- vcdb engine id
- Name
engines- Type
- object Required
- Description
- an array of engines { id: string; make: string; model: string; hours: number; noHoursMeter: boolean; horsepower: number; serial: string; productionYear: number; productionMonth: number; }
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the vehicle in an external system
- Name
frontTireSize- Type
- string Required
- Description
- custom front tire size override value
- Name
hin- Type
- string Required
- Description
- Vessel hull identification number
- Name
hqVehicleId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
lastServicedDate- Type
- string Required
- Description
- Name
length- Type
- number Required
- Description
- Name
lengthUnit- Type
- one of: Ft, M Required
- Description
- Name
licensePlate- Type
- string Required
- Description
- Name
licensePlateCountry- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
licensePlateState- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
make- Type
- string Required
- Description
- holds Hull make for vessel
- Name
makeId- Type
- integer Required
- Description
- vcdb make id
- Name
messageCount- Type
- integer Required
- Description
- Name
mileage- Type
- number Required
- Description
- Name
mileageLogCount- Type
- integer Required
- Description
- Name
mileageUnit- Type
- one of: Mile, Kilometer Required
- Description
- Name
model- Type
- string Required
- Description
- Name
modelId- Type
- integer Required
- Description
- vcdb model id
- Name
name- Type
- string Required
- Description
- Custom vehicle name / Vessel registered name
- Name
note- Type
- string Required
- Description
- Name
odometer- Type
- boolean Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the vehicle
- Name
ownerCount- Type
- integer Required
- Description
- Name
preferredLaborGuide- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
productionDate- Type
- string Required
- Description
- Name
rearTireSize- Type
- string Required
- Description
- custom rear tire size override value
- Name
region- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
serial- Type
- string Required
- Description
- Name
size- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
stockPhoto- Type
- boolean Required
- Description
- Name
submodel- Type
- string Required
- Description
- Name
submodelId- Type
- integer Required
- Description
- vcdb submodel id
- Name
tirePressureLogCount- Type
- integer Required
- Description
- Name
transmission- Type
- one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
- Description
- Name
transmissionId- Type
- integer Required
- Description
- vcdb transmission id
- Name
transmissionMfrCode- Type
- string Required
- Description
- Name
transmissionSpeed- Type
- string Required
- Description
- Name
type- Type
- one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
- Description
- Name
unit- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vcdbId- Type
- integer Required
- Description
- vcdb id
- Name
vcdbVehicleId- Type
- string Required
- Description
- id of vcdb_vehicle record
- Name
vin- Type
- string Required
- Description
- Name
year- Type
- integer Required
- Description
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
tirePressureLogs- Type
- array
- Description
Properties for workflowStatus object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/order/:orderId/part_bulk \
-H "Authorization: Bearer ${SM_TOKEN}" \
-X PUT -H 'Content-Type: application/json' \
--data '{}'
Example Responseapplication/json
{
"success": true,
"data": {
"order": {
"allowCollectPayment": true,
"allowCustomerApplyCoupon": true,
"allowCustomerAuthorization": true,
"allowCustomerViewActivity": true,
"allowCustomerViewAuthorizations": true,
"allowCustomerViewInspections": true,
"allowCustomerViewMessages": true,
"appliedDiscountValueType": "appliedDiscountValueType",
"appointmentDates": [
"2024-01-01T00:00:00.000Z"
],
"archived": true,
"assignedTechnicianIds": [
"assignedTechnicianIds"
],
"attributionMessageId": null,
"attributionSource": null,
"authorized": true,
"authorizedDate": null,
"automatedCampaignId": null,
"coalescedName": null,
"companyId": "companyId",
"complaint": null,
"completedAuthorizedLaborHours": 1,
"completedDate": null,
"completedLaborHours": 1,
"conversationId": null,
"createdDate": "createdDate",
"customerId": null,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"depositFullyPaid": true,
"depositFullyPaidDate": null,
"dueDate": null,
"emailId": null,
"externalNumber": null,
"fullyPaidDate": null,
"generatedCustomerName": null,
"generatedName": null,
"generatedVehicleName": null,
"hasPayments": true,
"id": "id",
"imported": true,
"inspectionCount": 1,
"inspectionReviewStatus": "inspectionReviewStatus",
"inspectionStatus": "inspectionStatus",
"invoiced": true,
"invoicedDate": null,
"invoiceLockState": "invoiceLockState",
"locationId": "locationId",
"messageCount": 1,
"messagedDate": null,
"mileageIn": null,
"mileageOut": null,
"name": null,
"number": "number",
"oneTimeCampaignId": null,
"orderCreatedDate": "orderCreatedDate",
"paid": true,
"paymentDueDate": null,
"paymentTermId": null,
"phoneNumberId": null,
"publicId": "publicId",
"purchaseOrderNumber": null,
"readOnly": true,
"readOnlyReason": null,
"recommendation": null,
"repairOrderDate": null,
"requireESignatureOnAuthorization": true,
"requireESignatureOnInspection": true,
"requireESignatureOnInvoice": true,
"sentToCarfax": true,
"serviceWriterId": null,
"shopUnreadMessageCount": 1,
"statementId": null,
"status": "status",
"taxConfigId": null,
"totalAuthorizedLaborHours": 1,
"totalLaborHours": 1,
"transactionFeeConfigId": null,
"updatedDate": null,
"updatedSinceSignedInvoice": true,
"vehicleId": null,
"workflowStatusDate": "workflowStatusDate",
"workflowStatusId": null,
"workflowStatusPosition": null,
"appliedDiscountCents": null,
"appliedDiscountPercent": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"feesCents": null,
"gstCents": null,
"hstCents": null,
"laborCents": null,
"paidCostCents": null,
"partsCents": null,
"pstCents": null,
"remainingCostCents": null,
"requestedDepositCents": null,
"shopSuppliesCents": null,
"subcontractsCents": null,
"taxCents": null,
"tiresCents": null,
"totalCostCents": null,
"transactionalFeeSubtotalCents": null,
"transactionalFeeTotalCents": null,
"appointments": [
{
"allDay": true,
"attributionMessageId": null,
"attributionSource": null,
"automatedCampaignId": null,
"cancellationNote": null,
"chatBotSessionId": null,
"color": "color",
"companyId": "companyId",
"confirmationStatus": "confirmationStatus",
"confirmationSubject": null,
"confirmationTemplateIdentifier": null,
"confirmationText": null,
"createdDate": "createdDate",
"customerEmailId": null,
"customerId": null,
"customerPhoneNumberId": null,
"duration": null,
"endDate": "endDate",
"id": "id",
"isRecurringParent": true,
"lastRecurrenceEndDate": null,
"legacyHydratedReminder": true,
"locationId": "locationId",
"name": "name",
"note": "note",
"oneTimeCampaignId": null,
"orderId": null,
"origin": "origin",
"originalEndDate": null,
"originalStartDate": null,
"publicId": "publicId",
"recurring": true,
"recurringAppointmentId": null,
"recurringExceptionId": null,
"reminderSubject": null,
"reminderTemplateIdentifier": null,
"reminderText": null,
"removedFromRecurrency": true,
"rruleset": null,
"sendConfirmation": true,
"sendReminder": true,
"startDate": "startDate",
"updatedDate": null,
"useEmail": true,
"useSMS": true,
"vehicleId": null
}
],
"authorizations": [
{
"authorizedCostCents": 1,
"companyId": "companyId",
"createdDate": "createdDate",
"customerId": null,
"date": "date",
"id": "id",
"locationId": "locationId",
"method": "method",
"note": "note",
"orderId": "orderId",
"serviceAuthorizationReset": true,
"serviceWriterId": null,
"updatedDate": null
}
],
"automatedCampaign": {
"activatedByUserId": null,
"activatedDate": null,
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"cannedServiceId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deferredServiceId": null,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"nextRunAt": null,
"normalizedName": null,
"reminderType": null,
"reminderValue": null,
"status": "status",
"type": "type",
"updatedDate": null
},
"couponOrderDiscount": {
"appliedByCustomerId": null,
"appliedByUserId": null,
"appliedDate": "appliedDate",
"appliedDiscountCents": 1,
"companyId": "companyId",
"couponCodeId": null,
"couponId": "couponId",
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"redeemedDate": null,
"redeemedOrderTotalCents": null,
"status": "status",
"statusDate": null,
"statusInvalidReason": null,
"updatedDate": "updatedDate"
},
"customFields": {},
"customer": {
"address1": null,
"address2": null,
"appointmentCount": 1,
"city": null,
"coalescedFirstNameOrCompanyName": null,
"companyId": "companyId",
"companyName": null,
"country": null,
"createdDate": "createdDate",
"customerType": "customerType",
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"dotNumber": null,
"externalId": null,
"finixIdentityId": null,
"firstName": null,
"fleetId": null,
"gstExempt": true,
"hqCustomerId": null,
"hstExempt": true,
"id": "id",
"imported": true,
"laborMatrixId": null,
"laborRateId": null,
"lastName": null,
"lastTimeOrderWorked": null,
"locationIds": [
"locationIds"
],
"marketingOptIn": true,
"messageCount": 1,
"normalizedFirstName": null,
"normalizedLastName": null,
"normalizedName": null,
"note": "note",
"orderCount": 1,
"originLocationId": null,
"paymentTermId": null,
"postalCode": null,
"preferredContactMethod": null,
"preferredLanguage": "preferredLanguage",
"pricingMatrixId": null,
"pstExempt": true,
"publicId": "publicId",
"referralSourceId": null,
"showLaborHours": true,
"showLaborNote": true,
"showPartCostAndQuantity": true,
"showPartNote": true,
"showPartNumber": true,
"showSubcontractNote": true,
"state": null,
"statementCount": 1,
"taxExempt": true,
"transactionCount": 1,
"updatedDate": null,
"vehicleCount": 1,
"website": null,
"discountPercent": null,
"customFields": {},
"emails": [
{
"email": "email",
"id": "id",
"primary": true
}
],
"phoneNumbers": [
{
"extension": null,
"id": "id",
"number": "number",
"primary": true,
"type": null,
"userDefinedType": null
}
]
},
"files": [
{
"fileName": "fileName",
"fileSize": 1,
"fileType": "fileType",
"id": "id",
"thumbnailUrl": "thumbnailUrl",
"url": "url"
}
],
"inspections": [
{
"companyId": "companyId",
"completed": true,
"completedById": null,
"completedDate": null,
"createdById": null,
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"recommended": true,
"templateId": null,
"updatedDate": null
}
],
"limitedView": true,
"location": {
"id": "id",
"name": "name"
},
"oneTimeCampaign": {
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"campaignSegmentationId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"normalizedName": null,
"sentByUserId": null,
"sentDate": null,
"status": "status",
"updatedDate": null
},
"paymentTerm": {
"id": "id",
"name": "name"
},
"profitability": {
"labor": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"parts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"subcontracts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"tires": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"totalDiscountCents": 1,
"totalDiscountPercent": 1,
"totalProfitCents": 1,
"totalProfitPercent": 1,
"totalRetailCents": 1,
"totalWholesaleCents": 1
},
"services": [
{
"authorizationStatus": "authorizationStatus",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"deferredDate": null,
"deferredReason": null,
"discountValueType": "discountValueType",
"epaValueType": "epaValueType",
"excludedFromDeferred": true,
"gstValueType": "gstValueType",
"hidden": true,
"hideLineItemPricing": true,
"hstValueType": "hstValueType",
"id": "id",
"lineItemInventoryStatus": "lineItemInventoryStatus",
"locationId": "locationId",
"lumpSum": true,
"motorApplicationId": null,
"name": "name",
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"pstValueType": "pstValueType",
"recommended": true,
"revived": true,
"revivedFromId": null,
"shopSuppliesApplied": true,
"shopSuppliesValueType": "shopSuppliesValueType",
"sourceServiceId": null,
"taxValueType": "taxValueType",
"updatedDate": null,
"calculatedDiscountCents": null,
"calculatedDiscountPercent": null,
"calculatedEpaCents": null,
"calculatedFeeCents": null,
"calculatedGSTCents": null,
"calculatedHSTCents": null,
"calculatedLaborCents": null,
"calculatedPSTCents": null,
"calculatedPartsCents": null,
"calculatedShopSuppliesCents": null,
"calculatedSubcontractsCents": null,
"calculatedTaxCents": null,
"calculatedTiresCents": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"epaPercent": null,
"fixedPriceCents": null,
"gstCents": null,
"gstPercent": null,
"hstCents": null,
"hstPercent": null,
"pricing": null,
"pstCents": null,
"pstPercent": null,
"shopSuppliesCents": null,
"shopSuppliesPercent": null,
"taxCents": null,
"taxPercent": null,
"totalCents": null,
"fees": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"feeType": "feeType",
"id": "id",
"inventoryFeeId": null,
"laborId": null,
"lineItemEntity": null,
"locationId": "locationId",
"name": "name",
"orderId": "orderId",
"ordinal": 1,
"partId": null,
"serviceId": "serviceId",
"sourceItemId": null,
"subcontractId": null,
"tireId": null,
"updatedDate": null,
"amountCents": null,
"percent": null,
"subtotalCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
}
}
],
"labors": [
{
"applicationId": null,
"categoryId": null,
"companyId": "companyId",
"completed": true,
"completedDate": null,
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"hours": 1,
"id": "id",
"inventoryLaborId": null,
"laborMatrixDate": null,
"laborMatrixId": null,
"locationId": "locationId",
"motorApplicationId": null,
"multiplier": 1,
"multiplierType": "multiplierType",
"name": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"rateId": null,
"serviceId": "serviceId",
"showHours": true,
"showNote": true,
"skillRequired": null,
"skillRequiredDescription": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"technicianId": null,
"updatedDate": null,
"costHours": null,
"costRateCents": null,
"costTotalCents": null,
"discountCents": null,
"discountPercent": null,
"rateCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"laborMatrix": {
"id": "id",
"name": "name"
},
"laborRate": {
"id": "id",
"name": "name"
}
}
],
"limitedView": true,
"parts": [
{
"binLocation": "binLocation",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"fixedPriceLimitQuantity": null,
"fixedPriceLimitType": null,
"id": "id",
"inventoryPartId": null,
"inventoryStatus": "inventoryStatus",
"inventoryTransferPartId": null,
"locationId": "locationId",
"motorApplicationId": null,
"motorCommercialPartsId": null,
"name": "name",
"normalizedSKU": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pcDbTerminologyId": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"provider": null,
"providerApplicationId": null,
"purchaseOrderPartId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"url": null,
"vendorId": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"fixedPriceLimitPriceCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wholesaleCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"vendor": {
"id": "id",
"name": "name"
},
"inventoryPart": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
],
"subcontracts": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"serviceId": "serviceId",
"showNote": true,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"vendorId": null,
"costCents": null,
"discountCents": null,
"discountPercent": null,
"retailCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"vendor": {
"id": "id",
"name": "name"
}
}
],
"tires": [
{
"binLocation": null,
"calculatedName": "calculatedName",
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"generatedBrandName": "generatedBrandName",
"generatedModelName": "generatedModelName",
"id": "id",
"inventoryStatus": "inventoryStatus",
"inventoryTireId": null,
"inventoryTransferTireId": null,
"locationId": "locationId",
"name": "name",
"normalizedSKU": null,
"note": null,
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"purchaseOrderTireId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showNote": true,
"showPartNumber": true,
"showPriceAndQuantity": true,
"size": null,
"sizeFormat": "sizeFormat",
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"tireIdentificationNumbers": [
"tireIdentificationNumbers"
],
"tireModelId": null,
"updatedDate": null,
"url": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"federalExciseTaxCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wasteTireFee": null,
"wholesaleCostCents": null,
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"tireModel": {
"brandId": "brandId",
"categoryId": null,
"deleted": true,
"id": "id",
"name": "name",
"seasonality": null,
"vendorId": null,
"brand": {
"deleted": true,
"id": "id",
"name": "name"
},
"vendor": {
"deleted": true,
"id": "id",
"name": "name"
},
"category": {
"deleted": true,
"id": "id",
"name": "name",
"parent": {
"deleted": true,
"id": "id",
"name": "name"
}
}
},
"inventoryTire": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
]
}
],
"vehicle": {
"appointmentCount": 1,
"baseId": null,
"bedLength": null,
"bodyStyle": null,
"bodyStyleId": null,
"coalescedVINorHIN": null,
"color": null,
"companyId": "companyId",
"computed_ymm": null,
"configurationStatus": null,
"createdDate": "createdDate",
"customPhoto": true,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"drivetrain": null,
"drivetype": null,
"drivetypeId": null,
"drivingCondition": null,
"engine": null,
"engineId": null,
"externalId": null,
"frontTireSize": null,
"hin": null,
"hqVehicleId": null,
"id": "id",
"imported": true,
"lastServicedDate": null,
"length": null,
"lengthUnit": null,
"licensePlate": null,
"licensePlateCountry": "licensePlateCountry",
"licensePlateState": null,
"locationIds": [
"locationIds"
],
"make": null,
"makeId": null,
"messageCount": 1,
"mileage": null,
"mileageLogCount": 1,
"mileageUnit": "mileageUnit",
"model": null,
"modelId": null,
"name": null,
"note": "note",
"odometer": true,
"orderCount": 1,
"originLocationId": null,
"ownerCount": 1,
"preferredLaborGuide": "preferredLaborGuide",
"productionDate": null,
"rearTireSize": null,
"region": null,
"serial": null,
"size": "size",
"stockPhoto": true,
"submodel": null,
"submodelId": null,
"tirePressureLogCount": 1,
"transmission": null,
"transmissionId": null,
"transmissionMfrCode": null,
"transmissionSpeed": null,
"type": null,
"unit": null,
"updatedDate": null,
"vcdbId": null,
"vcdbVehicleId": null,
"vin": null,
"year": null,
"customFields": {},
"tirePressureLogs": [
{
"companyId": "companyId",
"createdDate": "createdDate",
"frontLeft": null,
"frontRight": null,
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"rearLeft": null,
"rearRight": null,
"updatedDate": null,
"vehicleId": "vehicleId"
}
]
},
"workflowStatus": {
"id": "id",
"name": null
}
}
}
}
Reserve multiple parts and tires
Reserve multiple parts and tires on an order
URL parameters
- Name
orderId- Type
- string Required
- Description
- the id for the order
Body parameters
Consumes
The following content type is required: application/json
- Name
parts- Type
- array
- Description
- Name
tires- Type
- array
- Description
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
order- Type
- object Required
- Description
- Order schema
Properties for order object
- Name
allowCollectPayment- Type
- boolean Required
- Description
- Name
allowCustomerApplyCoupon- Type
- boolean Required
- Description
- Name
allowCustomerAuthorization- Type
- boolean Required
- Description
- Name
allowCustomerViewActivity- Type
- boolean Required
- Description
- Name
allowCustomerViewAuthorizations- Type
- boolean Required
- Description
- Name
allowCustomerViewInspections- Type
- boolean Required
- Description
- Name
allowCustomerViewMessages- Type
- boolean Required
- Description
- Name
appliedDiscountValueType- Type
- one of: Percent, FixedCents Required
- Description
- Name
appointmentDates- Type
- array Required
- Description
- Name
archived- Type
- boolean Required
- Description
- Name
assignedTechnicianIds- Type
- array Required
- Description
- Name
attributionMessageId- Type
- string Required
- Description
- Name
attributionSource- Type
- one of: WorkRequestForm, AppointmentScheduler, Manual, FuzzyCampaignSMSDelivered, FuzzyCampaignEmailRead Required
- Description
- Name
authorized- Type
- boolean Required
- Description
- Name
authorizedDate- Type
- string Required
- Description
- Name
automatedCampaignId- Type
- string Required
- Description
- Name
coalescedName- Type
- string Required
- Description
- , "generatedName"
- Name
companyId- Type
- string Required
- Description
- Name
complaint- Type
- string Required
- Description
- Name
completedAuthorizedLaborHours- Type
- number Required
- Description
- Name
completedDate- Type
- string Required
- Description
- Name
completedLaborHours- Type
- number Required
- Description
- Name
conversationId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerId- Type
- string Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- // number of services that were deferred, excluding hidden, revived, and maually excluded
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
depositFullyPaid- Type
- boolean Required
- Description
- Name
depositFullyPaidDate- Type
- string Required
- Description
- Name
dueDate- Type
- string Required
- Description
- Name
emailId- Type
- string Required
- Description
- id of the email to use instead of the customer's default email
- Name
externalNumber- Type
- string Required
- Description
- allow user to override generated number
- Name
fullyPaidDate- Type
- string Required
- Description
- Name
generatedCustomerName- Type
- string Required
- Description
- "[firstName] [lastName]" pulled from the customer, if any
- Name
generatedName- Type
- string Required
- Description
- Name
generatedVehicleName- Type
- string Required
- Description
- "[year] [make] [model] [submodel]" pulled from the vehicle, if any
- Name
hasPayments- Type
- boolean Required
- Description
- if the order has any payments associated with it
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
inspectionCount- Type
- integer Required
- Description
- Name
inspectionReviewStatus- Type
- one of: None, Reviewed, NotReviewed Required
- Description
- Name
inspectionStatus- Type
- one of: None, Completed, NotCompleted Required
- Description
- Name
invoiced- Type
- boolean Required
- Description
- Name
invoicedDate- Type
- string Required
- Description
- Name
invoiceLockState- Type
- one of: Unlocked, Locked, PreviouslyLocked Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
messageCount- Type
- integer Required
- Description
- Name
messagedDate- Type
- string Required
- Description
- Name
mileageIn- Type
- number Required
- Description
- Name
mileageOut- Type
- number Required
- Description
- Name
name- Type
- string Required
- Description
- Name
number- Type
- string Required
- Description
- COLLATE "en-u-kn-true"
- Name
oneTimeCampaignId- Type
- string Required
- Description
- Name
orderCreatedDate- Type
- string Required
- Description
- allow user to override created date
- Name
paid- Type
- boolean Required
- Description
- Name
paymentDueDate- Type
- string Required
- Description
- Name
paymentTermId- Type
- string Required
- Description
- id of the payment term for the order
- Name
phoneNumberId- Type
- string Required
- Description
- id of the phone number to use instead of the customer's default number
- Name
publicId- Type
- string Required
- Description
- Name
purchaseOrderNumber- Type
- string Required
- Description
- Name
readOnly- Type
- boolean Required
- Description
- if this order should not be editable in the UI
- Name
readOnlyReason- Type
- string Required
- Description
- a friendly explanation of why (eg. "migrated from previous system"
- Name
recommendation- Type
- string Required
- Description
- Name
repairOrderDate- Type
- string Required
- Description
- // the date the order was moved into repair order status
- Name
requireESignatureOnAuthorization- Type
- boolean Required
- Description
- Name
requireESignatureOnInspection- Type
- boolean Required
- Description
- Name
requireESignatureOnInvoice- Type
- boolean Required
- Description
- Name
sentToCarfax- Type
- boolean Required
- Description
- Name
serviceWriterId- Type
- string Required
- Description
- Name
shopUnreadMessageCount- Type
- integer Required
- Description
- Name
statementId- Type
- string Required
- Description
- a statement this order included in
- Name
status- Type
- one of: Estimate, RepairOrder, Invoice Required
- Description
- Name
taxConfigId- Type
- string Required
- Description
- Name
totalAuthorizedLaborHours- Type
- number Required
- Description
- Name
totalLaborHours- Type
- number Required
- Description
- Name
transactionFeeConfigId- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
updatedSinceSignedInvoice- Type
- boolean Required
- Description
- Name
vehicleId- Type
- string Required
- Description
- Name
workflowStatusDate- Type
- string Required
- Description
- Name
workflowStatusDuration- Type
- object Required
- Description
- Stores how many time the order has been in each status
- Name
workflowStatusId- Type
- string Required
- Description
- Name
workflowStatusPosition- Type
- number Required
- Description
- Name
appliedDiscountCents- Type
- integer Required
- Description
- the total discount applied to the order in cents
- Name
appliedDiscountPercent- Type
- number Required
- Description
- the total discount applied to the order in percent
- Name
discountCents- Type
- integer Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
epaCents- Type
- integer Required
- Description
- Name
feesCents- Type
- integer Required
- Description
- Name
gstCents- Type
- integer Required
- Description
- Name
hstCents- Type
- integer Required
- Description
- Name
laborCents- Type
- integer Required
- Description
- Name
paidCostCents- Type
- integer Required
- Description
- Name
partsCents- Type
- integer Required
- Description
- Name
pstCents- Type
- integer Required
- Description
- Name
remainingCostCents- Type
- integer Required
- Description
- Name
requestedDepositCents- Type
- integer Required
- Description
- Name
shopSuppliesCents- Type
- integer Required
- Description
- Name
subcontractsCents- Type
- integer Required
- Description
- Name
taxCents- Type
- integer Required
- Description
- Name
tiresCents- Type
- integer Required
- Description
- Name
totalCostCents- Type
- integer Required
- Description
- Name
transactionalFeeSubtotalCents- Type
- integer Required
- Description
- // value before taxes
- Name
transactionalFeeTotalCents- Type
- integer Required
- Description
- Name
appointments- Type
- array Required
- Description
- Deprecated: will return []
- Name
authorizations- Type
- array Required
- Description
- Deprecated: will return []
- Name
automatedCampaign- Type
- object Required
- Description
- AutomatedCampaign schema
- Name
couponOrderDiscount- Type
- object Required
- Description
- CouponOrderDiscount schema
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
customer- Type
- object Required
- Description
- Name
files- Type
- array
- Description
- Name
inspections- Type
- array Required
- Description
- Deprecated: will return []
- Name
limitedView- Type
- boolean Required
- Description
- true when this is the limited order view of another company's order, with its money fields withheld as null
- Name
location- Type
- object
- Description
- The location the order belongs to. Returned by the find-one route to HQ callers and to shops with data sharing enabled.
- Name
oneTimeCampaign- Type
- object Required
- Description
- OneTimeCampaign schema
- Name
paymentTerm- Type
- object
- Description
- Name
profitability- Type
- object Required
- Description
- Name
services- Type
- array Required
- Description
- Soon will be deprecated!
- Name
vehicle- Type
- object Required
- Description
- Name
workflowStatus- Type
- object Required
- Description
- WorkflowStatus schema
Properties for automatedCampaign object
- Name
activatedByUserId- Type
- string Required
- Description
- Name
activatedDate- Type
- string Required
- Description
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
cannedServiceId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deferredServiceId- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
nextRunAt- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
reminderType- Type
- one of: Days, Weeks, Months, Years Required
- Description
- Name
reminderValue- Type
- integer Required
- Description
- Name
status- Type
- one of: Draft, Error, Paused, Active Required
- Description
- Name
type- Type
- one of: CannedServiceReminder, DeferredServiceReminder, CustomerLastServiceDate, AnyServiceFollowUp Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for couponOrderDiscount object
- Name
appliedByCustomerId- Type
- string Required
- Description
- the customer that applied the discount
- Name
appliedByUserId- Type
- string Required
- Description
- the user that applied the discount
- Name
appliedDate- Type
- string Required
- Description
- the time the discount was applied
- Name
appliedDiscountCents- Type
- integer Required
- Description
- The discount amount applied when the coupon was redeemed
- Name
companyId- Type
- string Required
- Description
- Name
couponCodeId- Type
- string Required
- Description
- the code entered; null if it has no code row
- Name
couponId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
orderId- Type
- string Required
- Description
- Name
redeemedDate- Type
- string Required
- Description
- the time the discount was redeemed
- Name
redeemedOrderTotalCents- Type
- integer Required
- Description
- Name
status- Type
- one of: Applied, Invalid, Redeemed Required
- Description
- Name
statusDate- Type
- string Required
- Description
- the time the status was last updated
- Name
statusInvalidReason- Type
- one of: Expired, NotStarted, NotApplicable, MinimumSpend, MaxRedemptions, AlreadyUsed Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for customer object
- Name
address1- Type
- string Required
- Description
- Name
address2- Type
- string Required
- Description
- Name
appointmentCount- Type
- integer Required
- Description
- Name
city- Type
- string Required
- Description
- Name
coalescedFirstNameOrCompanyName- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
companyName- Type
- string Required
- Description
- Name
country- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerType- Type
- one of: Customer, Fleet Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
dotNumber- Type
- string Required
- Description
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the customer in an external system
- Name
finixIdentityId- Type
- string Required
- Description
- Name
firstName- Type
- string Required
- Description
- Name
fleetId- Type
- string Required
- Description
- Name
gstExempt- Type
- boolean Required
- Description
- CA specific
- Name
hqCustomerId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for customer processing after HQ customer deletion
- Name
hstExempt- Type
- boolean Required
- Description
- CA specific
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
laborMatrixId- Type
- string Required
- Description
- Name
laborRateId- Type
- string Required
- Description
- Name
lastName- Type
- string Required
- Description
- Name
lastTimeOrderWorked- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
marketingOptIn- Type
- boolean Required
- Description
- was never used
- Name
messageCount- Type
- integer Required
- Description
- Name
normalizedFirstName- Type
- string Required
- Description
- Name
normalizedLastName- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- if fleet, contains the normalized companyName, else normalized firstName lastName
- Name
note- Type
- string Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the customer
- Name
paymentTermId- Type
- string Required
- Description
- Name
postalCode- Type
- string Required
- Description
- Name
preferredContactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
preferredLanguage- Type
- one of: en, en_US, fr_CA, es_MX Required
- Description
- Name
pricingMatrixId- Type
- string Required
- Description
- Name
pstExempt- Type
- boolean Required
- Description
- CA specific
- Name
publicId- Type
- string Required
- Description
- Name
referralSourceId- Type
- string Required
- Description
- Name
showLaborHours- Type
- boolean Required
- Description
- visibility overrides for labor hours, taking precedence over location configuration settings
- Name
showLaborNote- Type
- boolean Required
- Description
- visibility overrides for labor note, taking precedence over location configuration settings
- Name
showPartCostAndQuantity- Type
- boolean Required
- Description
- visibility overrides for part and tire price and quantity, taking precedence over location configuration settings
- Name
showPartNote- Type
- boolean Required
- Description
- visibility overrides for part and tire note, taking precedence over location configuration settings
- Name
showPartNumber- Type
- boolean Required
- Description
- visibility overrides for part and tire part number, taking precedence over location configuration settings
- Name
showSubcontractNote- Type
- boolean Required
- Description
- visibility overrides for subcontract note, taking precedence over location configuration settings
- Name
state- Type
- string Required
- Description
- Name
statementCount- Type
- integer Required
- Description
- Name
taxExempt- Type
- boolean Required
- Description
- US specific
- Name
transactionCount- Type
- integer Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vehicleCount- Type
- integer Required
- Description
- Name
website- Type
- string Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
bnplPrequalificationData- Type
- one of: any, null, any
- Description
- Sunbit pre-qualification results; amount, date, etc.
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
emails- Type
- array Required
- Description
- Name
phoneNumbers- Type
- array Required
- Description
Properties for location object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for oneTimeCampaign object
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
campaignSegmentationId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
sentByUserId- Type
- string Required
- Description
- Name
sentDate- Type
- string Required
- Description
- Name
status- Type
- one of: Draft, Error, Sending, Sent Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for paymentTerm object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for profitability object
- Name
labor- Type
- object Required
- Description
- Name
parts- Type
- object Required
- Description
- Name
subcontracts- Type
- object Required
- Description
- Name
tires- Type
- object Required
- Description
- Name
totalDiscountCents- Type
- number Required
- Description
- Name
totalDiscountPercent- Type
- number Required
- Description
- Name
totalProfitCents- Type
- number Required
- Description
- Name
totalProfitPercent- Type
- number Required
- Description
- Name
totalRetailCents- Type
- number Required
- Description
- Name
totalWholesaleCents- Type
- number Required
- Description
Properties for labor object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for parts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for subcontracts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for tires object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for vehicle object
- Name
appointmentCount- Type
- integer Required
- Description
- Name
baseId- Type
- integer Required
- Description
- vcdb base id
- Name
bedLength- Type
- string Required
- Description
- Name
bodyStyle- Type
- string Required
- Description
- Name
bodyStyleId- Type
- integer Required
- Description
- vcdb body style id
- Name
coalescedVINorHIN- Type
- string Required
- Description
- Name
color- Type
- one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
computed_ymm- Type
- string Required
- Description
- Name
configurationStatus- Type
- one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customPhoto- Type
- boolean Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
drivetrain- Type
- one of: RWD, FWD, FourWD, AWD Required
- Description
- Name
drivetype- Type
- string Required
- Description
- Name
drivetypeId- Type
- integer Required
- Description
- vcdb drivetype id
- Name
drivingCondition- Type
- one of: Normal, Severe Required
- Description
- Name
engine- Type
- string Required
- Description
- Name
engineHoursLogs- Type
- object Required
- Description
- an array of engine hours logs { engineId: string; inHours: number; outHours: number; orderId: string; }
- Name
engineId- Type
- integer Required
- Description
- vcdb engine id
- Name
engines- Type
- object Required
- Description
- an array of engines { id: string; make: string; model: string; hours: number; noHoursMeter: boolean; horsepower: number; serial: string; productionYear: number; productionMonth: number; }
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the vehicle in an external system
- Name
frontTireSize- Type
- string Required
- Description
- custom front tire size override value
- Name
hin- Type
- string Required
- Description
- Vessel hull identification number
- Name
hqVehicleId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
lastServicedDate- Type
- string Required
- Description
- Name
length- Type
- number Required
- Description
- Name
lengthUnit- Type
- one of: Ft, M Required
- Description
- Name
licensePlate- Type
- string Required
- Description
- Name
licensePlateCountry- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
licensePlateState- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
make- Type
- string Required
- Description
- holds Hull make for vessel
- Name
makeId- Type
- integer Required
- Description
- vcdb make id
- Name
messageCount- Type
- integer Required
- Description
- Name
mileage- Type
- number Required
- Description
- Name
mileageLogCount- Type
- integer Required
- Description
- Name
mileageUnit- Type
- one of: Mile, Kilometer Required
- Description
- Name
model- Type
- string Required
- Description
- Name
modelId- Type
- integer Required
- Description
- vcdb model id
- Name
name- Type
- string Required
- Description
- Custom vehicle name / Vessel registered name
- Name
note- Type
- string Required
- Description
- Name
odometer- Type
- boolean Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the vehicle
- Name
ownerCount- Type
- integer Required
- Description
- Name
preferredLaborGuide- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
productionDate- Type
- string Required
- Description
- Name
rearTireSize- Type
- string Required
- Description
- custom rear tire size override value
- Name
region- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
serial- Type
- string Required
- Description
- Name
size- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
stockPhoto- Type
- boolean Required
- Description
- Name
submodel- Type
- string Required
- Description
- Name
submodelId- Type
- integer Required
- Description
- vcdb submodel id
- Name
tirePressureLogCount- Type
- integer Required
- Description
- Name
transmission- Type
- one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
- Description
- Name
transmissionId- Type
- integer Required
- Description
- vcdb transmission id
- Name
transmissionMfrCode- Type
- string Required
- Description
- Name
transmissionSpeed- Type
- string Required
- Description
- Name
type- Type
- one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
- Description
- Name
unit- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vcdbId- Type
- integer Required
- Description
- vcdb id
- Name
vcdbVehicleId- Type
- string Required
- Description
- id of vcdb_vehicle record
- Name
vin- Type
- string Required
- Description
- Name
year- Type
- integer Required
- Description
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
tirePressureLogs- Type
- array
- Description
Properties for workflowStatus object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/order/:orderId/bulk_reserve \
-H "Authorization: Bearer ${SM_TOKEN}" \
-X PUT -H 'Content-Type: application/json' \
--data '{}'
Example Responseapplication/json
{
"success": true,
"data": {
"order": {
"allowCollectPayment": true,
"allowCustomerApplyCoupon": true,
"allowCustomerAuthorization": true,
"allowCustomerViewActivity": true,
"allowCustomerViewAuthorizations": true,
"allowCustomerViewInspections": true,
"allowCustomerViewMessages": true,
"appliedDiscountValueType": "appliedDiscountValueType",
"appointmentDates": [
"2024-01-01T00:00:00.000Z"
],
"archived": true,
"assignedTechnicianIds": [
"assignedTechnicianIds"
],
"attributionMessageId": null,
"attributionSource": null,
"authorized": true,
"authorizedDate": null,
"automatedCampaignId": null,
"coalescedName": null,
"companyId": "companyId",
"complaint": null,
"completedAuthorizedLaborHours": 1,
"completedDate": null,
"completedLaborHours": 1,
"conversationId": null,
"createdDate": "createdDate",
"customerId": null,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"depositFullyPaid": true,
"depositFullyPaidDate": null,
"dueDate": null,
"emailId": null,
"externalNumber": null,
"fullyPaidDate": null,
"generatedCustomerName": null,
"generatedName": null,
"generatedVehicleName": null,
"hasPayments": true,
"id": "id",
"imported": true,
"inspectionCount": 1,
"inspectionReviewStatus": "inspectionReviewStatus",
"inspectionStatus": "inspectionStatus",
"invoiced": true,
"invoicedDate": null,
"invoiceLockState": "invoiceLockState",
"locationId": "locationId",
"messageCount": 1,
"messagedDate": null,
"mileageIn": null,
"mileageOut": null,
"name": null,
"number": "number",
"oneTimeCampaignId": null,
"orderCreatedDate": "orderCreatedDate",
"paid": true,
"paymentDueDate": null,
"paymentTermId": null,
"phoneNumberId": null,
"publicId": "publicId",
"purchaseOrderNumber": null,
"readOnly": true,
"readOnlyReason": null,
"recommendation": null,
"repairOrderDate": null,
"requireESignatureOnAuthorization": true,
"requireESignatureOnInspection": true,
"requireESignatureOnInvoice": true,
"sentToCarfax": true,
"serviceWriterId": null,
"shopUnreadMessageCount": 1,
"statementId": null,
"status": "status",
"taxConfigId": null,
"totalAuthorizedLaborHours": 1,
"totalLaborHours": 1,
"transactionFeeConfigId": null,
"updatedDate": null,
"updatedSinceSignedInvoice": true,
"vehicleId": null,
"workflowStatusDate": "workflowStatusDate",
"workflowStatusId": null,
"workflowStatusPosition": null,
"appliedDiscountCents": null,
"appliedDiscountPercent": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"feesCents": null,
"gstCents": null,
"hstCents": null,
"laborCents": null,
"paidCostCents": null,
"partsCents": null,
"pstCents": null,
"remainingCostCents": null,
"requestedDepositCents": null,
"shopSuppliesCents": null,
"subcontractsCents": null,
"taxCents": null,
"tiresCents": null,
"totalCostCents": null,
"transactionalFeeSubtotalCents": null,
"transactionalFeeTotalCents": null,
"appointments": [
{
"allDay": true,
"attributionMessageId": null,
"attributionSource": null,
"automatedCampaignId": null,
"cancellationNote": null,
"chatBotSessionId": null,
"color": "color",
"companyId": "companyId",
"confirmationStatus": "confirmationStatus",
"confirmationSubject": null,
"confirmationTemplateIdentifier": null,
"confirmationText": null,
"createdDate": "createdDate",
"customerEmailId": null,
"customerId": null,
"customerPhoneNumberId": null,
"duration": null,
"endDate": "endDate",
"id": "id",
"isRecurringParent": true,
"lastRecurrenceEndDate": null,
"legacyHydratedReminder": true,
"locationId": "locationId",
"name": "name",
"note": "note",
"oneTimeCampaignId": null,
"orderId": null,
"origin": "origin",
"originalEndDate": null,
"originalStartDate": null,
"publicId": "publicId",
"recurring": true,
"recurringAppointmentId": null,
"recurringExceptionId": null,
"reminderSubject": null,
"reminderTemplateIdentifier": null,
"reminderText": null,
"removedFromRecurrency": true,
"rruleset": null,
"sendConfirmation": true,
"sendReminder": true,
"startDate": "startDate",
"updatedDate": null,
"useEmail": true,
"useSMS": true,
"vehicleId": null
}
],
"authorizations": [
{
"authorizedCostCents": 1,
"companyId": "companyId",
"createdDate": "createdDate",
"customerId": null,
"date": "date",
"id": "id",
"locationId": "locationId",
"method": "method",
"note": "note",
"orderId": "orderId",
"serviceAuthorizationReset": true,
"serviceWriterId": null,
"updatedDate": null
}
],
"automatedCampaign": {
"activatedByUserId": null,
"activatedDate": null,
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"cannedServiceId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deferredServiceId": null,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"nextRunAt": null,
"normalizedName": null,
"reminderType": null,
"reminderValue": null,
"status": "status",
"type": "type",
"updatedDate": null
},
"couponOrderDiscount": {
"appliedByCustomerId": null,
"appliedByUserId": null,
"appliedDate": "appliedDate",
"appliedDiscountCents": 1,
"companyId": "companyId",
"couponCodeId": null,
"couponId": "couponId",
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"redeemedDate": null,
"redeemedOrderTotalCents": null,
"status": "status",
"statusDate": null,
"statusInvalidReason": null,
"updatedDate": "updatedDate"
},
"customFields": {},
"customer": {
"address1": null,
"address2": null,
"appointmentCount": 1,
"city": null,
"coalescedFirstNameOrCompanyName": null,
"companyId": "companyId",
"companyName": null,
"country": null,
"createdDate": "createdDate",
"customerType": "customerType",
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"dotNumber": null,
"externalId": null,
"finixIdentityId": null,
"firstName": null,
"fleetId": null,
"gstExempt": true,
"hqCustomerId": null,
"hstExempt": true,
"id": "id",
"imported": true,
"laborMatrixId": null,
"laborRateId": null,
"lastName": null,
"lastTimeOrderWorked": null,
"locationIds": [
"locationIds"
],
"marketingOptIn": true,
"messageCount": 1,
"normalizedFirstName": null,
"normalizedLastName": null,
"normalizedName": null,
"note": "note",
"orderCount": 1,
"originLocationId": null,
"paymentTermId": null,
"postalCode": null,
"preferredContactMethod": null,
"preferredLanguage": "preferredLanguage",
"pricingMatrixId": null,
"pstExempt": true,
"publicId": "publicId",
"referralSourceId": null,
"showLaborHours": true,
"showLaborNote": true,
"showPartCostAndQuantity": true,
"showPartNote": true,
"showPartNumber": true,
"showSubcontractNote": true,
"state": null,
"statementCount": 1,
"taxExempt": true,
"transactionCount": 1,
"updatedDate": null,
"vehicleCount": 1,
"website": null,
"discountPercent": null,
"customFields": {},
"emails": [
{
"email": "email",
"id": "id",
"primary": true
}
],
"phoneNumbers": [
{
"extension": null,
"id": "id",
"number": "number",
"primary": true,
"type": null,
"userDefinedType": null
}
]
},
"files": [
{
"fileName": "fileName",
"fileSize": 1,
"fileType": "fileType",
"id": "id",
"thumbnailUrl": "thumbnailUrl",
"url": "url"
}
],
"inspections": [
{
"companyId": "companyId",
"completed": true,
"completedById": null,
"completedDate": null,
"createdById": null,
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"recommended": true,
"templateId": null,
"updatedDate": null
}
],
"limitedView": true,
"location": {
"id": "id",
"name": "name"
},
"oneTimeCampaign": {
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"campaignSegmentationId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"normalizedName": null,
"sentByUserId": null,
"sentDate": null,
"status": "status",
"updatedDate": null
},
"paymentTerm": {
"id": "id",
"name": "name"
},
"profitability": {
"labor": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"parts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"subcontracts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"tires": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"totalDiscountCents": 1,
"totalDiscountPercent": 1,
"totalProfitCents": 1,
"totalProfitPercent": 1,
"totalRetailCents": 1,
"totalWholesaleCents": 1
},
"services": [
{
"authorizationStatus": "authorizationStatus",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"deferredDate": null,
"deferredReason": null,
"discountValueType": "discountValueType",
"epaValueType": "epaValueType",
"excludedFromDeferred": true,
"gstValueType": "gstValueType",
"hidden": true,
"hideLineItemPricing": true,
"hstValueType": "hstValueType",
"id": "id",
"lineItemInventoryStatus": "lineItemInventoryStatus",
"locationId": "locationId",
"lumpSum": true,
"motorApplicationId": null,
"name": "name",
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"pstValueType": "pstValueType",
"recommended": true,
"revived": true,
"revivedFromId": null,
"shopSuppliesApplied": true,
"shopSuppliesValueType": "shopSuppliesValueType",
"sourceServiceId": null,
"taxValueType": "taxValueType",
"updatedDate": null,
"calculatedDiscountCents": null,
"calculatedDiscountPercent": null,
"calculatedEpaCents": null,
"calculatedFeeCents": null,
"calculatedGSTCents": null,
"calculatedHSTCents": null,
"calculatedLaborCents": null,
"calculatedPSTCents": null,
"calculatedPartsCents": null,
"calculatedShopSuppliesCents": null,
"calculatedSubcontractsCents": null,
"calculatedTaxCents": null,
"calculatedTiresCents": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"epaPercent": null,
"fixedPriceCents": null,
"gstCents": null,
"gstPercent": null,
"hstCents": null,
"hstPercent": null,
"pricing": null,
"pstCents": null,
"pstPercent": null,
"shopSuppliesCents": null,
"shopSuppliesPercent": null,
"taxCents": null,
"taxPercent": null,
"totalCents": null,
"fees": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"feeType": "feeType",
"id": "id",
"inventoryFeeId": null,
"laborId": null,
"lineItemEntity": null,
"locationId": "locationId",
"name": "name",
"orderId": "orderId",
"ordinal": 1,
"partId": null,
"serviceId": "serviceId",
"sourceItemId": null,
"subcontractId": null,
"tireId": null,
"updatedDate": null,
"amountCents": null,
"percent": null,
"subtotalCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
}
}
],
"labors": [
{
"applicationId": null,
"categoryId": null,
"companyId": "companyId",
"completed": true,
"completedDate": null,
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"hours": 1,
"id": "id",
"inventoryLaborId": null,
"laborMatrixDate": null,
"laborMatrixId": null,
"locationId": "locationId",
"motorApplicationId": null,
"multiplier": 1,
"multiplierType": "multiplierType",
"name": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"rateId": null,
"serviceId": "serviceId",
"showHours": true,
"showNote": true,
"skillRequired": null,
"skillRequiredDescription": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"technicianId": null,
"updatedDate": null,
"costHours": null,
"costRateCents": null,
"costTotalCents": null,
"discountCents": null,
"discountPercent": null,
"rateCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"laborMatrix": {
"id": "id",
"name": "name"
},
"laborRate": {
"id": "id",
"name": "name"
}
}
],
"limitedView": true,
"parts": [
{
"binLocation": "binLocation",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"fixedPriceLimitQuantity": null,
"fixedPriceLimitType": null,
"id": "id",
"inventoryPartId": null,
"inventoryStatus": "inventoryStatus",
"inventoryTransferPartId": null,
"locationId": "locationId",
"motorApplicationId": null,
"motorCommercialPartsId": null,
"name": "name",
"normalizedSKU": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pcDbTerminologyId": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"provider": null,
"providerApplicationId": null,
"purchaseOrderPartId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"url": null,
"vendorId": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"fixedPriceLimitPriceCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wholesaleCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"vendor": {
"id": "id",
"name": "name"
},
"inventoryPart": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
],
"subcontracts": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"serviceId": "serviceId",
"showNote": true,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"vendorId": null,
"costCents": null,
"discountCents": null,
"discountPercent": null,
"retailCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"vendor": {
"id": "id",
"name": "name"
}
}
],
"tires": [
{
"binLocation": null,
"calculatedName": "calculatedName",
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"generatedBrandName": "generatedBrandName",
"generatedModelName": "generatedModelName",
"id": "id",
"inventoryStatus": "inventoryStatus",
"inventoryTireId": null,
"inventoryTransferTireId": null,
"locationId": "locationId",
"name": "name",
"normalizedSKU": null,
"note": null,
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"purchaseOrderTireId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showNote": true,
"showPartNumber": true,
"showPriceAndQuantity": true,
"size": null,
"sizeFormat": "sizeFormat",
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"tireIdentificationNumbers": [
"tireIdentificationNumbers"
],
"tireModelId": null,
"updatedDate": null,
"url": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"federalExciseTaxCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wasteTireFee": null,
"wholesaleCostCents": null,
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"tireModel": {
"brandId": "brandId",
"categoryId": null,
"deleted": true,
"id": "id",
"name": "name",
"seasonality": null,
"vendorId": null,
"brand": {
"deleted": true,
"id": "id",
"name": "name"
},
"vendor": {
"deleted": true,
"id": "id",
"name": "name"
},
"category": {
"deleted": true,
"id": "id",
"name": "name",
"parent": {
"deleted": true,
"id": "id",
"name": "name"
}
}
},
"inventoryTire": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
]
}
],
"vehicle": {
"appointmentCount": 1,
"baseId": null,
"bedLength": null,
"bodyStyle": null,
"bodyStyleId": null,
"coalescedVINorHIN": null,
"color": null,
"companyId": "companyId",
"computed_ymm": null,
"configurationStatus": null,
"createdDate": "createdDate",
"customPhoto": true,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"drivetrain": null,
"drivetype": null,
"drivetypeId": null,
"drivingCondition": null,
"engine": null,
"engineId": null,
"externalId": null,
"frontTireSize": null,
"hin": null,
"hqVehicleId": null,
"id": "id",
"imported": true,
"lastServicedDate": null,
"length": null,
"lengthUnit": null,
"licensePlate": null,
"licensePlateCountry": "licensePlateCountry",
"licensePlateState": null,
"locationIds": [
"locationIds"
],
"make": null,
"makeId": null,
"messageCount": 1,
"mileage": null,
"mileageLogCount": 1,
"mileageUnit": "mileageUnit",
"model": null,
"modelId": null,
"name": null,
"note": "note",
"odometer": true,
"orderCount": 1,
"originLocationId": null,
"ownerCount": 1,
"preferredLaborGuide": "preferredLaborGuide",
"productionDate": null,
"rearTireSize": null,
"region": null,
"serial": null,
"size": "size",
"stockPhoto": true,
"submodel": null,
"submodelId": null,
"tirePressureLogCount": 1,
"transmission": null,
"transmissionId": null,
"transmissionMfrCode": null,
"transmissionSpeed": null,
"type": null,
"unit": null,
"updatedDate": null,
"vcdbId": null,
"vcdbVehicleId": null,
"vin": null,
"year": null,
"customFields": {},
"tirePressureLogs": [
{
"companyId": "companyId",
"createdDate": "createdDate",
"frontLeft": null,
"frontRight": null,
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"rearLeft": null,
"rearRight": null,
"updatedDate": null,
"vehicleId": "vehicleId"
}
]
},
"workflowStatus": {
"id": "id",
"name": null
}
}
}
}
Update Order Line Item
Update an Order Line Item for part
URL parameters
- Name
id- Type
- string Required
- Description
- the id for part
- Name
orderId- Type
- string Required
- Description
- the id for the order
- Name
serviceId- Type
- string Required
- Description
- the id for the service
Query String parameters
- Name
includeOrder- Type
- boolean
- Description
- include the updated order in the response (default true)
Body parameters
Consumes
The following content type is required: application/json
- Name
binLocation- Type
- string
- Description
- Name
categoryId- Type
- string
- Description
- Name
discountCents- Type
- integer
- Description
- Name
discountPercent- Type
- number
- Description
- Name
discountValueType- Type
- one of: Percent, FixedCents
- Description
- Name
fixedPriceLimitPriceCents- Type
- integer
- Description
- Part prices exceeding the amount will have their difference charged in addition to the fixed price canned service.
- Name
fixedPriceLimitQuantity- Type
- number
- Description
- Quantities exceeding the amount will be charged based on their individual part price as an addition to the fixed price canned service.
- Name
fixedPriceLimitType- Type
- one of: None, Quantity, Price
- Description
- Name
inventoryPartId- Type
- string
- Description
- Name
inventoryTransferPartId- Type
- string
- Description
- Name
motorApplicationId- Type
- integer
- Description
- use providerApplicationId, light-duty only
- Name
motorCommercialPartsId- Type
- integer
- Description
- heavy-duty only
- Name
name- Type
- string
- Description
- Name
note- Type
- string
- Description
- Name
orderId- Type
- string
- Description
- Name
ordinal- Type
- number
- Description
- Name
partNumber- Type
- string
- Description
- Name
pcDbTerminologyId- Type
- integer
- Description
- product classification database terminology id for aftermarket parts, etc
- Name
pricingMatrixId- Type
- string
- Description
- Name
provider- Type
- one of: Motor, Alldata
- Description
- Name
providerApplicationId- Type
- string
- Description
- Name
quantity- Type
- number
- Description
- Name
reduceInventoryCount- Type
- boolean
- Description
- Name
reserved- Type
- boolean
- Description
- Name
retailCostCents- Type
- integer
- Description
- Name
serviceId- Type
- string
- Description
- Name
showCostAndQuantity- Type
- boolean
- Description
- Name
showNote- Type
- boolean
- Description
- Name
showPartNumber- Type
- boolean
- Description
- Name
sku- Type
- string
- Description
- Name
sourceItemId- Type
- string
- Description
- Name
taxable- Type
- boolean
- Description
- US specific
- Name
taxableGST- Type
- boolean
- Description
- CA specific
- Name
taxableHST- Type
- boolean
- Description
- CA specific
- Name
taxablePST- Type
- boolean
- Description
- CA specific
- Name
url- Type
- string
- Description
- Name
vendorId- Type
- string
- Description
- Name
wholesaleCostCents- Type
- integer
- Description
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
lineItem- Type
- object
- Description
- Part schema
- Name
order- Type
- object
- Description
- Order schema
Properties for lineItem object
- Name
binLocation- Type
- string Required
- Description
- Name
calculatedCOGSCents- Type
- integer Required
- Description
- original cost calculated from batch consumption (null = pre-COGS or CurrentCost
- Name
categoryId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
discountCents- Type
- integer Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
discountValueType- Type
- one of: Percent, FixedCents Required
- Description
- Name
fixedPriceLimitPriceCents- Type
- integer Required
- Description
- Part prices exceeding the amount will have their difference charged in addition to the fixed price canned service.
- Name
fixedPriceLimitQuantity- Type
- number Required
- Description
- Quantities exceeding the amount will be charged based on their individual part price as an addition to the fixed price canned service.
- Name
fixedPriceLimitType- Type
- one of: None, Quantity, Price Required
- Description
- Name
id- Type
- string Required
- Description
- Name
inventoryPartId- Type
- string Required
- Description
- Name
inventoryStatus- Type
- one of: OnEstimate, InventoryReduced, None Required
- Description
- Name
inventoryTransferPartId- Type
- string Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
motorApplicationId- Type
- integer Required
- Description
- use providerApplicationId, light-duty only
- Name
motorCommercialPartsId- Type
- integer Required
- Description
- heavy-duty only
- Name
name- Type
- string Required
- Description
- Name
normalizedSKU- Type
- string Required
- Description
- Name
note- Type
- string Required
- Description
- Name
orderId- Type
- string Required
- Description
- Name
ordinal- Type
- number Required
- Description
- Name
originalWholesaleCostCents- Type
- integer Required
- Description
- estimate-time cost snapshot; wholesaleCostCents may drift from it once inventory is consumed (null = not cost-managed
- Name
partNumber- Type
- string Required
- Description
- Name
pcDbTerminologyId- Type
- integer Required
- Description
- product classification database terminology id for aftermarket parts, etc
- Name
pricingMatrixDate- Type
- string Required
- Description
- datetime when pricingMatrixId was set, for determining if matrix has been changed
- Name
pricingMatrixId- Type
- string Required
- Description
- Name
provider- Type
- one of: Motor, Alldata Required
- Description
- Name
providerApplicationId- Type
- string Required
- Description
- Name
purchaseOrderPartId- Type
- string Required
- Description
- Name
purchaseStatus- Type
- one of: Cancelled, Draft, Fulfilled, Ordered, Received Required
- Description
- Name
quantity- Type
- number Required
- Description
- Name
reduceInventoryCount- Type
- boolean Required
- Description
- Name
reserved- Type
- boolean Required
- Description
- Name
retailCostCents- Type
- integer Required
- Description
- Name
serviceId- Type
- string Required
- Description
- Name
showCostAndQuantity- Type
- boolean Required
- Description
- Name
showNote- Type
- boolean Required
- Description
- Name
showPartNumber- Type
- boolean Required
- Description
- Name
sku- Type
- string Required
- Description
- Name
sourceItemId- Type
- string Required
- Description
- Name
taxable- Type
- boolean Required
- Description
- US specific
- Name
taxableGST- Type
- boolean Required
- Description
- CA specific
- Name
taxableHST- Type
- boolean Required
- Description
- CA specific
- Name
taxablePST- Type
- boolean Required
- Description
- CA specific
- Name
updatedDate- Type
- string Required
- Description
- Name
url- Type
- string Required
- Description
- Name
vendorId- Type
- string Required
- Description
- Name
wholesaleCostCents- Type
- integer Required
- Description
Properties for order object
- Name
allowCollectPayment- Type
- boolean Required
- Description
- Name
allowCustomerApplyCoupon- Type
- boolean Required
- Description
- Name
allowCustomerAuthorization- Type
- boolean Required
- Description
- Name
allowCustomerViewActivity- Type
- boolean Required
- Description
- Name
allowCustomerViewAuthorizations- Type
- boolean Required
- Description
- Name
allowCustomerViewInspections- Type
- boolean Required
- Description
- Name
allowCustomerViewMessages- Type
- boolean Required
- Description
- Name
appliedDiscountValueType- Type
- one of: Percent, FixedCents Required
- Description
- Name
appointmentDates- Type
- array Required
- Description
- Name
archived- Type
- boolean Required
- Description
- Name
assignedTechnicianIds- Type
- array Required
- Description
- Name
attributionMessageId- Type
- string Required
- Description
- Name
attributionSource- Type
- one of: WorkRequestForm, AppointmentScheduler, Manual, FuzzyCampaignSMSDelivered, FuzzyCampaignEmailRead Required
- Description
- Name
authorized- Type
- boolean Required
- Description
- Name
authorizedDate- Type
- string Required
- Description
- Name
automatedCampaignId- Type
- string Required
- Description
- Name
coalescedName- Type
- string Required
- Description
- , "generatedName"
- Name
companyId- Type
- string Required
- Description
- Name
complaint- Type
- string Required
- Description
- Name
completedAuthorizedLaborHours- Type
- number Required
- Description
- Name
completedDate- Type
- string Required
- Description
- Name
completedLaborHours- Type
- number Required
- Description
- Name
conversationId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerId- Type
- string Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- // number of services that were deferred, excluding hidden, revived, and maually excluded
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
depositFullyPaid- Type
- boolean Required
- Description
- Name
depositFullyPaidDate- Type
- string Required
- Description
- Name
dueDate- Type
- string Required
- Description
- Name
emailId- Type
- string Required
- Description
- id of the email to use instead of the customer's default email
- Name
externalNumber- Type
- string Required
- Description
- allow user to override generated number
- Name
fullyPaidDate- Type
- string Required
- Description
- Name
generatedCustomerName- Type
- string Required
- Description
- "[firstName] [lastName]" pulled from the customer, if any
- Name
generatedName- Type
- string Required
- Description
- Name
generatedVehicleName- Type
- string Required
- Description
- "[year] [make] [model] [submodel]" pulled from the vehicle, if any
- Name
hasPayments- Type
- boolean Required
- Description
- if the order has any payments associated with it
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
inspectionCount- Type
- integer Required
- Description
- Name
inspectionReviewStatus- Type
- one of: None, Reviewed, NotReviewed Required
- Description
- Name
inspectionStatus- Type
- one of: None, Completed, NotCompleted Required
- Description
- Name
invoiced- Type
- boolean Required
- Description
- Name
invoicedDate- Type
- string Required
- Description
- Name
invoiceLockState- Type
- one of: Unlocked, Locked, PreviouslyLocked Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
messageCount- Type
- integer Required
- Description
- Name
messagedDate- Type
- string Required
- Description
- Name
mileageIn- Type
- number Required
- Description
- Name
mileageOut- Type
- number Required
- Description
- Name
name- Type
- string Required
- Description
- Name
number- Type
- string Required
- Description
- COLLATE "en-u-kn-true"
- Name
oneTimeCampaignId- Type
- string Required
- Description
- Name
orderCreatedDate- Type
- string Required
- Description
- allow user to override created date
- Name
paid- Type
- boolean Required
- Description
- Name
paymentDueDate- Type
- string Required
- Description
- Name
paymentTermId- Type
- string Required
- Description
- id of the payment term for the order
- Name
phoneNumberId- Type
- string Required
- Description
- id of the phone number to use instead of the customer's default number
- Name
publicId- Type
- string Required
- Description
- Name
purchaseOrderNumber- Type
- string Required
- Description
- Name
readOnly- Type
- boolean Required
- Description
- if this order should not be editable in the UI
- Name
readOnlyReason- Type
- string Required
- Description
- a friendly explanation of why (eg. "migrated from previous system"
- Name
recommendation- Type
- string Required
- Description
- Name
repairOrderDate- Type
- string Required
- Description
- // the date the order was moved into repair order status
- Name
requireESignatureOnAuthorization- Type
- boolean Required
- Description
- Name
requireESignatureOnInspection- Type
- boolean Required
- Description
- Name
requireESignatureOnInvoice- Type
- boolean Required
- Description
- Name
sentToCarfax- Type
- boolean Required
- Description
- Name
serviceWriterId- Type
- string Required
- Description
- Name
shopUnreadMessageCount- Type
- integer Required
- Description
- Name
statementId- Type
- string Required
- Description
- a statement this order included in
- Name
status- Type
- one of: Estimate, RepairOrder, Invoice Required
- Description
- Name
taxConfigId- Type
- string Required
- Description
- Name
totalAuthorizedLaborHours- Type
- number Required
- Description
- Name
totalLaborHours- Type
- number Required
- Description
- Name
transactionFeeConfigId- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
updatedSinceSignedInvoice- Type
- boolean Required
- Description
- Name
vehicleId- Type
- string Required
- Description
- Name
workflowStatusDate- Type
- string Required
- Description
- Name
workflowStatusDuration- Type
- object Required
- Description
- Stores how many time the order has been in each status
- Name
workflowStatusId- Type
- string Required
- Description
- Name
workflowStatusPosition- Type
- number Required
- Description
- Name
appliedDiscountCents- Type
- integer Required
- Description
- the total discount applied to the order in cents
- Name
appliedDiscountPercent- Type
- number Required
- Description
- the total discount applied to the order in percent
- Name
discountCents- Type
- integer Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
epaCents- Type
- integer Required
- Description
- Name
feesCents- Type
- integer Required
- Description
- Name
gstCents- Type
- integer Required
- Description
- Name
hstCents- Type
- integer Required
- Description
- Name
laborCents- Type
- integer Required
- Description
- Name
paidCostCents- Type
- integer Required
- Description
- Name
partsCents- Type
- integer Required
- Description
- Name
pstCents- Type
- integer Required
- Description
- Name
remainingCostCents- Type
- integer Required
- Description
- Name
requestedDepositCents- Type
- integer Required
- Description
- Name
shopSuppliesCents- Type
- integer Required
- Description
- Name
subcontractsCents- Type
- integer Required
- Description
- Name
taxCents- Type
- integer Required
- Description
- Name
tiresCents- Type
- integer Required
- Description
- Name
totalCostCents- Type
- integer Required
- Description
- Name
transactionalFeeSubtotalCents- Type
- integer Required
- Description
- // value before taxes
- Name
transactionalFeeTotalCents- Type
- integer Required
- Description
- Name
appointments- Type
- array Required
- Description
- Deprecated: will return []
- Name
authorizations- Type
- array Required
- Description
- Deprecated: will return []
- Name
automatedCampaign- Type
- object Required
- Description
- AutomatedCampaign schema
- Name
couponOrderDiscount- Type
- object Required
- Description
- CouponOrderDiscount schema
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
customer- Type
- object Required
- Description
- Name
files- Type
- array
- Description
- Name
inspections- Type
- array Required
- Description
- Deprecated: will return []
- Name
limitedView- Type
- boolean Required
- Description
- true when this is the limited order view of another company's order, with its money fields withheld as null
- Name
location- Type
- object
- Description
- The location the order belongs to. Returned by the find-one route to HQ callers and to shops with data sharing enabled.
- Name
oneTimeCampaign- Type
- object Required
- Description
- OneTimeCampaign schema
- Name
paymentTerm- Type
- object
- Description
- Name
profitability- Type
- object Required
- Description
- Name
services- Type
- array Required
- Description
- Soon will be deprecated!
- Name
vehicle- Type
- object Required
- Description
- Name
workflowStatus- Type
- object Required
- Description
- WorkflowStatus schema
Properties for automatedCampaign object
- Name
activatedByUserId- Type
- string Required
- Description
- Name
activatedDate- Type
- string Required
- Description
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
cannedServiceId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deferredServiceId- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
nextRunAt- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
reminderType- Type
- one of: Days, Weeks, Months, Years Required
- Description
- Name
reminderValue- Type
- integer Required
- Description
- Name
status- Type
- one of: Draft, Error, Paused, Active Required
- Description
- Name
type- Type
- one of: CannedServiceReminder, DeferredServiceReminder, CustomerLastServiceDate, AnyServiceFollowUp Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for couponOrderDiscount object
- Name
appliedByCustomerId- Type
- string Required
- Description
- the customer that applied the discount
- Name
appliedByUserId- Type
- string Required
- Description
- the user that applied the discount
- Name
appliedDate- Type
- string Required
- Description
- the time the discount was applied
- Name
appliedDiscountCents- Type
- integer Required
- Description
- The discount amount applied when the coupon was redeemed
- Name
companyId- Type
- string Required
- Description
- Name
couponCodeId- Type
- string Required
- Description
- the code entered; null if it has no code row
- Name
couponId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
orderId- Type
- string Required
- Description
- Name
redeemedDate- Type
- string Required
- Description
- the time the discount was redeemed
- Name
redeemedOrderTotalCents- Type
- integer Required
- Description
- Name
status- Type
- one of: Applied, Invalid, Redeemed Required
- Description
- Name
statusDate- Type
- string Required
- Description
- the time the status was last updated
- Name
statusInvalidReason- Type
- one of: Expired, NotStarted, NotApplicable, MinimumSpend, MaxRedemptions, AlreadyUsed Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for customer object
- Name
address1- Type
- string Required
- Description
- Name
address2- Type
- string Required
- Description
- Name
appointmentCount- Type
- integer Required
- Description
- Name
city- Type
- string Required
- Description
- Name
coalescedFirstNameOrCompanyName- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
companyName- Type
- string Required
- Description
- Name
country- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerType- Type
- one of: Customer, Fleet Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
dotNumber- Type
- string Required
- Description
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the customer in an external system
- Name
finixIdentityId- Type
- string Required
- Description
- Name
firstName- Type
- string Required
- Description
- Name
fleetId- Type
- string Required
- Description
- Name
gstExempt- Type
- boolean Required
- Description
- CA specific
- Name
hqCustomerId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for customer processing after HQ customer deletion
- Name
hstExempt- Type
- boolean Required
- Description
- CA specific
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
laborMatrixId- Type
- string Required
- Description
- Name
laborRateId- Type
- string Required
- Description
- Name
lastName- Type
- string Required
- Description
- Name
lastTimeOrderWorked- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
marketingOptIn- Type
- boolean Required
- Description
- was never used
- Name
messageCount- Type
- integer Required
- Description
- Name
normalizedFirstName- Type
- string Required
- Description
- Name
normalizedLastName- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- if fleet, contains the normalized companyName, else normalized firstName lastName
- Name
note- Type
- string Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the customer
- Name
paymentTermId- Type
- string Required
- Description
- Name
postalCode- Type
- string Required
- Description
- Name
preferredContactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
preferredLanguage- Type
- one of: en, en_US, fr_CA, es_MX Required
- Description
- Name
pricingMatrixId- Type
- string Required
- Description
- Name
pstExempt- Type
- boolean Required
- Description
- CA specific
- Name
publicId- Type
- string Required
- Description
- Name
referralSourceId- Type
- string Required
- Description
- Name
showLaborHours- Type
- boolean Required
- Description
- visibility overrides for labor hours, taking precedence over location configuration settings
- Name
showLaborNote- Type
- boolean Required
- Description
- visibility overrides for labor note, taking precedence over location configuration settings
- Name
showPartCostAndQuantity- Type
- boolean Required
- Description
- visibility overrides for part and tire price and quantity, taking precedence over location configuration settings
- Name
showPartNote- Type
- boolean Required
- Description
- visibility overrides for part and tire note, taking precedence over location configuration settings
- Name
showPartNumber- Type
- boolean Required
- Description
- visibility overrides for part and tire part number, taking precedence over location configuration settings
- Name
showSubcontractNote- Type
- boolean Required
- Description
- visibility overrides for subcontract note, taking precedence over location configuration settings
- Name
state- Type
- string Required
- Description
- Name
statementCount- Type
- integer Required
- Description
- Name
taxExempt- Type
- boolean Required
- Description
- US specific
- Name
transactionCount- Type
- integer Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vehicleCount- Type
- integer Required
- Description
- Name
website- Type
- string Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
bnplPrequalificationData- Type
- one of: any, null, any
- Description
- Sunbit pre-qualification results; amount, date, etc.
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
emails- Type
- array Required
- Description
- Name
phoneNumbers- Type
- array Required
- Description
Properties for location object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for oneTimeCampaign object
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
campaignSegmentationId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
sentByUserId- Type
- string Required
- Description
- Name
sentDate- Type
- string Required
- Description
- Name
status- Type
- one of: Draft, Error, Sending, Sent Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for paymentTerm object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for profitability object
- Name
labor- Type
- object Required
- Description
- Name
parts- Type
- object Required
- Description
- Name
subcontracts- Type
- object Required
- Description
- Name
tires- Type
- object Required
- Description
- Name
totalDiscountCents- Type
- number Required
- Description
- Name
totalDiscountPercent- Type
- number Required
- Description
- Name
totalProfitCents- Type
- number Required
- Description
- Name
totalProfitPercent- Type
- number Required
- Description
- Name
totalRetailCents- Type
- number Required
- Description
- Name
totalWholesaleCents- Type
- number Required
- Description
Properties for labor object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for parts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for subcontracts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for tires object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for vehicle object
- Name
appointmentCount- Type
- integer Required
- Description
- Name
baseId- Type
- integer Required
- Description
- vcdb base id
- Name
bedLength- Type
- string Required
- Description
- Name
bodyStyle- Type
- string Required
- Description
- Name
bodyStyleId- Type
- integer Required
- Description
- vcdb body style id
- Name
coalescedVINorHIN- Type
- string Required
- Description
- Name
color- Type
- one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
computed_ymm- Type
- string Required
- Description
- Name
configurationStatus- Type
- one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customPhoto- Type
- boolean Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
drivetrain- Type
- one of: RWD, FWD, FourWD, AWD Required
- Description
- Name
drivetype- Type
- string Required
- Description
- Name
drivetypeId- Type
- integer Required
- Description
- vcdb drivetype id
- Name
drivingCondition- Type
- one of: Normal, Severe Required
- Description
- Name
engine- Type
- string Required
- Description
- Name
engineHoursLogs- Type
- object Required
- Description
- an array of engine hours logs { engineId: string; inHours: number; outHours: number; orderId: string; }
- Name
engineId- Type
- integer Required
- Description
- vcdb engine id
- Name
engines- Type
- object Required
- Description
- an array of engines { id: string; make: string; model: string; hours: number; noHoursMeter: boolean; horsepower: number; serial: string; productionYear: number; productionMonth: number; }
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the vehicle in an external system
- Name
frontTireSize- Type
- string Required
- Description
- custom front tire size override value
- Name
hin- Type
- string Required
- Description
- Vessel hull identification number
- Name
hqVehicleId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
lastServicedDate- Type
- string Required
- Description
- Name
length- Type
- number Required
- Description
- Name
lengthUnit- Type
- one of: Ft, M Required
- Description
- Name
licensePlate- Type
- string Required
- Description
- Name
licensePlateCountry- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
licensePlateState- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
make- Type
- string Required
- Description
- holds Hull make for vessel
- Name
makeId- Type
- integer Required
- Description
- vcdb make id
- Name
messageCount- Type
- integer Required
- Description
- Name
mileage- Type
- number Required
- Description
- Name
mileageLogCount- Type
- integer Required
- Description
- Name
mileageUnit- Type
- one of: Mile, Kilometer Required
- Description
- Name
model- Type
- string Required
- Description
- Name
modelId- Type
- integer Required
- Description
- vcdb model id
- Name
name- Type
- string Required
- Description
- Custom vehicle name / Vessel registered name
- Name
note- Type
- string Required
- Description
- Name
odometer- Type
- boolean Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the vehicle
- Name
ownerCount- Type
- integer Required
- Description
- Name
preferredLaborGuide- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
productionDate- Type
- string Required
- Description
- Name
rearTireSize- Type
- string Required
- Description
- custom rear tire size override value
- Name
region- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
serial- Type
- string Required
- Description
- Name
size- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
stockPhoto- Type
- boolean Required
- Description
- Name
submodel- Type
- string Required
- Description
- Name
submodelId- Type
- integer Required
- Description
- vcdb submodel id
- Name
tirePressureLogCount- Type
- integer Required
- Description
- Name
transmission- Type
- one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
- Description
- Name
transmissionId- Type
- integer Required
- Description
- vcdb transmission id
- Name
transmissionMfrCode- Type
- string Required
- Description
- Name
transmissionSpeed- Type
- string Required
- Description
- Name
type- Type
- one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
- Description
- Name
unit- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vcdbId- Type
- integer Required
- Description
- vcdb id
- Name
vcdbVehicleId- Type
- string Required
- Description
- id of vcdb_vehicle record
- Name
vin- Type
- string Required
- Description
- Name
year- Type
- integer Required
- Description
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
tirePressureLogs- Type
- array
- Description
Properties for workflowStatus object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/order/:orderId/service/:serviceId/part/:id \
-H "Authorization: Bearer ${SM_TOKEN}" \
-X PUT -H 'Content-Type: application/json' \
--data '{}'
Example Responseapplication/json
{
"success": true,
"data": {
"lineItem": {
"binLocation": "binLocation",
"calculatedCOGSCents": null,
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountCents": 1,
"discountPercent": 1,
"discountValueType": "discountValueType",
"fixedPriceLimitPriceCents": null,
"fixedPriceLimitQuantity": null,
"fixedPriceLimitType": null,
"id": "id",
"inventoryPartId": null,
"inventoryStatus": "inventoryStatus",
"inventoryTransferPartId": null,
"locationId": "locationId",
"motorApplicationId": null,
"motorCommercialPartsId": null,
"name": "name",
"normalizedSKU": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"originalWholesaleCostCents": null,
"partNumber": null,
"pcDbTerminologyId": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"provider": null,
"providerApplicationId": null,
"purchaseOrderPartId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"retailCostCents": 1,
"serviceId": "serviceId",
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"url": null,
"vendorId": null,
"wholesaleCostCents": null
},
"order": {
"allowCollectPayment": true,
"allowCustomerApplyCoupon": true,
"allowCustomerAuthorization": true,
"allowCustomerViewActivity": true,
"allowCustomerViewAuthorizations": true,
"allowCustomerViewInspections": true,
"allowCustomerViewMessages": true,
"appliedDiscountValueType": "appliedDiscountValueType",
"appointmentDates": [
"2024-01-01T00:00:00.000Z"
],
"archived": true,
"assignedTechnicianIds": [
"assignedTechnicianIds"
],
"attributionMessageId": null,
"attributionSource": null,
"authorized": true,
"authorizedDate": null,
"automatedCampaignId": null,
"coalescedName": null,
"companyId": "companyId",
"complaint": null,
"completedAuthorizedLaborHours": 1,
"completedDate": null,
"completedLaborHours": 1,
"conversationId": null,
"createdDate": "createdDate",
"customerId": null,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"depositFullyPaid": true,
"depositFullyPaidDate": null,
"dueDate": null,
"emailId": null,
"externalNumber": null,
"fullyPaidDate": null,
"generatedCustomerName": null,
"generatedName": null,
"generatedVehicleName": null,
"hasPayments": true,
"id": "id",
"imported": true,
"inspectionCount": 1,
"inspectionReviewStatus": "inspectionReviewStatus",
"inspectionStatus": "inspectionStatus",
"invoiced": true,
"invoicedDate": null,
"invoiceLockState": "invoiceLockState",
"locationId": "locationId",
"messageCount": 1,
"messagedDate": null,
"mileageIn": null,
"mileageOut": null,
"name": null,
"number": "number",
"oneTimeCampaignId": null,
"orderCreatedDate": "orderCreatedDate",
"paid": true,
"paymentDueDate": null,
"paymentTermId": null,
"phoneNumberId": null,
"publicId": "publicId",
"purchaseOrderNumber": null,
"readOnly": true,
"readOnlyReason": null,
"recommendation": null,
"repairOrderDate": null,
"requireESignatureOnAuthorization": true,
"requireESignatureOnInspection": true,
"requireESignatureOnInvoice": true,
"sentToCarfax": true,
"serviceWriterId": null,
"shopUnreadMessageCount": 1,
"statementId": null,
"status": "status",
"taxConfigId": null,
"totalAuthorizedLaborHours": 1,
"totalLaborHours": 1,
"transactionFeeConfigId": null,
"updatedDate": null,
"updatedSinceSignedInvoice": true,
"vehicleId": null,
"workflowStatusDate": "workflowStatusDate",
"workflowStatusId": null,
"workflowStatusPosition": null,
"appliedDiscountCents": null,
"appliedDiscountPercent": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"feesCents": null,
"gstCents": null,
"hstCents": null,
"laborCents": null,
"paidCostCents": null,
"partsCents": null,
"pstCents": null,
"remainingCostCents": null,
"requestedDepositCents": null,
"shopSuppliesCents": null,
"subcontractsCents": null,
"taxCents": null,
"tiresCents": null,
"totalCostCents": null,
"transactionalFeeSubtotalCents": null,
"transactionalFeeTotalCents": null,
"appointments": [
{
"allDay": true,
"attributionMessageId": null,
"attributionSource": null,
"automatedCampaignId": null,
"cancellationNote": null,
"chatBotSessionId": null,
"color": "color",
"companyId": "companyId",
"confirmationStatus": "confirmationStatus",
"confirmationSubject": null,
"confirmationTemplateIdentifier": null,
"confirmationText": null,
"createdDate": "createdDate",
"customerEmailId": null,
"customerId": null,
"customerPhoneNumberId": null,
"duration": null,
"endDate": "endDate",
"id": "id",
"isRecurringParent": true,
"lastRecurrenceEndDate": null,
"legacyHydratedReminder": true,
"locationId": "locationId",
"name": "name",
"note": "note",
"oneTimeCampaignId": null,
"orderId": null,
"origin": "origin",
"originalEndDate": null,
"originalStartDate": null,
"publicId": "publicId",
"recurring": true,
"recurringAppointmentId": null,
"recurringExceptionId": null,
"reminderSubject": null,
"reminderTemplateIdentifier": null,
"reminderText": null,
"removedFromRecurrency": true,
"rruleset": null,
"sendConfirmation": true,
"sendReminder": true,
"startDate": "startDate",
"updatedDate": null,
"useEmail": true,
"useSMS": true,
"vehicleId": null
}
],
"authorizations": [
{
"authorizedCostCents": 1,
"companyId": "companyId",
"createdDate": "createdDate",
"customerId": null,
"date": "date",
"id": "id",
"locationId": "locationId",
"method": "method",
"note": "note",
"orderId": "orderId",
"serviceAuthorizationReset": true,
"serviceWriterId": null,
"updatedDate": null
}
],
"automatedCampaign": {
"activatedByUserId": null,
"activatedDate": null,
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"cannedServiceId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deferredServiceId": null,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"nextRunAt": null,
"normalizedName": null,
"reminderType": null,
"reminderValue": null,
"status": "status",
"type": "type",
"updatedDate": null
},
"couponOrderDiscount": {
"appliedByCustomerId": null,
"appliedByUserId": null,
"appliedDate": "appliedDate",
"appliedDiscountCents": 1,
"companyId": "companyId",
"couponCodeId": null,
"couponId": "couponId",
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"redeemedDate": null,
"redeemedOrderTotalCents": null,
"status": "status",
"statusDate": null,
"statusInvalidReason": null,
"updatedDate": "updatedDate"
},
"customFields": {},
"customer": {
"address1": null,
"address2": null,
"appointmentCount": 1,
"city": null,
"coalescedFirstNameOrCompanyName": null,
"companyId": "companyId",
"companyName": null,
"country": null,
"createdDate": "createdDate",
"customerType": "customerType",
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"dotNumber": null,
"externalId": null,
"finixIdentityId": null,
"firstName": null,
"fleetId": null,
"gstExempt": true,
"hqCustomerId": null,
"hstExempt": true,
"id": "id",
"imported": true,
"laborMatrixId": null,
"laborRateId": null,
"lastName": null,
"lastTimeOrderWorked": null,
"locationIds": [
"locationIds"
],
"marketingOptIn": true,
"messageCount": 1,
"normalizedFirstName": null,
"normalizedLastName": null,
"normalizedName": null,
"note": "note",
"orderCount": 1,
"originLocationId": null,
"paymentTermId": null,
"postalCode": null,
"preferredContactMethod": null,
"preferredLanguage": "preferredLanguage",
"pricingMatrixId": null,
"pstExempt": true,
"publicId": "publicId",
"referralSourceId": null,
"showLaborHours": true,
"showLaborNote": true,
"showPartCostAndQuantity": true,
"showPartNote": true,
"showPartNumber": true,
"showSubcontractNote": true,
"state": null,
"statementCount": 1,
"taxExempt": true,
"transactionCount": 1,
"updatedDate": null,
"vehicleCount": 1,
"website": null,
"discountPercent": null,
"customFields": {},
"emails": [
{
"email": "email",
"id": "id",
"primary": true
}
],
"phoneNumbers": [
{
"extension": null,
"id": "id",
"number": "number",
"primary": true,
"type": null,
"userDefinedType": null
}
]
},
"files": [
{
"fileName": "fileName",
"fileSize": 1,
"fileType": "fileType",
"id": "id",
"thumbnailUrl": "thumbnailUrl",
"url": "url"
}
],
"inspections": [
{
"companyId": "companyId",
"completed": true,
"completedById": null,
"completedDate": null,
"createdById": null,
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"recommended": true,
"templateId": null,
"updatedDate": null
}
],
"limitedView": true,
"location": {
"id": "id",
"name": "name"
},
"oneTimeCampaign": {
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"campaignSegmentationId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"normalizedName": null,
"sentByUserId": null,
"sentDate": null,
"status": "status",
"updatedDate": null
},
"paymentTerm": {
"id": "id",
"name": "name"
},
"profitability": {
"labor": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"parts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"subcontracts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"tires": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"totalDiscountCents": 1,
"totalDiscountPercent": 1,
"totalProfitCents": 1,
"totalProfitPercent": 1,
"totalRetailCents": 1,
"totalWholesaleCents": 1
},
"services": [
{
"authorizationStatus": "authorizationStatus",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"deferredDate": null,
"deferredReason": null,
"discountValueType": "discountValueType",
"epaValueType": "epaValueType",
"excludedFromDeferred": true,
"gstValueType": "gstValueType",
"hidden": true,
"hideLineItemPricing": true,
"hstValueType": "hstValueType",
"id": "id",
"lineItemInventoryStatus": "lineItemInventoryStatus",
"locationId": "locationId",
"lumpSum": true,
"motorApplicationId": null,
"name": "name",
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"pstValueType": "pstValueType",
"recommended": true,
"revived": true,
"revivedFromId": null,
"shopSuppliesApplied": true,
"shopSuppliesValueType": "shopSuppliesValueType",
"sourceServiceId": null,
"taxValueType": "taxValueType",
"updatedDate": null,
"calculatedDiscountCents": null,
"calculatedDiscountPercent": null,
"calculatedEpaCents": null,
"calculatedFeeCents": null,
"calculatedGSTCents": null,
"calculatedHSTCents": null,
"calculatedLaborCents": null,
"calculatedPSTCents": null,
"calculatedPartsCents": null,
"calculatedShopSuppliesCents": null,
"calculatedSubcontractsCents": null,
"calculatedTaxCents": null,
"calculatedTiresCents": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"epaPercent": null,
"fixedPriceCents": null,
"gstCents": null,
"gstPercent": null,
"hstCents": null,
"hstPercent": null,
"pricing": null,
"pstCents": null,
"pstPercent": null,
"shopSuppliesCents": null,
"shopSuppliesPercent": null,
"taxCents": null,
"taxPercent": null,
"totalCents": null,
"fees": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"feeType": "feeType",
"id": "id",
"inventoryFeeId": null,
"laborId": null,
"lineItemEntity": null,
"locationId": "locationId",
"name": "name",
"orderId": "orderId",
"ordinal": 1,
"partId": null,
"serviceId": "serviceId",
"sourceItemId": null,
"subcontractId": null,
"tireId": null,
"updatedDate": null,
"amountCents": null,
"percent": null,
"subtotalCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
}
}
],
"labors": [
{
"applicationId": null,
"categoryId": null,
"companyId": "companyId",
"completed": true,
"completedDate": null,
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"hours": 1,
"id": "id",
"inventoryLaborId": null,
"laborMatrixDate": null,
"laborMatrixId": null,
"locationId": "locationId",
"motorApplicationId": null,
"multiplier": 1,
"multiplierType": "multiplierType",
"name": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"rateId": null,
"serviceId": "serviceId",
"showHours": true,
"showNote": true,
"skillRequired": null,
"skillRequiredDescription": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"technicianId": null,
"updatedDate": null,
"costHours": null,
"costRateCents": null,
"costTotalCents": null,
"discountCents": null,
"discountPercent": null,
"rateCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"laborMatrix": {
"id": "id",
"name": "name"
},
"laborRate": {
"id": "id",
"name": "name"
}
}
],
"limitedView": true,
"parts": [
{
"binLocation": "binLocation",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"fixedPriceLimitQuantity": null,
"fixedPriceLimitType": null,
"id": "id",
"inventoryPartId": null,
"inventoryStatus": "inventoryStatus",
"inventoryTransferPartId": null,
"locationId": "locationId",
"motorApplicationId": null,
"motorCommercialPartsId": null,
"name": "name",
"normalizedSKU": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pcDbTerminologyId": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"provider": null,
"providerApplicationId": null,
"purchaseOrderPartId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"url": null,
"vendorId": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"fixedPriceLimitPriceCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wholesaleCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"vendor": {
"id": "id",
"name": "name"
},
"inventoryPart": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
],
"subcontracts": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"serviceId": "serviceId",
"showNote": true,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"vendorId": null,
"costCents": null,
"discountCents": null,
"discountPercent": null,
"retailCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"vendor": {
"id": "id",
"name": "name"
}
}
],
"tires": [
{
"binLocation": null,
"calculatedName": "calculatedName",
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"generatedBrandName": "generatedBrandName",
"generatedModelName": "generatedModelName",
"id": "id",
"inventoryStatus": "inventoryStatus",
"inventoryTireId": null,
"inventoryTransferTireId": null,
"locationId": "locationId",
"name": "name",
"normalizedSKU": null,
"note": null,
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"purchaseOrderTireId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showNote": true,
"showPartNumber": true,
"showPriceAndQuantity": true,
"size": null,
"sizeFormat": "sizeFormat",
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"tireIdentificationNumbers": [
"tireIdentificationNumbers"
],
"tireModelId": null,
"updatedDate": null,
"url": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"federalExciseTaxCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wasteTireFee": null,
"wholesaleCostCents": null,
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"tireModel": {
"brandId": "brandId",
"categoryId": null,
"deleted": true,
"id": "id",
"name": "name",
"seasonality": null,
"vendorId": null,
"brand": {
"deleted": true,
"id": "id",
"name": "name"
},
"vendor": {
"deleted": true,
"id": "id",
"name": "name"
},
"category": {
"deleted": true,
"id": "id",
"name": "name",
"parent": {
"deleted": true,
"id": "id",
"name": "name"
}
}
},
"inventoryTire": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
]
}
],
"vehicle": {
"appointmentCount": 1,
"baseId": null,
"bedLength": null,
"bodyStyle": null,
"bodyStyleId": null,
"coalescedVINorHIN": null,
"color": null,
"companyId": "companyId",
"computed_ymm": null,
"configurationStatus": null,
"createdDate": "createdDate",
"customPhoto": true,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"drivetrain": null,
"drivetype": null,
"drivetypeId": null,
"drivingCondition": null,
"engine": null,
"engineId": null,
"externalId": null,
"frontTireSize": null,
"hin": null,
"hqVehicleId": null,
"id": "id",
"imported": true,
"lastServicedDate": null,
"length": null,
"lengthUnit": null,
"licensePlate": null,
"licensePlateCountry": "licensePlateCountry",
"licensePlateState": null,
"locationIds": [
"locationIds"
],
"make": null,
"makeId": null,
"messageCount": 1,
"mileage": null,
"mileageLogCount": 1,
"mileageUnit": "mileageUnit",
"model": null,
"modelId": null,
"name": null,
"note": "note",
"odometer": true,
"orderCount": 1,
"originLocationId": null,
"ownerCount": 1,
"preferredLaborGuide": "preferredLaborGuide",
"productionDate": null,
"rearTireSize": null,
"region": null,
"serial": null,
"size": "size",
"stockPhoto": true,
"submodel": null,
"submodelId": null,
"tirePressureLogCount": 1,
"transmission": null,
"transmissionId": null,
"transmissionMfrCode": null,
"transmissionSpeed": null,
"type": null,
"unit": null,
"updatedDate": null,
"vcdbId": null,
"vcdbVehicleId": null,
"vin": null,
"year": null,
"customFields": {},
"tirePressureLogs": [
{
"companyId": "companyId",
"createdDate": "createdDate",
"frontLeft": null,
"frontRight": null,
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"rearLeft": null,
"rearRight": null,
"updatedDate": null,
"vehicleId": "vehicleId"
}
]
},
"workflowStatus": {
"id": "id",
"name": null
}
}
}
}
Add Part to Service
Add a Part to a Service for an Order
URL parameters
- Name
orderId- Type
- string Required
- Description
- the id for the order
- Name
serviceId- Type
- string Required
- Description
- the id for the service
Query String parameters
- Name
includeOrder- Type
- boolean
- Description
- include the updated order in the response (default true)
Body parameters
Consumes
The following content type is required: application/json
- Name
binLocation- Type
- string
- Description
- Name
categoryId- Type
- string
- Description
- Name
discountCents- Type
- integer
- Description
- Name
discountPercent- Type
- number
- Description
- Name
discountValueType- Type
- one of: Percent, FixedCents
- Description
- Name
fixedPriceLimitPriceCents- Type
- integer
- Description
- Part prices exceeding the amount will have their difference charged in addition to the fixed price canned service.
- Name
fixedPriceLimitQuantity- Type
- number
- Description
- Quantities exceeding the amount will be charged based on their individual part price as an addition to the fixed price canned service.
- Name
fixedPriceLimitType- Type
- one of: None, Quantity, Price
- Description
- Name
inventoryPartId- Type
- string
- Description
- Name
inventoryTransferPartId- Type
- string
- Description
- Name
motorApplicationId- Type
- integer
- Description
- use providerApplicationId, light-duty only
- Name
motorCommercialPartsId- Type
- integer
- Description
- heavy-duty only
- Name
name- Type
- string
- Description
- Name
note- Type
- string
- Description
- Name
ordinal- Type
- number
- Description
- Name
partNumber- Type
- string
- Description
- Name
pcDbTerminologyId- Type
- integer
- Description
- product classification database terminology id for aftermarket parts, etc
- Name
provider- Type
- one of: Motor, Alldata
- Description
- Name
providerApplicationId- Type
- string
- Description
- Name
quantity- Type
- number
- Description
- Name
reduceInventoryCount- Type
- boolean
- Description
- Name
reserved- Type
- boolean
- Description
- Name
retailCostCents- Type
- integer
- Description
- Name
showCostAndQuantity- Type
- boolean
- Description
- Name
showNote- Type
- boolean
- Description
- Name
showPartNumber- Type
- boolean
- Description
- Name
sku- Type
- string
- Description
- Name
sourceItemId- Type
- string
- Description
- Name
taxable- Type
- boolean
- Description
- US specific
- Name
taxableGST- Type
- boolean
- Description
- CA specific
- Name
taxableHST- Type
- boolean
- Description
- CA specific
- Name
taxablePST- Type
- boolean
- Description
- CA specific
- Name
url- Type
- string
- Description
- Name
vendorId- Type
- string
- Description
- Name
wholesaleCostCents- Type
- integer
- Description
- Name
locationId- Type
- string
- Description
- the id for the location
- Name
orderStatus- Type
- one of: Estimate, RepairOrder, Invoice
- Description
- Name
fromCannedServiceLineItemId- Type
- string
- Description
- the id for the canned service part id
- Name
purchaseOrderPartId- Type
- string
- Description
- the id for the purchase order part
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
order- Type
- object
- Description
- Order schema
- Name
part- Type
- object Required
- Description
- Part schema
Properties for order object
- Name
allowCollectPayment- Type
- boolean Required
- Description
- Name
allowCustomerApplyCoupon- Type
- boolean Required
- Description
- Name
allowCustomerAuthorization- Type
- boolean Required
- Description
- Name
allowCustomerViewActivity- Type
- boolean Required
- Description
- Name
allowCustomerViewAuthorizations- Type
- boolean Required
- Description
- Name
allowCustomerViewInspections- Type
- boolean Required
- Description
- Name
allowCustomerViewMessages- Type
- boolean Required
- Description
- Name
appliedDiscountValueType- Type
- one of: Percent, FixedCents Required
- Description
- Name
appointmentDates- Type
- array Required
- Description
- Name
archived- Type
- boolean Required
- Description
- Name
assignedTechnicianIds- Type
- array Required
- Description
- Name
attributionMessageId- Type
- string Required
- Description
- Name
attributionSource- Type
- one of: WorkRequestForm, AppointmentScheduler, Manual, FuzzyCampaignSMSDelivered, FuzzyCampaignEmailRead Required
- Description
- Name
authorized- Type
- boolean Required
- Description
- Name
authorizedDate- Type
- string Required
- Description
- Name
automatedCampaignId- Type
- string Required
- Description
- Name
coalescedName- Type
- string Required
- Description
- , "generatedName"
- Name
companyId- Type
- string Required
- Description
- Name
complaint- Type
- string Required
- Description
- Name
completedAuthorizedLaborHours- Type
- number Required
- Description
- Name
completedDate- Type
- string Required
- Description
- Name
completedLaborHours- Type
- number Required
- Description
- Name
conversationId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerId- Type
- string Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- // number of services that were deferred, excluding hidden, revived, and maually excluded
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
depositFullyPaid- Type
- boolean Required
- Description
- Name
depositFullyPaidDate- Type
- string Required
- Description
- Name
dueDate- Type
- string Required
- Description
- Name
emailId- Type
- string Required
- Description
- id of the email to use instead of the customer's default email
- Name
externalNumber- Type
- string Required
- Description
- allow user to override generated number
- Name
fullyPaidDate- Type
- string Required
- Description
- Name
generatedCustomerName- Type
- string Required
- Description
- "[firstName] [lastName]" pulled from the customer, if any
- Name
generatedName- Type
- string Required
- Description
- Name
generatedVehicleName- Type
- string Required
- Description
- "[year] [make] [model] [submodel]" pulled from the vehicle, if any
- Name
hasPayments- Type
- boolean Required
- Description
- if the order has any payments associated with it
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
inspectionCount- Type
- integer Required
- Description
- Name
inspectionReviewStatus- Type
- one of: None, Reviewed, NotReviewed Required
- Description
- Name
inspectionStatus- Type
- one of: None, Completed, NotCompleted Required
- Description
- Name
invoiced- Type
- boolean Required
- Description
- Name
invoicedDate- Type
- string Required
- Description
- Name
invoiceLockState- Type
- one of: Unlocked, Locked, PreviouslyLocked Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
messageCount- Type
- integer Required
- Description
- Name
messagedDate- Type
- string Required
- Description
- Name
mileageIn- Type
- number Required
- Description
- Name
mileageOut- Type
- number Required
- Description
- Name
name- Type
- string Required
- Description
- Name
number- Type
- string Required
- Description
- COLLATE "en-u-kn-true"
- Name
oneTimeCampaignId- Type
- string Required
- Description
- Name
orderCreatedDate- Type
- string Required
- Description
- allow user to override created date
- Name
paid- Type
- boolean Required
- Description
- Name
paymentDueDate- Type
- string Required
- Description
- Name
paymentTermId- Type
- string Required
- Description
- id of the payment term for the order
- Name
phoneNumberId- Type
- string Required
- Description
- id of the phone number to use instead of the customer's default number
- Name
publicId- Type
- string Required
- Description
- Name
purchaseOrderNumber- Type
- string Required
- Description
- Name
readOnly- Type
- boolean Required
- Description
- if this order should not be editable in the UI
- Name
readOnlyReason- Type
- string Required
- Description
- a friendly explanation of why (eg. "migrated from previous system"
- Name
recommendation- Type
- string Required
- Description
- Name
repairOrderDate- Type
- string Required
- Description
- // the date the order was moved into repair order status
- Name
requireESignatureOnAuthorization- Type
- boolean Required
- Description
- Name
requireESignatureOnInspection- Type
- boolean Required
- Description
- Name
requireESignatureOnInvoice- Type
- boolean Required
- Description
- Name
sentToCarfax- Type
- boolean Required
- Description
- Name
serviceWriterId- Type
- string Required
- Description
- Name
shopUnreadMessageCount- Type
- integer Required
- Description
- Name
statementId- Type
- string Required
- Description
- a statement this order included in
- Name
status- Type
- one of: Estimate, RepairOrder, Invoice Required
- Description
- Name
taxConfigId- Type
- string Required
- Description
- Name
totalAuthorizedLaborHours- Type
- number Required
- Description
- Name
totalLaborHours- Type
- number Required
- Description
- Name
transactionFeeConfigId- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
updatedSinceSignedInvoice- Type
- boolean Required
- Description
- Name
vehicleId- Type
- string Required
- Description
- Name
workflowStatusDate- Type
- string Required
- Description
- Name
workflowStatusDuration- Type
- object Required
- Description
- Stores how many time the order has been in each status
- Name
workflowStatusId- Type
- string Required
- Description
- Name
workflowStatusPosition- Type
- number Required
- Description
- Name
appliedDiscountCents- Type
- integer Required
- Description
- the total discount applied to the order in cents
- Name
appliedDiscountPercent- Type
- number Required
- Description
- the total discount applied to the order in percent
- Name
discountCents- Type
- integer Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
epaCents- Type
- integer Required
- Description
- Name
feesCents- Type
- integer Required
- Description
- Name
gstCents- Type
- integer Required
- Description
- Name
hstCents- Type
- integer Required
- Description
- Name
laborCents- Type
- integer Required
- Description
- Name
paidCostCents- Type
- integer Required
- Description
- Name
partsCents- Type
- integer Required
- Description
- Name
pstCents- Type
- integer Required
- Description
- Name
remainingCostCents- Type
- integer Required
- Description
- Name
requestedDepositCents- Type
- integer Required
- Description
- Name
shopSuppliesCents- Type
- integer Required
- Description
- Name
subcontractsCents- Type
- integer Required
- Description
- Name
taxCents- Type
- integer Required
- Description
- Name
tiresCents- Type
- integer Required
- Description
- Name
totalCostCents- Type
- integer Required
- Description
- Name
transactionalFeeSubtotalCents- Type
- integer Required
- Description
- // value before taxes
- Name
transactionalFeeTotalCents- Type
- integer Required
- Description
- Name
appointments- Type
- array Required
- Description
- Deprecated: will return []
- Name
authorizations- Type
- array Required
- Description
- Deprecated: will return []
- Name
automatedCampaign- Type
- object Required
- Description
- AutomatedCampaign schema
- Name
couponOrderDiscount- Type
- object Required
- Description
- CouponOrderDiscount schema
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
customer- Type
- object Required
- Description
- Name
files- Type
- array
- Description
- Name
inspections- Type
- array Required
- Description
- Deprecated: will return []
- Name
limitedView- Type
- boolean Required
- Description
- true when this is the limited order view of another company's order, with its money fields withheld as null
- Name
location- Type
- object
- Description
- The location the order belongs to. Returned by the find-one route to HQ callers and to shops with data sharing enabled.
- Name
oneTimeCampaign- Type
- object Required
- Description
- OneTimeCampaign schema
- Name
paymentTerm- Type
- object
- Description
- Name
profitability- Type
- object Required
- Description
- Name
services- Type
- array Required
- Description
- Soon will be deprecated!
- Name
vehicle- Type
- object Required
- Description
- Name
workflowStatus- Type
- object Required
- Description
- WorkflowStatus schema
Properties for automatedCampaign object
- Name
activatedByUserId- Type
- string Required
- Description
- Name
activatedDate- Type
- string Required
- Description
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
cannedServiceId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deferredServiceId- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
nextRunAt- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
reminderType- Type
- one of: Days, Weeks, Months, Years Required
- Description
- Name
reminderValue- Type
- integer Required
- Description
- Name
status- Type
- one of: Draft, Error, Paused, Active Required
- Description
- Name
type- Type
- one of: CannedServiceReminder, DeferredServiceReminder, CustomerLastServiceDate, AnyServiceFollowUp Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for couponOrderDiscount object
- Name
appliedByCustomerId- Type
- string Required
- Description
- the customer that applied the discount
- Name
appliedByUserId- Type
- string Required
- Description
- the user that applied the discount
- Name
appliedDate- Type
- string Required
- Description
- the time the discount was applied
- Name
appliedDiscountCents- Type
- integer Required
- Description
- The discount amount applied when the coupon was redeemed
- Name
companyId- Type
- string Required
- Description
- Name
couponCodeId- Type
- string Required
- Description
- the code entered; null if it has no code row
- Name
couponId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
orderId- Type
- string Required
- Description
- Name
redeemedDate- Type
- string Required
- Description
- the time the discount was redeemed
- Name
redeemedOrderTotalCents- Type
- integer Required
- Description
- Name
status- Type
- one of: Applied, Invalid, Redeemed Required
- Description
- Name
statusDate- Type
- string Required
- Description
- the time the status was last updated
- Name
statusInvalidReason- Type
- one of: Expired, NotStarted, NotApplicable, MinimumSpend, MaxRedemptions, AlreadyUsed Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for customer object
- Name
address1- Type
- string Required
- Description
- Name
address2- Type
- string Required
- Description
- Name
appointmentCount- Type
- integer Required
- Description
- Name
city- Type
- string Required
- Description
- Name
coalescedFirstNameOrCompanyName- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
companyName- Type
- string Required
- Description
- Name
country- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerType- Type
- one of: Customer, Fleet Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
dotNumber- Type
- string Required
- Description
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the customer in an external system
- Name
finixIdentityId- Type
- string Required
- Description
- Name
firstName- Type
- string Required
- Description
- Name
fleetId- Type
- string Required
- Description
- Name
gstExempt- Type
- boolean Required
- Description
- CA specific
- Name
hqCustomerId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for customer processing after HQ customer deletion
- Name
hstExempt- Type
- boolean Required
- Description
- CA specific
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
laborMatrixId- Type
- string Required
- Description
- Name
laborRateId- Type
- string Required
- Description
- Name
lastName- Type
- string Required
- Description
- Name
lastTimeOrderWorked- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
marketingOptIn- Type
- boolean Required
- Description
- was never used
- Name
messageCount- Type
- integer Required
- Description
- Name
normalizedFirstName- Type
- string Required
- Description
- Name
normalizedLastName- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- if fleet, contains the normalized companyName, else normalized firstName lastName
- Name
note- Type
- string Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the customer
- Name
paymentTermId- Type
- string Required
- Description
- Name
postalCode- Type
- string Required
- Description
- Name
preferredContactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
preferredLanguage- Type
- one of: en, en_US, fr_CA, es_MX Required
- Description
- Name
pricingMatrixId- Type
- string Required
- Description
- Name
pstExempt- Type
- boolean Required
- Description
- CA specific
- Name
publicId- Type
- string Required
- Description
- Name
referralSourceId- Type
- string Required
- Description
- Name
showLaborHours- Type
- boolean Required
- Description
- visibility overrides for labor hours, taking precedence over location configuration settings
- Name
showLaborNote- Type
- boolean Required
- Description
- visibility overrides for labor note, taking precedence over location configuration settings
- Name
showPartCostAndQuantity- Type
- boolean Required
- Description
- visibility overrides for part and tire price and quantity, taking precedence over location configuration settings
- Name
showPartNote- Type
- boolean Required
- Description
- visibility overrides for part and tire note, taking precedence over location configuration settings
- Name
showPartNumber- Type
- boolean Required
- Description
- visibility overrides for part and tire part number, taking precedence over location configuration settings
- Name
showSubcontractNote- Type
- boolean Required
- Description
- visibility overrides for subcontract note, taking precedence over location configuration settings
- Name
state- Type
- string Required
- Description
- Name
statementCount- Type
- integer Required
- Description
- Name
taxExempt- Type
- boolean Required
- Description
- US specific
- Name
transactionCount- Type
- integer Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vehicleCount- Type
- integer Required
- Description
- Name
website- Type
- string Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
bnplPrequalificationData- Type
- one of: any, null, any
- Description
- Sunbit pre-qualification results; amount, date, etc.
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
emails- Type
- array Required
- Description
- Name
phoneNumbers- Type
- array Required
- Description
Properties for location object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for oneTimeCampaign object
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
campaignSegmentationId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
sentByUserId- Type
- string Required
- Description
- Name
sentDate- Type
- string Required
- Description
- Name
status- Type
- one of: Draft, Error, Sending, Sent Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for paymentTerm object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for profitability object
- Name
labor- Type
- object Required
- Description
- Name
parts- Type
- object Required
- Description
- Name
subcontracts- Type
- object Required
- Description
- Name
tires- Type
- object Required
- Description
- Name
totalDiscountCents- Type
- number Required
- Description
- Name
totalDiscountPercent- Type
- number Required
- Description
- Name
totalProfitCents- Type
- number Required
- Description
- Name
totalProfitPercent- Type
- number Required
- Description
- Name
totalRetailCents- Type
- number Required
- Description
- Name
totalWholesaleCents- Type
- number Required
- Description
Properties for labor object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for parts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for subcontracts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for tires object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for vehicle object
- Name
appointmentCount- Type
- integer Required
- Description
- Name
baseId- Type
- integer Required
- Description
- vcdb base id
- Name
bedLength- Type
- string Required
- Description
- Name
bodyStyle- Type
- string Required
- Description
- Name
bodyStyleId- Type
- integer Required
- Description
- vcdb body style id
- Name
coalescedVINorHIN- Type
- string Required
- Description
- Name
color- Type
- one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
computed_ymm- Type
- string Required
- Description
- Name
configurationStatus- Type
- one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customPhoto- Type
- boolean Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
drivetrain- Type
- one of: RWD, FWD, FourWD, AWD Required
- Description
- Name
drivetype- Type
- string Required
- Description
- Name
drivetypeId- Type
- integer Required
- Description
- vcdb drivetype id
- Name
drivingCondition- Type
- one of: Normal, Severe Required
- Description
- Name
engine- Type
- string Required
- Description
- Name
engineHoursLogs- Type
- object Required
- Description
- an array of engine hours logs { engineId: string; inHours: number; outHours: number; orderId: string; }
- Name
engineId- Type
- integer Required
- Description
- vcdb engine id
- Name
engines- Type
- object Required
- Description
- an array of engines { id: string; make: string; model: string; hours: number; noHoursMeter: boolean; horsepower: number; serial: string; productionYear: number; productionMonth: number; }
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the vehicle in an external system
- Name
frontTireSize- Type
- string Required
- Description
- custom front tire size override value
- Name
hin- Type
- string Required
- Description
- Vessel hull identification number
- Name
hqVehicleId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
lastServicedDate- Type
- string Required
- Description
- Name
length- Type
- number Required
- Description
- Name
lengthUnit- Type
- one of: Ft, M Required
- Description
- Name
licensePlate- Type
- string Required
- Description
- Name
licensePlateCountry- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
licensePlateState- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
make- Type
- string Required
- Description
- holds Hull make for vessel
- Name
makeId- Type
- integer Required
- Description
- vcdb make id
- Name
messageCount- Type
- integer Required
- Description
- Name
mileage- Type
- number Required
- Description
- Name
mileageLogCount- Type
- integer Required
- Description
- Name
mileageUnit- Type
- one of: Mile, Kilometer Required
- Description
- Name
model- Type
- string Required
- Description
- Name
modelId- Type
- integer Required
- Description
- vcdb model id
- Name
name- Type
- string Required
- Description
- Custom vehicle name / Vessel registered name
- Name
note- Type
- string Required
- Description
- Name
odometer- Type
- boolean Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the vehicle
- Name
ownerCount- Type
- integer Required
- Description
- Name
preferredLaborGuide- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
productionDate- Type
- string Required
- Description
- Name
rearTireSize- Type
- string Required
- Description
- custom rear tire size override value
- Name
region- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
serial- Type
- string Required
- Description
- Name
size- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
stockPhoto- Type
- boolean Required
- Description
- Name
submodel- Type
- string Required
- Description
- Name
submodelId- Type
- integer Required
- Description
- vcdb submodel id
- Name
tirePressureLogCount- Type
- integer Required
- Description
- Name
transmission- Type
- one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
- Description
- Name
transmissionId- Type
- integer Required
- Description
- vcdb transmission id
- Name
transmissionMfrCode- Type
- string Required
- Description
- Name
transmissionSpeed- Type
- string Required
- Description
- Name
type- Type
- one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
- Description
- Name
unit- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vcdbId- Type
- integer Required
- Description
- vcdb id
- Name
vcdbVehicleId- Type
- string Required
- Description
- id of vcdb_vehicle record
- Name
vin- Type
- string Required
- Description
- Name
year- Type
- integer Required
- Description
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
tirePressureLogs- Type
- array
- Description
Properties for workflowStatus object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for part object
- Name
binLocation- Type
- string Required
- Description
- Name
calculatedCOGSCents- Type
- integer Required
- Description
- original cost calculated from batch consumption (null = pre-COGS or CurrentCost
- Name
categoryId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
discountCents- Type
- integer Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
discountValueType- Type
- one of: Percent, FixedCents Required
- Description
- Name
fixedPriceLimitPriceCents- Type
- integer Required
- Description
- Part prices exceeding the amount will have their difference charged in addition to the fixed price canned service.
- Name
fixedPriceLimitQuantity- Type
- number Required
- Description
- Quantities exceeding the amount will be charged based on their individual part price as an addition to the fixed price canned service.
- Name
fixedPriceLimitType- Type
- one of: None, Quantity, Price Required
- Description
- Name
id- Type
- string Required
- Description
- Name
inventoryPartId- Type
- string Required
- Description
- Name
inventoryStatus- Type
- one of: OnEstimate, InventoryReduced, None Required
- Description
- Name
inventoryTransferPartId- Type
- string Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
motorApplicationId- Type
- integer Required
- Description
- use providerApplicationId, light-duty only
- Name
motorCommercialPartsId- Type
- integer Required
- Description
- heavy-duty only
- Name
name- Type
- string Required
- Description
- Name
normalizedSKU- Type
- string Required
- Description
- Name
note- Type
- string Required
- Description
- Name
orderId- Type
- string Required
- Description
- Name
ordinal- Type
- number Required
- Description
- Name
originalWholesaleCostCents- Type
- integer Required
- Description
- estimate-time cost snapshot; wholesaleCostCents may drift from it once inventory is consumed (null = not cost-managed
- Name
partNumber- Type
- string Required
- Description
- Name
pcDbTerminologyId- Type
- integer Required
- Description
- product classification database terminology id for aftermarket parts, etc
- Name
pricingMatrixDate- Type
- string Required
- Description
- datetime when pricingMatrixId was set, for determining if matrix has been changed
- Name
pricingMatrixId- Type
- string Required
- Description
- Name
provider- Type
- one of: Motor, Alldata Required
- Description
- Name
providerApplicationId- Type
- string Required
- Description
- Name
purchaseOrderPartId- Type
- string Required
- Description
- Name
purchaseStatus- Type
- one of: Cancelled, Draft, Fulfilled, Ordered, Received Required
- Description
- Name
quantity- Type
- number Required
- Description
- Name
reduceInventoryCount- Type
- boolean Required
- Description
- Name
reserved- Type
- boolean Required
- Description
- Name
retailCostCents- Type
- integer Required
- Description
- Name
serviceId- Type
- string Required
- Description
- Name
showCostAndQuantity- Type
- boolean Required
- Description
- Name
showNote- Type
- boolean Required
- Description
- Name
showPartNumber- Type
- boolean Required
- Description
- Name
sku- Type
- string Required
- Description
- Name
sourceItemId- Type
- string Required
- Description
- Name
taxable- Type
- boolean Required
- Description
- US specific
- Name
taxableGST- Type
- boolean Required
- Description
- CA specific
- Name
taxableHST- Type
- boolean Required
- Description
- CA specific
- Name
taxablePST- Type
- boolean Required
- Description
- CA specific
- Name
updatedDate- Type
- string Required
- Description
- Name
url- Type
- string Required
- Description
- Name
vendorId- Type
- string Required
- Description
- Name
wholesaleCostCents- Type
- integer Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/order/:orderId/service/:serviceId/part \
-H "Authorization: Bearer ${SM_TOKEN}" \
-H 'Content-Type: application/json' \
--data '{}'
Example Responseapplication/json
{
"success": true,
"data": {
"order": {
"allowCollectPayment": true,
"allowCustomerApplyCoupon": true,
"allowCustomerAuthorization": true,
"allowCustomerViewActivity": true,
"allowCustomerViewAuthorizations": true,
"allowCustomerViewInspections": true,
"allowCustomerViewMessages": true,
"appliedDiscountValueType": "appliedDiscountValueType",
"appointmentDates": [
"2024-01-01T00:00:00.000Z"
],
"archived": true,
"assignedTechnicianIds": [
"assignedTechnicianIds"
],
"attributionMessageId": null,
"attributionSource": null,
"authorized": true,
"authorizedDate": null,
"automatedCampaignId": null,
"coalescedName": null,
"companyId": "companyId",
"complaint": null,
"completedAuthorizedLaborHours": 1,
"completedDate": null,
"completedLaborHours": 1,
"conversationId": null,
"createdDate": "createdDate",
"customerId": null,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"depositFullyPaid": true,
"depositFullyPaidDate": null,
"dueDate": null,
"emailId": null,
"externalNumber": null,
"fullyPaidDate": null,
"generatedCustomerName": null,
"generatedName": null,
"generatedVehicleName": null,
"hasPayments": true,
"id": "id",
"imported": true,
"inspectionCount": 1,
"inspectionReviewStatus": "inspectionReviewStatus",
"inspectionStatus": "inspectionStatus",
"invoiced": true,
"invoicedDate": null,
"invoiceLockState": "invoiceLockState",
"locationId": "locationId",
"messageCount": 1,
"messagedDate": null,
"mileageIn": null,
"mileageOut": null,
"name": null,
"number": "number",
"oneTimeCampaignId": null,
"orderCreatedDate": "orderCreatedDate",
"paid": true,
"paymentDueDate": null,
"paymentTermId": null,
"phoneNumberId": null,
"publicId": "publicId",
"purchaseOrderNumber": null,
"readOnly": true,
"readOnlyReason": null,
"recommendation": null,
"repairOrderDate": null,
"requireESignatureOnAuthorization": true,
"requireESignatureOnInspection": true,
"requireESignatureOnInvoice": true,
"sentToCarfax": true,
"serviceWriterId": null,
"shopUnreadMessageCount": 1,
"statementId": null,
"status": "status",
"taxConfigId": null,
"totalAuthorizedLaborHours": 1,
"totalLaborHours": 1,
"transactionFeeConfigId": null,
"updatedDate": null,
"updatedSinceSignedInvoice": true,
"vehicleId": null,
"workflowStatusDate": "workflowStatusDate",
"workflowStatusId": null,
"workflowStatusPosition": null,
"appliedDiscountCents": null,
"appliedDiscountPercent": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"feesCents": null,
"gstCents": null,
"hstCents": null,
"laborCents": null,
"paidCostCents": null,
"partsCents": null,
"pstCents": null,
"remainingCostCents": null,
"requestedDepositCents": null,
"shopSuppliesCents": null,
"subcontractsCents": null,
"taxCents": null,
"tiresCents": null,
"totalCostCents": null,
"transactionalFeeSubtotalCents": null,
"transactionalFeeTotalCents": null,
"appointments": [
{
"allDay": true,
"attributionMessageId": null,
"attributionSource": null,
"automatedCampaignId": null,
"cancellationNote": null,
"chatBotSessionId": null,
"color": "color",
"companyId": "companyId",
"confirmationStatus": "confirmationStatus",
"confirmationSubject": null,
"confirmationTemplateIdentifier": null,
"confirmationText": null,
"createdDate": "createdDate",
"customerEmailId": null,
"customerId": null,
"customerPhoneNumberId": null,
"duration": null,
"endDate": "endDate",
"id": "id",
"isRecurringParent": true,
"lastRecurrenceEndDate": null,
"legacyHydratedReminder": true,
"locationId": "locationId",
"name": "name",
"note": "note",
"oneTimeCampaignId": null,
"orderId": null,
"origin": "origin",
"originalEndDate": null,
"originalStartDate": null,
"publicId": "publicId",
"recurring": true,
"recurringAppointmentId": null,
"recurringExceptionId": null,
"reminderSubject": null,
"reminderTemplateIdentifier": null,
"reminderText": null,
"removedFromRecurrency": true,
"rruleset": null,
"sendConfirmation": true,
"sendReminder": true,
"startDate": "startDate",
"updatedDate": null,
"useEmail": true,
"useSMS": true,
"vehicleId": null
}
],
"authorizations": [
{
"authorizedCostCents": 1,
"companyId": "companyId",
"createdDate": "createdDate",
"customerId": null,
"date": "date",
"id": "id",
"locationId": "locationId",
"method": "method",
"note": "note",
"orderId": "orderId",
"serviceAuthorizationReset": true,
"serviceWriterId": null,
"updatedDate": null
}
],
"automatedCampaign": {
"activatedByUserId": null,
"activatedDate": null,
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"cannedServiceId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deferredServiceId": null,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"nextRunAt": null,
"normalizedName": null,
"reminderType": null,
"reminderValue": null,
"status": "status",
"type": "type",
"updatedDate": null
},
"couponOrderDiscount": {
"appliedByCustomerId": null,
"appliedByUserId": null,
"appliedDate": "appliedDate",
"appliedDiscountCents": 1,
"companyId": "companyId",
"couponCodeId": null,
"couponId": "couponId",
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"redeemedDate": null,
"redeemedOrderTotalCents": null,
"status": "status",
"statusDate": null,
"statusInvalidReason": null,
"updatedDate": "updatedDate"
},
"customFields": {},
"customer": {
"address1": null,
"address2": null,
"appointmentCount": 1,
"city": null,
"coalescedFirstNameOrCompanyName": null,
"companyId": "companyId",
"companyName": null,
"country": null,
"createdDate": "createdDate",
"customerType": "customerType",
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"dotNumber": null,
"externalId": null,
"finixIdentityId": null,
"firstName": null,
"fleetId": null,
"gstExempt": true,
"hqCustomerId": null,
"hstExempt": true,
"id": "id",
"imported": true,
"laborMatrixId": null,
"laborRateId": null,
"lastName": null,
"lastTimeOrderWorked": null,
"locationIds": [
"locationIds"
],
"marketingOptIn": true,
"messageCount": 1,
"normalizedFirstName": null,
"normalizedLastName": null,
"normalizedName": null,
"note": "note",
"orderCount": 1,
"originLocationId": null,
"paymentTermId": null,
"postalCode": null,
"preferredContactMethod": null,
"preferredLanguage": "preferredLanguage",
"pricingMatrixId": null,
"pstExempt": true,
"publicId": "publicId",
"referralSourceId": null,
"showLaborHours": true,
"showLaborNote": true,
"showPartCostAndQuantity": true,
"showPartNote": true,
"showPartNumber": true,
"showSubcontractNote": true,
"state": null,
"statementCount": 1,
"taxExempt": true,
"transactionCount": 1,
"updatedDate": null,
"vehicleCount": 1,
"website": null,
"discountPercent": null,
"customFields": {},
"emails": [
{
"email": "email",
"id": "id",
"primary": true
}
],
"phoneNumbers": [
{
"extension": null,
"id": "id",
"number": "number",
"primary": true,
"type": null,
"userDefinedType": null
}
]
},
"files": [
{
"fileName": "fileName",
"fileSize": 1,
"fileType": "fileType",
"id": "id",
"thumbnailUrl": "thumbnailUrl",
"url": "url"
}
],
"inspections": [
{
"companyId": "companyId",
"completed": true,
"completedById": null,
"completedDate": null,
"createdById": null,
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"recommended": true,
"templateId": null,
"updatedDate": null
}
],
"limitedView": true,
"location": {
"id": "id",
"name": "name"
},
"oneTimeCampaign": {
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"campaignSegmentationId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"normalizedName": null,
"sentByUserId": null,
"sentDate": null,
"status": "status",
"updatedDate": null
},
"paymentTerm": {
"id": "id",
"name": "name"
},
"profitability": {
"labor": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"parts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"subcontracts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"tires": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"totalDiscountCents": 1,
"totalDiscountPercent": 1,
"totalProfitCents": 1,
"totalProfitPercent": 1,
"totalRetailCents": 1,
"totalWholesaleCents": 1
},
"services": [
{
"authorizationStatus": "authorizationStatus",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"deferredDate": null,
"deferredReason": null,
"discountValueType": "discountValueType",
"epaValueType": "epaValueType",
"excludedFromDeferred": true,
"gstValueType": "gstValueType",
"hidden": true,
"hideLineItemPricing": true,
"hstValueType": "hstValueType",
"id": "id",
"lineItemInventoryStatus": "lineItemInventoryStatus",
"locationId": "locationId",
"lumpSum": true,
"motorApplicationId": null,
"name": "name",
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"pstValueType": "pstValueType",
"recommended": true,
"revived": true,
"revivedFromId": null,
"shopSuppliesApplied": true,
"shopSuppliesValueType": "shopSuppliesValueType",
"sourceServiceId": null,
"taxValueType": "taxValueType",
"updatedDate": null,
"calculatedDiscountCents": null,
"calculatedDiscountPercent": null,
"calculatedEpaCents": null,
"calculatedFeeCents": null,
"calculatedGSTCents": null,
"calculatedHSTCents": null,
"calculatedLaborCents": null,
"calculatedPSTCents": null,
"calculatedPartsCents": null,
"calculatedShopSuppliesCents": null,
"calculatedSubcontractsCents": null,
"calculatedTaxCents": null,
"calculatedTiresCents": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"epaPercent": null,
"fixedPriceCents": null,
"gstCents": null,
"gstPercent": null,
"hstCents": null,
"hstPercent": null,
"pricing": null,
"pstCents": null,
"pstPercent": null,
"shopSuppliesCents": null,
"shopSuppliesPercent": null,
"taxCents": null,
"taxPercent": null,
"totalCents": null,
"fees": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"feeType": "feeType",
"id": "id",
"inventoryFeeId": null,
"laborId": null,
"lineItemEntity": null,
"locationId": "locationId",
"name": "name",
"orderId": "orderId",
"ordinal": 1,
"partId": null,
"serviceId": "serviceId",
"sourceItemId": null,
"subcontractId": null,
"tireId": null,
"updatedDate": null,
"amountCents": null,
"percent": null,
"subtotalCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
}
}
],
"labors": [
{
"applicationId": null,
"categoryId": null,
"companyId": "companyId",
"completed": true,
"completedDate": null,
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"hours": 1,
"id": "id",
"inventoryLaborId": null,
"laborMatrixDate": null,
"laborMatrixId": null,
"locationId": "locationId",
"motorApplicationId": null,
"multiplier": 1,
"multiplierType": "multiplierType",
"name": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"rateId": null,
"serviceId": "serviceId",
"showHours": true,
"showNote": true,
"skillRequired": null,
"skillRequiredDescription": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"technicianId": null,
"updatedDate": null,
"costHours": null,
"costRateCents": null,
"costTotalCents": null,
"discountCents": null,
"discountPercent": null,
"rateCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"laborMatrix": {
"id": "id",
"name": "name"
},
"laborRate": {
"id": "id",
"name": "name"
}
}
],
"limitedView": true,
"parts": [
{
"binLocation": "binLocation",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"fixedPriceLimitQuantity": null,
"fixedPriceLimitType": null,
"id": "id",
"inventoryPartId": null,
"inventoryStatus": "inventoryStatus",
"inventoryTransferPartId": null,
"locationId": "locationId",
"motorApplicationId": null,
"motorCommercialPartsId": null,
"name": "name",
"normalizedSKU": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pcDbTerminologyId": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"provider": null,
"providerApplicationId": null,
"purchaseOrderPartId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"url": null,
"vendorId": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"fixedPriceLimitPriceCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wholesaleCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"vendor": {
"id": "id",
"name": "name"
},
"inventoryPart": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
],
"subcontracts": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"serviceId": "serviceId",
"showNote": true,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"vendorId": null,
"costCents": null,
"discountCents": null,
"discountPercent": null,
"retailCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"vendor": {
"id": "id",
"name": "name"
}
}
],
"tires": [
{
"binLocation": null,
"calculatedName": "calculatedName",
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"generatedBrandName": "generatedBrandName",
"generatedModelName": "generatedModelName",
"id": "id",
"inventoryStatus": "inventoryStatus",
"inventoryTireId": null,
"inventoryTransferTireId": null,
"locationId": "locationId",
"name": "name",
"normalizedSKU": null,
"note": null,
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"purchaseOrderTireId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showNote": true,
"showPartNumber": true,
"showPriceAndQuantity": true,
"size": null,
"sizeFormat": "sizeFormat",
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"tireIdentificationNumbers": [
"tireIdentificationNumbers"
],
"tireModelId": null,
"updatedDate": null,
"url": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"federalExciseTaxCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wasteTireFee": null,
"wholesaleCostCents": null,
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"tireModel": {
"brandId": "brandId",
"categoryId": null,
"deleted": true,
"id": "id",
"name": "name",
"seasonality": null,
"vendorId": null,
"brand": {
"deleted": true,
"id": "id",
"name": "name"
},
"vendor": {
"deleted": true,
"id": "id",
"name": "name"
},
"category": {
"deleted": true,
"id": "id",
"name": "name",
"parent": {
"deleted": true,
"id": "id",
"name": "name"
}
}
},
"inventoryTire": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
]
}
],
"vehicle": {
"appointmentCount": 1,
"baseId": null,
"bedLength": null,
"bodyStyle": null,
"bodyStyleId": null,
"coalescedVINorHIN": null,
"color": null,
"companyId": "companyId",
"computed_ymm": null,
"configurationStatus": null,
"createdDate": "createdDate",
"customPhoto": true,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"drivetrain": null,
"drivetype": null,
"drivetypeId": null,
"drivingCondition": null,
"engine": null,
"engineId": null,
"externalId": null,
"frontTireSize": null,
"hin": null,
"hqVehicleId": null,
"id": "id",
"imported": true,
"lastServicedDate": null,
"length": null,
"lengthUnit": null,
"licensePlate": null,
"licensePlateCountry": "licensePlateCountry",
"licensePlateState": null,
"locationIds": [
"locationIds"
],
"make": null,
"makeId": null,
"messageCount": 1,
"mileage": null,
"mileageLogCount": 1,
"mileageUnit": "mileageUnit",
"model": null,
"modelId": null,
"name": null,
"note": "note",
"odometer": true,
"orderCount": 1,
"originLocationId": null,
"ownerCount": 1,
"preferredLaborGuide": "preferredLaborGuide",
"productionDate": null,
"rearTireSize": null,
"region": null,
"serial": null,
"size": "size",
"stockPhoto": true,
"submodel": null,
"submodelId": null,
"tirePressureLogCount": 1,
"transmission": null,
"transmissionId": null,
"transmissionMfrCode": null,
"transmissionSpeed": null,
"type": null,
"unit": null,
"updatedDate": null,
"vcdbId": null,
"vcdbVehicleId": null,
"vin": null,
"year": null,
"customFields": {},
"tirePressureLogs": [
{
"companyId": "companyId",
"createdDate": "createdDate",
"frontLeft": null,
"frontRight": null,
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"rearLeft": null,
"rearRight": null,
"updatedDate": null,
"vehicleId": "vehicleId"
}
]
},
"workflowStatus": {
"id": "id",
"name": null
}
},
"part": {
"binLocation": "binLocation",
"calculatedCOGSCents": null,
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountCents": 1,
"discountPercent": 1,
"discountValueType": "discountValueType",
"fixedPriceLimitPriceCents": null,
"fixedPriceLimitQuantity": null,
"fixedPriceLimitType": null,
"id": "id",
"inventoryPartId": null,
"inventoryStatus": "inventoryStatus",
"inventoryTransferPartId": null,
"locationId": "locationId",
"motorApplicationId": null,
"motorCommercialPartsId": null,
"name": "name",
"normalizedSKU": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"originalWholesaleCostCents": null,
"partNumber": null,
"pcDbTerminologyId": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"provider": null,
"providerApplicationId": null,
"purchaseOrderPartId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"retailCostCents": 1,
"serviceId": "serviceId",
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"url": null,
"vendorId": null,
"wholesaleCostCents": null
}
}
}
Delete Order Line Item
Delete an Order Line Item for part
URL parameters
- Name
id- Type
- string Required
- Description
- the id for part
- Name
orderId- Type
- string Required
- Description
- the id for the order
- Name
serviceId- Type
- string Required
- Description
- the id for the service
Query String parameters
- Name
includeOrder- Type
- boolean
- Description
- include the updated order in the response (default true)
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
order- Type
- object
- Description
- Order schema
Properties for order object
- Name
allowCollectPayment- Type
- boolean Required
- Description
- Name
allowCustomerApplyCoupon- Type
- boolean Required
- Description
- Name
allowCustomerAuthorization- Type
- boolean Required
- Description
- Name
allowCustomerViewActivity- Type
- boolean Required
- Description
- Name
allowCustomerViewAuthorizations- Type
- boolean Required
- Description
- Name
allowCustomerViewInspections- Type
- boolean Required
- Description
- Name
allowCustomerViewMessages- Type
- boolean Required
- Description
- Name
appliedDiscountValueType- Type
- one of: Percent, FixedCents Required
- Description
- Name
appointmentDates- Type
- array Required
- Description
- Name
archived- Type
- boolean Required
- Description
- Name
assignedTechnicianIds- Type
- array Required
- Description
- Name
attributionMessageId- Type
- string Required
- Description
- Name
attributionSource- Type
- one of: WorkRequestForm, AppointmentScheduler, Manual, FuzzyCampaignSMSDelivered, FuzzyCampaignEmailRead Required
- Description
- Name
authorized- Type
- boolean Required
- Description
- Name
authorizedDate- Type
- string Required
- Description
- Name
automatedCampaignId- Type
- string Required
- Description
- Name
coalescedName- Type
- string Required
- Description
- , "generatedName"
- Name
companyId- Type
- string Required
- Description
- Name
complaint- Type
- string Required
- Description
- Name
completedAuthorizedLaborHours- Type
- number Required
- Description
- Name
completedDate- Type
- string Required
- Description
- Name
completedLaborHours- Type
- number Required
- Description
- Name
conversationId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerId- Type
- string Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- // number of services that were deferred, excluding hidden, revived, and maually excluded
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
depositFullyPaid- Type
- boolean Required
- Description
- Name
depositFullyPaidDate- Type
- string Required
- Description
- Name
dueDate- Type
- string Required
- Description
- Name
emailId- Type
- string Required
- Description
- id of the email to use instead of the customer's default email
- Name
externalNumber- Type
- string Required
- Description
- allow user to override generated number
- Name
fullyPaidDate- Type
- string Required
- Description
- Name
generatedCustomerName- Type
- string Required
- Description
- "[firstName] [lastName]" pulled from the customer, if any
- Name
generatedName- Type
- string Required
- Description
- Name
generatedVehicleName- Type
- string Required
- Description
- "[year] [make] [model] [submodel]" pulled from the vehicle, if any
- Name
hasPayments- Type
- boolean Required
- Description
- if the order has any payments associated with it
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
inspectionCount- Type
- integer Required
- Description
- Name
inspectionReviewStatus- Type
- one of: None, Reviewed, NotReviewed Required
- Description
- Name
inspectionStatus- Type
- one of: None, Completed, NotCompleted Required
- Description
- Name
invoiced- Type
- boolean Required
- Description
- Name
invoicedDate- Type
- string Required
- Description
- Name
invoiceLockState- Type
- one of: Unlocked, Locked, PreviouslyLocked Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
messageCount- Type
- integer Required
- Description
- Name
messagedDate- Type
- string Required
- Description
- Name
mileageIn- Type
- number Required
- Description
- Name
mileageOut- Type
- number Required
- Description
- Name
name- Type
- string Required
- Description
- Name
number- Type
- string Required
- Description
- COLLATE "en-u-kn-true"
- Name
oneTimeCampaignId- Type
- string Required
- Description
- Name
orderCreatedDate- Type
- string Required
- Description
- allow user to override created date
- Name
paid- Type
- boolean Required
- Description
- Name
paymentDueDate- Type
- string Required
- Description
- Name
paymentTermId- Type
- string Required
- Description
- id of the payment term for the order
- Name
phoneNumberId- Type
- string Required
- Description
- id of the phone number to use instead of the customer's default number
- Name
publicId- Type
- string Required
- Description
- Name
purchaseOrderNumber- Type
- string Required
- Description
- Name
readOnly- Type
- boolean Required
- Description
- if this order should not be editable in the UI
- Name
readOnlyReason- Type
- string Required
- Description
- a friendly explanation of why (eg. "migrated from previous system"
- Name
recommendation- Type
- string Required
- Description
- Name
repairOrderDate- Type
- string Required
- Description
- // the date the order was moved into repair order status
- Name
requireESignatureOnAuthorization- Type
- boolean Required
- Description
- Name
requireESignatureOnInspection- Type
- boolean Required
- Description
- Name
requireESignatureOnInvoice- Type
- boolean Required
- Description
- Name
sentToCarfax- Type
- boolean Required
- Description
- Name
serviceWriterId- Type
- string Required
- Description
- Name
shopUnreadMessageCount- Type
- integer Required
- Description
- Name
statementId- Type
- string Required
- Description
- a statement this order included in
- Name
status- Type
- one of: Estimate, RepairOrder, Invoice Required
- Description
- Name
taxConfigId- Type
- string Required
- Description
- Name
totalAuthorizedLaborHours- Type
- number Required
- Description
- Name
totalLaborHours- Type
- number Required
- Description
- Name
transactionFeeConfigId- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
updatedSinceSignedInvoice- Type
- boolean Required
- Description
- Name
vehicleId- Type
- string Required
- Description
- Name
workflowStatusDate- Type
- string Required
- Description
- Name
workflowStatusDuration- Type
- object Required
- Description
- Stores how many time the order has been in each status
- Name
workflowStatusId- Type
- string Required
- Description
- Name
workflowStatusPosition- Type
- number Required
- Description
- Name
appliedDiscountCents- Type
- integer Required
- Description
- the total discount applied to the order in cents
- Name
appliedDiscountPercent- Type
- number Required
- Description
- the total discount applied to the order in percent
- Name
discountCents- Type
- integer Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
epaCents- Type
- integer Required
- Description
- Name
feesCents- Type
- integer Required
- Description
- Name
gstCents- Type
- integer Required
- Description
- Name
hstCents- Type
- integer Required
- Description
- Name
laborCents- Type
- integer Required
- Description
- Name
paidCostCents- Type
- integer Required
- Description
- Name
partsCents- Type
- integer Required
- Description
- Name
pstCents- Type
- integer Required
- Description
- Name
remainingCostCents- Type
- integer Required
- Description
- Name
requestedDepositCents- Type
- integer Required
- Description
- Name
shopSuppliesCents- Type
- integer Required
- Description
- Name
subcontractsCents- Type
- integer Required
- Description
- Name
taxCents- Type
- integer Required
- Description
- Name
tiresCents- Type
- integer Required
- Description
- Name
totalCostCents- Type
- integer Required
- Description
- Name
transactionalFeeSubtotalCents- Type
- integer Required
- Description
- // value before taxes
- Name
transactionalFeeTotalCents- Type
- integer Required
- Description
- Name
appointments- Type
- array Required
- Description
- Deprecated: will return []
- Name
authorizations- Type
- array Required
- Description
- Deprecated: will return []
- Name
automatedCampaign- Type
- object Required
- Description
- AutomatedCampaign schema
- Name
couponOrderDiscount- Type
- object Required
- Description
- CouponOrderDiscount schema
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
customer- Type
- object Required
- Description
- Name
files- Type
- array
- Description
- Name
inspections- Type
- array Required
- Description
- Deprecated: will return []
- Name
limitedView- Type
- boolean Required
- Description
- true when this is the limited order view of another company's order, with its money fields withheld as null
- Name
location- Type
- object
- Description
- The location the order belongs to. Returned by the find-one route to HQ callers and to shops with data sharing enabled.
- Name
oneTimeCampaign- Type
- object Required
- Description
- OneTimeCampaign schema
- Name
paymentTerm- Type
- object
- Description
- Name
profitability- Type
- object Required
- Description
- Name
services- Type
- array Required
- Description
- Soon will be deprecated!
- Name
vehicle- Type
- object Required
- Description
- Name
workflowStatus- Type
- object Required
- Description
- WorkflowStatus schema
Properties for automatedCampaign object
- Name
activatedByUserId- Type
- string Required
- Description
- Name
activatedDate- Type
- string Required
- Description
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
cannedServiceId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deferredServiceId- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
nextRunAt- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
reminderType- Type
- one of: Days, Weeks, Months, Years Required
- Description
- Name
reminderValue- Type
- integer Required
- Description
- Name
status- Type
- one of: Draft, Error, Paused, Active Required
- Description
- Name
type- Type
- one of: CannedServiceReminder, DeferredServiceReminder, CustomerLastServiceDate, AnyServiceFollowUp Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for couponOrderDiscount object
- Name
appliedByCustomerId- Type
- string Required
- Description
- the customer that applied the discount
- Name
appliedByUserId- Type
- string Required
- Description
- the user that applied the discount
- Name
appliedDate- Type
- string Required
- Description
- the time the discount was applied
- Name
appliedDiscountCents- Type
- integer Required
- Description
- The discount amount applied when the coupon was redeemed
- Name
companyId- Type
- string Required
- Description
- Name
couponCodeId- Type
- string Required
- Description
- the code entered; null if it has no code row
- Name
couponId- Type
- string Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
orderId- Type
- string Required
- Description
- Name
redeemedDate- Type
- string Required
- Description
- the time the discount was redeemed
- Name
redeemedOrderTotalCents- Type
- integer Required
- Description
- Name
status- Type
- one of: Applied, Invalid, Redeemed Required
- Description
- Name
statusDate- Type
- string Required
- Description
- the time the status was last updated
- Name
statusInvalidReason- Type
- one of: Expired, NotStarted, NotApplicable, MinimumSpend, MaxRedemptions, AlreadyUsed Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for customer object
- Name
address1- Type
- string Required
- Description
- Name
address2- Type
- string Required
- Description
- Name
appointmentCount- Type
- integer Required
- Description
- Name
city- Type
- string Required
- Description
- Name
coalescedFirstNameOrCompanyName- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
companyName- Type
- string Required
- Description
- Name
country- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customerType- Type
- one of: Customer, Fleet Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
dotNumber- Type
- string Required
- Description
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the customer in an external system
- Name
finixIdentityId- Type
- string Required
- Description
- Name
firstName- Type
- string Required
- Description
- Name
fleetId- Type
- string Required
- Description
- Name
gstExempt- Type
- boolean Required
- Description
- CA specific
- Name
hqCustomerId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for customer processing after HQ customer deletion
- Name
hstExempt- Type
- boolean Required
- Description
- CA specific
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
laborMatrixId- Type
- string Required
- Description
- Name
laborRateId- Type
- string Required
- Description
- Name
lastName- Type
- string Required
- Description
- Name
lastTimeOrderWorked- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
marketingOptIn- Type
- boolean Required
- Description
- was never used
- Name
messageCount- Type
- integer Required
- Description
- Name
normalizedFirstName- Type
- string Required
- Description
- Name
normalizedLastName- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- if fleet, contains the normalized companyName, else normalized firstName lastName
- Name
note- Type
- string Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the customer
- Name
paymentTermId- Type
- string Required
- Description
- Name
postalCode- Type
- string Required
- Description
- Name
preferredContactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
preferredLanguage- Type
- one of: en, en_US, fr_CA, es_MX Required
- Description
- Name
pricingMatrixId- Type
- string Required
- Description
- Name
pstExempt- Type
- boolean Required
- Description
- CA specific
- Name
publicId- Type
- string Required
- Description
- Name
referralSourceId- Type
- string Required
- Description
- Name
showLaborHours- Type
- boolean Required
- Description
- visibility overrides for labor hours, taking precedence over location configuration settings
- Name
showLaborNote- Type
- boolean Required
- Description
- visibility overrides for labor note, taking precedence over location configuration settings
- Name
showPartCostAndQuantity- Type
- boolean Required
- Description
- visibility overrides for part and tire price and quantity, taking precedence over location configuration settings
- Name
showPartNote- Type
- boolean Required
- Description
- visibility overrides for part and tire note, taking precedence over location configuration settings
- Name
showPartNumber- Type
- boolean Required
- Description
- visibility overrides for part and tire part number, taking precedence over location configuration settings
- Name
showSubcontractNote- Type
- boolean Required
- Description
- visibility overrides for subcontract note, taking precedence over location configuration settings
- Name
state- Type
- string Required
- Description
- Name
statementCount- Type
- integer Required
- Description
- Name
taxExempt- Type
- boolean Required
- Description
- US specific
- Name
transactionCount- Type
- integer Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vehicleCount- Type
- integer Required
- Description
- Name
website- Type
- string Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
bnplPrequalificationData- Type
- one of: any, null, any
- Description
- Sunbit pre-qualification results; amount, date, etc.
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
emails- Type
- array Required
- Description
- Name
phoneNumbers- Type
- array Required
- Description
Properties for location object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for oneTimeCampaign object
- Name
audienceType- Type
- one of: Customer, Fleet, CustomerAndFleet Required
- Description
- Name
campaignContentId- Type
- string Required
- Description
- Name
campaignSegmentationId- Type
- string Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
contactMethod- Type
- one of: SMS, Email, All Required
- Description
- Name
contentType- Type
- one of: PlainText, HTML Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
errorMessage- Type
- string Required
- Description
- Name
id- Type
- string Required
- Description
- Name
locationId- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
- Name
normalizedName- Type
- string Required
- Description
- Name
sentByUserId- Type
- string Required
- Description
- Name
sentDate- Type
- string Required
- Description
- Name
status- Type
- one of: Draft, Error, Sending, Sent Required
- Description
- Name
updatedDate- Type
- string Required
- Description
Properties for paymentTerm object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
Properties for profitability object
- Name
labor- Type
- object Required
- Description
- Name
parts- Type
- object Required
- Description
- Name
subcontracts- Type
- object Required
- Description
- Name
tires- Type
- object Required
- Description
- Name
totalDiscountCents- Type
- number Required
- Description
- Name
totalDiscountPercent- Type
- number Required
- Description
- Name
totalProfitCents- Type
- number Required
- Description
- Name
totalProfitPercent- Type
- number Required
- Description
- Name
totalRetailCents- Type
- number Required
- Description
- Name
totalWholesaleCents- Type
- number Required
- Description
Properties for labor object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for parts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for subcontracts object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for tires object
- Name
discountCents- Type
- number Required
- Description
- Name
discountPercent- Type
- number Required
- Description
- Name
profitCents- Type
- number Required
- Description
- Name
profitPercent- Type
- number Required
- Description
- Name
retailCents- Type
- number Required
- Description
- Name
wholesaleCents- Type
- number Required
- Description
Properties for vehicle object
- Name
appointmentCount- Type
- integer Required
- Description
- Name
baseId- Type
- integer Required
- Description
- vcdb base id
- Name
bedLength- Type
- string Required
- Description
- Name
bodyStyle- Type
- string Required
- Description
- Name
bodyStyleId- Type
- integer Required
- Description
- vcdb body style id
- Name
coalescedVINorHIN- Type
- string Required
- Description
- Name
color- Type
- one of: White, Silver, Gray, Black, Blue, Red, Brown, Burgundy, Tan, Gold, Green, Yellow, Orange, Pink, Purple, Other Required
- Description
- Name
companyId- Type
- string Required
- Description
- Name
computed_ymm- Type
- string Required
- Description
- Name
configurationStatus- Type
- one of: Custom, Incomplete, Invalid, NotSupported, Valid Required
- Description
- Name
createdDate- Type
- string Required
- Description
- Name
customPhoto- Type
- boolean Required
- Description
- Name
deferredServiceCount- Type
- integer Required
- Description
- Name
deleted- Type
- boolean Required
- Description
- if the record has been deleted
- Name
deletedDate- Type
- string Required
- Description
- the date that the record was deleted or null if not deleted
- Name
deletedReason- Type
- string Required
- Description
- the reason that the record was deleted
- Name
deletedUserId- Type
- string Required
- Description
- the user that deleted the record or null if not deleted
- Name
drivetrain- Type
- one of: RWD, FWD, FourWD, AWD Required
- Description
- Name
drivetype- Type
- string Required
- Description
- Name
drivetypeId- Type
- integer Required
- Description
- vcdb drivetype id
- Name
drivingCondition- Type
- one of: Normal, Severe Required
- Description
- Name
engine- Type
- string Required
- Description
- Name
engineHoursLogs- Type
- object Required
- Description
- an array of engine hours logs { engineId: string; inHours: number; outHours: number; orderId: string; }
- Name
engineId- Type
- integer Required
- Description
- vcdb engine id
- Name
engines- Type
- object Required
- Description
- an array of engines { id: string; make: string; model: string; hours: number; noHoursMeter: boolean; horsepower: number; serial: string; productionYear: number; productionMonth: number; }
- Name
externalId- Type
- string Required
- Description
- an id that can be used to reference the vehicle in an external system
- Name
frontTireSize- Type
- string Required
- Description
- custom front tire size override value
- Name
hin- Type
- string Required
- Description
- Vessel hull identification number
- Name
hqVehicleId- Type
- string Required
- Description
- /// This is explicitly not a foreign key to persist this connection for consumer processing after HQ Vehicle deletion
- Name
id- Type
- string Required
- Description
- Name
imported- Type
- boolean Required
- Description
- Name
labels- Type
- object Required
- Description
- Name
lastServicedDate- Type
- string Required
- Description
- Name
length- Type
- number Required
- Description
- Name
lengthUnit- Type
- one of: Ft, M Required
- Description
- Name
licensePlate- Type
- string Required
- Description
- Name
licensePlateCountry- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
licensePlateState- Type
- string Required
- Description
- Name
locationIds- Type
- array Required
- Description
- Name
make- Type
- string Required
- Description
- holds Hull make for vessel
- Name
makeId- Type
- integer Required
- Description
- vcdb make id
- Name
messageCount- Type
- integer Required
- Description
- Name
mileage- Type
- number Required
- Description
- Name
mileageLogCount- Type
- integer Required
- Description
- Name
mileageUnit- Type
- one of: Mile, Kilometer Required
- Description
- Name
model- Type
- string Required
- Description
- Name
modelId- Type
- integer Required
- Description
- vcdb model id
- Name
name- Type
- string Required
- Description
- Custom vehicle name / Vessel registered name
- Name
note- Type
- string Required
- Description
- Name
odometer- Type
- boolean Required
- Description
- Name
orderCount- Type
- integer Required
- Description
- Name
originLocationId- Type
- string Required
- Description
- the location that created the vehicle
- Name
ownerCount- Type
- integer Required
- Description
- Name
preferredLaborGuide- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
productionDate- Type
- string Required
- Description
- Name
rearTireSize- Type
- string Required
- Description
- custom rear tire size override value
- Name
region- Type
- one of: US, CA, MX, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BQ, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, CV, KH, CM, KY, CF, TD, CL, CN, HK, MO, CX, CC, CO, KM, CG, CK, CR, HR, CU, CW, CY, CZ, CI, KP, CD, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, VA, HN, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, FM, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, KR, MD, RO, RU, RW, RE, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, SS, ES, LK, PS, SD, SR, SJ, SE, CH, SY, TW, TJ, TH, MK, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UG, UA, AE, GB, TZ, UM, VI, UY, UZ, VU, VE, VN, WF, EH, YE, ZM, ZW Required
- Description
- Name
serial- Type
- string Required
- Description
- Name
size- Type
- one of: HeavyDuty, LightDuty, Other Required
- Description
- Name
stockPhoto- Type
- boolean Required
- Description
- Name
submodel- Type
- string Required
- Description
- Name
submodelId- Type
- integer Required
- Description
- vcdb submodel id
- Name
tirePressureLogCount- Type
- integer Required
- Description
- Name
transmission- Type
- one of: Automatic, Manual, AutomaticCVT, AutomaticDualClutch Required
- Description
- Name
transmissionId- Type
- integer Required
- Description
- vcdb transmission id
- Name
transmissionMfrCode- Type
- string Required
- Description
- Name
transmissionSpeed- Type
- string Required
- Description
- Name
type- Type
- one of: ATV, Bicycle, BigRig, Boat, CamperTopper, ClassAMotorhome, ClassBMotorhome, ClassCMotorhome, ClassSuperCMotorhome, Convertible, Coupe, FifthWheel, Hatchback, Jeep, Motorcycle, Other, PopUp, RV, SUV, Sedan, Trailer, TravelTrailer, Truck, TruckCamper, UTV, Van, Wagon Required
- Description
- Name
unit- Type
- string Required
- Description
- Name
updatedDate- Type
- string Required
- Description
- Name
vcdbId- Type
- integer Required
- Description
- vcdb id
- Name
vcdbVehicleId- Type
- string Required
- Description
- id of vcdb_vehicle record
- Name
vin- Type
- string Required
- Description
- Name
year- Type
- integer Required
- Description
- Name
customFields- Type
- object Deprecated
- Description
- DEPRECATED: custom fields as JSON object. This is no longer supported.
- Name
tirePressureLogs- Type
- array
- Description
Properties for workflowStatus object
- Name
id- Type
- string Required
- Description
- Name
name- Type
- string Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/order/:orderId/service/:serviceId/part/:id \
-H "Authorization: Bearer ${SM_TOKEN}" \
-X DELETE -H 'Content-Type: application/json' \
--data '{}'
Example Responseapplication/json
{
"success": true,
"data": {
"order": {
"allowCollectPayment": true,
"allowCustomerApplyCoupon": true,
"allowCustomerAuthorization": true,
"allowCustomerViewActivity": true,
"allowCustomerViewAuthorizations": true,
"allowCustomerViewInspections": true,
"allowCustomerViewMessages": true,
"appliedDiscountValueType": "appliedDiscountValueType",
"appointmentDates": [
"2024-01-01T00:00:00.000Z"
],
"archived": true,
"assignedTechnicianIds": [
"assignedTechnicianIds"
],
"attributionMessageId": null,
"attributionSource": null,
"authorized": true,
"authorizedDate": null,
"automatedCampaignId": null,
"coalescedName": null,
"companyId": "companyId",
"complaint": null,
"completedAuthorizedLaborHours": 1,
"completedDate": null,
"completedLaborHours": 1,
"conversationId": null,
"createdDate": "createdDate",
"customerId": null,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"depositFullyPaid": true,
"depositFullyPaidDate": null,
"dueDate": null,
"emailId": null,
"externalNumber": null,
"fullyPaidDate": null,
"generatedCustomerName": null,
"generatedName": null,
"generatedVehicleName": null,
"hasPayments": true,
"id": "id",
"imported": true,
"inspectionCount": 1,
"inspectionReviewStatus": "inspectionReviewStatus",
"inspectionStatus": "inspectionStatus",
"invoiced": true,
"invoicedDate": null,
"invoiceLockState": "invoiceLockState",
"locationId": "locationId",
"messageCount": 1,
"messagedDate": null,
"mileageIn": null,
"mileageOut": null,
"name": null,
"number": "number",
"oneTimeCampaignId": null,
"orderCreatedDate": "orderCreatedDate",
"paid": true,
"paymentDueDate": null,
"paymentTermId": null,
"phoneNumberId": null,
"publicId": "publicId",
"purchaseOrderNumber": null,
"readOnly": true,
"readOnlyReason": null,
"recommendation": null,
"repairOrderDate": null,
"requireESignatureOnAuthorization": true,
"requireESignatureOnInspection": true,
"requireESignatureOnInvoice": true,
"sentToCarfax": true,
"serviceWriterId": null,
"shopUnreadMessageCount": 1,
"statementId": null,
"status": "status",
"taxConfigId": null,
"totalAuthorizedLaborHours": 1,
"totalLaborHours": 1,
"transactionFeeConfigId": null,
"updatedDate": null,
"updatedSinceSignedInvoice": true,
"vehicleId": null,
"workflowStatusDate": "workflowStatusDate",
"workflowStatusId": null,
"workflowStatusPosition": null,
"appliedDiscountCents": null,
"appliedDiscountPercent": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"feesCents": null,
"gstCents": null,
"hstCents": null,
"laborCents": null,
"paidCostCents": null,
"partsCents": null,
"pstCents": null,
"remainingCostCents": null,
"requestedDepositCents": null,
"shopSuppliesCents": null,
"subcontractsCents": null,
"taxCents": null,
"tiresCents": null,
"totalCostCents": null,
"transactionalFeeSubtotalCents": null,
"transactionalFeeTotalCents": null,
"appointments": [
{
"allDay": true,
"attributionMessageId": null,
"attributionSource": null,
"automatedCampaignId": null,
"cancellationNote": null,
"chatBotSessionId": null,
"color": "color",
"companyId": "companyId",
"confirmationStatus": "confirmationStatus",
"confirmationSubject": null,
"confirmationTemplateIdentifier": null,
"confirmationText": null,
"createdDate": "createdDate",
"customerEmailId": null,
"customerId": null,
"customerPhoneNumberId": null,
"duration": null,
"endDate": "endDate",
"id": "id",
"isRecurringParent": true,
"lastRecurrenceEndDate": null,
"legacyHydratedReminder": true,
"locationId": "locationId",
"name": "name",
"note": "note",
"oneTimeCampaignId": null,
"orderId": null,
"origin": "origin",
"originalEndDate": null,
"originalStartDate": null,
"publicId": "publicId",
"recurring": true,
"recurringAppointmentId": null,
"recurringExceptionId": null,
"reminderSubject": null,
"reminderTemplateIdentifier": null,
"reminderText": null,
"removedFromRecurrency": true,
"rruleset": null,
"sendConfirmation": true,
"sendReminder": true,
"startDate": "startDate",
"updatedDate": null,
"useEmail": true,
"useSMS": true,
"vehicleId": null
}
],
"authorizations": [
{
"authorizedCostCents": 1,
"companyId": "companyId",
"createdDate": "createdDate",
"customerId": null,
"date": "date",
"id": "id",
"locationId": "locationId",
"method": "method",
"note": "note",
"orderId": "orderId",
"serviceAuthorizationReset": true,
"serviceWriterId": null,
"updatedDate": null
}
],
"automatedCampaign": {
"activatedByUserId": null,
"activatedDate": null,
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"cannedServiceId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deferredServiceId": null,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"nextRunAt": null,
"normalizedName": null,
"reminderType": null,
"reminderValue": null,
"status": "status",
"type": "type",
"updatedDate": null
},
"couponOrderDiscount": {
"appliedByCustomerId": null,
"appliedByUserId": null,
"appliedDate": "appliedDate",
"appliedDiscountCents": 1,
"companyId": "companyId",
"couponCodeId": null,
"couponId": "couponId",
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"redeemedDate": null,
"redeemedOrderTotalCents": null,
"status": "status",
"statusDate": null,
"statusInvalidReason": null,
"updatedDate": "updatedDate"
},
"customFields": {},
"customer": {
"address1": null,
"address2": null,
"appointmentCount": 1,
"city": null,
"coalescedFirstNameOrCompanyName": null,
"companyId": "companyId",
"companyName": null,
"country": null,
"createdDate": "createdDate",
"customerType": "customerType",
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"dotNumber": null,
"externalId": null,
"finixIdentityId": null,
"firstName": null,
"fleetId": null,
"gstExempt": true,
"hqCustomerId": null,
"hstExempt": true,
"id": "id",
"imported": true,
"laborMatrixId": null,
"laborRateId": null,
"lastName": null,
"lastTimeOrderWorked": null,
"locationIds": [
"locationIds"
],
"marketingOptIn": true,
"messageCount": 1,
"normalizedFirstName": null,
"normalizedLastName": null,
"normalizedName": null,
"note": "note",
"orderCount": 1,
"originLocationId": null,
"paymentTermId": null,
"postalCode": null,
"preferredContactMethod": null,
"preferredLanguage": "preferredLanguage",
"pricingMatrixId": null,
"pstExempt": true,
"publicId": "publicId",
"referralSourceId": null,
"showLaborHours": true,
"showLaborNote": true,
"showPartCostAndQuantity": true,
"showPartNote": true,
"showPartNumber": true,
"showSubcontractNote": true,
"state": null,
"statementCount": 1,
"taxExempt": true,
"transactionCount": 1,
"updatedDate": null,
"vehicleCount": 1,
"website": null,
"discountPercent": null,
"customFields": {},
"emails": [
{
"email": "email",
"id": "id",
"primary": true
}
],
"phoneNumbers": [
{
"extension": null,
"id": "id",
"number": "number",
"primary": true,
"type": null,
"userDefinedType": null
}
]
},
"files": [
{
"fileName": "fileName",
"fileSize": 1,
"fileType": "fileType",
"id": "id",
"thumbnailUrl": "thumbnailUrl",
"url": "url"
}
],
"inspections": [
{
"companyId": "companyId",
"completed": true,
"completedById": null,
"completedDate": null,
"createdById": null,
"createdDate": "createdDate",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"recommended": true,
"templateId": null,
"updatedDate": null
}
],
"limitedView": true,
"location": {
"id": "id",
"name": "name"
},
"oneTimeCampaign": {
"audienceType": "audienceType",
"campaignContentId": "campaignContentId",
"campaignSegmentationId": null,
"companyId": "companyId",
"contactMethod": "contactMethod",
"contentType": "contentType",
"createdDate": "createdDate",
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"errorMessage": null,
"id": "id",
"locationId": "locationId",
"name": "name",
"normalizedName": null,
"sentByUserId": null,
"sentDate": null,
"status": "status",
"updatedDate": null
},
"paymentTerm": {
"id": "id",
"name": "name"
},
"profitability": {
"labor": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"parts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"subcontracts": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"tires": {
"discountCents": 1,
"discountPercent": 1,
"profitCents": 1,
"profitPercent": 1,
"retailCents": 1,
"wholesaleCents": 1
},
"totalDiscountCents": 1,
"totalDiscountPercent": 1,
"totalProfitCents": 1,
"totalProfitPercent": 1,
"totalRetailCents": 1,
"totalWholesaleCents": 1
},
"services": [
{
"authorizationStatus": "authorizationStatus",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"deferredDate": null,
"deferredReason": null,
"discountValueType": "discountValueType",
"epaValueType": "epaValueType",
"excludedFromDeferred": true,
"gstValueType": "gstValueType",
"hidden": true,
"hideLineItemPricing": true,
"hstValueType": "hstValueType",
"id": "id",
"lineItemInventoryStatus": "lineItemInventoryStatus",
"locationId": "locationId",
"lumpSum": true,
"motorApplicationId": null,
"name": "name",
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"pstValueType": "pstValueType",
"recommended": true,
"revived": true,
"revivedFromId": null,
"shopSuppliesApplied": true,
"shopSuppliesValueType": "shopSuppliesValueType",
"sourceServiceId": null,
"taxValueType": "taxValueType",
"updatedDate": null,
"calculatedDiscountCents": null,
"calculatedDiscountPercent": null,
"calculatedEpaCents": null,
"calculatedFeeCents": null,
"calculatedGSTCents": null,
"calculatedHSTCents": null,
"calculatedLaborCents": null,
"calculatedPSTCents": null,
"calculatedPartsCents": null,
"calculatedShopSuppliesCents": null,
"calculatedSubcontractsCents": null,
"calculatedTaxCents": null,
"calculatedTiresCents": null,
"discountCents": null,
"discountPercent": null,
"epaCents": null,
"epaPercent": null,
"fixedPriceCents": null,
"gstCents": null,
"gstPercent": null,
"hstCents": null,
"hstPercent": null,
"pricing": null,
"pstCents": null,
"pstPercent": null,
"shopSuppliesCents": null,
"shopSuppliesPercent": null,
"taxCents": null,
"taxPercent": null,
"totalCents": null,
"fees": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"feeType": "feeType",
"id": "id",
"inventoryFeeId": null,
"laborId": null,
"lineItemEntity": null,
"locationId": "locationId",
"name": "name",
"orderId": "orderId",
"ordinal": 1,
"partId": null,
"serviceId": "serviceId",
"sourceItemId": null,
"subcontractId": null,
"tireId": null,
"updatedDate": null,
"amountCents": null,
"percent": null,
"subtotalCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
}
}
],
"labors": [
{
"applicationId": null,
"categoryId": null,
"companyId": "companyId",
"completed": true,
"completedDate": null,
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"hours": 1,
"id": "id",
"inventoryLaborId": null,
"laborMatrixDate": null,
"laborMatrixId": null,
"locationId": "locationId",
"motorApplicationId": null,
"multiplier": 1,
"multiplierType": "multiplierType",
"name": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"provider": null,
"providerApplicationId": null,
"rateId": null,
"serviceId": "serviceId",
"showHours": true,
"showNote": true,
"skillRequired": null,
"skillRequiredDescription": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"technicianId": null,
"updatedDate": null,
"costHours": null,
"costRateCents": null,
"costTotalCents": null,
"discountCents": null,
"discountPercent": null,
"rateCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"laborMatrix": {
"id": "id",
"name": "name"
},
"laborRate": {
"id": "id",
"name": "name"
}
}
],
"limitedView": true,
"parts": [
{
"binLocation": "binLocation",
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"fixedPriceLimitQuantity": null,
"fixedPriceLimitType": null,
"id": "id",
"inventoryPartId": null,
"inventoryStatus": "inventoryStatus",
"inventoryTransferPartId": null,
"locationId": "locationId",
"motorApplicationId": null,
"motorCommercialPartsId": null,
"name": "name",
"normalizedSKU": null,
"note": "note",
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pcDbTerminologyId": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"provider": null,
"providerApplicationId": null,
"purchaseOrderPartId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"url": null,
"vendorId": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"fixedPriceLimitPriceCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wholesaleCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"vendor": {
"id": "id",
"name": "name"
},
"inventoryPart": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
],
"subcontracts": [
{
"categoryId": null,
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"id": "id",
"locationId": "locationId",
"name": "name",
"note": null,
"orderId": "orderId",
"ordinal": 1,
"serviceId": "serviceId",
"showNote": true,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"updatedDate": null,
"vendorId": null,
"costCents": null,
"discountCents": null,
"discountPercent": null,
"retailCostCents": null,
"category": {
"id": "id",
"name": "name",
"parent": {
"id": "id",
"name": "name"
}
},
"vendor": {
"id": "id",
"name": "name"
}
}
],
"tires": [
{
"binLocation": null,
"calculatedName": "calculatedName",
"companyId": "companyId",
"createdDate": "createdDate",
"discountValueType": "discountValueType",
"generatedBrandName": "generatedBrandName",
"generatedModelName": "generatedModelName",
"id": "id",
"inventoryStatus": "inventoryStatus",
"inventoryTireId": null,
"inventoryTransferTireId": null,
"locationId": "locationId",
"name": "name",
"normalizedSKU": null,
"note": null,
"orderId": "orderId",
"ordinal": 1,
"partNumber": null,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"purchaseOrderTireId": null,
"purchaseStatus": null,
"quantity": 1,
"reduceInventoryCount": true,
"reserved": true,
"serviceId": "serviceId",
"showNote": true,
"showPartNumber": true,
"showPriceAndQuantity": true,
"size": null,
"sizeFormat": "sizeFormat",
"sku": null,
"sourceItemId": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"tireIdentificationNumbers": [
"tireIdentificationNumbers"
],
"tireModelId": null,
"updatedDate": null,
"url": null,
"calculatedCOGSCents": null,
"discountCents": null,
"discountPercent": null,
"federalExciseTaxCents": null,
"originalWholesaleCostCents": null,
"retailCostCents": null,
"wasteTireFee": null,
"wholesaleCostCents": null,
"lineItemAssignments": [
{
"id": "id",
"userId": "userId"
}
],
"pricingMatrix": {
"id": "id",
"name": "name"
},
"tireModel": {
"brandId": "brandId",
"categoryId": null,
"deleted": true,
"id": "id",
"name": "name",
"seasonality": null,
"vendorId": null,
"brand": {
"deleted": true,
"id": "id",
"name": "name"
},
"vendor": {
"deleted": true,
"id": "id",
"name": "name"
},
"category": {
"deleted": true,
"id": "id",
"name": "name",
"parent": {
"deleted": true,
"id": "id",
"name": "name"
}
}
},
"inventoryTire": {
"availableQuantity": 1,
"id": "id",
"minCriticalQuantity": 1,
"name": "name",
"quantity": 1,
"retailCostCents": null,
"wholesaleCostCents": null
}
}
]
}
],
"vehicle": {
"appointmentCount": 1,
"baseId": null,
"bedLength": null,
"bodyStyle": null,
"bodyStyleId": null,
"coalescedVINorHIN": null,
"color": null,
"companyId": "companyId",
"computed_ymm": null,
"configurationStatus": null,
"createdDate": "createdDate",
"customPhoto": true,
"deferredServiceCount": 1,
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"drivetrain": null,
"drivetype": null,
"drivetypeId": null,
"drivingCondition": null,
"engine": null,
"engineId": null,
"externalId": null,
"frontTireSize": null,
"hin": null,
"hqVehicleId": null,
"id": "id",
"imported": true,
"lastServicedDate": null,
"length": null,
"lengthUnit": null,
"licensePlate": null,
"licensePlateCountry": "licensePlateCountry",
"licensePlateState": null,
"locationIds": [
"locationIds"
],
"make": null,
"makeId": null,
"messageCount": 1,
"mileage": null,
"mileageLogCount": 1,
"mileageUnit": "mileageUnit",
"model": null,
"modelId": null,
"name": null,
"note": "note",
"odometer": true,
"orderCount": 1,
"originLocationId": null,
"ownerCount": 1,
"preferredLaborGuide": "preferredLaborGuide",
"productionDate": null,
"rearTireSize": null,
"region": null,
"serial": null,
"size": "size",
"stockPhoto": true,
"submodel": null,
"submodelId": null,
"tirePressureLogCount": 1,
"transmission": null,
"transmissionId": null,
"transmissionMfrCode": null,
"transmissionSpeed": null,
"type": null,
"unit": null,
"updatedDate": null,
"vcdbId": null,
"vcdbVehicleId": null,
"vin": null,
"year": null,
"customFields": {},
"tirePressureLogs": [
{
"companyId": "companyId",
"createdDate": "createdDate",
"frontLeft": null,
"frontRight": null,
"id": "id",
"locationId": "locationId",
"orderId": "orderId",
"rearLeft": null,
"rearRight": null,
"updatedDate": null,
"vehicleId": "vehicleId"
}
]
},
"workflowStatus": {
"id": "id",
"name": null
}
}
}
}
Find ALL Parts
Find all Parts from Services and PurchaseOrders
URL parameters
- Name
orderId- Type
- string Required
- Description
- the id for the order
Query String parameters
- Name
collate- Type
- boolean
- Description
- if set to true, use natural sort collation when used with orderBy
- Name
ids- Type
- array
- Description
- Name
limit- Type
- number
- Description
- the limit on the number of records to return
- Name
orderby- Type
- string
- Description
- the order instructions for the result
- Name
params- Type
- string
- Description
- additional request specific params
- Name
skip- Type
- number
- Description
- the number of records to skip for a paginated result
- Name
where- Type
- string
- Description
- an object to use for filtering the results
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- array Required
- Description
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
meta- Type
- object
- Description
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Properties for meta object
- Name
hasMore- Type
- boolean
- Description
- if there are more records available
- Name
lastRefreshedAt- Type
- string
- Description
- the last refreshed at timestamp
- Name
sums- Type
- object
- Description
- Name
total- Type
- number
- Description
- the total number of records
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Request
curl https://api.shopmonkey.cloud/v3/order/:orderId/part \
-H "Authorization: Bearer ${SM_TOKEN}"
Example Responseapplication/json
{
"data": [
{
"id": null,
"inventoryPart": {
"availableQuantity": 1,
"id": "id",
"name": "name",
"normalizedSKU": null,
"photo": {
"id": "id"
},
"quantity": 1
},
"inventoryPartId": null,
"inventoryTransferPart": {
"id": "id",
"name": "name",
"transfer": {
"id": "id",
"number": "number",
"status": "status"
}
},
"inventoryTransferPartId": null,
"name": "name",
"partNumber": null,
"purchaseOrderPart": {
"id": "id",
"linkedToServiceItem": true,
"name": "name",
"purchaseOrder": {
"id": "id",
"number": "number",
"orderedDate": null,
"provider": null,
"status": "status"
}
},
"purchaseOrderPartId": null,
"purchaseStatus": null,
"quantity": 1,
"reserved": true,
"service": {
"authorizationStatus": "authorizationStatus",
"hidden": true,
"id": "id",
"name": "name",
"recommended": true
},
"vendor": {
"id": "id",
"name": "name"
},
"retailCostCents": null,
"wholesaleCostCents": null
}
],
"success": true
}
Find ALL Parts Summary
Find all Parts Summary from Services and PurchaseOrders
URL parameters
- Name
orderId- Type
- string Required
- Description
- the id for the order
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
partsCount- Type
- number Required
- Description
- Total number of parts on the order
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Request
curl https://api.shopmonkey.cloud/v3/order/:orderId/part/summary \
-H "Authorization: Bearer ${SM_TOKEN}"
Example Responseapplication/json
{
"success": true,
"data": {
"partsCount": 1
}
}
Search Part
Search for a Part
Body parameters
Consumes
The following content type is required: application/json
- Name
inventory- Type
- object
- Description
- Name
locationIds- Type
- array
- Description
- Name
motorLightDuty- Type
- object
- Description
- Name
term- Type
- string Required
- Description
- Name
vcdbVehicleId- Type
- string
- Description
Properties for inventory object
- Name
limit- Type
- number Required
- Description
- Name
page- Type
- number Required
- Description
Properties for motorLightDuty object
- Name
limit- Type
- number Required
- Description
- Name
page- Type
- number Required
- Description
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
inventory- Type
- array Required
- Description
- Name
motorLightDuty- Type
- array Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/part/search \
-H "Authorization: Bearer ${SM_TOKEN}" \
-H 'Content-Type: application/json' \
--data '{ "term" : "value" }'
Example Responseapplication/json
{
"success": true,
"data": {
"inventory": [
{
"availableQuantity": 1,
"averageCostCents": null,
"binLocation": null,
"brandId": null,
"categoryId": null,
"companyId": "companyId",
"computed_fullText": null,
"createdDate": "createdDate",
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"hasSetRetailCost": true,
"id": "id",
"inventoryPartTemplateId": null,
"locationId": "locationId",
"markedForDeletion": true,
"maxCriticalQuantity": null,
"minCriticalQuantity": null,
"name": "name",
"normalizedPartNumber": null,
"normalizedSKU": null,
"note": null,
"number": null,
"onEstimateQuantity": 1,
"otherLocationsAvailableQuantity": 1,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"quantity": 1,
"reorderQuantity": 1,
"reservedQuantity": 1,
"retailCostCents": 1,
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"suggestedRetailCostCents": null,
"suggestedWholesaleCostCents": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"templatePhotoBlobId": null,
"type": null,
"updatedDate": null,
"url": null,
"userId": null,
"vendorId": null,
"wholesaleCostCents": null
}
],
"motorLightDuty": [
{
"applicationId": 1,
"catalogId": 1,
"catalogName": "catalogName",
"compatiblePartId": 1,
"costCents": 1,
"description": "description",
"manufacturerLabel": "manufacturerLabel",
"name": "name",
"partNumber": "partNumber",
"quantity": 1
}
]
},
"meta": {
"inventory": {
"hasMore": true,
"total": 1
},
"motorLightDuty": {
"hasMore": true,
"total": 1
}
}
}
Find Compatible Options
Find all compatible options for a Part
Body parameters
Consumes
The following content type is required: application/json
- Name
compatibleId- Type
- number Required
- Description
- Name
inventory- Type
- object
- Description
- Name
locationIds- Type
- array
- Description
- Name
motorLightDuty- Type
- object
- Description
- Name
vcdbVehicleId- Type
- string Required
- Description
Properties for inventory object
- Name
limit- Type
- number Required
- Description
- Name
page- Type
- number Required
- Description
Properties for motorLightDuty object
- Name
limit- Type
- number Required
- Description
- Name
page- Type
- number Required
- Description
Produces
The response content type: application/json
200 Response
- Name
code- Type
- string
- Description
- The error code
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if success = false
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
- Name
data- Type
- object Required
- Description
Properties for data object
- Name
inventory- Type
- array Required
- Description
- Name
motorLightDuty- Type
- array Required
- Description
4xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
5xx Response
- Name
code- Type
- string
- Description
- The error code
- Name
data- Type
- object
- Description
- An optional object containing relevant error data
- Name
documentation_url- Type
- string
- Description
- An optional link to the documentation for the error
- Name
message- Type
- string
- Description
- the error message if not successful
- Name
success- Type
- boolean Required
- Description
- if successful, will be true. if not successful, will be false and message will contain a human readable error message
Example Requestapplication/json
curl https://api.shopmonkey.cloud/v3/part/compatible_options \
-H "Authorization: Bearer ${SM_TOKEN}" \
-H 'Content-Type: application/json' \
--data '{ "compatibleId" : 0, "vcdbVehicleId" : "value" }'
Example Responseapplication/json
{
"success": true,
"data": {
"inventory": [
{
"availableQuantity": 1,
"averageCostCents": null,
"binLocation": null,
"brandId": null,
"categoryId": null,
"companyId": "companyId",
"computed_fullText": null,
"createdDate": "createdDate",
"deleted": true,
"deletedDate": null,
"deletedReason": null,
"deletedUserId": null,
"hasSetRetailCost": true,
"id": "id",
"inventoryPartTemplateId": null,
"locationId": "locationId",
"markedForDeletion": true,
"maxCriticalQuantity": null,
"minCriticalQuantity": null,
"name": "name",
"normalizedPartNumber": null,
"normalizedSKU": null,
"note": null,
"number": null,
"onEstimateQuantity": 1,
"otherLocationsAvailableQuantity": 1,
"pricingMatrixDate": null,
"pricingMatrixId": null,
"quantity": 1,
"reorderQuantity": 1,
"reservedQuantity": 1,
"retailCostCents": 1,
"showCostAndQuantity": true,
"showNote": true,
"showPartNumber": true,
"sku": null,
"suggestedRetailCostCents": null,
"suggestedWholesaleCostCents": null,
"taxable": true,
"taxableGST": true,
"taxableHST": true,
"taxablePST": true,
"templatePhotoBlobId": null,
"type": null,
"updatedDate": null,
"url": null,
"userId": null,
"vendorId": null,
"wholesaleCostCents": null
}
],
"motorLightDuty": [
{
"applicationId": 1,
"catalogId": 1,
"catalogName": "catalogName",
"compatiblePartId": 1,
"costCents": 1,
"description": "description",
"manufacturerLabel": "manufacturerLabel",
"name": "name",
"partNumber": "partNumber",
"quantity": 1
}
]
},
"meta": {
"inventory": {
"hasMore": true,
"total": 1
},
"motorLightDuty": {
"hasMore": true,
"total": 1
}
}
}