action just_eat_post_restaurants_tenant_restaurant_id_customerclaims_id_restaura { label: "Submit a restaurant response for the claim" description: "Submit a restaurant response for the claim, where the restaurant can tell us if they accept or reject the claim" provider: just_eat method: POST path: "/restaurants/{tenant}/{restaurantId}/customerclaims/{id}/restaurantresponse" encoding: json input: { type: "object" properties: { "Content-Type": { type: "string" } decision: { type: "string" description: "Decision on the claim" enum: ["Accepted", "Rejected", "PartiallyAccepted"] } id: { type: "string" } items: { type: "array" description: "Decisions on the items of a claim" items: { type: "object" description: "Decision on the item" properties: { decision: { type: "string" description: "Decision made about the item" enum: ["Accepted", "Rejected"] } id: { type: "string" description: "Item identifier" } } } } justification: { type: "object" description: "The reason of the claim rejection and optional comments from the restaurant" properties: { comments: { type: "string" description: "Comment from the restaurant owner in case they rejected at least one of the items and want to type their own rejection reason" } reason: { type: "string" description: "One of the predefined reasons" enum: ["AlreadyRefunded", "ItemReplaced", "PartialRefundRequired", "WasNotMissing", "WillRedeliver", "OrderWasHot", "OrderWasOnTime", "OrderWasPacked", "FoodWasIntact", "AddExtraItem", "Other"] } } } restaurantId: { type: "string" } tenant: { type: "string" } } required: ["Content-Type", "id", "restaurantId", "tenant"] additionalProperties: false } output: { type: "object" additionalProperties: true } }