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/1c34544d0e6144f18886b6e59fb8256d/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/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea

{
  "access": {
    "token": "81c0eece7c354b23b0f2c67f41415953"
  },
  "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-06-10-000001.1",
    "date": "2016-06-10T15:29:34.292888+03:00",
    "type": "claim",
    "id": "c504f4442b3c4103917145f405d5e6ea"
  }
}

Then upload necessary documents:

POST /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea/documents?acc_token=81c0eece7c354b23b0f2c67f41415953 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 201
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy915211701339$
Host: api-sandbox.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea/documents/9ef0b09173464a3cbb04a814f10bd2a8

{
  "data": {
    "author": "complaint_owner",
    "title": "Complaint_Attachement.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea/documents/9ef0b09173464a3cbb04a814f10bd2a8?download=276f75ad62874327b5ab8a772d842aaf",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2016-06-10T15:29:34.667061+03:00",
    "id": "9ef0b09173464a3cbb04a814f10bd2a8",
    "dateModified": "2016-06-10T15:29:34.667099+03:00"
  }
}

Submit tender conditions claim:

PATCH /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea?acc_token=81c0eece7c354b23b0f2c67f41415953 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/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea/documents/9ef0b09173464a3cbb04a814f10bd2a8?download=276f75ad62874327b5ab8a772d842aaf",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-06-10T15:29:34.667061+03:00",
        "id": "9ef0b09173464a3cbb04a814f10bd2a8",
        "dateModified": "2016-06-10T15:29:34.667099+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "dateSubmitted": "2016-06-10T15:29:34.802247+03:00",
    "complaintID": "UA-2016-06-10-000001.1",
    "date": "2016-06-10T15:29:34.292888+03:00",
    "type": "claim",
    "id": "c504f4442b3c4103917145f405d5e6ea"
  }
}

Tender Conditions Claim Submission (without documents)

Create claim that does not need additional documents:

POST /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/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/1c34544d0e6144f18886b6e59fb8256d/complaints/a747dabb573a4d5993d70ae7db2a09bf

{
  "access": {
    "token": "4b6f44d05348423c856708a35298db09"
  },
  "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-06-10T15:29:34.934718+03:00",
    "complaintID": "UA-2016-06-10-000001.2",
    "date": "2016-06-10T15:29:34.933163+03:00",
    "type": "claim",
    "id": "a747dabb573a4d5993d70ae7db2a09bf"
  }
}

Tender Conditions Claim/Complaint Retrieval

You can list all Tender Conditions Claims/Complaints:

GET /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/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/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea/documents/9ef0b09173464a3cbb04a814f10bd2a8?download=276f75ad62874327b5ab8a772d842aaf",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2016-06-10T15:29:34.667061+03:00",
          "id": "9ef0b09173464a3cbb04a814f10bd2a8",
          "dateModified": "2016-06-10T15:29:34.667099+03:00"
        }
      ],
      "description": "complaint description",
      "title": "complaint title",
      "dateSubmitted": "2016-06-10T15:29:34.802247+03:00",
      "complaintID": "UA-2016-06-10-000001.1",
      "date": "2016-06-10T15:29:34.292888+03:00",
      "type": "claim",
      "id": "c504f4442b3c4103917145f405d5e6ea"
    },
    {
      "status": "claim",
      "description": "complaint description",
      "title": "complaint title",
      "dateSubmitted": "2016-06-10T15:29:34.934718+03:00",
      "complaintID": "UA-2016-06-10-000001.2",
      "date": "2016-06-10T15:29:34.933163+03:00",
      "type": "claim",
      "id": "a747dabb573a4d5993d70ae7db2a09bf"
    }
  ]
}

And check individual complaint or claim:

GET /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea 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/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea/documents/9ef0b09173464a3cbb04a814f10bd2a8?download=276f75ad62874327b5ab8a772d842aaf",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-06-10T15:29:34.667061+03:00",
        "id": "9ef0b09173464a3cbb04a814f10bd2a8",
        "dateModified": "2016-06-10T15:29:34.667099+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "dateSubmitted": "2016-06-10T15:29:34.802247+03:00",
    "complaintID": "UA-2016-06-10-000001.1",
    "date": "2016-06-10T15:29:34.292888+03:00",
    "type": "claim",
    "id": "c504f4442b3c4103917145f405d5e6ea"
  }
}

Claim’s Answer

Answer to resolved claim

PATCH /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea?acc_token=cc248e7ef9674336aa17d4528e5e5c77 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/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea/documents/9ef0b09173464a3cbb04a814f10bd2a8?download=276f75ad62874327b5ab8a772d842aaf",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-06-10T15:29:34.667061+03:00",
        "id": "9ef0b09173464a3cbb04a814f10bd2a8",
        "dateModified": "2016-06-10T15:29:34.667099+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "tendererAction": "Виправлено неконкурентні умови",
    "dateAnswered": "2016-06-10T15:29:35.136861+03:00",
    "tendererActionDate": "2016-06-10T15:29:35.136886+03:00",
    "dateSubmitted": "2016-06-10T15:29:34.802247+03:00",
    "complaintID": "UA-2016-06-10-000001.1",
    "date": "2016-06-10T15:29:34.292888+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "c504f4442b3c4103917145f405d5e6ea"
  }
}

