Restaurant Claims
publicly-accessible

Provides claims for a given restaurant with optional filtering

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

Request

Path parameters

tenantstring required

Two letter code indicating the tenant

restaurantIdstring required

Just Eat restaurant identifier

Query parameters

fromDatestring date-time nullable

Start date limiter

toDatestring date-time nullable

End date limiter

limitinteger nullable

Pagination limit

offsetinteger nullable

Pagination offset

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

Example response

{
  "claims": [
    {
      "id": "z2749442-a62a-abcd-8623-04202878e034",
      "orderId": "z27tqoxdoeupdx9w8evorw",
      "friendlyOrderReference": "954226580",
      "issueType": "LateOrder",
      "submittedDate": "2020-05-20T14:22:11.1053368+00:00",
      "expirationDate": "2020-05-22T14:22:11.1053368+00:00",
      "currency": "GBP",
      "totalClaimed": 4000,
      "state": "Closed",
      "resolution": {
        "decision": "Accepted",
        "totalClaimedAccepted": 4000,
        "resolvedDate": "2020-05-28T06:40:48.1053368+00:00",
        "resolvedChannel": "OrderPad"
      },
      "restaurantResponse": {
        "decision": "Accepted",
        "justification": null
      }
    },
    {
      "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": "Open",
      "resolution": null,
      "restaurantResponse": null,
      "affectedItems": [
        {
          "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
          "reference": "productid%4t56574596",
          "name": "Potato skin",
          "quantity": 1,
          "totalClaimed": 1900,
          "unitPrice": 2000,
          "additionalContext": null,
          "decision": "NotDecided"
        },
        {
          "id": "123iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
          "reference": "productid%t5y6574596",
          "name": "Pizza",
          "quantity": 1,
          "totalClaimed": 1900,
          "unitPrice": 2000,
          "additionalContext": null,
          "decision": "NotDecided"
        }
      ]
    },
    {
      "id": "1f749442-a62a-abcd-8623-04202878e034",
      "orderId": "a23tqoxdoeupdx9w8evorw",
      "friendlyOrderReference": "151226580",
      "issueType": "Cold",
      "submittedDate": "2020-05-20T14:22:11.1053368+00:00",
      "expirationDate": "2020-05-22T14:22:11.1053368+00:00",
      "currency": "GBP",
      "totalClaimed": 1900,
      "state": "Closed",
      "resolution": {
        "decision": "Rejected",
        "totalClaimedAccepted": 0,
        "resolvedDate": "2020-05-28T06:40:48.1053368+00:00",
        "resolvedChannel": "PartnerCentre"
      },
      "restaurantResponse": {
        "items": [
          {
            "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
            "decision": "Rejected"
          }
        ],
        "justification": {
          "reason": "OrderWasHot",
          "comments": null
        }
      },
      "affectedItems": [
        {
          "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
          "reference": "productid%4t56574596",
          "name": "Potato skin",
          "quantity": 1,
          "totalClaimed": 1900,
          "unitPrice": 2000,
          "additionalContext": "Potato skin was cold",
          "decision": "Rejected"
        }
      ]
    },
    {
      "id": "zf749442-a62a-abcd-8623-04202878e034",
      "orderId": "z23tqoxdoeupdx9w8evorw",
      "friendlyOrderReference": "951226580",
      "issueType": "Cold",
      "submittedDate": "2020-05-20T14:22:11.1053368+00:00",
      "expirationDate": "2020-05-22T14:22:11.1053368+00:00",
      "currency": "GBP",
      "totalClaimed": 1900,
      "state": "Closed",
      "resolution": {
        "decision": "Accepted",
        "totalClaimedAccepted": 1900,
        "resolvedDate": "2020-05-28T06:40:48.1053368+00:00",
        "resolvedChannel": "OrderPad"
      },
      "restaurantResponse": {
        "items": [
          {
            "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
            "decision": "Accepted"
          }
        ],
        "justification": null
      },
      "affectedItems": [
        {
          "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
          "reference": "productid%4t56574596",
          "name": "Potato skin",
          "quantity": 1,
          "totalClaimed": 1900,
          "unitPrice": 2000,
          "additionalContext": "Potato skin was cold",
          "decision": "Accepted"
        }
      ]
    },
    {
      "id": "zf749442-a62a-abcd-8623-04202878e038",
      "orderId": "z23tqoxdoeupdx9w8evorz",
      "friendlyOrderReference": "951226588",
      "issueType": "Cold",
      "submittedDate": "2020-05-20T14:22:11.1053368+00:00",
      "expirationDate": "2020-05-22T14:22:11.1053368+00:00",
      "currency": "GBP",
      "totalClaimed": 1900,
      "state": "Closed",
      "resolution": {
        "decision": "PartiallyAccepted",
        "totalClaimedAccepted": 1900,
        "resolvedDate": "2020-05-28T06:40:48.1053368+00:00",
        "resolvedChannel": "OrderPad"
      },
      "restaurantResponse": {
        "items": [
          {
            "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
            "decision": "Accepted"
          },
          {
            "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc3",
            "decision": "Rejected"
          }
        ],
        "justification": null
      },
      "affectedItems": [
        {
          "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc1",
          "reference": "productid%4t56574596",
          "name": "Potato skin",
          "quantity": 1,
          "totalClaimed": 1900,
          "unitPrice": 2000,
          "additionalContext": "Potato skin was cold",
          "decision": "Accepted"
        },
        {
          "id": "NJ7iYXNrZXRJdGVtLTM2NTc0GTk2LTMwNDY2LXMzOWJxb3hkb2V1cGR4OXc4ZXZvcnc3",
          "reference": "productid%4t56574593",
          "name": "Meat",
          "quantity": 1,
          "totalClaimed": 2900,
          "unitPrice": 3000,
          "additionalContext": "Meat was terribly cold",
          "decision": "Rejected"
        }
      ]
    }
  ]
}

Changes

    • warning

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

    • info

      removed from the response property oneOf list for the response status