Claim Submission

If tender conditions are favoriting particular supplier, or in any other viable case, any registered user can submit Tender Conditions Claim.

Tender Conditions Claim Submission (with documents)

At first create a claim:

POST /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 775
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "title": "complaint title",
    "description": "complaint description",
    "author": {
      "contactPoint": {
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк",
        "email": "soleksuk@gmail.com"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00137256",
        "uri": "http://www.sc.gov.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "countryName": "Україна",
        "postalCode": "21100",
        "region": "м. Вінниця",
        "streetAddress": "вул. Островського, 33",
        "locality": "м. Вінниця"
      }
    }
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83

{
  "access": {
    "token": "fc776e3bc9aa43f19dbe25abf62ff378"
  },
  "data": {
    "status": "draft",
    "description": "complaint description",
    "title": "complaint title",
    "author": {
      "contactPoint": {
        "email": "soleksuk@gmail.com",
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00137256",
        "uri": "http://www.sc.gov.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "postalCode": "21100",
        "countryName": "Україна",
        "streetAddress": "вул. Островського, 33",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "complaintID": "UA-2016-05-12-000001.1",
    "date": "2016-05-12T18:08:02.671960+03:00",
    "type": "claim",
    "id": "7e7d67ee8d2b4bd58b845dad9e3d1f83"
  }
}

Then upload necessary documents:

POST /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83/documents?acc_token=fc776e3bc9aa43f19dbe25abf62ff378 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 197
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy4059922854$
Host: api-sandbox.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83/documents/0abe870d6d254dbcb67473be94c4c91f

{
  "data": {
    "author": "complaint_owner",
    "title": "Complaint_Attachement.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83/documents/0abe870d6d254dbcb67473be94c4c91f?download=24dbce341a0a4a3c92e3db26647777b6",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2016-05-12T18:08:03.019241+03:00",
    "id": "0abe870d6d254dbcb67473be94c4c91f",
    "dateModified": "2016-05-12T18:08:03.019285+03:00"
  }
}

Submit tender conditions claim:

PATCH /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83?acc_token=fc776e3bc9aa43f19dbe25abf62ff378 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 29
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "claim"
  }
}


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": {
    "status": "claim",
    "documents": [
      {
        "author": "complaint_owner",
        "title": "Complaint_Attachement.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83/documents/0abe870d6d254dbcb67473be94c4c91f?download=24dbce341a0a4a3c92e3db26647777b6",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-05-12T18:08:03.019241+03:00",
        "id": "0abe870d6d254dbcb67473be94c4c91f",
        "dateModified": "2016-05-12T18:08:03.019285+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "dateSubmitted": "2016-05-12T18:08:03.169699+03:00",
    "complaintID": "UA-2016-05-12-000001.1",
    "date": "2016-05-12T18:08:02.671960+03:00",
    "type": "claim",
    "id": "7e7d67ee8d2b4bd58b845dad9e3d1f83"
  }
}

Tender Conditions Claim Submission (without documents)

Create claim that does not need additional documents:

POST /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 794
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "claim",
    "title": "complaint title",
    "description": "complaint description",
    "author": {
      "contactPoint": {
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк",
        "email": "soleksuk@gmail.com"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00137256",
        "uri": "http://www.sc.gov.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "countryName": "Україна",
        "postalCode": "21100",
        "region": "м. Вінниця",
        "streetAddress": "вул. Островського, 33",
        "locality": "м. Вінниця"
      }
    }
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/96bc586bb1e8453c95d0bf5b738ce3cd

{
  "access": {
    "token": "eebc088bbdcb4c7a82926090ae950df1"
  },
  "data": {
    "status": "claim",
    "description": "complaint description",
    "title": "complaint title",
    "author": {
      "contactPoint": {
        "email": "soleksuk@gmail.com",
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00137256",
        "uri": "http://www.sc.gov.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "postalCode": "21100",
        "countryName": "Україна",
        "streetAddress": "вул. Островського, 33",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "dateSubmitted": "2016-05-12T18:08:03.306745+03:00",
    "complaintID": "UA-2016-05-12-000001.2",
    "date": "2016-05-12T18:08:03.305131+03:00",
    "type": "claim",
    "id": "96bc586bb1e8453c95d0bf5b738ce3cd"
  }
}

Tender Conditions Claim/Complaint Retrieval

You can list all Tender Conditions Claims/Complaints:

GET /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints HTTP/1.0
Host: api-sandbox.openprocurement.org


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": [
    {
      "status": "claim",
      "documents": [
        {
          "author": "complaint_owner",
          "title": "Complaint_Attachement.pdf",
          "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83/documents/0abe870d6d254dbcb67473be94c4c91f?download=24dbce341a0a4a3c92e3db26647777b6",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2016-05-12T18:08:03.019241+03:00",
          "id": "0abe870d6d254dbcb67473be94c4c91f",
          "dateModified": "2016-05-12T18:08:03.019285+03:00"
        }
      ],
      "description": "complaint description",
      "title": "complaint title",
      "dateSubmitted": "2016-05-12T18:08:03.169699+03:00",
      "complaintID": "UA-2016-05-12-000001.1",
      "date": "2016-05-12T18:08:02.671960+03:00",
      "type": "claim",
      "id": "7e7d67ee8d2b4bd58b845dad9e3d1f83"
    },
    {
      "status": "claim",
      "description": "complaint description",
      "title": "complaint title",
      "dateSubmitted": "2016-05-12T18:08:03.306745+03:00",
      "complaintID": "UA-2016-05-12-000001.2",
      "date": "2016-05-12T18:08:03.305131+03:00",
      "type": "claim",
      "id": "96bc586bb1e8453c95d0bf5b738ce3cd"
    }
  ]
}

