Tutorial

Exploring basic rules

Let’s try to explore 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 an empty set.

Now let’s attempt to create a 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 a 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: 3753
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "tenderPeriod": {
      "endDate": "2017-03-19T13:35:25.283800+02:00"
    },
    "title": "Послуги шкільних їдалень",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "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-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "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-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "title_en": "Services in school canteens",
    "value": {
      "currency": "UAH",
      "amount": 500
    },
    "procurementMethodType": "aboveThresholdTS",
    "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/69620e7245b048d696d61d9b5061cee2
{
  "access": {
    "transfer": "9ac13fe7de5e4bd38a7afbd27ecf7942",
    "token": "12edb463846948e88706a2df2912ba45"
  },
  "data": {
    "procurementMethod": "open",
    "complaintPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "endDate": "2017-02-16T13:35:28.635482+02:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "clarificationsUntil": "2017-03-18T13:35:25.283800+02:00",
      "endDate": "2017-03-18T13:35:25.283800+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "next_check": "2017-03-19T13:35:25.283800+02: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"
    },
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "title": "Послуги шкільних їдалень",
    "tenderID": "R-UA-2017-02-16-000001",
    "dateModified": "2017-02-16T13:35:27.642301+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "endDate": "2017-03-19T13:35:25.283800+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-03-21T00:00:00+02:00"
    },
    "procurementMethodType": "aboveThresholdTS",
    "date": "2017-02-16T13:35:27.635873+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "awardCriteria": "lowestCost"
  }
}

Success! Now we can see that a new object was created. Response code is 201 and Location response header reports the location of the created object. The body of the 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. Note that ‘complaintPeriod’ in seconds, because complaints have been temporarily disabled. ‘enquiryPeriod’ ends the day before ‘tenderPeriod’ and ‘enquiryPeriod:clarificationUnitl == enquiryPeriod:endDate’

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

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2 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-02-16T13:35:27.635482+02:00",
      "endDate": "2017-02-16T13:35:28.635482+02:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "clarificationsUntil": "2017-03-18T13:35:25.283800+02:00",
      "endDate": "2017-03-18T13:35:25.283800+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "next_check": "2017-03-19T13:35:25.283800+02: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"
    },
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "title": "Послуги шкільних їдалень",
    "tenderID": "R-UA-2017-02-16-000001",
    "dateModified": "2017-02-16T13:35:27.642301+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "endDate": "2017-03-19T13:35:25.283800+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-03-21T00:00:00+02:00"
    },
    "procurementMethodType": "aboveThresholdTS",
    "date": "2017-02-16T13:35:27.635873+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "awardCriteria": "lowestCost"
  }
}

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

Let’s see what listing of tenders reveals to 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 the tender

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

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 75
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "tenderPeriod": {
      "endDate": "2017-03-18T13:35:37.755915+02:00"
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "complaintPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "endDate": "2017-02-16T13:35:28.635482+02:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "clarificationsUntil": "2017-03-17T13:35:37.755915+02:00",
      "endDate": "2017-03-17T13:35:37.755915+02:00",
      "invalidationDate": "2017-02-16T13:35:27.845129+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "next_check": "2017-03-18T13:35:37.755915+02: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"
    },
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "title": "Послуги шкільних їдалень",
    "tenderID": "R-UA-2017-02-16-000001",
    "dateModified": "2017-02-16T13:35:27.849349+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "endDate": "2017-03-18T13:35:37.755915+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-03-20T00:00:00+02:00"
    },
    "procurementMethodType": "aboveThresholdTS",
    "date": "2017-02-16T13:35:27.635873+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "awardCriteria": "lowestCost"
  }
}

We see the added properies have merged with the 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-02-16T13%3A35%3A27.642301%2B02%3A00",
    "uri": "http://api-sandbox.openprocurement.org/api/2.3/tenders?offset=2017-02-16T13%3A35%3A27.642301%2B02%3A00",
    "offset": "2017-02-16T13:35:27.642301+02:00"
  },
  "data": [
    {
      "id": "69620e7245b048d696d61d9b5061cee2",
      "dateModified": "2017-02-16T13:35:27.642301+02:00"
    }
  ]
}

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

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2?acc_token=12edb463846948e88706a2df2912ba45 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-02-09T13:35:28.866533+02:00",
      "endDate": "2017-02-09T13:35:29.866533+02:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-02-09T13:35:28.866533+02:00",
      "clarificationsUntil": "2017-02-18T13:35:28.866533+02:00",
      "endDate": "2017-02-18T13:35:28.866533+02:00",
      "invalidationDate": "2017-02-16T13:35:28.542272+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "next_check": "2017-02-19T13:35:28.866533+02:00",
    "awardCriteria": "lowestCost",
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "dateAnswered": "2017-02-16T13:35:28.749826+02:00",
        "title": "Калорійність",
        "date": "2017-02-16T13:35:28.651782+02:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "9f81c4879d5748c7a601deb37ed57627",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.315761+02:00",
        "id": "6f7cd941e6d64479a88f1404aeb178fb",
        "dateModified": "2017-02-16T13:35:28.315794+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=edd57144ff0c426fb38be60f4bb626d8",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.425114+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=e870c5ad71704344ac8888d1090bedc5",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.541864+02:00"
      }
    ],
    "title": "Послуги шкільних їдалень",
    "tenderID": "R-UA-2017-02-16-000001",
    "dateModified": "2017-02-16T13:35:28.757689+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-02-09T13:35:28.866533+02:00",
      "endDate": "2017-02-19T13:35:28.866533+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-02-21T00:00:00+02:00"
    },
    "procurementMethodType": "aboveThresholdTS",
    "date": "2017-02-16T13:35:27.635873+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "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"
    }
  }
}

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2?acc_token=12edb463846948e88706a2df2912ba45 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 3 days",
      "location": "body",
      "name": "data"
    }
  ]
}

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

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 120
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "tenderPeriod": {
      "endDate": "2017-02-24T13:35:29.081121+02:00"
    },
    "value": {
      "currency": "UAH",
      "amount": 501
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "open",
    "complaintPeriod": {
      "startDate": "2017-02-09T13:35:28.866533+02:00",
      "endDate": "2017-02-09T13:35:29.866533+02:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-02-09T13:35:28.866533+02:00",
      "clarificationsUntil": "2017-02-23T13:35:29.081121+02:00",
      "endDate": "2017-02-23T13:35:29.081121+02:00",
      "invalidationDate": "2017-02-16T13:35:29.213728+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "next_check": "2017-02-24T13:35:29.081121+02:00",
    "awardCriteria": "lowestCost",
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "dateAnswered": "2017-02-16T13:35:28.749826+02:00",
        "title": "Калорійність",
        "date": "2017-02-16T13:35:28.651782+02:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "9f81c4879d5748c7a601deb37ed57627",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.315761+02:00",
        "id": "6f7cd941e6d64479a88f1404aeb178fb",
        "dateModified": "2017-02-16T13:35:28.315794+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=edd57144ff0c426fb38be60f4bb626d8",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.425114+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=e870c5ad71704344ac8888d1090bedc5",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.541864+02:00"
      }
    ],
    "title": "Послуги шкільних їдалень",
    "tenderID": "R-UA-2017-02-16-000001",
    "dateModified": "2017-02-16T13:35:29.218818+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-02-09T13:35:28.866533+02:00",
      "endDate": "2017-02-24T13:35:29.081121+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-02-26T00:00:00+02:00"
    },
    "procurementMethodType": "aboveThresholdTS",
    "date": "2017-02-16T13:35:27.635873+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 501.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"
    }
  }
}

