Tutorial

Exploring basic rules

Let’s try exploring the /tenders endpoint:

GET /api/2.3/tenders?opt_pretty=1 HTTP/1.0
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "next_page": {
    "path": "/api/2.3/tenders?offset=",
    "uri": "http://api-sandbox.openprocurement.org/api/2.3/tenders?offset=",
    "offset": ""
  },
  "data": []
}

Just invoking it reveals empty set.

Now let’s attempt creating some tender:

POST /api/2.3/tenders?opt_pretty=1 HTTP/1.0
Content-Length: 4
Content-Type: application/x-www-form-urlencoded
Host: api-sandbox.openprocurement.org

Response: 415 Unsupported Media Type
Content-Type: application/json; charset=UTF-8
{
  "status": "error",
  "errors": [
    {
      "description": "Content-Type header should be one of ['application/json']",
      "location": "header",
      "name": "Content-Type"
    }
  ]
}

Error states that the only accepted Content-Type is application/json.

Let’s satisfy the Content-type requirement:

POST /api/2.3/tenders?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 4
Content-Type: application/json
Host: api-sandbox.openprocurement.org

Response: 422 Unprocessable Entity
Content-Type: application/json; charset=UTF-8
{
  "status": "error",
  "errors": [
    {
      "description": "No JSON object could be decoded",
      "location": "body",
      "name": "data"
    }
  ]
}

Error states that no data has been found in JSON body.

Creating tender

Let’s provide the data attribute in the submitted body :

POST /api/2.3/tenders?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 3777
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "tenderPeriod": {
      "endDate": "2017-07-22T16:02:36.221376+03:00"
    },
    "title": "Послуги шкільних їдалень",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "id": "37810000-9",
          "description": "Test"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "region": "м. Київ",
          "streetAddress": "вул. Банкова 1",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "id": "37810000-9",
          "description": "Test"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "region": "м. Київ",
          "streetAddress": "вул. Банкова 1",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "title_en": "Services in school canteens",
    "value": {
      "currency": "UAH",
      "amount": 500
    },
    "procurementMethodType": "aboveThresholdEU",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "countryName": "Україна",
        "postalCode": "21027",
        "region": "м. Вінниця",
        "streetAddress": "вул. Стахурського. 22",
        "locality": "м. Вінниця"
      },
      "name_en": "School #10 of Vinnytsia",
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      }
    }
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891
{
  "access": {
    "token": "ef9c0578dbdd435ab058ee3eef53e1b7"
  },
  "data": {
    "procurementMethod": "open",
    "status": "active.tendering",
    "awardCriteria": "lowestCost",
    "tenderPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "endDate": "2017-07-22T16:02:36.221376+03:00"
    },
    "title": "Послуги шкільних їдалень",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-08-27T00:00:00+03:00"
    },
    "complaintPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "endDate": "2017-07-18T00:00:00+03:00"
    },
    "title_en": "Services in school canteens",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "submissionMethod": "electronicAuction",
    "date": "2017-06-21T16:02:52.784188+03:00",
    "dateModified": "2017-06-21T16:02:52.790166+03:00",
    "procurementMethodType": "aboveThresholdEU",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    },
    "enquiryPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "clarificationsUntil": "2017-07-17T16:02:36.221376+03:00",
      "endDate": "2017-07-12T16:02:36.221376+03:00"
    },
    "owner": "broker",
    "next_check": "2017-07-22T16:02:36.221376+03:00",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "id": "aa0cd6b584d543848108968ea24a7891",
    "tenderID": "UA-2017-06-21-000001"
  }
}

Success! Now we can see that new object was created. Response code is 201 and Location response header reports the location of the created object. The body of response reveals the information about the created tender: its internal id (that matches the Location segment), its official tenderID and dateModified datestamp stating the moment in time when tender was last modified. Note that tender is created with active.tendering status.

The peculiarity of the Open EU procedure is that procurementMethodType was changed from belowThreshold to aboveThresholdEU. Also there is no opportunity to set up enquiryPeriod, it will be assigned automatically.

Let’s access the URL of the created object (the Location header of the response):

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "status": "active.tendering",
    "awardCriteria": "lowestCost",
    "tenderPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "endDate": "2017-07-22T16:02:36.221376+03:00"
    },
    "title": "Послуги шкільних їдалень",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-08-27T00:00:00+03:00"
    },
    "complaintPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "endDate": "2017-07-18T00:00:00+03:00"
    },
    "title_en": "Services in school canteens",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "submissionMethod": "electronicAuction",
    "date": "2017-06-21T16:02:52.784188+03:00",
    "dateModified": "2017-06-21T16:02:52.790166+03:00",
    "procurementMethodType": "aboveThresholdEU",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    },
    "enquiryPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "clarificationsUntil": "2017-07-17T16:02:36.221376+03:00",
      "endDate": "2017-07-12T16:02:36.221376+03:00"
    },
    "owner": "broker",
    "next_check": "2017-07-22T16:02:36.221376+03:00",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "id": "aa0cd6b584d543848108968ea24a7891",
    "tenderID": "UA-2017-06-21-000001"
  }
}

We can see the same response we got after creating tender.

Let’s see what listing of tenders reveals us:

GET /api/2.3/tenders?opt_pretty=1 HTTP/1.0
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "next_page": {
    "path": "/api/2.3/tenders?offset=",
    "uri": "http://api-sandbox.openprocurement.org/api/2.3/tenders?offset=",
    "offset": ""
  },
  "data": []
}

We do see the internal id of a tender (that can be used to construct full URL by prepending http://api-sandbox.openprocurement.org/api/0/tenders/) and its dateModified datestamp.

Modifying tender

Let’s update tender by supplementing it with all other essential properties:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 75
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "tenderPeriod": {
      "endDate": "2017-07-21T16:03:02.907054+03:00"
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "status": "active.tendering",
    "awardCriteria": "lowestCost",
    "tenderPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "endDate": "2017-07-21T16:03:02.907054+03:00"
    },
    "title": "Послуги шкільних їдалень",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-08-26T00:00:00+03:00"
    },
    "complaintPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "endDate": "2017-07-17T00:00:00+03:00"
    },
    "title_en": "Services in school canteens",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "submissionMethod": "electronicAuction",
    "date": "2017-06-21T16:02:52.784188+03:00",
    "dateModified": "2017-06-21T16:02:52.988639+03:00",
    "procurementMethodType": "aboveThresholdEU",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    },
    "enquiryPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "clarificationsUntil": "2017-07-14T16:03:02.907054+03:00",
      "endDate": "2017-07-11T16:03:02.907054+03:00",
      "invalidationDate": "2017-06-21T16:02:52.985135+03:00"
    },
    "owner": "broker",
    "next_check": "2017-07-21T16:03:02.907054+03:00",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "id": "aa0cd6b584d543848108968ea24a7891",
    "tenderID": "UA-2017-06-21-000001"
  }
}

We see the added properies have merged with existing tender data. Additionally, the dateModified property was updated to reflect the last modification datestamp.

Checking the listing again reflects the new modification date:

GET /api/2.3/tenders?opt_pretty=1 HTTP/1.0
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "next_page": {
    "path": "/api/2.3/tenders?offset=2017-06-21T16%3A02%3A52.790166%2B03%3A00",
    "uri": "http://api-sandbox.openprocurement.org/api/2.3/tenders?offset=2017-06-21T16%3A02%3A52.790166%2B03%3A00",
    "offset": "2017-06-21T16:02:52.790166+03:00"
  },
  "data": [
    {
      "id": "aa0cd6b584d543848108968ea24a7891",
      "dateModified": "2017-06-21T16:02:52.790166+03:00"
    }
  ]
}

Procuring entity can not change tender if there are less than 7 days before tenderPeriod ends. Changes will not be accepted by API.

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "complaintPeriod": {
      "startDate": "2017-05-24T16:02:53.766728+03:00",
      "endDate": "2017-06-19T00:00:00+03:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-05-24T16:02:53.766728+03:00",
      "clarificationsUntil": "2017-06-16T16:02:53.766728+03:00",
      "endDate": "2017-06-13T16:02:53.766728+03:00",
      "invalidationDate": "2017-06-21T16:02:53.457126+03:00"
    },
    "submissionMethod": "electronicAuction",
    "next_check": "2017-06-23T16:02:53.766728+03:00",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    },
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "dateAnswered": "2017-06-21T16:02:53.647606+03:00",
        "title": "Калорійність",
        "date": "2017-06-21T16:02:53.560813+03:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "aa0cd6b584d543848108968ea24a7891",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.239482+03:00",
        "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
        "dateModified": "2017-06-21T16:02:53.239515+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/41032a252f9e41748bc057860b7d3115?KeyID=bc8341ee&Signature=nKk1Tyr6aRTrg755ymwD99RCyf0igBnH%252Bih9KqNHd2VWlrZ%2FUcgXIMxAMVD2QuHWebecoUUI0AsmmqaThdmdDA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.344518+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/020caf546bfb4c219f590fb2a91dd024?KeyID=bc8341ee&Signature=E9tQGb1285Uuw%2FTH4T%2FciaqLbCO0DE8yT9QLe9ruXboQGHw0UXbjMjxPx%252BFdv%2F5m3NgqnKaMxPUQ0%252BXiq5L2BQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.456233+03:00"
      }
    ],
    "title": "Послуги шкільних їдалень",
    "tenderID": "UA-2017-06-21-000001",
    "dateModified": "2017-06-21T16:02:53.654896+03:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-05-24T16:02:53.766728+03:00",
      "endDate": "2017-06-23T16:02:53.766728+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-07-29T00:00:00+03:00"
    },
    "procurementMethodType": "aboveThresholdEU",
    "date": "2017-06-21T16:02:52.784188+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "awardCriteria": "lowestCost"
  }
}

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 38
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "value": {
      "amount": 501.0
    }
  }
}

Response: 403 Forbidden
Content-Type: application/json; charset=UTF-8
{
  "status": "error",
  "errors": [
    {
      "description": "tenderPeriod should be extended by 7 days",
      "location": "body",
      "name": "data"
    }
  ]
}

That is why tenderPeriod has to be extended by 7 days.

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 120
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "tenderPeriod": {
      "endDate": "2017-06-29T16:02:53.986171+03:00"
    },
    "value": {
      "currency": "UAH",
      "amount": 501
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "complaintPeriod": {
      "startDate": "2017-05-24T16:02:53.766728+03:00",
      "endDate": "2017-06-25T00:00:00+03:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-05-24T16:02:53.766728+03:00",
      "clarificationsUntil": "2017-06-22T16:02:53.986171+03:00",
      "endDate": "2017-06-19T16:02:53.986171+03:00",
      "invalidationDate": "2017-06-21T16:02:54.238572+03:00"
    },
    "submissionMethod": "electronicAuction",
    "next_check": "2017-06-29T16:02:53.986171+03:00",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    },
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "dateAnswered": "2017-06-21T16:02:53.647606+03:00",
        "title": "Калорійність",
        "date": "2017-06-21T16:02:53.560813+03:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "aa0cd6b584d543848108968ea24a7891",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.239482+03:00",
        "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
        "dateModified": "2017-06-21T16:02:53.239515+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/41032a252f9e41748bc057860b7d3115?KeyID=bc8341ee&Signature=nKk1Tyr6aRTrg755ymwD99RCyf0igBnH%252Bih9KqNHd2VWlrZ%2FUcgXIMxAMVD2QuHWebecoUUI0AsmmqaThdmdDA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.344518+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/020caf546bfb4c219f590fb2a91dd024?KeyID=bc8341ee&Signature=E9tQGb1285Uuw%2FTH4T%2FciaqLbCO0DE8yT9QLe9ruXboQGHw0UXbjMjxPx%252BFdv%2F5m3NgqnKaMxPUQ0%252BXiq5L2BQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.456233+03:00"
      }
    ],
    "title": "Послуги шкільних їдалень",
    "tenderID": "UA-2017-06-21-000001",
    "dateModified": "2017-06-21T16:02:54.243670+03:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-05-24T16:02:53.766728+03:00",
      "endDate": "2017-06-29T16:02:53.986171+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-08-04T00:00:00+03:00"
    },
    "procurementMethodType": "aboveThresholdEU",
    "date": "2017-06-21T16:02:52.784188+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "awardCriteria": "lowestCost"
  }
}

