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.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/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.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5

{
  "access": {
    "token": "cb72b4a155a3465dacbc54bb1e985924"
  },
  "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-04-15-000004.1",
    "date": "2016-04-15T12:15:13.057854+03:00",
    "type": "claim",
    "id": "f6ab27168c544dc0afc930b8a6c623c5"
  }
}

Then upload necessary documents:

POST /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5/documents?acc_token=cb72b4a155a3465dacbc54bb1e985924 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 201
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy452202536867$
Host: api-sandbox.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5/documents/50eb1ff7102247fb893a7e142e5a853d

{
  "data": {
    "author": "complaint_owner",
    "title": "Complaint_Attachement.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5/documents/50eb1ff7102247fb893a7e142e5a853d?download=05093c6fccda4327b5c1e05e6479f084",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2016-04-15T12:15:13.779955+03:00",
    "id": "50eb1ff7102247fb893a7e142e5a853d",
    "dateModified": "2016-04-15T12:15:13.780002+03:00"
  }
}

Submit tender conditions claim:

PATCH /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5?acc_token=cb72b4a155a3465dacbc54bb1e985924 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.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5/documents/50eb1ff7102247fb893a7e142e5a853d?download=05093c6fccda4327b5c1e05e6479f084",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-04-15T12:15:13.779955+03:00",
        "id": "50eb1ff7102247fb893a7e142e5a853d",
        "dateModified": "2016-04-15T12:15:13.780002+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "dateSubmitted": "2016-04-15T12:15:14.044261+03:00",
    "complaintID": "UA-2016-04-15-000004.1",
    "date": "2016-04-15T12:15:13.057854+03:00",
    "type": "claim",
    "id": "f6ab27168c544dc0afc930b8a6c623c5"
  }
}

Tender Conditions Claim Submission (without documents)

Create claim that does not need additional documents:

POST /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/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.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/915222b1fcae47cc9928325358a36a0a

{
  "access": {
    "token": "d0bf2b313890460299d8f13eb6eb10b3"
  },
  "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-04-15T12:15:14.276950+03:00",
    "complaintID": "UA-2016-04-15-000004.2",
    "date": "2016-04-15T12:15:14.275077+03:00",
    "type": "claim",
    "id": "915222b1fcae47cc9928325358a36a0a"
  }
}

Tender Conditions Claim/Complaint Retrieval

You can list all Tender Conditions Claims/Complaints:

GET /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/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.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5/documents/50eb1ff7102247fb893a7e142e5a853d?download=05093c6fccda4327b5c1e05e6479f084",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2016-04-15T12:15:13.779955+03:00",
          "id": "50eb1ff7102247fb893a7e142e5a853d",
          "dateModified": "2016-04-15T12:15:13.780002+03:00"
        }
      ],
      "description": "complaint description",
      "title": "complaint title",
      "dateSubmitted": "2016-04-15T12:15:14.044261+03:00",
      "complaintID": "UA-2016-04-15-000004.1",
      "date": "2016-04-15T12:15:13.057854+03:00",
      "type": "claim",
      "id": "f6ab27168c544dc0afc930b8a6c623c5"
    },
    {
      "status": "claim",
      "description": "complaint description",
      "title": "complaint title",
      "dateSubmitted": "2016-04-15T12:15:14.276950+03:00",
      "complaintID": "UA-2016-04-15-000004.2",
      "date": "2016-04-15T12:15:14.275077+03:00",
      "type": "claim",
      "id": "915222b1fcae47cc9928325358a36a0a"
    }
  ]
}

And check individual complaint or claim:

GET /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5 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.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5/documents/50eb1ff7102247fb893a7e142e5a853d?download=05093c6fccda4327b5c1e05e6479f084",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-04-15T12:15:13.779955+03:00",
        "id": "50eb1ff7102247fb893a7e142e5a853d",
        "dateModified": "2016-04-15T12:15:13.780002+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "dateSubmitted": "2016-04-15T12:15:14.044261+03:00",
    "complaintID": "UA-2016-04-15-000004.1",
    "date": "2016-04-15T12:15:13.057854+03:00",
    "type": "claim",
    "id": "f6ab27168c544dc0afc930b8a6c623c5"
  }
}

Claim’s Answer

Answer to resolved claim

PATCH /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5?acc_token=2408bafb138842659f22d6d511a91633 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.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5/documents/50eb1ff7102247fb893a7e142e5a853d?download=05093c6fccda4327b5c1e05e6479f084",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-04-15T12:15:13.779955+03:00",
        "id": "50eb1ff7102247fb893a7e142e5a853d",
        "dateModified": "2016-04-15T12:15:13.780002+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "tendererAction": "Виправлено неконкурентні умови",
    "dateAnswered": "2016-04-15T12:15:14.730524+03:00",
    "tendererActionDate": "2016-04-15T12:15:14.730570+03:00",
    "dateSubmitted": "2016-04-15T12:15:14.044261+03:00",
    "complaintID": "UA-2016-04-15-000004.1",
    "date": "2016-04-15T12:15:13.057854+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "f6ab27168c544dc0afc930b8a6c623c5"
  }
}