Procuring entity can set bid guarantee:

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2?acc_token=12edb463846948e88706a2df2912ba45 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-02-16T13:35:27.635482+02:00",
      "endDate": "2017-02-16T13:35:28.635482+02:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "clarificationsUntil": "2017-03-17T13:35:37.755915+02:00",
      "endDate": "2017-03-17T13:35:37.755915+02:00",
      "invalidationDate": "2017-02-16T13:35:28.038885+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "next_check": "2017-03-18T13:35:37.755915+02:00",
    "awardCriteria": "lowestCost",
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "title": "Послуги шкільних їдалень",
    "tenderID": "R-UA-2017-02-16-000001",
    "dateModified": "2017-02-16T13:35:28.042587+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-02-16T13:35:27.635482+02:00",
      "endDate": "2017-03-18T13:35:37.755915+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-03-20T00:00:00+02:00"
    },
    "procurementMethodType": "aboveThresholdTS",
    "date": "2017-02-16T13:35:27.635873+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "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/69620e7245b048d696d61d9b5061cee2/documents?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 184
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy17988392723$
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/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb
{
  "data": {
    "language": "uk",
    "title": "Notice.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:28.315761+02:00",
    "id": "6f7cd941e6d64479a88f1404aeb178fb",
    "dateModified": "2017-02-16T13:35:28.315794+02: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/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "language": "uk",
    "title": "Notice.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:28.315761+02:00",
    "previousVersions": [],
    "id": "6f7cd941e6d64479a88f1404aeb178fb",
    "dateModified": "2017-02-16T13:35:28.315794+02:00"
  }
}

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

POST /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 195
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy0571266451556$
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/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a
{
  "data": {
    "language": "uk",
    "title": "AwardCriteria.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=edd57144ff0c426fb38be60f4bb626d8",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:28.425081+02:00",
    "id": "98f7c328d6c248528f1307046045127a",
    "dateModified": "2017-02-16T13:35:28.425114+02:00"
  }
}

And again we can confirm that there have been two documents uploaded.

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "language": "uk",
      "title": "Notice.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-02-16T13:35:28.315761+02:00",
      "id": "6f7cd941e6d64479a88f1404aeb178fb",
      "dateModified": "2017-02-16T13:35:28.315794+02:00"
    },
    {
      "language": "uk",
      "title": "AwardCriteria.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=edd57144ff0c426fb38be60f4bb626d8",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-02-16T13:35:28.425081+02:00",
      "id": "98f7c328d6c248528f1307046045127a",
      "dateModified": "2017-02-16T13:35:28.425114+02:00"
    }
  ]
}

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

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

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

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "language": "uk",
      "title": "Notice.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-02-16T13:35:28.315761+02:00",
      "id": "6f7cd941e6d64479a88f1404aeb178fb",
      "dateModified": "2017-02-16T13:35:28.315794+02:00"
    },
    {
      "language": "uk",
      "title": "AwardCriteria-2.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=e870c5ad71704344ac8888d1090bedc5",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-02-16T13:35:28.425081+02:00",
      "id": "98f7c328d6c248528f1307046045127a",
      "dateModified": "2017-02-16T13:35:28.541864+02: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/69620e7245b048d696d61d9b5061cee2/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/69620e7245b048d696d61d9b5061cee2/questions/9f81c4879d5748c7a601deb37ed57627
{
  "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-02-16T13:35:28.651782+02:00",
    "id": "9f81c4879d5748c7a601deb37ed57627",
    "questionOf": "tender"
  }
}

Procuring entity can answer them:

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/questions/9f81c4879d5748c7a601deb37ed57627?acc_token=12edb463846948e88706a2df2912ba45 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-02-16T13:35:28.749826+02:00",
    "title": "Калорійність",
    "date": "2017-02-16T13:35:28.651782+02:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "9f81c4879d5748c7a601deb37ed57627",
    "questionOf": "tender"
  }
}

One can retrieve either questions list:

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/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-02-16T13:35:28.749826+02:00",
      "title": "Калорійність",
      "date": "2017-02-16T13:35:28.651782+02:00",
      "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
      "id": "9f81c4879d5748c7a601deb37ed57627",
      "questionOf": "tender"
    }
  ]
}

or an individual answer:

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/questions/9f81c4879d5748c7a601deb37ed57627 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-02-16T13:35:28.749826+02:00",
    "title": "Калорійність",
    "date": "2017-02-16T13:35:28.651782+02:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "9f81c4879d5748c7a601deb37ed57627",
    "questionOf": "tender"
  }
}

Enquiries can be made only during Tender.enqueryPeriod, which ends a day before t``enderPeriod:endDate``

POST /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/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 a bid