Procuring entity can set bid guarantee:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 57
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "guarantee": {
      "currency": "USD",
      "amount": 8
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "complaintPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "endDate": "2017-07-17T00:00:00+03:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "clarificationsUntil": "2017-07-14T16:03:02.907054+03:00",
      "endDate": "2017-07-11T16:03:02.907054+03:00",
      "invalidationDate": "2017-06-21T16:02:53.158860+03:00"
    },
    "submissionMethod": "electronicAuction",
    "next_check": "2017-07-21T16:03:02.907054+03:00",
    "awardCriteria": "lowestCost",
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "aa0cd6b584d543848108968ea24a7891",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "title": "Послуги шкільних їдалень",
    "tenderID": "UA-2017-06-21-000001",
    "dateModified": "2017-06-21T16:02:53.162355+03:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-06-21T16:02:52.741611+03:00",
      "endDate": "2017-07-21T16:03:02.907054+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-08-26T00:00:00+03:00"
    },
    "procurementMethodType": "aboveThresholdEU",
    "date": "2017-06-21T16:02:52.784188+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    }
  }
}

Uploading documentation

Procuring entity can upload PDF files into the created tender. Uploading should follow the Documents Uploading rules.

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/documents?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 184
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy41361696632$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/documents/6f6ec5b03eba4122a48a5a09e8585aa0
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "language": "uk",
    "title": "Notice.pdf",
    "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:53.239482+03:00",
    "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
    "dateModified": "2017-06-21T16:02:53.239515+03:00"
  }
}

201 Created response code and Location header confirm document creation. We can additionally query the documents collection API endpoint to confirm the action:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/documents/6f6ec5b03eba4122a48a5a09e8585aa0?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "language": "uk",
    "title": "Notice.pdf",
    "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:53.239482+03:00",
    "previousVersions": [],
    "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
    "dateModified": "2017-06-21T16:02:53.239515+03:00"
  }
}

The single array element describes the uploaded document. We can upload more documents:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/documents?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 193
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy224742511553$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/documents/03268a7f71cd4fe7a091ef9662a942c5
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "language": "uk",
    "title": "AwardCriteria.pdf",
    "url": "http://public.docs-sandbox.openprocurement.org/get/41032a252f9e41748bc057860b7d3115?KeyID=bc8341ee&Signature=nKk1Tyr6aRTrg755ymwD99RCyf0igBnH%252Bih9KqNHd2VWlrZ%2FUcgXIMxAMVD2QuHWebecoUUI0AsmmqaThdmdDA%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:53.344451+03:00",
    "id": "03268a7f71cd4fe7a091ef9662a942c5",
    "dateModified": "2017-06-21T16:02:53.344518+03:00"
  }
}

And again we can confirm that there are two documents uploaded.

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/documents?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "language": "uk",
      "title": "Notice.pdf",
      "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-06-21T16:02:53.239482+03:00",
      "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
      "dateModified": "2017-06-21T16:02:53.239515+03:00"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "language": "uk",
      "title": "AwardCriteria.pdf",
      "url": "http://public.docs-sandbox.openprocurement.org/get/41032a252f9e41748bc057860b7d3115?KeyID=bc8341ee&Signature=nKk1Tyr6aRTrg755ymwD99RCyf0igBnH%252Bih9KqNHd2VWlrZ%2FUcgXIMxAMVD2QuHWebecoUUI0AsmmqaThdmdDA%253D%253D",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-06-21T16:02:53.344451+03:00",
      "id": "03268a7f71cd4fe7a091ef9662a942c5",
      "dateModified": "2017-06-21T16:02:53.344518+03:00"
    }
  ]
}

In case we made an error, we can reupload the document over the older version:

PUT /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/documents/03268a7f71cd4fe7a091ef9662a942c5?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 196
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy799889116752$
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "language": "uk",
    "title": "AwardCriteria-2.pdf",
    "url": "http://public.docs-sandbox.openprocurement.org/get/020caf546bfb4c219f590fb2a91dd024?KeyID=bc8341ee&Signature=E9tQGb1285Uuw%2FTH4T%2FciaqLbCO0DE8yT9QLe9ruXboQGHw0UXbjMjxPx%252BFdv%2F5m3NgqnKaMxPUQ0%252BXiq5L2BQ%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:53.344451+03:00",
    "id": "03268a7f71cd4fe7a091ef9662a942c5",
    "dateModified": "2017-06-21T16:02:53.456233+03:00"
  }
}

And we can see that it is overriding the original version:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "language": "uk",
      "title": "Notice.pdf",
      "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-06-21T16:02:53.239482+03:00",
      "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
      "dateModified": "2017-06-21T16:02:53.239515+03:00"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "language": "uk",
      "title": "AwardCriteria-2.pdf",
      "url": "http://public.docs-sandbox.openprocurement.org/get/020caf546bfb4c219f590fb2a91dd024?KeyID=bc8341ee&Signature=E9tQGb1285Uuw%2FTH4T%2FciaqLbCO0DE8yT9QLe9ruXboQGHw0UXbjMjxPx%252BFdv%2F5m3NgqnKaMxPUQ0%252BXiq5L2BQ%253D%253D",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-06-21T16:02:53.344451+03:00",
      "id": "03268a7f71cd4fe7a091ef9662a942c5",
      "dateModified": "2017-06-21T16:02:53.456233+03:00"
    }
  ]
}

Enquiries

When tender has active.tendering status and Tender.enqueryPeriod.endDate hasn’t come yet, interested parties can ask questions:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/questions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1506
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "author": {
      "contactPoint": {
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк",
        "email": "soleksuk@gmail.com"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
        "id": "00137226",
        "uri": "http://sch10.edu.vn.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "countryName": "Україна",
        "postalCode": "21100",
        "region": "м. Вінниця",
        "streetAddress": "вул. Островського, 33",
        "locality": "м. Вінниця"
      }
    },
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність"
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/questions/7d8d9c35a3df43c38e4e860f0c2e5fb8
{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "author": {
      "contactPoint": {
        "email": "soleksuk@gmail.com",
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
        "id": "00137226",
        "uri": "http://sch10.edu.vn.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "postalCode": "21100",
        "countryName": "Україна",
        "streetAddress": "вул. Островського, 33",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "title": "Калорійність",
    "date": "2017-06-21T16:02:53.560813+03:00",
    "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
    "questionOf": "tender"
  }
}

Procuring entity can answer them:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/questions/7d8d9c35a3df43c38e4e860f0c2e5fb8?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 162
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\""
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "dateAnswered": "2017-06-21T16:02:53.647606+03:00",
    "title": "Калорійність",
    "date": "2017-06-21T16:02:53.560813+03:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
    "questionOf": "tender"
  }
}

One can retrieve either questions list:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/questions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "description": "Просимо додати таблицю потрібної калорійності харчування",
      "dateAnswered": "2017-06-21T16:02:53.647606+03:00",
      "title": "Калорійність",
      "date": "2017-06-21T16:02:53.560813+03:00",
      "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
      "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
      "questionOf": "tender"
    }
  ]
}

or individual answer:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/questions/7d8d9c35a3df43c38e4e860f0c2e5fb8 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "dateAnswered": "2017-06-21T16:02:53.647606+03:00",
    "title": "Калорійність",
    "date": "2017-06-21T16:02:53.560813+03:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
    "questionOf": "tender"
  }
}

Enquiries can be made only during Tender.enqueryPeriod

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/questions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1506
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "author": {
      "contactPoint": {
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк",
        "email": "soleksuk@gmail.com"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
        "id": "00137226",
        "uri": "http://sch10.edu.vn.ua/"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "countryName": "Україна",
        "postalCode": "21100",
        "region": "м. Вінниця",
        "streetAddress": "вул. Островського, 33",
        "locality": "м. Вінниця"
      }
    },
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність"
  }
}

Response: 403 Forbidden
Content-Type: application/json; charset=UTF-8
{
  "status": "error",
  "errors": [
    {
      "description": "Can add question only in enquiryPeriod",
      "location": "body",
      "name": "data"
    }
  ]
}

Registering bid

Bid registration

Tender status active.tendering allows registration of bids.

Bidder can register a bid with draft status:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 936
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "draft",
    "selfEligible": true,
    "value": {
      "amount": 500
    },
    "subcontractingDetails": "ДКП «Орфей», Україна",
    "tenderers": [
      {
        "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": "м. Вінниця"
        }
      }
    ],
    "selfQualified": true
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e
{
  "access": {
    "token": "3b4a7e83c82941c4b47ecadc2659689f"
  },
  "data": {
    "status": "draft",
    "selfEligible": true,
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "subcontractingDetails": "ДКП «Орфей», Україна",
    "selfQualified": true,
    "tenderers": [
      {
        "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": "м. Вінниця"
        }
      }
    ],
    "date": "2017-06-21T16:02:54.340723+03:00",
    "id": "cbd4381d9f3f402aaa82812b1b9f126e"
  }
}

anjd approve to pending status:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 31
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "pending"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "selfEligible": true,
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "subcontractingDetails": "ДКП «Орфей», Україна",
    "selfQualified": true,
    "tenderers": [
      {
        "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": "м. Вінниця"
        }
      }
    ],
    "date": "2017-06-21T16:02:54.340723+03:00",
    "id": "cbd4381d9f3f402aaa82812b1b9f126e"
  }
}

Proposal Uploading

Then bidder should upload proposal technical document(s):

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 188
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy675850479608$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/96e37e4bc6754850afe384d21431d501
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "confidentiality": "public",
    "language": "uk",
    "title": "Proposal.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/96e37e4bc6754850afe384d21431d501?download=95cbd14efbb64d99ad7a77cb0ef19e06",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:54.560509+03:00",
    "id": "96e37e4bc6754850afe384d21431d501",
    "dateModified": "2017-06-21T16:02:54.560542+03:00"
  }
}

Confidentiality

Documents can be either public or private:

  1. Privacy settings can be changed only for the latest version of the document.
  2. When you upload new version of the document, privacy settings are copied from the previous version.
  3. Privacy settings can be changed only during tenderPeriod (with active.tendering status).
  4. If tender has status active.qualification winner can upload only public documents.

Let’s upload private document:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 200
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy334241523994$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "confidentiality": "public",
    "language": "uk",
    "title": "Proposal_top_secrets.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:54.681479+03:00",
    "id": "c7a419d009a14636ab27de82a8f30fa7",
    "dateModified": "2017-06-21T16:02:54.681512+03:00"
  }
}

To define the document as “private” - confidentiality and confidentialityRationale fields should be set.

confidentiality field value can be either buyerOnly (document is private) or public (document is publicly accessible).

Content of private documents (buyerOnly) can be accessed only by procuring entity or by participant who uploaded them.

confidentialityRationale field is required only for private documents and should contain at least 30 characters.

Let’s mark the document as “private”:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 120
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "confidentialityRationale": "Only our company sells badgers with pink hair.",
    "confidentiality": "buyerOnly"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "confidentiality": "buyerOnly",
    "language": "uk",
    "format": "application/pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
    "confidentialityRationale": "Only our company sells badgers with pink hair.",
    "title": "Proposal_top_secrets.pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:54.681479+03:00",
    "id": "c7a419d009a14636ab27de82a8f30fa7",
    "dateModified": "2017-06-21T16:02:54.681512+03:00"
  }
}

