Claim/Complaint Retrieval

Tender Conditions Claim/Complaint Retrieval

You can list all Tender Conditions Claims/Complaints:

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


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

{
  "data": [
    {
      "status": "claim",
      "documents": [
        {
          "hash": "md5:00000000000000000000000000000000",
          "author": "complaint_owner",
          "title": "Complaint_Attachement.pdf",
          "url": "http://public.docs-sandbox.openprocurement.org/get/a6eda494834f49f884bc2202b833eb9f?KeyID=1a1ebb61&Signature=HVXI2lfBb%252BTHfNMrSh%2F0cH0hv3YYQ032UDnmB2%252Bu4ntVsOJcqAhScdCfpjFxBUnKOMBTS1co3W35T972IxdpBA%253D%253D",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2017-07-25T17:36:50.767640+03:00",
          "id": "8ebcc96606e941bc89d601c3d11270d1",
          "dateModified": "2017-07-25T17:36:50.767661+03:00"
        }
      ],
      "description": "complaint description",
      "title": "complaint title",
      "dateSubmitted": "2017-07-25T17:36:50.813612+03:00",
      "complaintID": "UA-2017-07-25-000001.1",
      "date": "2017-07-25T17:36:50.815647+03:00",
      "type": "claim",
      "id": "3b36519c7e994663a75935a29c0ddbcf"
    },
    {
      "status": "claim",
      "description": "complaint description",
      "title": "complaint title",
      "dateSubmitted": "2017-07-25T17:36:50.854956+03:00",
      "complaintID": "UA-2017-07-25-000001.2",
      "date": "2017-07-25T17:36:50.854942+03:00",
      "type": "claim",
      "id": "3382f6727fc94edc947ff016fcedad11"
    }
  ]
}

And check individual complaint or claim:

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


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

{
  "data": {
    "status": "claim",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "author": "complaint_owner",
        "title": "Complaint_Attachement.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/a6eda494834f49f884bc2202b833eb9f?KeyID=1a1ebb61&Signature=HVXI2lfBb%252BTHfNMrSh%2F0cH0hv3YYQ032UDnmB2%252Bu4ntVsOJcqAhScdCfpjFxBUnKOMBTS1co3W35T972IxdpBA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-07-25T17:36:50.767640+03:00",
        "id": "8ebcc96606e941bc89d601c3d11270d1",
        "dateModified": "2017-07-25T17:36:50.767661+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "dateSubmitted": "2017-07-25T17:36:50.813612+03:00",
    "complaintID": "UA-2017-07-25-000001.1",
    "date": "2017-07-25T17:36:50.815647+03:00",
    "type": "claim",
    "id": "3b36519c7e994663a75935a29c0ddbcf"
  }
}

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/6e33b56945624315afece8e75af7193c/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/6e33b56945624315afece8e75af7193c/complaints/3b36519c7e994663a75935a29c0ddbcf

{
  "access": {
    "token": "6c52536fdb1b4e0a83ce6b486d2cfd0c"
  },
  "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-2017-07-25-000001.1",
    "date": "2017-07-25T17:36:50.723953+03:00",
    "type": "claim",
    "id": "3b36519c7e994663a75935a29c0ddbcf"
  }
}

Then upload necessary documents:

POST /api/2.3/tenders/6e33b56945624315afece8e75af7193c/complaints/3b36519c7e994663a75935a29c0ddbcf/documents?acc_token=6c52536fdb1b4e0a83ce6b486d2cfd0c HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 341
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.openprocurement.org/get/a6eda494834f49f884bc2202b833eb9f?KeyID=1a1ebb61&Signature=FiD0BzQgpK6kcZJ5gTBrEkKGKg5QNTNvt3gt%2Fcjbjt5mbmz5BG7l8wTSIKTC4%2Bh2HXjF3WQ7pnRjOwL42gRlBA%3D%3D",
    "title": "Complaint_Attachement.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/6e33b56945624315afece8e75af7193c/complaints/3b36519c7e994663a75935a29c0ddbcf/documents/8ebcc96606e941bc89d601c3d11270d1

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "author": "complaint_owner",
    "title": "Complaint_Attachement.pdf",
    "url": "http://public.docs-sandbox.openprocurement.org/get/a6eda494834f49f884bc2202b833eb9f?KeyID=1a1ebb61&Signature=HVXI2lfBb%252BTHfNMrSh%2F0cH0hv3YYQ032UDnmB2%252Bu4ntVsOJcqAhScdCfpjFxBUnKOMBTS1co3W35T972IxdpBA%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-07-25T17:36:50.767640+03:00",
    "id": "8ebcc96606e941bc89d601c3d11270d1",
    "dateModified": "2017-07-25T17:36:50.767661+03:00"
  }
}

Submit tender conditions claim:

PATCH /api/2.3/tenders/6e33b56945624315afece8e75af7193c/complaints/3b36519c7e994663a75935a29c0ddbcf?acc_token=6c52536fdb1b4e0a83ce6b486d2cfd0c 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": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "author": "complaint_owner",
        "title": "Complaint_Attachement.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/a6eda494834f49f884bc2202b833eb9f?KeyID=1a1ebb61&Signature=HVXI2lfBb%252BTHfNMrSh%2F0cH0hv3YYQ032UDnmB2%252Bu4ntVsOJcqAhScdCfpjFxBUnKOMBTS1co3W35T972IxdpBA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-07-25T17:36:50.767640+03:00",
        "id": "8ebcc96606e941bc89d601c3d11270d1",
        "dateModified": "2017-07-25T17:36:50.767661+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "dateSubmitted": "2017-07-25T17:36:50.813612+03:00",
    "complaintID": "UA-2017-07-25-000001.1",
    "date": "2017-07-25T17:36:50.815647+03:00",
    "type": "claim",
    "id": "3b36519c7e994663a75935a29c0ddbcf"
  }
}

Tender Conditions Claim Submission (without documents)

Create claim that does not need additional documents:

POST /api/2.3/tenders/6e33b56945624315afece8e75af7193c/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/6e33b56945624315afece8e75af7193c/complaints/3382f6727fc94edc947ff016fcedad11

{
  "access": {
    "token": "463edbad1cd743ad842e367ec778d835"
  },
  "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": "2017-07-25T17:36:50.854956+03:00",
    "complaintID": "UA-2017-07-25-000001.2",
    "date": "2017-07-25T17:36:50.854942+03:00",
    "type": "claim",
    "id": "3382f6727fc94edc947ff016fcedad11"
  }
}

Claim’s Answer

Answer to resolved claim

PATCH /api/2.3/tenders/6e33b56945624315afece8e75af7193c/complaints/3b36519c7e994663a75935a29c0ddbcf?acc_token=e96bd05708744828a13d48aa6e282cb9 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": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "author": "complaint_owner",
        "title": "Complaint_Attachement.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/a6eda494834f49f884bc2202b833eb9f?KeyID=1a1ebb61&Signature=HVXI2lfBb%252BTHfNMrSh%2F0cH0hv3YYQ032UDnmB2%252Bu4ntVsOJcqAhScdCfpjFxBUnKOMBTS1co3W35T972IxdpBA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-07-25T17:36:50.767640+03:00",
        "id": "8ebcc96606e941bc89d601c3d11270d1",
        "dateModified": "2017-07-25T17:36:50.767661+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "tendererAction": "Виправлено неконкурентні умови",
    "dateAnswered": "2017-07-25T17:36:50.937282+03:00",
    "tendererActionDate": "2017-07-25T17:36:50.937311+03:00",
    "dateSubmitted": "2017-07-25T17:36:50.813612+03:00",
    "complaintID": "UA-2017-07-25-000001.1",
    "date": "2017-07-25T17:36:50.939736+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "3b36519c7e994663a75935a29c0ddbcf"
  }
}

Satisfied Claim

Satisfying resolution

PATCH /api/2.3/tenders/6e33b56945624315afece8e75af7193c/complaints/3b36519c7e994663a75935a29c0ddbcf?acc_token=6c52536fdb1b4e0a83ce6b486d2cfd0c 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": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "author": "complaint_owner",
        "title": "Complaint_Attachement.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/a6eda494834f49f884bc2202b833eb9f?KeyID=1a1ebb61&Signature=HVXI2lfBb%252BTHfNMrSh%2F0cH0hv3YYQ032UDnmB2%252Bu4ntVsOJcqAhScdCfpjFxBUnKOMBTS1co3W35T972IxdpBA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-07-25T17:36:50.767640+03:00",
        "id": "8ebcc96606e941bc89d601c3d11270d1",
        "dateModified": "2017-07-25T17:36:50.767661+03:00"
      }
    ],
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "satisfied": true,
    "tendererAction": "Виправлено неконкурентні умови",
    "dateAnswered": "2017-07-25T17:36:50.937282+03:00",
    "tendererActionDate": "2017-07-25T17:36:50.937311+03:00",
    "dateSubmitted": "2017-07-25T17:36:50.813612+03:00",
    "complaintID": "UA-2017-07-25-000001.1",
    "date": "2017-07-25T17:36:50.991383+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "3b36519c7e994663a75935a29c0ddbcf"
  }
}

Disagreement with decision

PATCH /api/2.3/tenders/6e33b56945624315afece8e75af7193c/complaints/3382f6727fc94edc947ff016fcedad11?acc_token=463edbad1cd743ad842e367ec778d835 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 52
Content-Type: application/json
Host: api-sandbox.openprocurement.org

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


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

{
  "data": {
    "status": "resolved",
    "description": "complaint description",
    "title": "complaint title",
    "resolutionType": "resolved",
    "type": "claim",
    "satisfied": false,
    "dateAnswered": "2017-07-25T17:36:51.045464+03:00",
    "dateSubmitted": "2017-07-25T17:36:50.854956+03:00",
    "complaintID": "UA-2017-07-25-000001.2",
    "date": "2017-07-25T17:36:51.100829+03:00",
    "resolution": "Виправлено неконкурентні умови",
    "id": "3382f6727fc94edc947ff016fcedad11"
  }
}