Tender status active.tendering allows registration of bids.

Bidder can register a bid with draft status:

POST /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 757
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "status": "draft",
    "value": {
      "amount": 500
    },
    "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": "м. Вінниця"
        }
      }
    ]
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3
{
  "access": {
    "transfer": "91c48bb200c3488a9952d47b23dbde06",
    "token": "293f6dd5c1d94f3eafaa4320ed3a5494"
  },
  "data": {
    "date": "2017-02-16T13:35:29.316768+02:00",
    "status": "draft",
    "id": "64c6b855beba4212a4e8434cec225ff3",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": 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": "м. Вінниця"
        }
      }
    ]
  }
}

and approve to pending status:

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 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": {
    "date": "2017-02-16T13:35:29.316768+02:00",
    "status": "pending",
    "id": "64c6b855beba4212a4e8434cec225ff3",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": 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": "м. Вінниця"
        }
      }
    ]
  }
}

Proposal uploading

Then bidder should upload proposal technical document(s):

POST /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 188
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy843847729095$
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/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/d647bef6eee54a75adfaf07f87b7fbb1
{
  "data": {
    "confidentiality": "public",
    "language": "uk",
    "title": "Proposal.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/d647bef6eee54a75adfaf07f87b7fbb1?download=9d8c61714bf04567849c2ca561ee1f0a",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:29.551953+02:00",
    "id": "d647bef6eee54a75adfaf07f87b7fbb1",
    "dateModified": "2017-02-16T13:35:29.551986+02: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 a 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/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 200
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy443792027176$
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/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd
{
  "data": {
    "confidentiality": "public",
    "language": "uk",
    "title": "Proposal_top_secrets.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?download=01fc3d85ef00483aa62bba9d86ce8dc9",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:29.672007+02:00",
    "id": "6a9751a40b364da4aab33472bfc110cd",
    "dateModified": "2017-02-16T13:35:29.672039+02: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/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 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": {
    "confidentiality": "buyerOnly",
    "language": "uk",
    "title": "Proposal_top_secrets.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?download=01fc3d85ef00483aa62bba9d86ce8dc9",
    "confidentialityRationale": "Only our company sells badgers with pink hair.",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:29.672007+02:00",
    "id": "6a9751a40b364da4aab33472bfc110cd",
    "dateModified": "2017-02-16T13:35:29.672039+02: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 documents uploading

Financial documents are 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/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 191
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy144874832972$
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/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents/4bfbbf9721df4b6ebecb3ae13b7bac65
{
  "data": {
    "confidentiality": "public",
    "language": "uk",
    "title": "financial_doc.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents/4bfbbf9721df4b6ebecb3ae13b7bac65?download=4f265373001540be9433effcd0bb50ce",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:29.921324+02:00",
    "id": "4bfbbf9721df4b6ebecb3ae13b7bac65",
    "dateModified": "2017-02-16T13:35:29.921356+02:00"
  }
}

Get financial documents:

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "confidentiality": "public",
      "language": "uk",
      "title": "financial_doc.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents/4bfbbf9721df4b6ebecb3ae13b7bac65?download=4f265373001540be9433effcd0bb50ce",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-02-16T13:35:29.921324+02:00",
      "id": "4bfbbf9721df4b6ebecb3ae13b7bac65",
      "dateModified": "2017-02-16T13:35:29.921356+02:00"
    },
    {
      "confidentiality": "public",
      "language": "uk",
      "title": "financial_doc2.pdf",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents/ef1c6646564c4fdd98c141780f3f321a?download=36372a4dd51d441396acb0725da09e9a",
      "format": "application/pdf",
      "documentOf": "tender",
      "datePublished": "2017-02-16T13:35:30.058707+02:00",
      "id": "ef1c6646564c4fdd98c141780f3f321a",
      "dateModified": "2017-02-16T13:35:30.058747+02:00"
    }
  ]
}

Financial documents will be publicly accessible after the auction.

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/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 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": "64c6b855beba4212a4e8434cec225ff3"
  }
}

Bid confirmation

Bidder should confirm bid proposal:

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 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": [
      {
        "confidentiality": "public",
        "language": "uk",
        "title": "Proposal.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/d647bef6eee54a75adfaf07f87b7fbb1?download=9d8c61714bf04567849c2ca561ee1f0a",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:29.551953+02:00",
        "id": "d647bef6eee54a75adfaf07f87b7fbb1",
        "dateModified": "2017-02-16T13:35:29.551986+02:00"
      },
      {
        "confidentiality": "buyerOnly",
        "language": "uk",
        "title": "Proposal_top_secrets.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?download=01fc3d85ef00483aa62bba9d86ce8dc9",
        "confidentialityRationale": "Only our company sells badgers with pink hair.",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:29.672007+02:00",
        "id": "6a9751a40b364da4aab33472bfc110cd",
        "dateModified": "2017-02-16T13:35:29.672039+02:00"
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "financialDocuments": [
      {
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents/4bfbbf9721df4b6ebecb3ae13b7bac65?download=4f265373001540be9433effcd0bb50ce",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:29.921324+02:00",
        "id": "4bfbbf9721df4b6ebecb3ae13b7bac65",
        "dateModified": "2017-02-16T13:35:29.921356+02:00"
      },
      {
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents/ef1c6646564c4fdd98c141780f3f321a?download=36372a4dd51d441396acb0725da09e9a",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:30.058707+02:00",
        "id": "ef1c6646564c4fdd98c141780f3f321a",
        "dateModified": "2017-02-16T13:35:30.058747+02: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-02-16T13:35:29.316768+02:00",
    "id": "64c6b855beba4212a4e8434cec225ff3"
  }
}

Open Two Stage 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/69620e7245b048d696d61d9b5061cee2/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 704
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "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/69620e7245b048d696d61d9b5061cee2/bids/35e7d4ecdfe2489989257ea9acd43787
{
  "access": {
    "transfer": "a0deda6b104f4b34b17c18708394d7c8",
    "token": "1509d32e49c14586b7c50d272e9ff1f5"
  },
  "data": {
    "date": "2017-02-16T13:35:30.730403+02:00",
    "status": "pending",
    "id": "35e7d4ecdfe2489989257ea9acd43787",
    "value": {
      "currency": "UAH",
      "amount": 499.0,
      "valueAddedTaxIncluded": 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": "м. Львів"
        }
      }
    ]
  }
}