It is possible to check the uploaded documents:

GET /api/0.12/tenders/426b4a12a7914da4b5085c151d304492/bids/ccb2b531e4e8432d85ae97b5e04c41b7/documents?acc_token=c4800a35b685408591fd652aa663abbc HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "confidentiality": "public",
      "title": "Proposal.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/0.12/tenders/426b4a12a7914da4b5085c151d304492/bids/ccb2b531e4e8432d85ae97b5e04c41b7/documents/82ea43476db846558de6b14dd10f437f?download=308576b6f09647408bdae1d5acf4d4ee",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2016-02-08T14:33:11.330995+02:00",
      "id": "82ea43476db846558de6b14dd10f437f",
      "dateModified": "2016-02-08T14:33:11.331043+02:00"
    },
    {
      "confidentiality": "buyerOnly",
      "title": "Proposal_top_secrets.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/0.12/tenders/426b4a12a7914da4b5085c151d304492/bids/ccb2b531e4e8432d85ae97b5e04c41b7/documents/809cda9d319f4054a3cf6ad2df2c16ac?download=410dcf0954ed476f8c92ddfe80b3ca07",
      "confidentialityRationale": "Only our company sells badgers with pink hair.",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2016-02-08T14:33:11.475748+02:00",
      "id": "809cda9d319f4054a3cf6ad2df2c16ac",
      "dateModified": "2016-02-08T14:33:11.475787+02:00"
    }
  ]
}

Financial, eligibility and qualification documents uploading

Financial, eligibility and qualification documents are also a part of Bid but are located in different end-points.

In order to create and/or get financial document financial_documents end-point should be used:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 191
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy620915895166$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/cb189d3df94144ed95a6a2d78a3dfc3f
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "confidentiality": "public",
    "language": "uk",
    "title": "financial_doc.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/cb189d3df94144ed95a6a2d78a3dfc3f?download=528e0702156245c5afedfe59c77ed5b1",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:54.915526+03:00",
    "id": "cb189d3df94144ed95a6a2d78a3dfc3f",
    "dateModified": "2017-06-21T16:02:54.915558+03:00"
  }
}

Get financial documents:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "confidentiality": "public",
      "language": "uk",
      "title": "financial_doc.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/cb189d3df94144ed95a6a2d78a3dfc3f?download=528e0702156245c5afedfe59c77ed5b1",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-06-21T16:02:54.915526+03:00",
      "id": "cb189d3df94144ed95a6a2d78a3dfc3f",
      "dateModified": "2017-06-21T16:02:54.915558+03:00"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "confidentiality": "public",
      "language": "uk",
      "title": "financial_doc2.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/7701ca89504343a7b9783840b9b8e9b1?download=d15da55a89f64ce4a1810728dd0ab77d",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-06-21T16:02:55.041504+03:00",
      "id": "7701ca89504343a7b9783840b9b8e9b1",
      "dateModified": "2017-06-21T16:02:55.041537+03:00"
    }
  ]
}

In order to create and/or get eligibility document eligibility_documents end-point should be used:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/eligibility_documents?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 195
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy900191348276$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/eligibility_documents/9ecb30d454a849a180d8c8d572438f07
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "confidentiality": "public",
    "language": "uk",
    "title": "eligibility_doc.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/eligibility_documents/9ecb30d454a849a180d8c8d572438f07?download=8f0e2409a7a242a38c9cfea94dfb810d",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:55.213699+03:00",
    "id": "9ecb30d454a849a180d8c8d572438f07",
    "dateModified": "2017-06-21T16:02:55.213731+03:00"
  }
}

In order to create and/or get qualification document qualification_documents end-point should be used:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/qualification_documents?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 202
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy173629433403$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/qualification_documents/c84046fc5b794d1caada1f3c7d63e8ca
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "confidentiality": "public",
    "language": "uk",
    "title": "qualification_document.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/qualification_documents/c84046fc5b794d1caada1f3c7d63e8ca?download=835c4b4239d8411591c74254e61969de",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:02:55.355624+03:00",
    "id": "c84046fc5b794d1caada1f3c7d63e8ca",
    "dateModified": "2017-06-21T16:02:55.355657+03:00"
  }
}

Financial and qualification documents will be publicly accessible after the auction. Eligibility documents will become publicly accessible starting from tender pre-qualification period.

Here is bidder proposal with all documents.

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "Proposal.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/96e37e4bc6754850afe384d21431d501?download=95cbd14efbb64d99ad7a77cb0ef19e06",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.560509+03:00",
        "id": "96e37e4bc6754850afe384d21431d501",
        "dateModified": "2017-06-21T16:02:54.560542+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "buyerOnly",
        "language": "uk",
        "format": "application/pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
        "confidentialityRationale": "Only our company sells badgers with pink hair.",
        "title": "Proposal_top_secrets.pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.681479+03:00",
        "id": "c7a419d009a14636ab27de82a8f30fa7",
        "dateModified": "2017-06-21T16:02:54.681512+03:00"
      }
    ],
    "eligibilityDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "eligibility_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/eligibility_documents/9ecb30d454a849a180d8c8d572438f07?download=8f0e2409a7a242a38c9cfea94dfb810d",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.213699+03:00",
        "id": "9ecb30d454a849a180d8c8d572438f07",
        "dateModified": "2017-06-21T16:02:55.213731+03:00"
      }
    ],
    "selfEligible": true,
    "id": "cbd4381d9f3f402aaa82812b1b9f126e",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "selfQualified": true,
    "financialDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/cb189d3df94144ed95a6a2d78a3dfc3f?download=528e0702156245c5afedfe59c77ed5b1",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.915526+03:00",
        "id": "cb189d3df94144ed95a6a2d78a3dfc3f",
        "dateModified": "2017-06-21T16:02:54.915558+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/7701ca89504343a7b9783840b9b8e9b1?download=d15da55a89f64ce4a1810728dd0ab77d",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.041504+03:00",
        "id": "7701ca89504343a7b9783840b9b8e9b1",
        "dateModified": "2017-06-21T16:02:55.041537+03:00"
      }
    ],
    "tenderers": [
      {
        "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": "м. Вінниця"
        }
      }
    ],
    "date": "2017-06-21T16:02:54.340723+03:00",
    "subcontractingDetails": "ДКП «Орфей», Україна",
    "qualificationDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "qualification_document.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/qualification_documents/c84046fc5b794d1caada1f3c7d63e8ca?download=835c4b4239d8411591c74254e61969de",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.355624+03:00",
        "id": "c84046fc5b794d1caada1f3c7d63e8ca",
        "dateModified": "2017-06-21T16:02:55.355657+03:00"
      }
    ]
  }
}

Note that financial, eligibility, and qualification documents are stored in financialDocuments, eligibilityDocuments, and qualificationDocuments attributes of Bid.

Bid invalidation

If tender is modified, status of all bid proposals will be changed to invalid. Bid proposal will look the following way after tender has been modified:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "invalid",
    "id": "cbd4381d9f3f402aaa82812b1b9f126e"
  }
}

Bid confirmation

Bidder should confirm bid proposal:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 31
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "pending"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "Proposal.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/96e37e4bc6754850afe384d21431d501?download=95cbd14efbb64d99ad7a77cb0ef19e06",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.560509+03:00",
        "id": "96e37e4bc6754850afe384d21431d501",
        "dateModified": "2017-06-21T16:02:54.560542+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "buyerOnly",
        "language": "uk",
        "format": "application/pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
        "confidentialityRationale": "Only our company sells badgers with pink hair.",
        "title": "Proposal_top_secrets.pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.681479+03:00",
        "id": "c7a419d009a14636ab27de82a8f30fa7",
        "dateModified": "2017-06-21T16:02:54.681512+03:00"
      }
    ],
    "eligibilityDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "eligibility_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/eligibility_documents/9ecb30d454a849a180d8c8d572438f07?download=8f0e2409a7a242a38c9cfea94dfb810d",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.213699+03:00",
        "id": "9ecb30d454a849a180d8c8d572438f07",
        "dateModified": "2017-06-21T16:02:55.213731+03:00"
      }
    ],
    "selfEligible": true,
    "id": "cbd4381d9f3f402aaa82812b1b9f126e",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "selfQualified": true,
    "financialDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/cb189d3df94144ed95a6a2d78a3dfc3f?download=528e0702156245c5afedfe59c77ed5b1",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.915526+03:00",
        "id": "cb189d3df94144ed95a6a2d78a3dfc3f",
        "dateModified": "2017-06-21T16:02:54.915558+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/7701ca89504343a7b9783840b9b8e9b1?download=d15da55a89f64ce4a1810728dd0ab77d",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.041504+03:00",
        "id": "7701ca89504343a7b9783840b9b8e9b1",
        "dateModified": "2017-06-21T16:02:55.041537+03:00"
      }
    ],
    "tenderers": [
      {
        "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": "м. Вінниця"
        }
      }
    ],
    "date": "2017-06-21T16:02:54.340723+03:00",
    "subcontractingDetails": "ДКП «Орфей», Україна",
    "qualificationDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "qualification_document.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/qualification_documents/c84046fc5b794d1caada1f3c7d63e8ca?download=835c4b4239d8411591c74254e61969de",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.355624+03:00",
        "id": "c84046fc5b794d1caada1f3c7d63e8ca",
        "dateModified": "2017-06-21T16:02:55.355657+03:00"
      }
    ]
  }
}

Open EU procedure demands at least two bidders, so there should be at least two bid proposals registered to move to auction stage:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 749
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "selfEligible": true,
    "selfQualified": true,
    "value": {
      "amount": 499
    },
    "tenderers": [
      {
        "contactPoint": {
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк",
          "email": "aagt@gmail.com"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "countryName": "Україна",
          "postalCode": "79013",
          "region": "м. Львів",
          "streetAddress": "вул. Островського, 34",
          "locality": "м. Львів"
        }
      }
    ]
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/7d25598434a040129a4513bc053945dc
{
  "access": {
    "token": "93531d18c9e84278acdf290bd72a0f4b"
  },
  "data": {
    "status": "pending",
    "selfEligible": true,
    "value": {
      "currency": "UAH",
      "amount": 499.0,
      "valueAddedTaxIncluded": true
    },
    "selfQualified": true,
    "tenderers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "date": "2017-06-21T16:02:56.027580+03:00",
    "id": "7d25598434a040129a4513bc053945dc"
  }
}

Batch-mode bid registration

