Discussions

Ask a Question
Back to All

How do you upload a spot quote to an order using v2 of the API?

Attempting to add a quote to to an existing order using v2 of the API.

Currently trying:
PUT: https://network.roserocket.com/api/v2/platformModel/objects/2f7d9131-7327-41bd-869e-5c36e4415a5c
{
"objectKey": "order",
"json": {
"sellQuote": {
"quoteType": "sell",
"refNum": 1,
"totalMiles": 1525,
"notes": "Test notes",
"assetType": {
"fullId": "trailer"
},
"serviceType": {
"fullId": "FTL"
},
"lineItems": [
{
"description": "Mileage Surcharge",
"rate": 100,
"quantity": 1,
"glAccount": "00001"
},
{
"description": "Fuel Surcharge",
"rate": 25,
"quantity": 1,
"glAccount": "00002"
},
{
"description": "Cross border - mileage",
"rate": 35,
"quantity": 1,
"glAccount": "00003"
},
{
"description": "Cross border - stops",
"rate": 45,
"quantity": 1,
"glAccount": "00003"
},
{
"description": "Cross border - insurance",
"rate": 55,
"quantity": 1,
"glAccount": "00003"
},
{
"description": "Cross border - handling",
"rate": 65,
"quantity": 1,
"glAccount": "00003"
},
{
"description": "Cross border - border crossing",
"rate": 75,
"quantity": 1,
"glAccount": "00003"
},
{
"description": "Cross border - inland freight",
"rate": 85,
"quantity": 1,
"glAccount": "00003"
}
]
}
}
}

Response:
{
"statusCode": 500,
"message": "Internal server error"
}