/portal/orders/{orderId}/return-eligibility
Check return eligibility
Checks whether an order is eligible for return and returns returnable line details.
Sökvägsparametrar
| Fält | Typ |
|---|---|
orderId
Krävs
|
string(uuid) |
Svar
PortalReturnEligibilityResponse
| Fält | Typ |
|---|---|
allowPartialReturn
|
boolean |
currencyCode
|
string · nullable |
eligible
|
boolean |
ineligibleReason
|
string · nullable |
lines
|
PortalReturnEligibleLine[] · nullable |
orderId
|
string(uuid) |
orderNumber
|
string · nullable |
requireReason
|
boolean |
returnInstructions
|
string · nullable |
-
Retry-After— Seconds to wait before retrying.
Standardfel:
401
404
Felhantering
Exempel
curl "https://api.erp.fluit.cloud/ecom/portal/orders/{orderId}/return-eligibility" \
-H "Authorization: Bearer $SESSION_TOKEN" \
-H "X-Tenant-Id: $FLUIT_TENANT_ID" \
-H "X-Channel: web"
{
"allowPartialReturn": true,
"currencyCode": "SEK",
"eligible": true,
"ineligibleReason": "string",
"lines": [
{
"alreadyReturnedQuantity": 42,
"deliveredQuantity": 42,
"itemName": "Widget A",
"itemNumber": "WIDGET-A",
"maxReturnableQuantity": 42,
"orderLineId": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
"taxPercent": "12.50",
"unitPrice": "299.00"
}
],
"orderId": "0f8b2c1e-4d3a-4b7e-9f10-2a6c5d8e1b44",
"orderNumber": "SO-2026-1041",
"requireReason": true,
"returnInstructions": "string"
}
Bas-URL https://api.erp.fluit.cloud/ecom. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.