Register one more bid with documents using single request (batch-mode):

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 2576
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "documents": [
      {
        "url": "http://public.docs-sandbox.openprocurement.org/get/c8b8a27dd53b4a7385e546ac44743e5a?KeyID=bc8341ee&Signature=OCw8VCtlXwjXNHAcyAQKgaCGTb4cVVHjNPyNxuiShUNn%2BvopQKdywR05P1BzynooWMb63oJVbN2uS9jaPE9kBA%3D%3D",
        "title": "Proposal_part1.pdf",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "buyerOnly",
        "title": "Proposal_part2.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/ff3f2c1c9f89435f8f3d434f72d5ae91?KeyID=bc8341ee&Signature=Vl5HT5XejVUjaXQn%2FsK8N7GTZEB9XeN%2Fu5Kcxfsy9ZCQ%2B6gPh69jRXzYKFz1BkSj7Um0M2wbD7tBAwndWqR8Ag%3D%3D",
        "confidentialityRationale": "Only our company sells badgers with pink hair.",
        "format": "application/pdf"
      }
    ],
    "eligibilityDocuments": [
      {
        "url": "http://public.docs-sandbox.openprocurement.org/get/138f72f02ac747519001bbe1494086b0?KeyID=bc8341ee&Signature=tQhUN0sLj0HP%2BgYsHY4XivL34eeK6n%2Bwx5KnltE%2Fdj6e8o7A5rfxxUmWaFCel5vNd%2Bb9ElyufJTG0jD6Qc8FAg%3D%3D",
        "title": "eligibility_doc.pdf",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf"
      }
    ],
    "selfEligible": true,
    "value": {
      "amount": 5
    },
    "selfQualified": true,
    "financialDocuments": [
      {
        "url": "http://public.docs-sandbox.openprocurement.org/get/cd21d8d3803e4a9e8ed0ede606ee0e96?KeyID=bc8341ee&Signature=K4h1%2FvECx%2BZxGsfqWdvqIww1EmJlRnlJ2zqun89EOuA0oAm1T%2B8e2J3vXQFZ0mZgz2rdnrGn2VrCNzQ2bYn9Aw%3D%3D",
        "title": "financial_doc.pdf",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf"
      }
    ],
    "tenderers": [
      {
        "contactPoint": {
          "telephone": "+380 (322) 12-34-56",
          "name": "Іван Іваненко",
          "email": "fake@mail.com"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "«Снігур»",
        "address": {
          "countryName": "Україна",
          "postalCode": "79013",
          "region": "м. Львів",
          "streetAddress": "вул. Островського, 35",
          "locality": "м. Львів"
        }
      }
    ],
    "qualificationDocuments": [
      {
        "url": "http://public.docs-sandbox.openprocurement.org/get/01c6e6734bdb4edf92e9ab0ec94742e0?KeyID=bc8341ee&Signature=0ZQwgUEPF%2FmiSjbCLww3fPtG9FyCWgm0GPrX3D5%2FyupuJBhzITNveXAkE695srSF%2B5LBWdPrKYztgz747BH8DQ%3D%3D",
        "title": "qualification_document.pdf",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf"
      }
    ]
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6
{
  "access": {
    "token": "b93527dd50f74d17b52909009c0e0004"
  },
  "data": {
    "status": "pending",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "Proposal_part1.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/documents/ef9a9600108941d59e4c75108fa36e91?download=c8b8a27dd53b4a7385e546ac44743e5a",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:56.195576+03:00",
        "id": "ef9a9600108941d59e4c75108fa36e91",
        "dateModified": "2017-06-21T16:02:56.195607+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "buyerOnly",
        "language": "uk",
        "format": "application/pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/documents/8648068d095345b2b82b01ff63051db5?download=ff3f2c1c9f89435f8f3d434f72d5ae91",
        "confidentialityRationale": "Only our company sells badgers with pink hair.",
        "title": "Proposal_part2.pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:56.196490+03:00",
        "id": "8648068d095345b2b82b01ff63051db5",
        "dateModified": "2017-06-21T16:02:56.196521+03:00"
      }
    ],
    "eligibilityDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "eligibility_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/eligibility_documents/22a8c144ada441e9804ae888d31d6771?download=138f72f02ac747519001bbe1494086b0",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:56.198375+03:00",
        "id": "22a8c144ada441e9804ae888d31d6771",
        "dateModified": "2017-06-21T16:02:56.198407+03:00"
      }
    ],
    "selfEligible": true,
    "id": "104ca60911244497bc15d941e239ead6",
    "value": {
      "currency": "UAH",
      "amount": 5.0,
      "valueAddedTaxIncluded": true
    },
    "selfQualified": true,
    "financialDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/financial_documents/b70ee905f663455b86219bee9d1f4b56?download=cd21d8d3803e4a9e8ed0ede606ee0e96",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:56.197444+03:00",
        "id": "b70ee905f663455b86219bee9d1f4b56",
        "dateModified": "2017-06-21T16:02:56.197475+03:00"
      }
    ],
    "tenderers": [
      {
        "contactPoint": {
          "email": "fake@mail.com",
          "telephone": "+380 (322) 12-34-56",
          "name": "Іван Іваненко"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "«Снігур»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 35",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "date": "2017-06-21T16:02:56.194490+03:00",
    "qualificationDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "qualification_document.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/qualification_documents/a5fb4f94ef9e4fa886882282230898b3?download=01c6e6734bdb4edf92e9ab0ec94742e0",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:56.199310+03:00",
        "id": "a5fb4f94ef9e4fa886882282230898b3",
        "dateModified": "2017-06-21T16:02:56.199340+03:00"
      }
    ]
  }
}

Bid Qualification

Open EU procedure requires bid qualification.

Let’s list qualifications:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "status": "active.pre-qualification",
    "complaintPeriod": {
      "startDate": "2017-05-21T16:02:34.928887+03:00",
      "endDate": "2017-06-17T00:00:00+03:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-05-21T16:02:34.928887+03:00",
      "clarificationsUntil": "2017-06-15T00:00:00+03:00",
      "endDate": "2017-06-11T16:02:34.928887+03:00",
      "invalidationDate": "2017-06-21T16:02:55.658123+03:00"
    },
    "submissionMethod": "electronicAuction",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    },
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "author": {
          "contactPoint": {
            "email": "soleksuk@gmail.com",
            "telephone": "+380 (432) 21-69-30",
            "name": "Сергій Олексюк"
          },
          "identifier": {
            "scheme": "UA-EDR",
            "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
            "id": "00137226",
            "uri": "http://sch10.edu.vn.ua/"
          },
          "name": "ДКП «Школяр»",
          "address": {
            "postalCode": "21100",
            "countryName": "Україна",
            "streetAddress": "вул. Островського, 33",
            "region": "м. Вінниця",
            "locality": "м. Вінниця"
          }
        },
        "title": "Калорійність",
        "date": "2017-06-21T16:02:53.560813+03:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "dateAnswered": "2017-06-21T16:02:53.647606+03:00",
        "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "aa0cd6b584d543848108968ea24a7891",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.239482+03:00",
        "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
        "dateModified": "2017-06-21T16:02:53.239515+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/41032a252f9e41748bc057860b7d3115?KeyID=bc8341ee&Signature=nKk1Tyr6aRTrg755ymwD99RCyf0igBnH%252Bih9KqNHd2VWlrZ%2FUcgXIMxAMVD2QuHWebecoUUI0AsmmqaThdmdDA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.344518+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/020caf546bfb4c219f590fb2a91dd024?KeyID=bc8341ee&Signature=E9tQGb1285Uuw%2FTH4T%2FciaqLbCO0DE8yT9QLe9ruXboQGHw0UXbjMjxPx%252BFdv%2F5m3NgqnKaMxPUQ0%252BXiq5L2BQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.456233+03:00"
      }
    ],
    "title": "Послуги шкільних їдалень",
    "qualificationPeriod": {
      "startDate": "2017-06-21T16:02:56.721146+03:00"
    },
    "tenderID": "UA-2017-06-21-000001",
    "dateModified": "2017-06-21T16:02:56.735578+03:00",
    "numberOfBids": 3,
    "tenderPeriod": {
      "startDate": "2017-05-21T16:02:34.928887+03:00",
      "endDate": "2017-06-21T16:02:34.928887+03:00"
    },
    "qualifications": [
      {
        "status": "pending",
        "eligible": false,
        "qualified": false,
        "bidID": "cbd4381d9f3f402aaa82812b1b9f126e",
        "date": "2017-06-21T16:02:56.722033+03:00",
        "id": "5b58d9ff201847d6bf6111e35bd41adc"
      },
      {
        "status": "pending",
        "eligible": false,
        "qualified": false,
        "bidID": "7d25598434a040129a4513bc053945dc",
        "date": "2017-06-21T16:02:56.722410+03:00",
        "id": "c01154d0b05648b9b8695e292eea51ad"
      },
      {
        "status": "pending",
        "eligible": false,
        "qualified": false,
        "bidID": "104ca60911244497bc15d941e239ead6",
        "date": "2017-06-21T16:02:56.722777+03:00",
        "id": "020ccfda1cb2407c96f892d240cea3ca"
      }
    ],
    "procurementMethodType": "aboveThresholdEU",
    "date": "2017-06-21T16:02:56.735578+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "bids": [
      {
        "status": "pending",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/95cbd14efbb64d99ad7a77cb0ef19e06?KeyID=bc8341ee&Signature=7JOPK3Dpyg0uV0m4a%252BDNbANEnMzNCjvWG8iOXp0zrzoA8ZDyC4VjzrHruiN7NYgsxI3I43Pkj5JcW%252BVy8QkKDw%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:54.560509+03:00",
            "id": "96e37e4bc6754850afe384d21431d501",
            "dateModified": "2017-06-21T16:02:54.560542+03:00"
          },
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "buyerOnly",
            "language": "uk",
            "format": "application/pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "title": "Proposal_top_secrets.pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:54.681479+03:00",
            "id": "c7a419d009a14636ab27de82a8f30fa7",
            "dateModified": "2017-06-21T16:02:54.681512+03:00"
          }
        ],
        "tenderers": [
          {
            "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": "м. Вінниця"
            }
          }
        ],
        "id": "cbd4381d9f3f402aaa82812b1b9f126e",
        "eligibilityDocuments": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "eligibility_doc.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/8f0e2409a7a242a38c9cfea94dfb810d?KeyID=bc8341ee&Signature=3hfnRU9AfjnJV6GjubM%2Fd3eltUVwrKHVoeS9%252Bb%252BI35q8xY2JTB%2Fgx0SsbJjzWIkr4M3PWrdoyY90EGgyhPVnAw%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:55.213699+03:00",
            "id": "9ecb30d454a849a180d8c8d572438f07",
            "dateModified": "2017-06-21T16:02:55.213731+03:00"
          }
        ]
      },
      {
        "status": "pending",
        "id": "7d25598434a040129a4513bc053945dc",
        "tenderers": [
          {
            "contactPoint": {
              "email": "aagt@gmail.com",
              "telephone": "+380 (322) 91-69-30",
              "name": "Андрій Олексюк"
            },
            "identifier": {
              "scheme": "UA-EDR",
              "id": "00137226",
              "uri": "http://www.sc.gov.ua/"
            },
            "name": "ДКП «Книга»",
            "address": {
              "postalCode": "79013",
              "countryName": "Україна",
              "streetAddress": "вул. Островського, 34",
              "region": "м. Львів",
              "locality": "м. Львів"
            }
          }
        ]
      },
      {
        "status": "pending",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal_part1.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/c8b8a27dd53b4a7385e546ac44743e5a?KeyID=bc8341ee&Signature=QZtlXQQORKC2AXMxsAJn1zuUC5mse27y%2FcUH3j6EH1P7cMxLurjDkBgNqeih9DUmJmuzhdjQyYiy7Z6NC%2F1WCg%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.195576+03:00",
            "id": "ef9a9600108941d59e4c75108fa36e91",
            "dateModified": "2017-06-21T16:02:56.195607+03:00"
          },
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "buyerOnly",
            "language": "uk",
            "format": "application/pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/documents/8648068d095345b2b82b01ff63051db5?download=ff3f2c1c9f89435f8f3d434f72d5ae91",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "title": "Proposal_part2.pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.196490+03:00",
            "id": "8648068d095345b2b82b01ff63051db5",
            "dateModified": "2017-06-21T16:02:56.196521+03:00"
          }
        ],
        "tenderers": [
          {
            "contactPoint": {
              "email": "fake@mail.com",
              "telephone": "+380 (322) 12-34-56",
              "name": "Іван Іваненко"
            },
            "identifier": {
              "scheme": "UA-EDR",
              "id": "00137226",
              "uri": "http://www.sc.gov.ua/"
            },
            "name": "«Снігур»",
            "address": {
              "postalCode": "79013",
              "countryName": "Україна",
              "streetAddress": "вул. Островського, 35",
              "region": "м. Львів",
              "locality": "м. Львів"
            }
          }
        ],
        "id": "104ca60911244497bc15d941e239ead6",
        "eligibilityDocuments": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "eligibility_doc.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/138f72f02ac747519001bbe1494086b0?KeyID=bc8341ee&Signature=Hj3mHq3QozlMIvnuKMe6PullY3zx1KDYeiv89HGeT%2Fv3B7Ytw0mVBmpn7%252BBCQtJxxReNabaaLC0bgOcS8770BQ%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.198375+03:00",
            "id": "22a8c144ada441e9804ae888d31d6771",
            "dateModified": "2017-06-21T16:02:56.198407+03:00"
          }
        ]
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "awardCriteria": "lowestCost"
  }
}