Register one more bid:

POST /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 682
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "value": {
      "amount": 5
    },
    "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": "м. Львів"
        }
      }
    ]
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/631df1f78a114db8afb0c09592b20178
{
  "access": {
    "transfer": "ca64801bb2fe48fbacc58040da6f83c3",
    "token": "59b5e44c1f1547ddb85cbee7817e6d50"
  },
  "data": {
    "date": "2017-02-16T13:35:30.888215+02:00",
    "status": "pending",
    "id": "631df1f78a114db8afb0c09592b20178",
    "value": {
      "currency": "UAH",
      "amount": 5.0,
      "valueAddedTaxIncluded": 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": "м. Львів"
        }
      }
    ]
  }
}

Bid Qualification

Open Two Stage procedure requires bid qualification.

Let’s list qualifications:

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2 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-02-10T13:35:25.282008+02:00",
      "endDate": "2017-02-10T13:35:26.282008+02:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-02-10T13:35:25.282008+02:00",
      "clarificationsUntil": "2017-02-15T13:35:25.282008+02:00",
      "endDate": "2017-02-15T13:35:25.282008+02:00",
      "invalidationDate": "2017-02-16T13:35:30.385476+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "awardCriteria": "lowestCost",
    "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-02-16T13:35:28.651782+02:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "dateAnswered": "2017-02-16T13:35:28.749826+02:00",
        "id": "9f81c4879d5748c7a601deb37ed57627",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.315761+02:00",
        "id": "6f7cd941e6d64479a88f1404aeb178fb",
        "dateModified": "2017-02-16T13:35:28.315794+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=edd57144ff0c426fb38be60f4bb626d8",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.425114+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=e870c5ad71704344ac8888d1090bedc5",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.541864+02:00"
      }
    ],
    "transfer_token": "9de1e547abcf27c2f7d08a8195ad010b5df63d057f3fd5edad2f951d40f33d060bed3c77d62ccedda2439665cd1d7a2b46a33f0e9c6d5295d691f598f6041d3d",
    "title": "Послуги шкільних їдалень",
    "qualificationPeriod": {
      "startDate": "2017-02-16T13:35:31.289640+02:00"
    },
    "tenderID": "R-UA-2017-02-16-000001",
    "dateModified": "2017-02-16T13:35:31.299523+02:00",
    "numberOfBids": 3,
    "tenderPeriod": {
      "startDate": "2017-02-10T13:35:25.282008+02:00",
      "endDate": "2017-02-16T13:35:25.282008+02:00"
    },
    "procurementMethodType": "aboveThresholdTS",
    "qualifications": [
      {
        "status": "pending",
        "date": "2017-02-16T13:35:31.290464+02:00",
        "id": "5aaf7966f70e44a08abcec2a899a1745",
        "bidID": "64c6b855beba4212a4e8434cec225ff3"
      },
      {
        "status": "pending",
        "date": "2017-02-16T13:35:31.290794+02:00",
        "id": "32cf035dd8ca41b2993e7813bc3939ad",
        "bidID": "35e7d4ecdfe2489989257ea9acd43787"
      },
      {
        "status": "pending",
        "date": "2017-02-16T13:35:31.291121+02:00",
        "id": "b7c47c7e87554904824e1868c75fdb1a",
        "bidID": "631df1f78a114db8afb0c09592b20178"
      }
    ],
    "date": "2017-02-16T13:35:31.299523+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "bids": [
      {
        "status": "pending",
        "documents": [
          {
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal.pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/d647bef6eee54a75adfaf07f87b7fbb1?download=9d8c61714bf04567849c2ca561ee1f0a",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-02-16T13:35:29.551953+02:00",
            "id": "d647bef6eee54a75adfaf07f87b7fbb1",
            "dateModified": "2017-02-16T13:35:29.551986+02:00"
          },
          {
            "confidentiality": "buyerOnly",
            "language": "uk",
            "title": "Proposal_top_secrets.pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?download=01fc3d85ef00483aa62bba9d86ce8dc9",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-02-16T13:35:29.672007+02:00",
            "id": "6a9751a40b364da4aab33472bfc110cd",
            "dateModified": "2017-02-16T13:35:29.672039+02:00"
          }
        ],
        "id": "64c6b855beba4212a4e8434cec225ff3",
        "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": "м. Вінниця"
            }
          }
        ]
      },
      {
        "status": "pending",
        "id": "35e7d4ecdfe2489989257ea9acd43787",
        "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",
        "id": "631df1f78a114db8afb0c09592b20178",
        "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": "м. Львів"
            }
          }
        ]
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 501.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"
    }
  }
}

Approve first two bids through qualification objects:

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/qualifications/5aaf7966f70e44a08abcec2a899a1745?acc_token=12edb463846948e88706a2df2912ba45 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",
    "date": "2017-02-16T13:35:31.534466+02:00",
    "id": "5aaf7966f70e44a08abcec2a899a1745",
    "bidID": "64c6b855beba4212a4e8434cec225ff3"
  }
}
PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/qualifications/32cf035dd8ca41b2993e7813bc3939ad?acc_token=12edb463846948e88706a2df2912ba45 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",
    "date": "2017-02-16T13:35:31.695774+02:00",
    "id": "32cf035dd8ca41b2993e7813bc3939ad",
    "bidID": "35e7d4ecdfe2489989257ea9acd43787"
  }
}

We can also reject bid:

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/qualifications/b7c47c7e87554904824e1868c75fdb1a?acc_token=12edb463846948e88706a2df2912ba45 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",
    "date": "2017-02-16T13:35:31.857840+02:00",
    "id": "b7c47c7e87554904824e1868c75fdb1a",
    "bidID": "631df1f78a114db8afb0c09592b20178"
  }
}