And check individual complaint or claim:

GET /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83 HTTP/1.0
Host: api-sandbox.openprocurement.org


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": {
    "status": "claim",
    "documents": [
      {
        "author": "complaint_owner",
        "title": "Complaint_Attachement.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83/documents/0abe870d6d254dbcb67473be94c4c91f?download=24dbce341a0a4a3c92e3db26647777b6",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-05-12T18:08:03.019241+03:00",
        "id": "0abe870d6d254dbcb67473be94c4c91f",
        "dateModified": "2016-05-12T18:08:03.019285+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "dateSubmitted": "2016-05-12T18:08:03.169699+03:00",
    "complaintID": "UA-2016-05-12-000001.1",
    "date": "2016-05-12T18:08:02.671960+03:00",
    "type": "claim",
    "id": "7e7d67ee8d2b4bd58b845dad9e3d1f83"
  }
}

Claim’s Answer

Answer to resolved claim

PATCH /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83?acc_token=f630a981c8c74a98b9c0810e2940d983 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 442
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "answered",
    "resolutionType": "resolved",
    "tendererAction": "Виправлено неконкурентні умови",
    "resolution": "Виправлено неконкурентні умови"
  }
}


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": {
    "status": "answered",
    "documents": [
      {
        "author": "complaint_owner",
        "title": "Complaint_Attachement.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83/documents/0abe870d6d254dbcb67473be94c4c91f?download=24dbce341a0a4a3c92e3db26647777b6",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-05-12T18:08:03.019241+03:00",
        "id": "0abe870d6d254dbcb67473be94c4c91f",
        "dateModified": "2016-05-12T18:08:03.019285+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "tendererAction": "Виправлено неконкурентні умови",
    "dateAnswered": "2016-05-12T18:08:03.561891+03:00",
    "tendererActionDate": "2016-05-12T18:08:03.561926+03:00",
    "dateSubmitted": "2016-05-12T18:08:03.169699+03:00",
    "complaintID": "UA-2016-05-12-000001.1",
    "date": "2016-05-12T18:08:02.671960+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "7e7d67ee8d2b4bd58b845dad9e3d1f83"
  }
}

Satisfied Claim

Satisfying resolution

PATCH /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83?acc_token=fc776e3bc9aa43f19dbe25abf62ff378 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 51
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "resolved",
    "satisfied": true
  }
}


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": {
    "status": "resolved",
    "documents": [
      {
        "author": "complaint_owner",
        "title": "Complaint_Attachement.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7e7d67ee8d2b4bd58b845dad9e3d1f83/documents/0abe870d6d254dbcb67473be94c4c91f?download=24dbce341a0a4a3c92e3db26647777b6",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-05-12T18:08:03.019241+03:00",
        "id": "0abe870d6d254dbcb67473be94c4c91f",
        "dateModified": "2016-05-12T18:08:03.019285+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "satisfied": true,
    "tendererAction": "Виправлено неконкурентні умови",
    "dateAnswered": "2016-05-12T18:08:03.561891+03:00",
    "tendererActionDate": "2016-05-12T18:08:03.561926+03:00",
    "dateSubmitted": "2016-05-12T18:08:03.169699+03:00",
    "complaintID": "UA-2016-05-12-000001.1",
    "date": "2016-05-12T18:08:02.671960+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "7e7d67ee8d2b4bd58b845dad9e3d1f83"
  }
}

Escalate claim to complaint

PATCH /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/96bc586bb1e8453c95d0bf5b738ce3cd?acc_token=eebc088bbdcb4c7a82926090ae950df1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 51
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "pending",
    "satisfied": false
  }
}


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": {
    "status": "pending",
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "complaint",
    "author": {
      "contactPoint": {
        "email": "soleksuk@gmail.com",
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00137256",
        "uri": "http://www.sc.gov.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "postalCode": "21100",
        "countryName": "Україна",
        "streetAddress": "вул. Островського, 33",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "satisfied": false,
    "dateEscalated": "2016-05-12T18:08:04.083113+03:00",
    "dateAnswered": "2016-05-12T18:08:03.928230+03:00",
    "dateSubmitted": "2016-05-12T18:08:03.306745+03:00",
    "complaintID": "UA-2016-05-12-000001.2",
    "date": "2016-05-12T18:08:03.305131+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "96bc586bb1e8453c95d0bf5b738ce3cd"
  }
}