Approve first two bids through qualification objects:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/qualifications/5b58d9ff201847d6bf6111e35bd41adc?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 67
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "active",
    "qualified": true,
    "eligible": true
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "eligible": true,
    "qualified": true,
    "bidID": "cbd4381d9f3f402aaa82812b1b9f126e",
    "date": "2017-06-21T16:02:57.009583+03:00",
    "id": "5b58d9ff201847d6bf6111e35bd41adc"
  }
}
PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/qualifications/c01154d0b05648b9b8695e292eea51ad?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 67
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "active",
    "qualified": true,
    "eligible": true
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "eligible": true,
    "qualified": true,
    "bidID": "7d25598434a040129a4513bc053945dc",
    "date": "2017-06-21T16:02:57.207674+03:00",
    "id": "c01154d0b05648b9b8695e292eea51ad"
  }
}

We can also reject bid:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/qualifications/020ccfda1cb2407c96f892d240cea3ca?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 36
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "unsuccessful"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "unsuccessful",
    "eligible": false,
    "qualified": false,
    "bidID": "104ca60911244497bc15d941e239ead6",
    "date": "2017-06-21T16:02:57.408007+03:00",
    "id": "020ccfda1cb2407c96f892d240cea3ca"
  }
}

And check that qualified bids are switched to active:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "status": "active",
      "documents": [
        {
          "hash": "md5:00000000000000000000000000000000",
          "confidentiality": "public",
          "language": "uk",
          "title": "Proposal.pdf",
          "url": "http://public.docs-sandbox.openprocurement.org/get/95cbd14efbb64d99ad7a77cb0ef19e06?KeyID=bc8341ee&Signature=7JOPK3Dpyg0uV0m4a%252BDNbANEnMzNCjvWG8iOXp0zrzoA8ZDyC4VjzrHruiN7NYgsxI3I43Pkj5JcW%252BVy8QkKDw%253D%253D",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2017-06-21T16:02:54.560509+03:00",
          "id": "96e37e4bc6754850afe384d21431d501",
          "dateModified": "2017-06-21T16:02:54.560542+03:00"
        },
        {
          "hash": "md5:00000000000000000000000000000000",
          "confidentiality": "buyerOnly",
          "language": "uk",
          "format": "application/pdf",
          "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
          "confidentialityRationale": "Only our company sells badgers with pink hair.",
          "title": "Proposal_top_secrets.pdf",
          "documentOf": "tender",
          "datePublished": "2017-06-21T16:02:54.681479+03:00",
          "id": "c7a419d009a14636ab27de82a8f30fa7",
          "dateModified": "2017-06-21T16:02:54.681512+03:00"
        }
      ],
      "tenderers": [
        {
          "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": "м. Вінниця"
          }
        }
      ],
      "id": "cbd4381d9f3f402aaa82812b1b9f126e",
      "eligibilityDocuments": [
        {
          "hash": "md5:00000000000000000000000000000000",
          "confidentiality": "public",
          "language": "uk",
          "title": "eligibility_doc.pdf",
          "url": "http://public.docs-sandbox.openprocurement.org/get/8f0e2409a7a242a38c9cfea94dfb810d?KeyID=bc8341ee&Signature=3hfnRU9AfjnJV6GjubM%2Fd3eltUVwrKHVoeS9%252Bb%252BI35q8xY2JTB%2Fgx0SsbJjzWIkr4M3PWrdoyY90EGgyhPVnAw%253D%253D",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2017-06-21T16:02:55.213699+03:00",
          "id": "9ecb30d454a849a180d8c8d572438f07",
          "dateModified": "2017-06-21T16:02:55.213731+03:00"
        }
      ]
    },
    {
      "status": "active",
      "id": "7d25598434a040129a4513bc053945dc",
      "tenderers": [
        {
          "contactPoint": {
            "email": "aagt@gmail.com",
            "telephone": "+380 (322) 91-69-30",
            "name": "Андрій Олексюк"
          },
          "identifier": {
            "scheme": "UA-EDR",
            "id": "00137226",
            "uri": "http://www.sc.gov.ua/"
          },
          "name": "ДКП «Книга»",
          "address": {
            "postalCode": "79013",
            "countryName": "Україна",
            "streetAddress": "вул. Островського, 34",
            "region": "м. Львів",
            "locality": "м. Львів"
          }
        }
      ]
    },
    {
      "status": "unsuccessful",
      "documents": [
        {
          "hash": "md5:00000000000000000000000000000000",
          "confidentiality": "public",
          "language": "uk",
          "title": "Proposal_part1.pdf",
          "url": "http://public.docs-sandbox.openprocurement.org/get/c8b8a27dd53b4a7385e546ac44743e5a?KeyID=bc8341ee&Signature=QZtlXQQORKC2AXMxsAJn1zuUC5mse27y%2FcUH3j6EH1P7cMxLurjDkBgNqeih9DUmJmuzhdjQyYiy7Z6NC%2F1WCg%253D%253D",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2017-06-21T16:02:56.195576+03:00",
          "id": "ef9a9600108941d59e4c75108fa36e91",
          "dateModified": "2017-06-21T16:02:56.195607+03:00"
        },
        {
          "hash": "md5:00000000000000000000000000000000",
          "confidentiality": "buyerOnly",
          "language": "uk",
          "format": "application/pdf",
          "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/documents/8648068d095345b2b82b01ff63051db5?download=ff3f2c1c9f89435f8f3d434f72d5ae91",
          "confidentialityRationale": "Only our company sells badgers with pink hair.",
          "title": "Proposal_part2.pdf",
          "documentOf": "tender",
          "datePublished": "2017-06-21T16:02:56.196490+03:00",
          "id": "8648068d095345b2b82b01ff63051db5",
          "dateModified": "2017-06-21T16:02:56.196521+03:00"
        }
      ],
      "eligibilityDocuments": [
        {
          "hash": "md5:00000000000000000000000000000000",
          "confidentiality": "public",
          "language": "uk",
          "title": "eligibility_doc.pdf",
          "url": "http://public.docs-sandbox.openprocurement.org/get/138f72f02ac747519001bbe1494086b0?KeyID=bc8341ee&Signature=Hj3mHq3QozlMIvnuKMe6PullY3zx1KDYeiv89HGeT%2Fv3B7Ytw0mVBmpn7%252BBCQtJxxReNabaaLC0bgOcS8770BQ%253D%253D",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2017-06-21T16:02:56.198375+03:00",
          "id": "22a8c144ada441e9804ae888d31d6771",
          "dateModified": "2017-06-21T16:02:56.198407+03:00"
        }
      ],
      "selfEligible": true,
      "selfQualified": true,
      "tenderers": [
        {
          "contactPoint": {
            "email": "fake@mail.com",
            "telephone": "+380 (322) 12-34-56",
            "name": "Іван Іваненко"
          },
          "identifier": {
            "scheme": "UA-EDR",
            "id": "00137226",
            "uri": "http://www.sc.gov.ua/"
          },
          "name": "«Снігур»",
          "address": {
            "postalCode": "79013",
            "countryName": "Україна",
            "streetAddress": "вул. Островського, 35",
            "region": "м. Львів",
            "locality": "м. Львів"
          }
        }
      ],
      "id": "104ca60911244497bc15d941e239ead6"
    }
  ]
}

Rejected bid is not shown in bids/ listing.