And check that qualified bids are switched to active:

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids?acc_token=12edb463846948e88706a2df2912ba45 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": [
        {
          "confidentiality": "public",
          "language": "uk",
          "title": "Proposal.pdf",
          "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/d647bef6eee54a75adfaf07f87b7fbb1?download=9d8c61714bf04567849c2ca561ee1f0a",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2017-02-16T13:35:29.551953+02:00",
          "id": "d647bef6eee54a75adfaf07f87b7fbb1",
          "dateModified": "2017-02-16T13:35:29.551986+02:00"
        },
        {
          "confidentiality": "buyerOnly",
          "language": "uk",
          "title": "Proposal_top_secrets.pdf",
          "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?download=01fc3d85ef00483aa62bba9d86ce8dc9",
          "confidentialityRationale": "Only our company sells badgers with pink hair.",
          "format": "application/pdf",
          "documentOf": "tender",
          "datePublished": "2017-02-16T13:35:29.672007+02:00",
          "id": "6a9751a40b364da4aab33472bfc110cd",
          "dateModified": "2017-02-16T13:35:29.672039+02:00"
        }
      ],
      "id": "64c6b855beba4212a4e8434cec225ff3",
      "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": "м. Вінниця"
          }
        }
      ]
    },
    {
      "status": "active",
      "id": "35e7d4ecdfe2489989257ea9acd43787",
      "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",
      "id": "631df1f78a114db8afb0c09592b20178",
      "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": "м. Львів"
          }
        }
      ]
    }
  ]
}

Rejected bid is not shown in bids/ listing.

We can access rejected bid by id:

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/631df1f78a114db8afb0c09592b20178?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "unsuccessful",
    "id": "631df1f78a114db8afb0c09592b20178",
    "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": "м. Львів"
        }
      }
    ]
  }
}

Procuring entity approves qualifications by switching to next status:

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2?acc_token=12edb463846948e88706a2df2912ba45 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-02-10T13:35:25.282008+02:00",
      "endDate": "2017-02-10T13:35:26.282008+02:00"
    },
    "enquiryPeriod": {
      "startDate": "2017-02-10T13:35:25.282008+02:00",
      "clarificationsUntil": "2017-02-15T13:35:25.282008+02:00",
      "endDate": "2017-02-15T13:35:25.282008+02:00",
      "invalidationDate": "2017-02-16T13:35:30.385476+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "next_check": "2017-02-17T00:00:01+02:00",
    "awardCriteria": "lowestCost",
    "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-02-16T13:35:28.651782+02:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "dateAnswered": "2017-02-16T13:35:28.749826+02:00",
        "id": "9f81c4879d5748c7a601deb37ed57627",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.315761+02:00",
        "id": "6f7cd941e6d64479a88f1404aeb178fb",
        "dateModified": "2017-02-16T13:35:28.315794+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=edd57144ff0c426fb38be60f4bb626d8",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.425114+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=e870c5ad71704344ac8888d1090bedc5",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.541864+02:00"
      }
    ],
    "transfer_token": "9de1e547abcf27c2f7d08a8195ad010b5df63d057f3fd5edad2f951d40f33d060bed3c77d62ccedda2439665cd1d7a2b46a33f0e9c6d5295d691f598f6041d3d",
    "title": "Послуги шкільних їдалень",
    "qualificationPeriod": {
      "startDate": "2017-02-16T13:35:31.289640+02:00",
      "endDate": "2017-02-17T00:00:01+02:00"
    },
    "tenderID": "R-UA-2017-02-16-000001",
    "dateModified": "2017-02-16T13:35:32.315922+02:00",
    "numberOfBids": 2,
    "tenderPeriod": {
      "startDate": "2017-02-10T13:35:25.282008+02:00",
      "endDate": "2017-02-16T13:35:25.282008+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-02-18T00:00:00+02:00"
    },
    "qualifications": [
      {
        "status": "active",
        "date": "2017-02-16T13:35:31.534466+02:00",
        "id": "5aaf7966f70e44a08abcec2a899a1745",
        "bidID": "64c6b855beba4212a4e8434cec225ff3"
      },
      {
        "status": "active",
        "date": "2017-02-16T13:35:31.695774+02:00",
        "id": "32cf035dd8ca41b2993e7813bc3939ad",
        "bidID": "35e7d4ecdfe2489989257ea9acd43787"
      },
      {
        "status": "unsuccessful",
        "date": "2017-02-16T13:35:31.857840+02:00",
        "id": "b7c47c7e87554904824e1868c75fdb1a",
        "bidID": "631df1f78a114db8afb0c09592b20178"
      }
    ],
    "date": "2017-02-16T13:35:32.315922+02:00",
    "procurementMethodType": "aboveThresholdTS",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "bids": [
      {
        "status": "active",
        "documents": [
          {
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal.pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/d647bef6eee54a75adfaf07f87b7fbb1?download=9d8c61714bf04567849c2ca561ee1f0a",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-02-16T13:35:29.551953+02:00",
            "id": "d647bef6eee54a75adfaf07f87b7fbb1",
            "dateModified": "2017-02-16T13:35:29.551986+02:00"
          },
          {
            "confidentiality": "buyerOnly",
            "language": "uk",
            "title": "Proposal_top_secrets.pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?download=01fc3d85ef00483aa62bba9d86ce8dc9",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-02-16T13:35:29.672007+02:00",
            "id": "6a9751a40b364da4aab33472bfc110cd",
            "dateModified": "2017-02-16T13:35:29.672039+02:00"
          }
        ],
        "id": "64c6b855beba4212a4e8434cec225ff3",
        "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": "м. Вінниця"
            }
          }
        ]
      },
      {
        "status": "active",
        "id": "35e7d4ecdfe2489989257ea9acd43787",
        "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",
        "id": "631df1f78a114db8afb0c09592b20178",
        "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": "м. Львів"
            }
          }
        ]
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 501.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"
    }
  }
}

If qualification has been cancelled, new Qualification object is generated for this participant.

