Restaurant Claims
publicly-accessible

Get information about a order claim

get/restaurants/{tenant}/{restaurantId}/customerclaims/{id}

Request

Path parameters

tenantstring required

Two letter code indicating the tenant

restaurantIdstring required

Just Eat restaurant identifier

idstring required

Claim identifier

Headers

Acceptstring

Indicates what type of response client understands and is also used for content type negotiation (if version is specified), otherwise tells the server to return the latest version

Response

Request succeeded

idstring

Claim identifier

orderIdstring

Just Eat order identifier

friendlyOrderReferencestring

Just Eat friendly order reference

issueType'Missing' | 'Damaged' | 'Cold' | 'LateOrder' | 'FoodNotArrived'

Type of claim

submittedDatestring date-time

Date when the claim was submitted

expirationDatestring date-time

Date when the claim will be accepted automatically in case the owner of the restaurant ignores it

currencystring

Name of currency in ISO 4217 format

totalClaimednumber

Total claimed money in smallest unit of relevant currency

state'Open' | 'Closed'

Indicates whether a decision about the claim was made

Example response

{
  "id": "2f749442-a62a-abcd-8623-04202878e034",
  "orderId": "r23tqoxdoeupdx9w8evorw",
  "friendlyOrderReference": "451226580",
  "issueType": "Damaged",
  "submittedDate": "2020-05-20T14:22:11.1053368+00:00",
  "expirationDate": "2020-05-22T14:22:11.1053368+00:00",
  "currency": "GBP",
  "totalClaimed": 3800,
  "state": "Closed",
  "resolution": {
    "decision": "PartiallyAccepted",
    "totalClaimedAccepted": 1900,
    "resolvedDate": "2020-05-28T06:40:48.1053368+00:00",
    "resolvedChannel": "PartnerCentre"
  },
  "restaurantResponse": {
    "decision": "PartiallyAccepted",
    "items": [
      {
        "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
        "decision": "Rejected"
      },
      {
        "id": "123iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
        "decision": "Accepted"
      }
    ],
    "justification": {
      "reason": "Other",
      "comments": "The food was packed properly"
    }
  },
  "affectedItems": [
    {
      "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
      "reference": "productid%4t56574596",
      "name": "Potato skin",
      "quantity": 1,
      "totalClaimed": 1900,
      "unitPrice": 2000,
      "additionalContext": "Potato skin was damaged",
      "decision": "Rejected"
    },
    {
      "id": "123iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
      "reference": "productid%t5y6574596",
      "name": "Pizza",
      "quantity": 1,
      "totalClaimed": 1900,
      "unitPrice": 2000,
      "additionalContext": "Pizza was damaged too",
      "decision": "Accepted"
    }
  ]
}

Changes

    • breaking

      the response property // became nullable for the status

    • warning

      the optional response header Retry-After removed for the status 500

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      removed from the response property allOf list for the response status

    • info

      removed from the response property allOf list for the response status