curl --request POST \
--url https://api.sandbox.usenash.com/v1/jobs/{jobId}/tasks/{taskId}/refresh_quotes
{
"jobId": "job_01234567890",
"quotes": [
{
"id": "qot_01234567890",
"type": "<string>",
"providerId": "uber_standard_mini_mart",
"providerName": "Nash",
"providerLogo": "https://nash.com/logo.png",
"providerIsInternal": true,
"createdTime": "2021-01-01T00:00:00Z",
"expireTime": "2021-01-01T00:00:00Z",
"priceCents": 1000,
"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"
],
"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
{
"jobId": "job_01234567890",
"quotes": [
{
"id": "qot_01234567890",
"type": "<string>",
"providerId": "uber_standard_mini_mart",
"providerName": "Nash",
"providerLogo": "https://nash.com/logo.png",
"providerIsInternal": true,
"createdTime": "2021-01-01T00:00:00Z",
"expireTime": "2021-01-01T00:00:00Z",
"priceCents": 1000,
"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"
],
"costSplitCustomerCents": 100,
"costSplitBusinessCents": 100,
"totalPriceBreakdown": {
"subtotal": 1000,
"tax": 100,
"total": 1100
},
"totalPriceCents": 1000,
"price": 1000,
"isSuccessful": true,
"errorMessage": "Error message"
}
]
}
OK
Expected output for refreshing quotes.