Auction

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

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2 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-02-10T13:35:24.282008+02:00",
      "endDate": "2017-02-10T13:35:25.282008+02:00"
    },
    "auctionUrl": "http://auction-sandbox.openprocurement.org/tenders/69620e7245b048d696d61d9b5061cee2",
    "enquiryPeriod": {
      "startDate": "2017-02-10T13:35:24.282008+02:00",
      "clarificationsUntil": "2017-02-15T13:35:24.282008+02:00",
      "endDate": "2017-02-15T13:35:24.282008+02:00",
      "invalidationDate": "2017-02-16T13:35:30.385476+02:00"
    },
    "submissionMethod": "electronicAuction",
    "operator": "ua",
    "next_check": "2017-02-16T14:11:25.282008+02:00",
    "awardCriteria": "lowestCost",
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "dateAnswered": "2017-02-16T13:35:28.749826+02:00",
        "title": "Калорійність",
        "date": "2017-02-16T13:35:28.651782+02:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "9f81c4879d5748c7a601deb37ed57627",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "title_en": "Services in school canteens",
    "id": "69620e7245b048d696d61d9b5061cee2",
    "guarantee": {
      "currency": "USD",
      "amount": 8.0
    },
    "documents": [
      {
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/6f7cd941e6d64479a88f1404aeb178fb?download=e62c67795ed640ff83fb024d688fca9b",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.315761+02:00",
        "id": "6f7cd941e6d64479a88f1404aeb178fb",
        "dateModified": "2017-02-16T13:35:28.315794+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=edd57144ff0c426fb38be60f4bb626d8",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.425114+02:00"
      },
      {
        "language": "uk",
        "title": "AwardCriteria-2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/documents/98f7c328d6c248528f1307046045127a?download=e870c5ad71704344ac8888d1090bedc5",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:28.425081+02:00",
        "id": "98f7c328d6c248528f1307046045127a",
        "dateModified": "2017-02-16T13:35:28.541864+02:00"
      }
    ],
    "transfer_token": "9de1e547abcf27c2f7d08a8195ad010b5df63d057f3fd5edad2f951d40f33d060bed3c77d62ccedda2439665cd1d7a2b46a33f0e9c6d5295d691f598f6041d3d",
    "title": "Послуги шкільних їдалень",
    "qualificationPeriod": {
      "startDate": "2017-02-16T13:35:24.282008+02:00",
      "endDate": "2017-02-16T13:35:25.282008+02:00"
    },
    "tenderID": "R-UA-2017-02-16-000001",
    "auctionPeriod": {
      "startDate": "2017-02-16T13:35:25.282008+02:00",
      "shouldStartAfter": "2017-02-17T00:00:00+02:00"
    },
    "dateModified": "2017-02-16T13:35:32.780774+02:00",
    "numberOfBids": 2,
    "tenderPeriod": {
      "startDate": "2017-02-10T13:35:24.282008+02:00",
      "endDate": "2017-02-16T13:35:24.282008+02:00"
    },
    "qualifications": [
      {
        "status": "active",
        "date": "2017-02-16T13:35:31.534466+02:00",
        "id": "5aaf7966f70e44a08abcec2a899a1745",
        "bidID": "64c6b855beba4212a4e8434cec225ff3"
      },
      {
        "status": "active",
        "date": "2017-02-16T13:35:31.695774+02:00",
        "id": "32cf035dd8ca41b2993e7813bc3939ad",
        "bidID": "35e7d4ecdfe2489989257ea9acd43787"
      },
      {
        "status": "unsuccessful",
        "date": "2017-02-16T13:35:31.857840+02:00",
        "id": "b7c47c7e87554904824e1868c75fdb1a",
        "bidID": "631df1f78a114db8afb0c09592b20178"
      }
    ],
    "procurementMethodType": "aboveThresholdTS",
    "date": "2017-02-16T13:35:32.315922+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      }
    ],
    "bids": [
      {
        "status": "active",
        "documents": [
          {
            "confidentiality": "public",
            "language": "uk",
            "title": "Proposal.pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/d647bef6eee54a75adfaf07f87b7fbb1?download=9d8c61714bf04567849c2ca561ee1f0a",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-02-16T13:35:29.551953+02:00",
            "id": "d647bef6eee54a75adfaf07f87b7fbb1",
            "dateModified": "2017-02-16T13:35:29.551986+02:00"
          },
          {
            "confidentiality": "buyerOnly",
            "language": "uk",
            "title": "Proposal_top_secrets.pdf",
            "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?download=01fc3d85ef00483aa62bba9d86ce8dc9",
            "confidentialityRationale": "Only our company sells badgers with pink hair.",
            "format": "application/pdf",
            "documentOf": "tender",
            "datePublished": "2017-02-16T13:35:29.672007+02:00",
            "id": "6a9751a40b364da4aab33472bfc110cd",
            "dateModified": "2017-02-16T13:35:29.672039+02:00"
          }
        ],
        "id": "64c6b855beba4212a4e8434cec225ff3",
        "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": "м. Вінниця"
            }
          }
        ]
      },
      {
        "status": "active",
        "id": "35e7d4ecdfe2489989257ea9acd43787",
        "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",
        "id": "631df1f78a114db8afb0c09592b20178",
        "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": "м. Львів"
            }
          }
        ]
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 501.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"
    }
  }
}

