curl --request POST \
--url https://api.sandbox.usenash.com/v1/jobs/{jobId}/tasks/{taskId}/refresh_quotes \
--header 'Authorization: Bearer <token>'{
"jobId": "job_01234567890",
"quotes": [
{
"id": "qot_01234567890",
"providerId": "uber_standard_mini_mart",
"providerName": "Nash",
"createdTime": "2021-01-01T00:00:00Z",
"priceCents": 1000,
"type": "<string>",
"providerLogo": "https://nash.com/logo.png",
"providerIsInternal": true,
"expireTime": "2021-01-01T00:00:00Z",
"taxAmountCents": 100,
"tollFeeCents": 100,
"nashFeeCents": 100,
"insuranceFeeCents": 100,
"currency": "USD",
"pickupWindow": "2021-01-01T00:00:00Z",
"dropoffEta": "2021-01-01T00:00:00Z",
"tags": [
"tag1",
"tag2",
"autodispatch_preferred_quote"
],
"costSplitCustomerCents": 100,
"costSplitBusinessCents": 100,
"totalPriceBreakdown": {
"subtotal": 1000,
"tax": 100,
"total": 1100
},
"totalPriceCents": 1000,
"price": 1000,
"isSuccessful": true,
"errorMessage": "Error message"
}
]
}Regenerate quotes for a given job’s task.
curl --request POST \
--url https://api.sandbox.usenash.com/v1/jobs/{jobId}/tasks/{taskId}/refresh_quotes \
--header 'Authorization: Bearer <token>'{
"jobId": "job_01234567890",
"quotes": [
{
"id": "qot_01234567890",
"providerId": "uber_standard_mini_mart",
"providerName": "Nash",
"createdTime": "2021-01-01T00:00:00Z",
"priceCents": 1000,
"type": "<string>",
"providerLogo": "https://nash.com/logo.png",
"providerIsInternal": true,
"expireTime": "2021-01-01T00:00:00Z",
"taxAmountCents": 100,
"tollFeeCents": 100,
"nashFeeCents": 100,
"insuranceFeeCents": 100,
"currency": "USD",
"pickupWindow": "2021-01-01T00:00:00Z",
"dropoffEta": "2021-01-01T00:00:00Z",
"tags": [
"tag1",
"tag2",
"autodispatch_preferred_quote"
],
"costSplitCustomerCents": 100,
"costSplitBusinessCents": 100,
"totalPriceBreakdown": {
"subtotal": 1000,
"tax": 100,
"total": 1100
},
"totalPriceCents": 1000,
"price": 1000,
"isSuccessful": true,
"errorMessage": "Error message"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK
Expected output for refreshing quotes.
Job ID
"job_01234567890"
Quotes
Show child attributes
Quote ID
"qot_01234567890"
Provider ID
"uber_standard_mini_mart"
Provider name
"Nash"
Created time
"2021-01-01T00:00:00Z"
Price in cents
1000
Quote type
Provider logo
"https://nash.com/logo.png"
Is the provider internal
Expire time
"2021-01-01T00:00:00Z"
Tax amount in cents
100
Toll fee in cents
100
Nash fee in cents
100
Insurance fee in cents
100
Currency
"USD"
Pickup window
"2021-01-01T00:00:00Z"
Dropoff ETA
"2021-01-01T00:00:00Z"
Tags
[
"tag1",
"tag2",
"autodispatch_preferred_quote"
]Cost split customer in cents
100
Cost split business in cents
100
Total price breakdown
{
"subtotal": 1000,
"tax": 100,
"total": 1100
}Total price in cents
1000
Price
1000
Is successful
true
Error message
"Error message"