Reprice an order#
POST
/v1/orders/{orderId}/repriceRe-confirms an order's price against the current catalog before booking. Every line already reports live current pricing on every read, so this returns the same data as GET — offered as its own endpoint for an integrator that wants to explicitly re-price before committing to a booking. No inventory hold is taken by this call either.
Request
curl -X POST 'https://partner-api.elivaas.com/v1/orders/{orderId}/reprice' \
-u "$ELIVAAS_API_KEY:" \
-H 'Content-Type: application/json'const res = await fetch('https://partner-api.elivaas.com/v1/orders/{orderId}/reprice', {
method: 'POST',
headers: {
Authorization: 'Basic ' + Buffer.from(process.env.ELIVAAS_API_KEY + ':').toString('base64'),
'Content-Type': 'application/json',
},
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json();import os, requests
res = requests.post(
"https://partner-api.elivaas.com/v1/orders/{orderId}/reprice",
auth=(os.environ["ELIVAAS_API_KEY"], ""),
timeout=30,
)
res.raise_for_status()
data = res.json(){
"orderId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"validUntil": "2026-07-27T05:30:00Z",
"currency": "INR",
"items": [
{
"listingId": "string",
"checkIn": "2026-08-01",
"checkOut": "2026-08-01",
"nights": 0,
"soldOut": true,
"itemSubtotal": 0,
"cancellationPlanId": "string",
"cancellationPlanDiscount": 0,
"cancellationPolicy": [
{
"cancelBy": "2026-08-01",
"refundPercentage": 0,
"label": "string"
}
]
}
],
"summary": {
"baseSubtotal": 0,
"mealsSubtotal": 0,
"vasSubtotal": 0,
"cancellationPlanDiscount": 0,
"stayAfterCancellationPlan": 0,
"bankOffer": {
"code": "HDFC10",
"title": "10% off with HDFC credit cards",
"discountType": "PERCENTAGE",
"discount": 1000,
"applied": true,
"reason": "string"
},
"priceAfterBankOffer": 0,
"offersDiscount": 0,
"taxableSubtotal": 0,
"gst": 0,
"grandTotal": 0
}
}Path parameters#
orderIdstring<uuid>requiredNo description in the spec.
Responses#
| Status | Meaning |
|---|---|
200 | OK |
400 | Validation failure. The message names the offending parameter. Limits are rejected, never silently clamped: an over-length id list, a page size above 100 or a date window longer than 365 days all land here rather than coming back quietly truncated. |
401 | Missing, malformed, revoked or unknown API key, or an agent group whose distribution access is disabled. Pass the key as the HTTP Basic username with an empty password. |
429 | Rate limit exhausted for this credential. Wait Retry-After seconds before retrying; the budget is per credential, not per IP. |
See Errors for the error body shape and which statuses are worth retrying.