We can access rejected bid by id:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "unsuccessful",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "Proposal_part1.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/c8b8a27dd53b4a7385e546ac44743e5a?KeyID=bc8341ee&Signature=QZtlXQQORKC2AXMxsAJn1zuUC5mse27y%2FcUH3j6EH1P7cMxLurjDkBgNqeih9DUmJmuzhdjQyYiy7Z6NC%2F1WCg%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:56.195576+03:00",
        "id": "ef9a9600108941d59e4c75108fa36e91",
        "dateModified": "2017-06-21T16:02:56.195607+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "buyerOnly",
        "language": "uk",
        "format": "application/pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/documents/8648068d095345b2b82b01ff63051db5?download=ff3f2c1c9f89435f8f3d434f72d5ae91",
        "confidentialityRationale": "Only our company sells badgers with pink hair.",
        "title": "Proposal_part2.pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:56.196490+03:00",
        "id": "8648068d095345b2b82b01ff63051db5",
        "dateModified": "2017-06-21T16:02:56.196521+03:00"
      }
    ],
    "eligibilityDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "eligibility_doc.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/138f72f02ac747519001bbe1494086b0?KeyID=bc8341ee&Signature=Hj3mHq3QozlMIvnuKMe6PullY3zx1KDYeiv89HGeT%2Fv3B7Ytw0mVBmpn7%252BBCQtJxxReNabaaLC0bgOcS8770BQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:56.198375+03:00",
        "id": "22a8c144ada441e9804ae888d31d6771",
        "dateModified": "2017-06-21T16:02:56.198407+03:00"
      }
    ],
    "selfEligible": true,
    "selfQualified": true,
    "tenderers": [
      {
        "contactPoint": {
          "email": "fake@mail.com",
          "telephone": "+380 (322) 12-34-56",
          "name": "Іван Іваненко"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "«Снігур»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 35",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "id": "104ca60911244497bc15d941e239ead6"
  }
}

Procuring entity approves qualifications by switching to next status:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 60
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "active.pre-qualification.stand-still"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "status": "active.pre-qualification.stand-still",
    "complaintPeriod": {
      "startDate": "2017-05-21T16:02:34.928887+03:00",
      "endDate": "2017-06-17T00:00:00+03:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-05-21T16:02:34.928887+03:00",
      "clarificationsUntil": "2017-06-15T00:00:00+03:00",
      "endDate": "2017-06-11T16:02:34.928887+03:00",
      "invalidationDate": "2017-06-21T16:02:55.658123+03:00"
    },
    "qualifications": [
      {
        "status": "active",
        "eligible": true,
        "qualified": true,
        "bidID": "cbd4381d9f3f402aaa82812b1b9f126e",
        "date": "2017-06-21T16:02:57.009583+03:00",
        "id": "5b58d9ff201847d6bf6111e35bd41adc"
      },
      {
        "status": "active",
        "eligible": true,
        "qualified": true,
        "bidID": "7d25598434a040129a4513bc053945dc",
        "date": "2017-06-21T16:02:57.207674+03:00",
        "id": "c01154d0b05648b9b8695e292eea51ad"
      },
      {
        "status": "unsuccessful",
        "eligible": false,
        "qualified": false,
        "bidID": "104ca60911244497bc15d941e239ead6",
        "date": "2017-06-21T16:02:57.408007+03:00",
        "id": "020ccfda1cb2407c96f892d240cea3ca"
      }
    ],
    "submissionMethod": "electronicAuction",
    "next_check": "2017-06-27T00:00:00+03:00",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    },
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "author": {
          "contactPoint": {
            "email": "soleksuk@gmail.com",
            "telephone": "+380 (432) 21-69-30",
            "name": "Сергій Олексюк"
          },
          "identifier": {
            "scheme": "UA-EDR",
            "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
            "id": "00137226",
            "uri": "http://sch10.edu.vn.ua/"
          },
          "name": "ДКП «Школяр»",
          "address": {
            "postalCode": "21100",
            "countryName": "Україна",
            "streetAddress": "вул. Островського, 33",
            "region": "м. Вінниця",
            "locality": "м. Вінниця"
          }
        },
        "title": "Калорійність",
        "date": "2017-06-21T16:02:53.560813+03:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "dateAnswered": "2017-06-21T16:02:53.647606+03:00",
        "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "aa0cd6b584d543848108968ea24a7891",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.239482+03:00",
        "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
        "dateModified": "2017-06-21T16:02:53.239515+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/41032a252f9e41748bc057860b7d3115?KeyID=bc8341ee&Signature=nKk1Tyr6aRTrg755ymwD99RCyf0igBnH%252Bih9KqNHd2VWlrZ%2FUcgXIMxAMVD2QuHWebecoUUI0AsmmqaThdmdDA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.344518+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/020caf546bfb4c219f590fb2a91dd024?KeyID=bc8341ee&Signature=E9tQGb1285Uuw%2FTH4T%2FciaqLbCO0DE8yT9QLe9ruXboQGHw0UXbjMjxPx%252BFdv%2F5m3NgqnKaMxPUQ0%252BXiq5L2BQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.456233+03:00"
      }
    ],
    "title": "Послуги шкільних їдалень",
    "qualificationPeriod": {
      "startDate": "2017-06-21T16:02:56.721146+03:00",
      "endDate": "2017-06-27T00:00:00+03:00"
    },
    "tenderID": "UA-2017-06-21-000001",
    "dateModified": "2017-06-21T16:02:57.975091+03:00",
    "numberOfBids": 2,
    "tenderPeriod": {
      "startDate": "2017-05-21T16:02:34.928887+03:00",
      "endDate": "2017-06-21T16:02:34.928887+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-06-27T00:00:00+03:00"
    },
    "procurementMethodType": "aboveThresholdEU",
    "date": "2017-06-21T16:02:57.975091+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "bids": [
      {
        "status": "active",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/95cbd14efbb64d99ad7a77cb0ef19e06?KeyID=bc8341ee&Signature=7JOPK3Dpyg0uV0m4a%252BDNbANEnMzNCjvWG8iOXp0zrzoA8ZDyC4VjzrHruiN7NYgsxI3I43Pkj5JcW%252BVy8QkKDw%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:54.560509+03:00",
            "id": "96e37e4bc6754850afe384d21431d501",
            "dateModified": "2017-06-21T16:02:54.560542+03:00"
          },
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "buyerOnly",
            "language": "uk",
            "format": "application/pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "title": "Proposal_top_secrets.pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:54.681479+03:00",
            "id": "c7a419d009a14636ab27de82a8f30fa7",
            "dateModified": "2017-06-21T16:02:54.681512+03:00"
          }
        ],
        "tenderers": [
          {
            "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": "м. Вінниця"
            }
          }
        ],
        "id": "cbd4381d9f3f402aaa82812b1b9f126e",
        "eligibilityDocuments": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "eligibility_doc.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/8f0e2409a7a242a38c9cfea94dfb810d?KeyID=bc8341ee&Signature=3hfnRU9AfjnJV6GjubM%2Fd3eltUVwrKHVoeS9%252Bb%252BI35q8xY2JTB%2Fgx0SsbJjzWIkr4M3PWrdoyY90EGgyhPVnAw%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:55.213699+03:00",
            "id": "9ecb30d454a849a180d8c8d572438f07",
            "dateModified": "2017-06-21T16:02:55.213731+03:00"
          }
        ]
      },
      {
        "status": "active",
        "id": "7d25598434a040129a4513bc053945dc",
        "tenderers": [
          {
            "contactPoint": {
              "email": "aagt@gmail.com",
              "telephone": "+380 (322) 91-69-30",
              "name": "Андрій Олексюк"
            },
            "identifier": {
              "scheme": "UA-EDR",
              "id": "00137226",
              "uri": "http://www.sc.gov.ua/"
            },
            "name": "ДКП «Книга»",
            "address": {
              "postalCode": "79013",
              "countryName": "Україна",
              "streetAddress": "вул. Островського, 34",
              "region": "м. Львів",
              "locality": "м. Львів"
            }
          }
        ]
      },
      {
        "status": "unsuccessful",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal_part1.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/c8b8a27dd53b4a7385e546ac44743e5a?KeyID=bc8341ee&Signature=QZtlXQQORKC2AXMxsAJn1zuUC5mse27y%2FcUH3j6EH1P7cMxLurjDkBgNqeih9DUmJmuzhdjQyYiy7Z6NC%2F1WCg%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.195576+03:00",
            "id": "ef9a9600108941d59e4c75108fa36e91",
            "dateModified": "2017-06-21T16:02:56.195607+03:00"
          },
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "buyerOnly",
            "language": "uk",
            "format": "application/pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/documents/8648068d095345b2b82b01ff63051db5?download=ff3f2c1c9f89435f8f3d434f72d5ae91",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "title": "Proposal_part2.pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.196490+03:00",
            "id": "8648068d095345b2b82b01ff63051db5",
            "dateModified": "2017-06-21T16:02:56.196521+03:00"
          }
        ],
        "eligibilityDocuments": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "eligibility_doc.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/138f72f02ac747519001bbe1494086b0?KeyID=bc8341ee&Signature=Hj3mHq3QozlMIvnuKMe6PullY3zx1KDYeiv89HGeT%2Fv3B7Ytw0mVBmpn7%252BBCQtJxxReNabaaLC0bgOcS8770BQ%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.198375+03:00",
            "id": "22a8c144ada441e9804ae888d31d6771",
            "dateModified": "2017-06-21T16:02:56.198407+03:00"
          }
        ],
        "selfEligible": true,
        "selfQualified": true,
        "tenderers": [
          {
            "contactPoint": {
              "email": "fake@mail.com",
              "telephone": "+380 (322) 12-34-56",
              "name": "Іван Іваненко"
            },
            "identifier": {
              "scheme": "UA-EDR",
              "id": "00137226",
              "uri": "http://www.sc.gov.ua/"
            },
            "name": "«Снігур»",
            "address": {
              "postalCode": "79013",
              "countryName": "Україна",
              "streetAddress": "вул. Островського, 35",
              "region": "м. Львів",
              "locality": "м. Львів"
            }
          }
        ],
        "id": "104ca60911244497bc15d941e239ead6"
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "awardCriteria": "lowestCost"
  }
}

You may notice 10 day stand-still time set in qualificationPeriod.

Auction

After auction is scheduled anybody can visit it to watch. The auction can be reached at Tender.auctionUrl:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "status": "active.auction",
    "complaintPeriod": {
      "startDate": "2017-05-11T16:02:34.928887+03:00",
      "endDate": "2017-06-07T00:00:00+03:00"
    },
    "auctionUrl": "http://auction-sandbox.openprocurement.org/tenders/aa0cd6b584d543848108968ea24a7891",
    "enquiryPeriod": {
      "startDate": "2017-05-11T16:02:34.928887+03:00",
      "clarificationsUntil": "2017-06-07T16:02:34.928887+03:00",
      "endDate": "2017-06-01T16:02:34.928887+03:00",
      "invalidationDate": "2017-06-21T16:02:55.658123+03:00"
    },
    "qualifications": [
      {
        "status": "active",
        "eligible": true,
        "qualified": true,
        "bidID": "cbd4381d9f3f402aaa82812b1b9f126e",
        "date": "2017-06-21T16:02:57.009583+03:00",
        "id": "5b58d9ff201847d6bf6111e35bd41adc"
      },
      {
        "status": "active",
        "eligible": true,
        "qualified": true,
        "bidID": "7d25598434a040129a4513bc053945dc",
        "date": "2017-06-21T16:02:57.207674+03:00",
        "id": "c01154d0b05648b9b8695e292eea51ad"
      },
      {
        "status": "unsuccessful",
        "eligible": false,
        "qualified": false,
        "bidID": "104ca60911244497bc15d941e239ead6",
        "date": "2017-06-21T16:02:57.408007+03:00",
        "id": "020ccfda1cb2407c96f892d240cea3ca"
      }
    ],
    "submissionMethod": "electronicAuction",
    "next_check": "2017-06-21T16:38:34.928887+03:00",
    "procuringEntity": {
      "kind": "general",
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name_en": "Kutsa Svitlana V.",
        "name": "Куца Світлана Валентинівна",
        "availableLanguage": "uk",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName_en": "The institution \"Secondary school I-III levels № 10 Vinnitsa City Council\"",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name_en": "School #10 of Vinnytsia"
    },
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "dateAnswered": "2017-06-21T16:02:53.647606+03:00",
        "title": "Калорійність",
        "date": "2017-06-21T16:02:53.560813+03:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "7d8d9c35a3df43c38e4e860f0c2e5fb8",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "aa0cd6b584d543848108968ea24a7891",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/b64cfec8cd64459ebaec33994a2e7ef1?KeyID=bc8341ee&Signature=JJrhOb2gKyYM4rXqOfugRN4fXRwqF9zhXAPLce4E9zDk%2F7xE3JErNxQ5NyZ42DMF%2FSm9TvVg2Pw8yWoT692YCA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.239482+03:00",
        "id": "6f6ec5b03eba4122a48a5a09e8585aa0",
        "dateModified": "2017-06-21T16:02:53.239515+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/41032a252f9e41748bc057860b7d3115?KeyID=bc8341ee&Signature=nKk1Tyr6aRTrg755ymwD99RCyf0igBnH%252Bih9KqNHd2VWlrZ%2FUcgXIMxAMVD2QuHWebecoUUI0AsmmqaThdmdDA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.344518+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/020caf546bfb4c219f590fb2a91dd024?KeyID=bc8341ee&Signature=E9tQGb1285Uuw%2FTH4T%2FciaqLbCO0DE8yT9QLe9ruXboQGHw0UXbjMjxPx%252BFdv%2F5m3NgqnKaMxPUQ0%252BXiq5L2BQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:53.344451+03:00",
        "id": "03268a7f71cd4fe7a091ef9662a942c5",
        "dateModified": "2017-06-21T16:02:53.456233+03:00"
      }
    ],
    "title": "Послуги шкільних їдалень",
    "qualificationPeriod": {
      "startDate": "2017-06-11T16:02:34.928887+03:00",
      "endDate": "2017-06-21T16:02:34.928887+03:00"
    },
    "tenderID": "UA-2017-06-21-000001",
    "dateModified": "2017-06-21T16:02:58.523406+03:00",
    "numberOfBids": 2,
    "tenderPeriod": {
      "startDate": "2017-05-11T16:02:34.928887+03:00",
      "endDate": "2017-06-11T16:02:34.928887+03:00"
    },
    "auctionPeriod": {
      "startDate": "2017-06-21T16:02:34.928887+03:00",
      "shouldStartAfter": "2017-06-22T00:00:00+03:00"
    },
    "procurementMethodType": "aboveThresholdEU",
    "date": "2017-06-21T16:02:57.975091+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "bids": [
      {
        "status": "active",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/95cbd14efbb64d99ad7a77cb0ef19e06?KeyID=bc8341ee&Signature=7JOPK3Dpyg0uV0m4a%252BDNbANEnMzNCjvWG8iOXp0zrzoA8ZDyC4VjzrHruiN7NYgsxI3I43Pkj5JcW%252BVy8QkKDw%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:54.560509+03:00",
            "id": "96e37e4bc6754850afe384d21431d501",
            "dateModified": "2017-06-21T16:02:54.560542+03:00"
          },
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "buyerOnly",
            "language": "uk",
            "format": "application/pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "title": "Proposal_top_secrets.pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:54.681479+03:00",
            "id": "c7a419d009a14636ab27de82a8f30fa7",
            "dateModified": "2017-06-21T16:02:54.681512+03:00"
          }
        ],
        "tenderers": [
          {
            "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": "м. Вінниця"
            }
          }
        ],
        "id": "cbd4381d9f3f402aaa82812b1b9f126e",
        "eligibilityDocuments": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "eligibility_doc.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/8f0e2409a7a242a38c9cfea94dfb810d?KeyID=bc8341ee&Signature=3hfnRU9AfjnJV6GjubM%2Fd3eltUVwrKHVoeS9%252Bb%252BI35q8xY2JTB%2Fgx0SsbJjzWIkr4M3PWrdoyY90EGgyhPVnAw%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:55.213699+03:00",
            "id": "9ecb30d454a849a180d8c8d572438f07",
            "dateModified": "2017-06-21T16:02:55.213731+03:00"
          }
        ]
      },
      {
        "status": "active",
        "id": "7d25598434a040129a4513bc053945dc",
        "tenderers": [
          {
            "contactPoint": {
              "email": "aagt@gmail.com",
              "telephone": "+380 (322) 91-69-30",
              "name": "Андрій Олексюк"
            },
            "identifier": {
              "scheme": "UA-EDR",
              "id": "00137226",
              "uri": "http://www.sc.gov.ua/"
            },
            "name": "ДКП «Книга»",
            "address": {
              "postalCode": "79013",
              "countryName": "Україна",
              "streetAddress": "вул. Островського, 34",
              "region": "м. Львів",
              "locality": "м. Львів"
            }
          }
        ]
      },
      {
        "status": "unsuccessful",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal_part1.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/c8b8a27dd53b4a7385e546ac44743e5a?KeyID=bc8341ee&Signature=QZtlXQQORKC2AXMxsAJn1zuUC5mse27y%2FcUH3j6EH1P7cMxLurjDkBgNqeih9DUmJmuzhdjQyYiy7Z6NC%2F1WCg%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.195576+03:00",
            "id": "ef9a9600108941d59e4c75108fa36e91",
            "dateModified": "2017-06-21T16:02:56.195607+03:00"
          },
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "buyerOnly",
            "language": "uk",
            "format": "application/pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/104ca60911244497bc15d941e239ead6/documents/8648068d095345b2b82b01ff63051db5?download=ff3f2c1c9f89435f8f3d434f72d5ae91",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "title": "Proposal_part2.pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.196490+03:00",
            "id": "8648068d095345b2b82b01ff63051db5",
            "dateModified": "2017-06-21T16:02:56.196521+03:00"
          }
        ],
        "eligibilityDocuments": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "confidentiality": "public",
            "language": "uk",
            "title": "eligibility_doc.pdf",
            "url": "http://public.docs-sandbox.openprocurement.org/get/138f72f02ac747519001bbe1494086b0?KeyID=bc8341ee&Signature=Hj3mHq3QozlMIvnuKMe6PullY3zx1KDYeiv89HGeT%2Fv3B7Ytw0mVBmpn7%252BBCQtJxxReNabaaLC0bgOcS8770BQ%253D%253D",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-06-21T16:02:56.198375+03:00",
            "id": "22a8c144ada441e9804ae888d31d6771",
            "dateModified": "2017-06-21T16:02:56.198407+03:00"
          }
        ],
        "selfEligible": true,
        "selfQualified": true,
        "tenderers": [
          {
            "contactPoint": {
              "email": "fake@mail.com",
              "telephone": "+380 (322) 12-34-56",
              "name": "Іван Іваненко"
            },
            "identifier": {
              "scheme": "UA-EDR",
              "id": "00137226",
              "uri": "http://www.sc.gov.ua/"
            },
            "name": "«Снігур»",
            "address": {
              "postalCode": "79013",
              "countryName": "Україна",
              "streetAddress": "вул. Островського, 35",
              "region": "м. Львів",
              "locality": "м. Львів"
            }
          }
        ],
        "id": "104ca60911244497bc15d941e239ead6"
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "awardCriteria": "lowestCost"
  }
}