Bidders can find out their participation URLs via their bids:

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3?acc_token=293f6dd5c1d94f3eafaa4320ed3a5494 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": [
      {
        "confidentiality": "public",
        "language": "uk",
        "title": "Proposal.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/d647bef6eee54a75adfaf07f87b7fbb1?download=9d8c61714bf04567849c2ca561ee1f0a",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:29.551953+02:00",
        "id": "d647bef6eee54a75adfaf07f87b7fbb1",
        "dateModified": "2017-02-16T13:35:29.551986+02:00"
      },
      {
        "confidentiality": "buyerOnly",
        "language": "uk",
        "title": "Proposal_top_secrets.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/documents/6a9751a40b364da4aab33472bfc110cd?download=01fc3d85ef00483aa62bba9d86ce8dc9",
        "confidentialityRationale": "Only our company sells badgers with pink hair.",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:29.672007+02:00",
        "id": "6a9751a40b364da4aab33472bfc110cd",
        "dateModified": "2017-02-16T13:35:29.672039+02:00"
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "financialDocuments": [
      {
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents/4bfbbf9721df4b6ebecb3ae13b7bac65?download=4f265373001540be9433effcd0bb50ce",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:29.921324+02:00",
        "id": "4bfbbf9721df4b6ebecb3ae13b7bac65",
        "dateModified": "2017-02-16T13:35:29.921356+02:00"
      },
      {
        "confidentiality": "public",
        "language": "uk",
        "title": "financial_doc2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/64c6b855beba4212a4e8434cec225ff3/financial_documents/ef1c6646564c4fdd98c141780f3f321a?download=36372a4dd51d441396acb0725da09e9a",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:30.058707+02:00",
        "id": "ef1c6646564c4fdd98c141780f3f321a",
        "dateModified": "2017-02-16T13:35:30.058747+02: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-02-16T13:35:29.316768+02:00",
    "id": "64c6b855beba4212a4e8434cec225ff3",
    "participationUrl": "http://auction-sandbox.openprocurement.org/tenders/69620e7245b048d696d61d9b5061cee2?key_for_bid=64c6b855beba4212a4e8434cec225ff3"
  }
}

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

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/bids/35e7d4ecdfe2489989257ea9acd43787?acc_token=1509d32e49c14586b7c50d272e9ff1f5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "value": {
      "currency": "UAH",
      "amount": 499.0,
      "valueAddedTaxIncluded": 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-02-16T13:35:30.730403+02:00",
    "id": "35e7d4ecdfe2489989257ea9acd43787",
    "participationUrl": "http://auction-sandbox.openprocurement.org/tenders/69620e7245b048d696d61d9b5061cee2?key_for_bid=35e7d4ecdfe2489989257ea9acd43787"
  }
}

Confirming qualification

Qualification commission registers its decision via the following call:

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/awards/01d610681d4d4b2a8be30b759369751b?acc_token=12edb463846948e88706a2df2912ba45 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",
    "complaintPeriod": {
      "startDate": "2017-02-16T13:35:33.357253+02:00",
      "endDate": "2017-02-16T13:35:37.357253+02:00"
    },
    "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": "м. Львів"
        }
      }
    ],
    "bid_id": "35e7d4ecdfe2489989257ea9acd43787",
    "value": {
      "currency": "UAH",
      "amount": 499.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-02-16T13:35:33.640513+02:00",
    "id": "01d610681d4d4b2a8be30b759369751b"
  }
}

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/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719?acc_token=12edb463846948e88706a2df2912ba45 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": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "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": "01d610681d4d4b2a8be30b759369751b",
    "id": "30ed55ef482e4cbcaa880765c712e719",
    "contractID": "R-UA-2017-02-16-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/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 60
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "dateSigned": "2017-02-16T13:35:34.122861+02:00"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "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",
    "dateSigned": "2017-02-16T13:35:34.122861+02:00",
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "awardID": "01d610681d4d4b2a8be30b759369751b",
    "id": "30ed55ef482e4cbcaa880765c712e719",
    "contractID": "R-UA-2017-02-16-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/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 118
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
  "data": {
    "period": {
      "startDate": "2017-02-16T13:35:34.376977+02:00",
      "endDate": "2018-02-16T13:35:34.377039+02:00"
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "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-02-16T13:35:34.376977+02:00",
      "endDate": "2018-02-16T13:35:34.377039+02:00"
    },
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2017-02-16T13:35:34.122861+02:00",
    "awardID": "01d610681d4d4b2a8be30b759369751b",
    "id": "30ed55ef482e4cbcaa880765c712e719",
    "contractID": "R-UA-2017-02-16-000001-1"
  }
}

Uploading contract documentation

You can upload contract documents for the Open Two Stage procedure.

Let’s upload contract document:

POST /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 206
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy510097326604$
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/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/a3af76c9bfe44f5eab2a1b0398e1b39f
{
  "data": {
    "language": "uk",
    "title": "contract_first_document.doc",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/a3af76c9bfe44f5eab2a1b0398e1b39f?download=8b238039bac14ef4a87cf493f2370feb",
    "format": "application/msword",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:34.876363+02:00",
    "id": "a3af76c9bfe44f5eab2a1b0398e1b39f",
    "dateModified": "2017-02-16T13:35:34.876403+02: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/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "language": "uk",
      "title": "contract_first_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/a3af76c9bfe44f5eab2a1b0398e1b39f?download=8b238039bac14ef4a87cf493f2370feb",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-02-16T13:35:34.876363+02:00",
      "id": "a3af76c9bfe44f5eab2a1b0398e1b39f",
      "dateModified": "2017-02-16T13:35:34.876403+02:00"
    }
  ]
}

We can upload another contract document:

POST /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 207
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy556098597729$
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/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/1d2f6ac219994d128c045c0d8fbb07ee
{
  "data": {
    "language": "uk",
    "title": "contract_second_document.doc",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/1d2f6ac219994d128c045c0d8fbb07ee?download=2872cffc15a94346a510fc526de48bb9",
    "format": "application/msword",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:35.196767+02:00",
    "id": "1d2f6ac219994d128c045c0d8fbb07ee",
    "dateModified": "2017-02-16T13:35:35.196813+02: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/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/1d2f6ac219994d128c045c0d8fbb07ee?acc_token=12edb463846948e88706a2df2912ba45 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": {
    "language": "en",
    "title": "contract_second_document.doc",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/1d2f6ac219994d128c045c0d8fbb07ee?download=2872cffc15a94346a510fc526de48bb9",
    "format": "application/msword",
    "title_en": "Title of Document",
    "description_en": "Description of Document",
    "datePublished": "2017-02-16T13:35:35.196767+02:00",
    "documentOf": "tender",
    "id": "1d2f6ac219994d128c045c0d8fbb07ee",
    "dateModified": "2017-02-16T13:35:35.196813+02:00"
  }
}

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

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "language": "uk",
      "title": "contract_first_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/a3af76c9bfe44f5eab2a1b0398e1b39f?download=8b238039bac14ef4a87cf493f2370feb",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-02-16T13:35:34.876363+02:00",
      "id": "a3af76c9bfe44f5eab2a1b0398e1b39f",
      "dateModified": "2017-02-16T13:35:34.876403+02:00"
    },
    {
      "language": "en",
      "title": "contract_second_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/1d2f6ac219994d128c045c0d8fbb07ee?download=2872cffc15a94346a510fc526de48bb9",
      "format": "application/msword",
      "title_en": "Title of Document",
      "description_en": "Description of Document",
      "datePublished": "2017-02-16T13:35:35.196767+02:00",
      "documentOf": "tender",
      "id": "1d2f6ac219994d128c045c0d8fbb07ee",
      "dateModified": "2017-02-16T13:35:35.196813+02:00"
    }
  ]
}

