POST dealer/repair_orders
Create one or more repair orders.
Request Information
Parameters
| Name | Description |
|---|---|
| schema |
|
These parameters will be used to generate Repair Order File. Attached please find the file specification for "Repair Order File Layout".
Request body formats
text/plain, application/x-www-form-urlencoded, text/json, application/json
Sample:
For Motorcycle:
{
"Dealers":[{
"DealerNumber":"83289",
"key" : "********-**50-****-****-11599*******",
"JobCard":[{
"JobCardNumber":"JC12345",
"VIN":"JH2RC50197M300330",
"Details":[{
"Type":"customer",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
},{
"Type":"internal",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
},{
"Type":"warranty",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
}]
}]
}]
}
or
{
"Dealers":[{
"DealerNumber":"408328",
"key" : "********-**50-****-****-11599*******",
"JobCard":[{
"JobCardNumber":"JC12345",
"VIN":"JH2RC50197M300330",
"Details":[{
"Type":"customer",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
},{
"Type":"internal",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
},{
"Type":"warranty",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
}]
}]
}]
}
For Marine:
{
"Dealers":[{
"DealerNumber":"83289",
"key" : "********-**50-****-****-11599*******",
"JobCard":[{
"JobCardNumber":"JC12345",
"EngineFrameNumber":"JH2RC50197M300330",
"Details":[{
"Type":"customer",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
},{
"Type":"internal",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
},{
"Type":"warranty",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
}]
}]
}]
}
or
{
"Dealers":[{
"DealerNumber":"408328",
"key" : "********-**50-****-****-11599*******",
"JobCard":[{
"JobCardNumber":"JC12345",
"EngineFrameNumber":"JH2RC50197M300330",
"Details":[{
"Type":"customer",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
},{
"Type":"internal",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
},{
"Type":"warranty",
"Odometer":"145000",
"ROCheckoutDate":"22/07/2014",
"ROLabour":"3.0",
"ROPartsSaleValue":"480",
"ROOilChemicalValue":"48"
}]
}]
}]
}
Response Information
Response body formats
application/json, text/json
Sample:
Create repair order successfully. Or Bad Response: All repair orders are created failed for 1.[First fail reason] 2.[Second fail reason] 3.[Third fail reason] / Some repair orders created successfully. Others failed for 1.[First fail reason] 2.[Second fail reason] 3.[Third fail reason]