Bidders can find out their participation URLs via their bids:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e?acc_token=3b4a7e83c82941c4b47ecadc2659689f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "Proposal.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/95cbd14efbb64d99ad7a77cb0ef19e06?KeyID=bc8341ee&Signature=7JOPK3Dpyg0uV0m4a%252BDNbANEnMzNCjvWG8iOXp0zrzoA8ZDyC4VjzrHruiN7NYgsxI3I43Pkj5JcW%252BVy8QkKDw%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.560509+03:00",
        "id": "96e37e4bc6754850afe384d21431d501",
        "dateModified": "2017-06-21T16:02:54.560542+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "buyerOnly",
        "language": "uk",
        "format": "application/pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/documents/c7a419d009a14636ab27de82a8f30fa7?download=71b48f67a90548bdb16839cf905f76a5",
        "confidentialityRationale": "Only our company sells badgers with pink hair.",
        "title": "Proposal_top_secrets.pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.681479+03:00",
        "id": "c7a419d009a14636ab27de82a8f30fa7",
        "dateModified": "2017-06-21T16:02:54.681512+03:00"
      }
    ],
    "eligibilityDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "eligibility_doc.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/8f0e2409a7a242a38c9cfea94dfb810d?KeyID=bc8341ee&Signature=3hfnRU9AfjnJV6GjubM%2Fd3eltUVwrKHVoeS9%252Bb%252BI35q8xY2JTB%2Fgx0SsbJjzWIkr4M3PWrdoyY90EGgyhPVnAw%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.213699+03:00",
        "id": "9ecb30d454a849a180d8c8d572438f07",
        "dateModified": "2017-06-21T16:02:55.213731+03:00"
      }
    ],
    "selfEligible": true,
    "id": "cbd4381d9f3f402aaa82812b1b9f126e",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "selfQualified": true,
    "financialDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/cb189d3df94144ed95a6a2d78a3dfc3f?download=528e0702156245c5afedfe59c77ed5b1",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:54.915526+03:00",
        "id": "cb189d3df94144ed95a6a2d78a3dfc3f",
        "dateModified": "2017-06-21T16:02:54.915558+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/financial_documents/7701ca89504343a7b9783840b9b8e9b1?download=d15da55a89f64ce4a1810728dd0ab77d",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.041504+03:00",
        "id": "7701ca89504343a7b9783840b9b8e9b1",
        "dateModified": "2017-06-21T16:02:55.041537+03:00"
      }
    ],
    "tenderers": [
      {
        "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": "м. Вінниця"
        }
      }
    ],
    "date": "2017-06-21T16:02:54.340723+03:00",
    "subcontractingDetails": "ДКП «Орфей», Україна",
    "qualificationDocuments": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "confidentiality": "public",
        "language": "uk",
        "title": "qualification_document.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/cbd4381d9f3f402aaa82812b1b9f126e/qualification_documents/c84046fc5b794d1caada1f3c7d63e8ca?download=835c4b4239d8411591c74254e61969de",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:02:55.355624+03:00",
        "id": "c84046fc5b794d1caada1f3c7d63e8ca",
        "dateModified": "2017-06-21T16:02:55.355657+03:00"
      }
    ],
    "participationUrl": "http://auction-sandbox.openprocurement.org/tenders/aa0cd6b584d543848108968ea24a7891?key_for_bid=cbd4381d9f3f402aaa82812b1b9f126e"
  }
}

See the Bid.participationUrl in the response. Similar, but different, URL can be retrieved for other participants:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/bids/7d25598434a040129a4513bc053945dc?acc_token=93531d18c9e84278acdf290bd72a0f4b HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "selfEligible": true,
    "value": {
      "currency": "UAH",
      "amount": 499.0,
      "valueAddedTaxIncluded": true
    },
    "selfQualified": true,
    "tenderers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "date": "2017-06-21T16:02:56.027580+03:00",
    "id": "7d25598434a040129a4513bc053945dc",
    "participationUrl": "http://auction-sandbox.openprocurement.org/tenders/aa0cd6b584d543848108968ea24a7891?key_for_bid=7d25598434a040129a4513bc053945dc"
  }
}

Confirming qualification

Qualification commission registers its decision via the following call:

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/awards/abb108bc37ee4eccaafded21c379db45?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 67
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "active",
    "qualified": true,
    "eligible": true
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "eligible": true,
    "suppliers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "complaintPeriod": {
      "startDate": "2017-06-21T16:02:59.252777+03:00",
      "endDate": "2017-07-02T00:00:00+03:00"
    },
    "bid_id": "7d25598434a040129a4513bc053945dc",
    "value": {
      "currency": "UAH",
      "amount": 499.0,
      "valueAddedTaxIncluded": true
    },
    "qualified": true,
    "date": "2017-06-21T16:02:59.590381+03:00",
    "id": "abb108bc37ee4eccaafded21c379db45"
  }
}

Setting contract value

By default contract value is set based on the award, but there is a possibility to set custom contract value.

If you want to lower contract value, you can insert new one into the amount field.

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 68
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "contractNumber": "contract#1",
    "value": {
      "amount": 238
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "contractNumber": "contract#1",
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "awardID": "abb108bc37ee4eccaafded21c379db45",
    "id": "624361c4840644079b02fe204e68954e",
    "contractID": "UA-2017-06-21-000001-1"
  }
}

200 OK response was returned. The value was modified successfully.

Setting contract signature date

There is a possibility to set custom contract signature date. You can insert appropriate date into the dateSigned field.

If this date is not set, it will be auto-generated on the date of contract registration.

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 60
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "dateSigned": "2017-06-21T16:03:00.108024+03:00"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "contractNumber": "contract#1",
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2017-06-21T16:03:00.108024+03:00",
    "awardID": "abb108bc37ee4eccaafded21c379db45",
    "id": "624361c4840644079b02fe204e68954e",
    "contractID": "UA-2017-06-21-000001-1"
  }
}

Setting contract validity period

Setting contract validity period is optional, but if it is needed, you can set appropriate startDate and endDate.

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 118
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "period": {
      "startDate": "2017-06-21T16:03:00.373977+03:00",
      "endDate": "2018-06-21T16:03:00.374031+03:00"
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "contractNumber": "contract#1",
    "period": {
      "startDate": "2017-06-21T16:03:00.373977+03:00",
      "endDate": "2018-06-21T16:03:00.374031+03:00"
    },
    "dateSigned": "2017-06-21T16:03:00.108024+03:00",
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "awardID": "abb108bc37ee4eccaafded21c379db45",
    "id": "624361c4840644079b02fe204e68954e",
    "contractID": "UA-2017-06-21-000001-1"
  }
}

Uploading contract documentation

You can upload contract documents for the OpenEU procedure.

Let’s upload contract document:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e/documents?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 206
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy959491275427$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e/documents/7bc42e236ea84913927d9cd5679944c2
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "language": "uk",
    "title": "contract_first_document.doc",
    "url": "http://public.docs-sandbox.openprocurement.org/get/f5d1015321c1495ea25d073a2d33df9a?KeyID=bc8341ee&Signature=Cl5oDS1lY%252BOGEDJAZdF%2F9h18RT5ybwvjhJGHgVFFdHbSrhGCPCxgqOkfwaqeIBiRXONHRdH3YU6YXHSVgMinCQ%253D%253D",
    "format": "application/msword",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:03:00.761087+03:00",
    "id": "7bc42e236ea84913927d9cd5679944c2",
    "dateModified": "2017-06-21T16:03:00.761126+03:00"
  }
}

201 Created response code and Location header confirm that this document was added.

Let’s see the list of contract documents:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "language": "uk",
      "title": "contract_first_document.doc",
      "url": "http://public.docs-sandbox.openprocurement.org/get/f5d1015321c1495ea25d073a2d33df9a?KeyID=bc8341ee&Signature=Cl5oDS1lY%252BOGEDJAZdF%2F9h18RT5ybwvjhJGHgVFFdHbSrhGCPCxgqOkfwaqeIBiRXONHRdH3YU6YXHSVgMinCQ%253D%253D",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-06-21T16:03:00.761087+03:00",
      "id": "7bc42e236ea84913927d9cd5679944c2",
      "dateModified": "2017-06-21T16:03:00.761126+03:00"
    }
  ]
}