Complaint Resolution

Rejecting Tender Conditions Complaint

PATCH /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/96bc586bb1e8453c95d0bf5b738ce3cd HTTP/1.0
Authorization: Basic cmV2aWV3ZXI6
Content-Length: 31
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "invalid"
  }
}


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": {
    "status": "invalid",
    "dateDecision": "2016-05-12T18:08:04.242453+03:00",
    "description": "complaint description",
    "author": {
      "contactPoint": {
        "email": "soleksuk@gmail.com",
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00137256",
        "uri": "http://www.sc.gov.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "postalCode": "21100",
        "countryName": "Україна",
        "streetAddress": "вул. Островського, 33",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "resolutionType": "resolved",
    "type": "complaint",
    "title": "complaint title",
    "satisfied": false,
    "dateEscalated": "2016-05-12T18:08:04.083113+03:00",
    "dateAnswered": "2016-05-12T18:08:03.928230+03:00",
    "dateSubmitted": "2016-05-12T18:08:03.306745+03:00",
    "complaintID": "UA-2016-05-12-000001.2",
    "date": "2016-05-12T18:08:03.305131+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "96bc586bb1e8453c95d0bf5b738ce3cd"
  }
}

Submitting Tender Conditions Complaint Resolution

The Complaint Review Body uploads the resolution document:

POST /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7969b440b32146a6af6c20844c75f356/documents HTTP/1.0
Authorization: Basic cmV2aWV3ZXI6
Content-Length: 199
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy125325117542$
Host: api-sandbox.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7969b440b32146a6af6c20844c75f356/documents/71b3615d7e044fa887e369efbdc9a5b3

{
  "data": {
    "author": "reviewers",
    "title": "ComplaintResolution.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7969b440b32146a6af6c20844c75f356/documents/71b3615d7e044fa887e369efbdc9a5b3?download=fd6e4cc79c8f4d2da0e230fbb4671654",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2016-05-12T18:08:05.612459+03:00",
    "id": "71b3615d7e044fa887e369efbdc9a5b3",
    "dateModified": "2016-05-12T18:08:05.612501+03:00"
  }
}

And either resolves complaint:

PATCH /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7969b440b32146a6af6c20844c75f356 HTTP/1.0
Authorization: Basic cmV2aWV3ZXI6
Content-Length: 32
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "resolved"
  }
}


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": {
    "status": "resolved",
    "dateDecision": "2016-05-12T18:08:05.843850+03:00",
    "documents": [
      {
        "author": "reviewers",
        "title": "ComplaintResolution.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/7969b440b32146a6af6c20844c75f356/documents/71b3615d7e044fa887e369efbdc9a5b3?download=fd6e4cc79c8f4d2da0e230fbb4671654",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-05-12T18:08:05.612459+03:00",
        "id": "71b3615d7e044fa887e369efbdc9a5b3",
        "dateModified": "2016-05-12T18:08:05.612501+03:00"
      }
    ],
    "description": "complaint description",
    "author": {
      "contactPoint": {
        "email": "soleksuk@gmail.com",
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00137256",
        "uri": "http://www.sc.gov.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "postalCode": "21100",
        "countryName": "Україна",
        "streetAddress": "вул. Островського, 33",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "resolutionType": "resolved",
    "type": "complaint",
    "title": "complaint title",
    "satisfied": false,
    "dateEscalated": "2016-05-12T18:08:04.818180+03:00",
    "dateAnswered": "2016-05-12T18:08:04.609152+03:00",
    "dateSubmitted": "2016-05-12T18:08:04.404555+03:00",
    "complaintID": "UA-2016-05-12-000001.3",
    "date": "2016-05-12T18:08:04.402899+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "7969b440b32146a6af6c20844c75f356"
  }
}

Or declines it:

PATCH /api/2.3/tenders/6a4c5d69d2524ac797a4f0e59661ee01/complaints/45557b0a77534d01b2b6ec951588f1ce HTTP/1.0
Authorization: Basic cmV2aWV3ZXI6
Content-Length: 32
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "declined"
  }
}


200 OK
Content-Type: application/json; charset=UTF-8

{
  "data": {
    "status": "declined",
    "dateDecision": "2016-05-12T18:08:06.043547+03:00",
    "description": "complaint description",
    "author": {
      "contactPoint": {
        "email": "soleksuk@gmail.com",
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00137256",
        "uri": "http://www.sc.gov.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "postalCode": "21100",
        "countryName": "Україна",
        "streetAddress": "вул. Островського, 33",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "resolutionType": "resolved",
    "type": "complaint",
    "title": "complaint title",
    "satisfied": false,
    "dateEscalated": "2016-05-12T18:08:05.375474+03:00",
    "dateAnswered": "2016-05-12T18:08:05.187162+03:00",
    "dateSubmitted": "2016-05-12T18:08:05.005367+03:00",
    "complaintID": "UA-2016-05-12-000001.4",
    "date": "2016-05-12T18:08:05.003787+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "45557b0a77534d01b2b6ec951588f1ce"
  }
}