Let’s view separate contract document:

GET /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719?acc_token=12edb463846948e88706a2df2912ba45 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": [
      {
        "language": "uk",
        "title": "contract_first_document.doc",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/a3af76c9bfe44f5eab2a1b0398e1b39f?download=8b238039bac14ef4a87cf493f2370feb",
        "format": "application/msword",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:34.876363+02:00",
        "id": "a3af76c9bfe44f5eab2a1b0398e1b39f",
        "dateModified": "2017-02-16T13:35:34.876403+02:00"
      },
      {
        "language": "en",
        "title": "contract_second_document.doc",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/contracts/30ed55ef482e4cbcaa880765c712e719/documents/1d2f6ac219994d128c045c0d8fbb07ee?download=2872cffc15a94346a510fc526de48bb9",
        "format": "application/msword",
        "title_en": "Title of Document",
        "description_en": "Description of Document",
        "datePublished": "2017-02-16T13:35:35.196767+02:00",
        "documentOf": "tender",
        "id": "1d2f6ac219994d128c045c0d8fbb07ee",
        "dateModified": "2017-02-16T13:35:35.196813+02:00"
      }
    ],
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283623+02:00",
          "endDate": "2017-04-07T13:35:25.283712+02:00"
        },
        "id": "7a806448d0014f8fab19eaf6b328dfeb",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 1
      },
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "CPV",
          "description": "Test",
          "id": "37810000-9"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "17.21.1",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-03-08T13:35:25.283746+02:00",
          "endDate": "2017-04-07T13:35:25.283773+02:00"
        },
        "id": "9462dda6089446b3b7aa7cda61518b33",
        "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-02-16T13:35:34.376977+02:00",
      "endDate": "2018-02-16T13:35:34.377039+02:00"
    },
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2017-02-16T13:35:34.122861+02:00",
    "awardID": "01d610681d4d4b2a8be30b759369751b",
    "id": "30ed55ef482e4cbcaa880765c712e719",
    "contractID": "R-UA-2017-02-16-000001-1"
  }
}

Cancelling a tender

PE can cancel the tender anytime. The following steps should be applied:

  1. Prepare a 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/69620e7245b048d696d61d9b5061cee2/cancellations?acc_token=12edb463846948e88706a2df2912ba45 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/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7
{
  "data": {
    "status": "pending",
    "reason": "cancellation reason",
    "reasonType": "cancelled",
    "date": "2017-02-16T13:35:35.814026+02:00",
    "cancellationOf": "tender",
    "id": "6f0590c33dda4e61953fe2faa02cd3a7"
  }
}

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/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7?acc_token=12edb463846948e88706a2df2912ba45 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-02-16T13:35:36.050182+02:00",
    "cancellationOf": "tender",
    "id": "6f0590c33dda4e61953fe2faa02cd3a7"
  }
}

Filling cancellation with protocol and supplementary documentation

Upload the file contents

POST /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 184
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy79397268684$
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/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents/ea1603229efc482587b75997d0219539
{
  "data": {
    "language": "uk",
    "title": "Notice.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents/ea1603229efc482587b75997d0219539?download=9298b6bb35a94dc986d006693e0ef403",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:36.279348+02:00",
    "id": "ea1603229efc482587b75997d0219539",
    "dateModified": "2017-02-16T13:35:36.279391+02:00"
  }
}

Change the document description and other properties

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents/ea1603229efc482587b75997d0219539?acc_token=12edb463846948e88706a2df2912ba45 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": {
    "description": "Changed description",
    "language": "uk",
    "title": "Notice.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents/ea1603229efc482587b75997d0219539?download=9298b6bb35a94dc986d006693e0ef403",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:36.279348+02:00",
    "id": "ea1603229efc482587b75997d0219539",
    "dateModified": "2017-02-16T13:35:36.279391+02:00"
  }
}

Upload new version of the document

PUT /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents/ea1603229efc482587b75997d0219539?acc_token=12edb463846948e88706a2df2912ba45 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 189
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy644548926624$
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "description": "Changed description",
    "language": "uk",
    "title": "Notice-2.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents/ea1603229efc482587b75997d0219539?download=894052308d624f8b87aa538399a6216d",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-02-16T13:35:36.279348+02:00",
    "id": "ea1603229efc482587b75997d0219539",
    "dateModified": "2017-02-16T13:35:36.788471+02:00"
  }
}

Activating the request and cancelling tender

PATCH /api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7?acc_token=12edb463846948e88706a2df2912ba45 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": [
      {
        "description": "Changed description",
        "language": "uk",
        "title": "Notice.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents/ea1603229efc482587b75997d0219539?download=9298b6bb35a94dc986d006693e0ef403",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:36.279348+02:00",
        "id": "ea1603229efc482587b75997d0219539",
        "dateModified": "2017-02-16T13:35:36.279391+02:00"
      },
      {
        "description": "Changed description",
        "language": "uk",
        "title": "Notice-2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/69620e7245b048d696d61d9b5061cee2/cancellations/6f0590c33dda4e61953fe2faa02cd3a7/documents/ea1603229efc482587b75997d0219539?download=894052308d624f8b87aa538399a6216d",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-02-16T13:35:36.279348+02:00",
        "id": "ea1603229efc482587b75997d0219539",
        "dateModified": "2017-02-16T13:35:36.788471+02:00"
      }
    ],
    "reason": "cancellation reason",
    "reasonType": "unsuccessful",
    "date": "2017-02-16T13:35:37.070663+02:00",
    "cancellationOf": "tender",
    "id": "6f0590c33dda4e61953fe2faa02cd3a7"
  }
}