We can upload another contract document:

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e/documents?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 207
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy112075862378$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e/documents/65794d1bdf3441909f9bd7542a0a8cdd
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "language": "uk",
    "title": "contract_second_document.doc",
    "url": "http://public.docs-sandbox.openprocurement.org/get/e4946e432db9489fadf8174a32fb4065?KeyID=bc8341ee&Signature=Q6EFF1lDTZljcMckYZUVCPLoSuxJ1%2FHQfz6MisMDqyjaoVXm%252BYVMnaNeOdvTTDGJDAd5hseHoZFD8SHv%2FBB2CA%253D%253D",
    "format": "application/msword",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:03:01.107520+03:00",
    "id": "65794d1bdf3441909f9bd7542a0a8cdd",
    "dateModified": "2017-06-21T16:03:01.107559+03:00"
  }
}

201 Created response code and Location header confirm that the second document was uploaded.

By default, document language is Ukrainian. You can can change it and set another language for the document by assigning appropriate language code to the language field (available options: uk, en, ru). You can also set document’s title (e.g. title_en) and description (e.g. description_en) fields. See Document data structure for details.

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e/documents/65794d1bdf3441909f9bd7542a0a8cdd?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 106
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "title_en": "Title of Document",
    "language": "en",
    "description_en": "Description of Document"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "language": "en",
    "title": "contract_second_document.doc",
    "url": "http://public.docs-sandbox.openprocurement.org/get/e4946e432db9489fadf8174a32fb4065?KeyID=bc8341ee&Signature=Q6EFF1lDTZljcMckYZUVCPLoSuxJ1%2FHQfz6MisMDqyjaoVXm%252BYVMnaNeOdvTTDGJDAd5hseHoZFD8SHv%2FBB2CA%253D%253D",
    "format": "application/msword",
    "title_en": "Title of Document",
    "description_en": "Description of Document",
    "datePublished": "2017-06-21T16:03:01.107520+03:00",
    "documentOf": "tender",
    "id": "65794d1bdf3441909f9bd7542a0a8cdd",
    "dateModified": "2017-06-21T16:03:01.107559+03:00"
  }
}

Let’s see the list of all added contract documents:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "language": "uk",
      "title": "contract_first_document.doc",
      "url": "http://public.docs-sandbox.openprocurement.org/get/f5d1015321c1495ea25d073a2d33df9a?KeyID=bc8341ee&Signature=Cl5oDS1lY%252BOGEDJAZdF%2F9h18RT5ybwvjhJGHgVFFdHbSrhGCPCxgqOkfwaqeIBiRXONHRdH3YU6YXHSVgMinCQ%253D%253D",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-06-21T16:03:00.761087+03:00",
      "id": "7bc42e236ea84913927d9cd5679944c2",
      "dateModified": "2017-06-21T16:03:00.761126+03:00"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "language": "en",
      "title": "contract_second_document.doc",
      "url": "http://public.docs-sandbox.openprocurement.org/get/e4946e432db9489fadf8174a32fb4065?KeyID=bc8341ee&Signature=Q6EFF1lDTZljcMckYZUVCPLoSuxJ1%2FHQfz6MisMDqyjaoVXm%252BYVMnaNeOdvTTDGJDAd5hseHoZFD8SHv%2FBB2CA%253D%253D",
      "format": "application/msword",
      "title_en": "Title of Document",
      "description_en": "Description of Document",
      "datePublished": "2017-06-21T16:03:01.107520+03:00",
      "documentOf": "tender",
      "id": "65794d1bdf3441909f9bd7542a0a8cdd",
      "dateModified": "2017-06-21T16:03:01.107559+03:00"
    }
  ]
}

Let’s view separate contract document:

GET /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/contracts/624361c4840644079b02fe204e68954e?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "uk",
        "title": "contract_first_document.doc",
        "url": "http://public.docs-sandbox.openprocurement.org/get/f5d1015321c1495ea25d073a2d33df9a?KeyID=bc8341ee&Signature=Cl5oDS1lY%252BOGEDJAZdF%2F9h18RT5ybwvjhJGHgVFFdHbSrhGCPCxgqOkfwaqeIBiRXONHRdH3YU6YXHSVgMinCQ%253D%253D",
        "format": "application/msword",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:03:00.761087+03:00",
        "id": "7bc42e236ea84913927d9cd5679944c2",
        "dateModified": "2017-06-21T16:03:00.761126+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "language": "en",
        "title": "contract_second_document.doc",
        "url": "http://public.docs-sandbox.openprocurement.org/get/e4946e432db9489fadf8174a32fb4065?KeyID=bc8341ee&Signature=Q6EFF1lDTZljcMckYZUVCPLoSuxJ1%2FHQfz6MisMDqyjaoVXm%252BYVMnaNeOdvTTDGJDAd5hseHoZFD8SHv%2FBB2CA%253D%253D",
        "format": "application/msword",
        "title_en": "Title of Document",
        "description_en": "Description of Document",
        "datePublished": "2017-06-21T16:03:01.107520+03:00",
        "documentOf": "tender",
        "id": "65794d1bdf3441909f9bd7542a0a8cdd",
        "dateModified": "2017-06-21T16:03:01.107559+03:00"
      }
    ],
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221241+03:00",
          "endDate": "2017-08-10T16:02:36.221295+03:00"
        },
        "id": "bb438534444d47eea7b1bd2fe84e58fb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-07-11T16:02:36.221327+03:00",
          "endDate": "2017-08-10T16:02:36.221351+03:00"
        },
        "id": "962bd32f921c4e8a8335c59a3e6f0fd6",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "contractNumber": "contract#1",
    "period": {
      "startDate": "2017-06-21T16:03:00.373977+03:00",
      "endDate": "2018-06-21T16:03:00.374031+03:00"
    },
    "dateSigned": "2017-06-21T16:03:00.108024+03:00",
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "awardID": "abb108bc37ee4eccaafded21c379db45",
    "id": "624361c4840644079b02fe204e68954e",
    "contractID": "UA-2017-06-21-000001-1"
  }
}

Cancelling tender

Tender creator can cancel tender anytime. The following steps should be applied:

  1. Prepare cancellation request.
  2. Fill it with the protocol describing the cancellation reasons.
  3. Cancel the tender with the prepared reasons.

Only the request that has been activated (3rd step above) has power to cancel tender. I.e. you have to not only prepare cancellation request but to activate it as well.

See Cancellation data structure for details.

Preparing the cancellation request

You should pass reason, status defaults to pending.

id is autogenerated and passed in the Location header of response.

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/cancellations?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 43
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "reason": "cancellation reason"
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/cancellations/bf988addf4df4e6eb02ca56b2777e7b4
{
  "data": {
    "status": "pending",
    "reason": "cancellation reason",
    "reasonType": "cancelled",
    "date": "2017-06-21T16:03:01.807307+03:00",
    "cancellationOf": "tender",
    "id": "bf988addf4df4e6eb02ca56b2777e7b4"
  }
}

There are two possible types of cancellation reason: tender was cancelled or unsuccessful. By default reasonType value is cancelled.

You can change reasonType value to unsuccessful.

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/cancellations/bf988addf4df4e6eb02ca56b2777e7b4?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 40
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "reasonType": "unsuccessful"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "reason": "cancellation reason",
    "reasonType": "unsuccessful",
    "date": "2017-06-21T16:03:02.061468+03:00",
    "cancellationOf": "tender",
    "id": "bf988addf4df4e6eb02ca56b2777e7b4"
  }
}

Filling cancellation with protocol and supplementary documentation

Upload the file contents

POST /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/cancellations/bf988addf4df4e6eb02ca56b2777e7b4/documents?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 186
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy351337902313$
Host: api-sandbox.openprocurement.org

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/cancellations/bf988addf4df4e6eb02ca56b2777e7b4/documents/0be2b91271c84df0882fd199d57ed49e
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "language": "uk",
    "title": "Notice.pdf",
    "url": "http://public.docs-sandbox.openprocurement.org/get/04547692d1fb40f69da31b691a1b60da?KeyID=bc8341ee&Signature=Z5LkD4ihgSihZKNXQyEk%2FgONLBljc6eJuv%2FzTlMiYz4nS9PtzXbfeSnRchvXLjaqHxXhXwInDB9E60KK76SgAA%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:03:02.319933+03:00",
    "id": "0be2b91271c84df0882fd199d57ed49e",
    "dateModified": "2017-06-21T16:03:02.319975+03:00"
  }
}

Change the document description and other properties

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/cancellations/bf988addf4df4e6eb02ca56b2777e7b4/documents/0be2b91271c84df0882fd199d57ed49e?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 48
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "description": "Changed description"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "Changed description",
    "language": "uk",
    "title": "Notice.pdf",
    "url": "http://public.docs-sandbox.openprocurement.org/get/04547692d1fb40f69da31b691a1b60da?KeyID=bc8341ee&Signature=Z5LkD4ihgSihZKNXQyEk%2FgONLBljc6eJuv%2FzTlMiYz4nS9PtzXbfeSnRchvXLjaqHxXhXwInDB9E60KK76SgAA%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:03:02.319933+03:00",
    "id": "0be2b91271c84df0882fd199d57ed49e",
    "dateModified": "2017-06-21T16:03:02.319975+03:00"
  }
}

Upload new version of the document

PUT /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/cancellations/bf988addf4df4e6eb02ca56b2777e7b4/documents/0be2b91271c84df0882fd199d57ed49e?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 191
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy0751232444185$
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "Changed description",
    "language": "uk",
    "title": "Notice-2.pdf",
    "url": "http://public.docs-sandbox.openprocurement.org/get/63a306ecd64444cba25c2b1eed650014?KeyID=bc8341ee&Signature=Ct%2FSs4P9IjYt7Vzw47F2o0NgjM2wtULHW28GpgHJLVw4nfVtKEZRGyaEuB0PjM8sy6uDV7wRk93hytDIOTMjBA%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-21T16:03:02.319933+03:00",
    "id": "0be2b91271c84df0882fd199d57ed49e",
    "dateModified": "2017-06-21T16:03:02.843294+03:00"
  }
}

Activating the request and cancelling tender

PATCH /api/2.3/tenders/aa0cd6b584d543848108968ea24a7891/cancellations/bf988addf4df4e6eb02ca56b2777e7b4?acc_token=ef9c0578dbdd435ab058ee3eef53e1b7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/04547692d1fb40f69da31b691a1b60da?KeyID=bc8341ee&Signature=Z5LkD4ihgSihZKNXQyEk%2FgONLBljc6eJuv%2FzTlMiYz4nS9PtzXbfeSnRchvXLjaqHxXhXwInDB9E60KK76SgAA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:03:02.319933+03:00",
        "id": "0be2b91271c84df0882fd199d57ed49e",
        "dateModified": "2017-06-21T16:03:02.319975+03:00"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "language": "uk",
        "title": "Notice-2.pdf",
        "url": "http://public.docs-sandbox.openprocurement.org/get/63a306ecd64444cba25c2b1eed650014?KeyID=bc8341ee&Signature=Ct%2FSs4P9IjYt7Vzw47F2o0NgjM2wtULHW28GpgHJLVw4nfVtKEZRGyaEuB0PjM8sy6uDV7wRk93hytDIOTMjBA%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-21T16:03:02.319933+03:00",
        "id": "0be2b91271c84df0882fd199d57ed49e",
        "dateModified": "2017-06-21T16:03:02.843294+03:00"
      }
    ],
    "reason": "cancellation reason",
    "reasonType": "unsuccessful",
    "date": "2017-06-21T16:03:03.140600+03:00",
    "cancellationOf": "tender",
    "id": "bf988addf4df4e6eb02ca56b2777e7b4"
  }
}