Satisfied Claim

Satisfying resolution

PATCH /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea?acc_token=81c0eece7c354b23b0f2c67f41415953 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/1c34544d0e6144f18886b6e59fb8256d/complaints/c504f4442b3c4103917145f405d5e6ea/documents/9ef0b09173464a3cbb04a814f10bd2a8?download=276f75ad62874327b5ab8a772d842aaf",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-06-10T15:29:34.667061+03:00",
        "id": "9ef0b09173464a3cbb04a814f10bd2a8",
        "dateModified": "2016-06-10T15:29:34.667099+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "satisfied": true,
    "tendererAction": "Виправлено неконкурентні умови",
    "dateAnswered": "2016-06-10T15:29:35.136861+03:00",
    "tendererActionDate": "2016-06-10T15:29:35.136886+03:00",
    "dateSubmitted": "2016-06-10T15:29:34.802247+03:00",
    "complaintID": "UA-2016-06-10-000001.1",
    "date": "2016-06-10T15:29:34.292888+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "c504f4442b3c4103917145f405d5e6ea"
  }
}

Escalate claim to complaint

PATCH /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/a747dabb573a4d5993d70ae7db2a09bf?acc_token=4b6f44d05348423c856708a35298db09 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-06-10T15:29:35.551596+03:00",
    "dateAnswered": "2016-06-10T15:29:35.414932+03:00",
    "dateSubmitted": "2016-06-10T15:29:34.934718+03:00",
    "complaintID": "UA-2016-06-10-000001.2",
    "date": "2016-06-10T15:29:34.933163+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "a747dabb573a4d5993d70ae7db2a09bf"
  }
}

Complaint Resolution

Rejecting Tender Conditions Complaint

PATCH /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/a747dabb573a4d5993d70ae7db2a09bf 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-06-10T15:29:35.695547+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-06-10T15:29:35.551596+03:00",
    "dateAnswered": "2016-06-10T15:29:35.414932+03:00",
    "dateSubmitted": "2016-06-10T15:29:34.934718+03:00",
    "complaintID": "UA-2016-06-10-000001.2",
    "date": "2016-06-10T15:29:34.933163+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "a747dabb573a4d5993d70ae7db2a09bf"
  }
}

Submitting Tender Conditions Complaint Resolution

The Complaint Review Body uploads the resolution document:

POST /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/d1aa551f7b8b4127ba3ecbb89b07e926/documents HTTP/1.0
Authorization: Basic cmV2aWV3ZXI6
Content-Length: 197
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy65327446419$
Host: api-sandbox.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/d1aa551f7b8b4127ba3ecbb89b07e926/documents/cba937637ea140c697598bf01774d0ce

{
  "data": {
    "author": "reviewers",
    "title": "ComplaintResolution.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/d1aa551f7b8b4127ba3ecbb89b07e926/documents/cba937637ea140c697598bf01774d0ce?download=b405da054eb346409701d16280552d66",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2016-06-10T15:29:36.855460+03:00",
    "id": "cba937637ea140c697598bf01774d0ce",
    "dateModified": "2016-06-10T15:29:36.855497+03:00"
  }
}

And either resolves complaint:

PATCH /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/d1aa551f7b8b4127ba3ecbb89b07e926 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-06-10T15:29:37.048782+03:00",
    "documents": [
      {
        "author": "reviewers",
        "title": "ComplaintResolution.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/d1aa551f7b8b4127ba3ecbb89b07e926/documents/cba937637ea140c697598bf01774d0ce?download=b405da054eb346409701d16280552d66",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-06-10T15:29:36.855460+03:00",
        "id": "cba937637ea140c697598bf01774d0ce",
        "dateModified": "2016-06-10T15:29:36.855497+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-06-10T15:29:36.146318+03:00",
    "dateAnswered": "2016-06-10T15:29:35.992389+03:00",
    "dateSubmitted": "2016-06-10T15:29:35.835192+03:00",
    "complaintID": "UA-2016-06-10-000001.3",
    "date": "2016-06-10T15:29:35.833691+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "d1aa551f7b8b4127ba3ecbb89b07e926"
  }
}

Or declines it:

PATCH /api/2.3/tenders/1c34544d0e6144f18886b6e59fb8256d/complaints/97f163049eed47b4a23d8aa81028af6f 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-06-10T15:29:37.230763+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-06-10T15:29:36.642022+03:00",
    "dateAnswered": "2016-06-10T15:29:36.461783+03:00",
    "dateSubmitted": "2016-06-10T15:29:36.298429+03:00",
    "complaintID": "UA-2016-06-10-000001.4",
    "date": "2016-06-10T15:29:36.296929+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "97f163049eed47b4a23d8aa81028af6f"
  }
}