Satisfied Claim

Satisfying resolution

PATCH /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5?acc_token=cb72b4a155a3465dacbc54bb1e985924 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.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/f6ab27168c544dc0afc930b8a6c623c5/documents/50eb1ff7102247fb893a7e142e5a853d?download=05093c6fccda4327b5c1e05e6479f084",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-04-15T12:15:13.779955+03:00",
        "id": "50eb1ff7102247fb893a7e142e5a853d",
        "dateModified": "2016-04-15T12:15:13.780002+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "satisfied": true,
    "tendererAction": "Виправлено неконкурентні умови",
    "dateAnswered": "2016-04-15T12:15:14.730524+03:00",
    "tendererActionDate": "2016-04-15T12:15:14.730570+03:00",
    "dateSubmitted": "2016-04-15T12:15:14.044261+03:00",
    "complaintID": "UA-2016-04-15-000004.1",
    "date": "2016-04-15T12:15:13.057854+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "f6ab27168c544dc0afc930b8a6c623c5"
  }
}

Escalate claim to complaint

PATCH /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/915222b1fcae47cc9928325358a36a0a?acc_token=d0bf2b313890460299d8f13eb6eb10b3 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-04-15T12:15:15.511073+03:00",
    "dateAnswered": "2016-04-15T12:15:15.295870+03:00",
    "dateSubmitted": "2016-04-15T12:15:14.276950+03:00",
    "complaintID": "UA-2016-04-15-000004.2",
    "date": "2016-04-15T12:15:14.275077+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "915222b1fcae47cc9928325358a36a0a"
  }
}

Complaint Resolution

Rejecting Tender Conditions Complaint

PATCH /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/915222b1fcae47cc9928325358a36a0a 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-04-15T12:15:15.805455+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-04-15T12:15:15.511073+03:00",
    "dateAnswered": "2016-04-15T12:15:15.295870+03:00",
    "dateSubmitted": "2016-04-15T12:15:14.276950+03:00",
    "complaintID": "UA-2016-04-15-000004.2",
    "date": "2016-04-15T12:15:14.275077+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "915222b1fcae47cc9928325358a36a0a"
  }
}

Submitting Tender Conditions Complaint Resolution

The Complaint Review Body uploads the resolution document:

POST /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/7749339f22ad4ca1a77c8454090c07f6/documents HTTP/1.0
Authorization: Basic cmV2aWV3ZXI6
Content-Length: 201
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy0985941789999$
Host: api-sandbox.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/7749339f22ad4ca1a77c8454090c07f6/documents/172f0b8d8663482f911a762a0e7d05e5

{
  "data": {
    "author": "reviewers",
    "title": "ComplaintResolution.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/7749339f22ad4ca1a77c8454090c07f6/documents/172f0b8d8663482f911a762a0e7d05e5?download=4f641403d8f44c94854939ef4cf01069",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2016-04-15T12:15:18.106630+03:00",
    "id": "172f0b8d8663482f911a762a0e7d05e5",
    "dateModified": "2016-04-15T12:15:18.106675+03:00"
  }
}

And either resolves complaint:

PATCH /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/7749339f22ad4ca1a77c8454090c07f6 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-04-15T12:15:18.328919+03:00",
    "documents": [
      {
        "author": "reviewers",
        "title": "ComplaintResolution.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/7749339f22ad4ca1a77c8454090c07f6/documents/172f0b8d8663482f911a762a0e7d05e5?download=4f641403d8f44c94854939ef4cf01069",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2016-04-15T12:15:18.106630+03:00",
        "id": "172f0b8d8663482f911a762a0e7d05e5",
        "dateModified": "2016-04-15T12:15:18.106675+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-04-15T12:15:16.758804+03:00",
    "dateAnswered": "2016-04-15T12:15:16.388372+03:00",
    "dateSubmitted": "2016-04-15T12:15:16.080890+03:00",
    "complaintID": "UA-2016-04-15-000004.3",
    "date": "2016-04-15T12:15:16.079048+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "7749339f22ad4ca1a77c8454090c07f6"
  }
}

Or declines it:

PATCH /api/2.0/tenders/4630a487b9cd4ee0abadd23ef4b8e05f/complaints/c962b8c3f2eb4f7086f8baa07954c495 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-04-15T12:15:18.600271+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-04-15T12:15:17.733153+03:00",
    "dateAnswered": "2016-04-15T12:15:17.394342+03:00",
    "dateSubmitted": "2016-04-15T12:15:17.053472+03:00",
    "complaintID": "UA-2016-04-15-000004.4",
    "date": "2016-04-15T12:15:17.051615+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "c962b8c3f2eb4f7086f8baa07954c495"
  }
}