Tutorial

Tender creation

You can create three procedures:
  • reporting - reporting with no stand-still period
  • negotiation - negotiation procedure with 10 day stand-still before contract registration
  • negotiation.quick - quick negotiation procedure with 5 day stand-still before contract registration

Creating tender for reporting procedure

To create tender for reporting procedure you should set reporting value for procurementMethodType.

Let’s create a tender:

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

{
  "data": {
    "procurementMethod": "limited",
    "status": "active",
    "title": "Послуги шкільних їдалень",
    "procurementMethodType": "reporting",
    "title_en": "Services in school canteens",
    "description_en": "Services in school canteens",
    "procuringEntity": {
      "kind": "general",
      "identifier": {
        "scheme": "UA-EDR",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name": "Куца Світлана Валентинівна",
        "telephone": "+380 (432) 46-53-02"
      },
      "address": {
        "countryName": "Україна",
        "postalCode": "21027",
        "region": "м. Вінниця",
        "streetAddress": "вул. Стахурського. 22",
        "locality": "м. Вінниця"
      },
      "name": "ЗОСШ #10 м.Вінниці"
    },
    "title_ru": "Услуги школьных столовых",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "description": "Послуги шкільних їдалень",
            "id": "55.51.10.300"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "region": "м. Київ",
          "streetAddress": "вул. Банкова 1",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286",
          "endDate": "2017-06-24T20:02:22.515286"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac"
      }
    ],
    "owner": "broker",
    "value": {
      "currency": "UAH",
      "amount": 500000,
      "valueAddedTaxIncluded": true
    },
    "description_ru": "Услуги школьных столовых"
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83
{
  "access": {
    "token": "a4b7ef7e4b1248eeb4856ef095f8e657"
  },
  "data": {
    "procurementMethod": "limited",
    "status": "active",
    "title": "Послуги шкільних їдалень",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac"
      }
    ],
    "title_en": "Services in school canteens",
    "value": {
      "currency": "UAH",
      "amount": 500000.0,
      "valueAddedTaxIncluded": true
    },
    "dateModified": "2017-06-19T20:02:26.850123+03:00",
    "procuringEntity": {
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name": "Куца Світлана Валентинівна",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name": "ЗОСШ #10 м.Вінниці",
      "kind": "general",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "date": "2017-06-19T20:02:26.846364+03:00",
    "procurementMethodType": "reporting",
    "description_en": "Services in school canteens",
    "title_ru": "Услуги школьных столовых",
    "owner": "broker",
    "description_ru": "Услуги школьных столовых",
    "id": "7d7cb83ee1384fb78ca8aaf919990c83",
    "tenderID": "UA-2017-06-19-000001"
  }
}

We have 201 Created response code, Location header and body with extra id, tenderID, and dateModified properties.

Let’s check what tender registry contains:

GET /api/2.3/tenders?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
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.

Creating tender for negotiation procedure

To create tender for negotiation procedure you should set negotiation value for procurementMethodType.

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

{
  "data": {
    "procurementMethod": "limited",
    "status": "active",
    "causeDescription": "оригінальний тендер не вдався двічі",
    "title": "Послуги шкільних їдалень",
    "title_en": "Services in school canteens",
    "procurementMethodType": "negotiation",
    "description_en": "Services in school canteens",
    "causeDescription_ru": "оригинальный тендер не получился дважды",
    "causeDescription_en": "original tender has failed twice",
    "description_ru": "Услуги школьных столовых",
    "procuringEntity": {
      "kind": "general",
      "identifier": {
        "scheme": "UA-EDR",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name": "Куца Світлана Валентинівна",
        "telephone": "+380 (432) 46-53-02"
      },
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "countryName": "Україна",
        "postalCode": "21027",
        "region": "м. Вінниця",
        "streetAddress": "вул. Стахурського. 22",
        "locality": "м. Вінниця"
      }
    },
    "title_ru": "Услуги школьных столовых",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "description": "Послуги шкільних їдалень",
            "id": "55.51.10.300"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "region": "м. Київ",
          "streetAddress": "вул. Банкова 1",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286",
          "endDate": "2017-06-24T20:02:22.515286"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac"
      }
    ],
    "owner": "broker",
    "value": {
      "currency": "UAH",
      "amount": 500000,
      "valueAddedTaxIncluded": true
    },
    "cause": "twiceUnsuccessful"
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/0f67d0af4cdb47f2bab36b37e33bd84a
{
  "access": {
    "token": "62e6766aacb942c481ff5833e5f1274a"
  },
  "data": {
    "procurementMethod": "limited",
    "status": "active",
    "causeDescription": "оригінальний тендер не вдався двічі",
    "title": "Послуги шкільних їдалень",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac"
      }
    ],
    "procurementMethodType": "negotiation",
    "causeDescription_en": "original tender has failed twice",
    "value": {
      "currency": "UAH",
      "amount": 500000.0,
      "valueAddedTaxIncluded": true
    },
    "dateModified": "2017-06-19T20:02:33.538428+03:00",
    "causeDescription_ru": "оригинальный тендер не получился дважды",
    "date": "2017-06-19T20:02:33.534492+03:00",
    "title_en": "Services in school canteens",
    "description_ru": "Услуги школьных столовых",
    "description_en": "Services in school canteens",
    "title_ru": "Услуги школьных столовых",
    "owner": "broker",
    "procuringEntity": {
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name": "Куца Світлана Валентинівна",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name": "ЗОСШ #10 м.Вінниці",
      "kind": "general",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "cause": "twiceUnsuccessful",
    "id": "0f67d0af4cdb47f2bab36b37e33bd84a",
    "tenderID": "UA-2017-06-19-000001"
  }
}

Creating tender for negotiation.quick procedure

To create tender for negotiation.quick procedure you should set negotiation.quick value for procurementMethodType.

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

{
  "data": {
    "procurementMethod": "limited",
    "status": "active",
    "causeDescription": "оригінальний тендер не вдався двічі",
    "title": "Послуги шкільних їдалень",
    "procurementMethodType": "negotiation.quick",
    "title_en": "Services in school canteens",
    "description_en": "Services in school canteens",
    "causeDescription_ru": "оригинальный тендер не получился дважды",
    "causeDescription_en": "original tender has failed twice",
    "procuringEntity": {
      "kind": "general",
      "identifier": {
        "scheme": "UA-EDR",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name": "Куца Світлана Валентинівна",
        "telephone": "+380 (432) 46-53-02"
      },
      "name": "ЗОСШ #10 м.Вінниці",
      "address": {
        "countryName": "Україна",
        "postalCode": "21027",
        "region": "м. Вінниця",
        "streetAddress": "вул. Стахурського. 22",
        "locality": "м. Вінниця"
      }
    },
    "title_ru": "Услуги школьных столовых",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "description": "Послуги шкільних їдалень",
            "id": "55.51.10.300"
          }
        ],
        "deliveryAddress": {
          "countryName": "Україна",
          "postalCode": "79000",
          "region": "м. Київ",
          "streetAddress": "вул. Банкова 1",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286",
          "endDate": "2017-06-24T20:02:22.515286"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac"
      }
    ],
    "owner": "broker",
    "value": {
      "currency": "UAH",
      "amount": 500000,
      "valueAddedTaxIncluded": true
    },
    "description_ru": "Услуги школьных столовых"
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/ed2bd8393c4a422786a49846f1a5eb61
{
  "access": {
    "token": "e3475b5af2ce460895020a2db1c9926d"
  },
  "data": {
    "procurementMethod": "limited",
    "status": "active",
    "causeDescription": "оригінальний тендер не вдався двічі",
    "title": "Послуги шкільних їдалень",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac"
      }
    ],
    "procurementMethodType": "negotiation.quick",
    "value": {
      "currency": "UAH",
      "amount": 500000.0,
      "valueAddedTaxIncluded": true
    },
    "dateModified": "2017-06-19T20:02:48.214465+03:00",
    "causeDescription_ru": "оригинальный тендер не получился дважды",
    "date": "2017-06-19T20:02:48.211248+03:00",
    "causeDescription_en": "original tender has failed twice",
    "description_ru": "Услуги школьных столовых",
    "description_en": "Services in school canteens",
    "title_ru": "Услуги школьных столовых",
    "owner": "broker",
    "procuringEntity": {
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name": "Куца Світлана Валентинівна",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name": "ЗОСШ #10 м.Вінниці",
      "kind": "general",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "title_en": "Services in school canteens",
    "id": "ed2bd8393c4a422786a49846f1a5eb61",
    "tenderID": "UA-2017-06-19-000001"
  }
}

Modifying tender

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

PATCH /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 80
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "items": [
      {
        "unit": {
          "code": "MON",
          "name": "month"
        },
        "quantity": 9
      }
    ]
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "procurementMethod": "limited",
    "status": "active",
    "title": "Послуги шкільних їдалень",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac",
        "unit": {
          "code": "MON",
          "name": "month"
        },
        "quantity": 9
      }
    ],
    "title_en": "Services in school canteens",
    "value": {
      "currency": "UAH",
      "amount": 500000.0,
      "valueAddedTaxIncluded": true
    },
    "dateModified": "2017-06-19T20:02:26.971415+03:00",
    "procuringEntity": {
      "contactPoint": {
        "url": "http://sch10.edu.vn.ua/",
        "name": "Куца Світлана Валентинівна",
        "telephone": "+380 (432) 46-53-02"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "21725150",
        "legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\""
      },
      "name": "ЗОСШ #10 м.Вінниці",
      "kind": "general",
      "address": {
        "postalCode": "21027",
        "countryName": "Україна",
        "streetAddress": "вул. Стахурського. 22",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "date": "2017-06-19T20:02:26.846364+03:00",
    "procurementMethodType": "reporting",
    "description_en": "Services in school canteens",
    "title_ru": "Услуги школьных столовых",
    "owner": "broker",
    "description_ru": "Услуги школьных столовых",
    "id": "7d7cb83ee1384fb78ca8aaf919990c83",
    "tenderID": "UA-2017-06-19-000001"
  }
}

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

Checking the listing again reflects the new modification date:

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

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "next_page": {
    "path": "/api/2.3/tenders?offset=2017-06-19T20%3A02%3A26.850123%2B03%3A00",
    "uri": "http://api-sandbox.openprocurement.org/api/2.3/tenders?offset=2017-06-19T20%3A02%3A26.850123%2B03%3A00",
    "offset": "2017-06-19T20:02:26.850123+03:00"
  },
  "data": [
    {
      "id": "7d7cb83ee1384fb78ca8aaf919990c83",
      "dateModified": "2017-06-19T20:02:26.850123+03:00"
    }
  ]
}

Uploading documentation

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

POST /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 186
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy270263345618$
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/7d7cb83ee1384fb78ca8aaf919990c83/documents/90a857730bc54c21a77f93875b9e4b4a
{
  "data": {
    "title": "Notice.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/documents/90a857730bc54c21a77f93875b9e4b4a?download=b37decf945354cdda8c1fd1ca9494913",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:27.268883+03:00",
    "id": "90a857730bc54c21a77f93875b9e4b4a",
    "dateModified": "2017-06-19T20:02:27.268925+03:00"
  }
}

201 Created response code and Location header confirm document creation.

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

PUT /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/documents/90a857730bc54c21a77f93875b9e4b4a?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 189
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy396991568191$
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "title": "Notice-2.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/documents/90a857730bc54c21a77f93875b9e4b4a?download=aad933d6edac492c883fd4ce020fecc8",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:27.268883+03:00",
    "id": "90a857730bc54c21a77f93875b9e4b4a",
    "dateModified": "2017-06-19T20:02:27.328930+03:00"
  }
}

Awarding

Adding supplier information

Addition of supplier information is the same for all procedures.

Procuring entity registers supplier information for reporting procedure:

POST /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1284
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "date": "2016-01-14T18:07:00.628073+02:00",
    "status": "pending",
    "suppliers": [
      {
        "contactPoint": {
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк",
          "email": "soleksuk@gmail.com"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "countryName": "Україна",
          "postalCode": "21100",
          "region": "м. Вінниця",
          "streetAddress": "вул. Островського, 33",
          "locality": "м. Вінниця"
        }
      }
    ],
    "id": "d373338bc3324f14b8b3d4af68922773",
    "value": {
      "currency": "UAH",
      "amount": 475000,
      "valueAddedTaxIncluded": "true"
    }
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557
{
  "data": {
    "status": "pending",
    "date": "2017-06-19T20:02:27.381100+03:00",
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "id": "f73383149db344199699e1a8f587d557",
    "value": {
      "currency": "UAH",
      "amount": 475000.0,
      "valueAddedTaxIncluded": true
    }
  }
}

Procuring entity registers supplier information for negotiation procedure:

POST /api/2.3/tenders/0f67d0af4cdb47f2bab36b37e33bd84a/awards?acc_token=62e6766aacb942c481ff5833e5f1274a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1284
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "date": "2016-01-14T18:07:00.628073+02:00",
    "status": "pending",
    "suppliers": [
      {
        "contactPoint": {
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк",
          "email": "soleksuk@gmail.com"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "countryName": "Україна",
          "postalCode": "21100",
          "region": "м. Вінниця",
          "streetAddress": "вул. Островського, 33",
          "locality": "м. Вінниця"
        }
      }
    ],
    "id": "d373338bc3324f14b8b3d4af68922773",
    "value": {
      "currency": "UAH",
      "amount": 475000,
      "valueAddedTaxIncluded": "true"
    }
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/0f67d0af4cdb47f2bab36b37e33bd84a/awards/13926fdfd30c4e2e939e9b7529fb0edd
{
  "data": {
    "status": "pending",
    "complaintPeriod": {
      "startDate": "2017-06-19T20:02:33.589328+03:00"
    },
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 475000.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-06-19T20:02:33.587469+03:00",
    "id": "13926fdfd30c4e2e939e9b7529fb0edd"
  }
}

You can notice that there is complaintPeriod record with startDate value generated.

Procuring entity registers supplier information for negotiation.quick procedure:

POST /api/2.3/tenders/ed2bd8393c4a422786a49846f1a5eb61/awards?acc_token=e3475b5af2ce460895020a2db1c9926d HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1284
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "date": "2016-01-14T18:07:00.628073+02:00",
    "status": "pending",
    "suppliers": [
      {
        "contactPoint": {
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк",
          "email": "soleksuk@gmail.com"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "countryName": "Україна",
          "postalCode": "21100",
          "region": "м. Вінниця",
          "streetAddress": "вул. Островського, 33",
          "locality": "м. Вінниця"
        }
      }
    ],
    "id": "d373338bc3324f14b8b3d4af68922773",
    "value": {
      "currency": "UAH",
      "amount": 475000,
      "valueAddedTaxIncluded": "true"
    }
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/ed2bd8393c4a422786a49846f1a5eb61/awards/cfcac0dba40547d3b128a94a2b0ffad1
{
  "data": {
    "status": "pending",
    "complaintPeriod": {
      "startDate": "2017-06-19T20:02:48.270327+03:00"
    },
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 475000.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-06-19T20:02:48.268153+03:00",
    "id": "cfcac0dba40547d3b128a94a2b0ffad1"
  }
}

Award for negotiation.quick procedure also has complaintPeriod record with startDate value.

Uploading award documentation

You can upload award documents only before awarding decision is confirmed. Let’s add award document:

POST /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 203
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy334667136548$
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/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/31b77702354749ac9a50d5e0f0bc7bac
{
  "data": {
    "title": "award_first_document.doc",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/31b77702354749ac9a50d5e0f0bc7bac?download=c6116315f7ae4f1e9b4758092f64f488",
    "format": "application/msword",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:27.462126+03:00",
    "id": "31b77702354749ac9a50d5e0f0bc7bac",
    "dateModified": "2017-06-19T20:02:27.462169+03:00"
  }
}

201 Created response code and Location header confirm that document has been added.

Let’s see the list of award documents:

GET /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "title": "award_first_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/31b77702354749ac9a50d5e0f0bc7bac?download=c6116315f7ae4f1e9b4758092f64f488",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-06-19T20:02:27.462126+03:00",
      "id": "31b77702354749ac9a50d5e0f0bc7bac",
      "dateModified": "2017-06-19T20:02:27.462169+03:00"
    }
  ]
}

We can add another award document:

POST /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 204
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy890262879158$
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/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/aa227933366a45f58e9fd3755163cdc3
{
  "data": {
    "title": "award_second_document.doc",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/aa227933366a45f58e9fd3755163cdc3?download=b1f910c14523425eaf6104d74787ed4e",
    "format": "application/msword",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:27.568107+03:00",
    "id": "aa227933366a45f58e9fd3755163cdc3",
    "dateModified": "2017-06-19T20:02:27.568153+03:00"
  }
}

201 Created response code and Location header confirm second document has been added.

Let’s see the list of all uploaded award documents:

GET /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "title": "award_first_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/31b77702354749ac9a50d5e0f0bc7bac?download=c6116315f7ae4f1e9b4758092f64f488",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-06-19T20:02:27.462126+03:00",
      "id": "31b77702354749ac9a50d5e0f0bc7bac",
      "dateModified": "2017-06-19T20:02:27.462169+03:00"
    },
    {
      "title": "award_second_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/aa227933366a45f58e9fd3755163cdc3?download=b1f910c14523425eaf6104d74787ed4e",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-06-19T20:02:27.568107+03:00",
      "id": "aa227933366a45f58e9fd3755163cdc3",
      "dateModified": "2017-06-19T20:02:27.568153+03:00"
    }
  ]
}

Award confirmation

Procuring entity can confirm awarding decision:

PATCH /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "documents": [
      {
        "title": "award_first_document.doc",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/31b77702354749ac9a50d5e0f0bc7bac?download=c6116315f7ae4f1e9b4758092f64f488",
        "format": "application/msword",
        "documentOf": "tender",
        "datePublished": "2017-06-19T20:02:27.462126+03:00",
        "id": "31b77702354749ac9a50d5e0f0bc7bac",
        "dateModified": "2017-06-19T20:02:27.462169+03:00"
      },
      {
        "title": "award_second_document.doc",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/awards/f73383149db344199699e1a8f587d557/documents/aa227933366a45f58e9fd3755163cdc3?download=b1f910c14523425eaf6104d74787ed4e",
        "format": "application/msword",
        "documentOf": "tender",
        "datePublished": "2017-06-19T20:02:27.568107+03:00",
        "id": "aa227933366a45f58e9fd3755163cdc3",
        "dateModified": "2017-06-19T20:02:27.568153+03:00"
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 475000.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-06-19T20:02:27.690287+03:00",
    "id": "f73383149db344199699e1a8f587d557"
  }
}

Award confirmation for negotiation procedure:

PATCH /api/2.3/tenders/0f67d0af4cdb47f2bab36b37e33bd84a/awards/13926fdfd30c4e2e939e9b7529fb0edd?acc_token=62e6766aacb942c481ff5833e5f1274a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 49
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "active",
    "qualified": true
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "complaintPeriod": {
      "startDate": "2017-06-19T20:02:33.589328+03:00",
      "endDate": "2017-06-30T00:00:00+03:00"
    },
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 475000.0,
      "valueAddedTaxIncluded": true
    },
    "qualified": true,
    "date": "2017-06-19T20:02:33.656887+03:00",
    "id": "13926fdfd30c4e2e939e9b7529fb0edd"
  }
}

The difference between startDate and endDate in complaintPeriod record for negotiation is 10 days.

Award confirmation for negotiation.quick procedure:

PATCH /api/2.3/tenders/ed2bd8393c4a422786a49846f1a5eb61/awards/cfcac0dba40547d3b128a94a2b0ffad1?acc_token=e3475b5af2ce460895020a2db1c9926d HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 49
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "active",
    "qualified": true
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "complaintPeriod": {
      "startDate": "2017-06-19T20:02:48.270327+03:00",
      "endDate": "2017-06-25T00:00:00+03:00"
    },
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 475000.0,
      "valueAddedTaxIncluded": true
    },
    "qualified": true,
    "date": "2017-06-19T20:02:48.345348+03:00",
    "id": "cfcac0dba40547d3b128a94a2b0ffad1"
  }
}

The difference between startDate and endDate in complaintPeriod record for negotiation.quick is 5 days.

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/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 36
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "value": {
      "amount": 238
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac",
        "unit": {
          "code": "MON",
          "name": "month"
        },
        "quantity": 9
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-06-19T20:02:27.834848+03:00",
    "awardID": "f73383149db344199699e1a8f587d557",
    "id": "8da00d38b52248c8a87fe8b3ef0b0159",
    "contractID": "UA-2017-06-19-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/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 54
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "dateSigned": "2017-06-19T20:02:22.515286"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac",
        "unit": {
          "code": "MON",
          "name": "month"
        },
        "quantity": 9
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2017-06-19T20:02:22.515286+03:00",
    "date": "2017-06-19T20:02:27.952492+03:00",
    "awardID": "f73383149db344199699e1a8f587d557",
    "id": "8da00d38b52248c8a87fe8b3ef0b0159",
    "contractID": "UA-2017-06-19-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/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 106
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "period": {
      "startDate": "2017-06-19T20:02:22.515286",
      "endDate": "2018-06-19T20:02:22.515286"
    }
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac",
        "unit": {
          "code": "MON",
          "name": "month"
        },
        "quantity": 9
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "period": {
      "startDate": "2017-06-19T20:02:22.515286+03:00",
      "endDate": "2018-06-19T20:02:22.515286+03:00"
    },
    "dateSigned": "2017-06-19T20:02:22.515286+03:00",
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-06-19T20:02:28.073268+03:00",
    "awardID": "f73383149db344199699e1a8f587d557",
    "id": "8da00d38b52248c8a87fe8b3ef0b0159",
    "contractID": "UA-2017-06-19-000001-1"
  }
}

Uploading contract documentation

Contract documents can be uploaded only up until conclusion of the agreement. Let’s add contract document:

POST /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 206
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy942597007192$
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/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/771ef06d25c34c2d8e40ba275bc12550
{
  "data": {
    "title": "contract_first_document.doc",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/771ef06d25c34c2d8e40ba275bc12550?download=ac838736f7ef4831a00e00ecb6a2c5df",
    "format": "application/msword",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:28.190661+03:00",
    "id": "771ef06d25c34c2d8e40ba275bc12550",
    "dateModified": "2017-06-19T20:02:28.190709+03:00"
  }
}

201 Created response code and Location header confirm that document has been added.

Let’s see the list of contract documents:

GET /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "title": "contract_first_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/771ef06d25c34c2d8e40ba275bc12550?download=ac838736f7ef4831a00e00ecb6a2c5df",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-06-19T20:02:28.190661+03:00",
      "id": "771ef06d25c34c2d8e40ba275bc12550",
      "dateModified": "2017-06-19T20:02:28.190709+03:00"
    }
  ]
}

We can add another contract document:

POST /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 207
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy206947069328$
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/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/49459ab3d7f84c04a319c95f8cc78dc2
{
  "data": {
    "title": "contract_second_document.doc",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/49459ab3d7f84c04a319c95f8cc78dc2?download=ee07c83dc2de4b2c82b617ad5c4d3d07",
    "format": "application/msword",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:28.342656+03:00",
    "id": "49459ab3d7f84c04a319c95f8cc78dc2",
    "dateModified": "2017-06-19T20:02:28.342704+03:00"
  }
}

201 Created response code and Location header confirm second document has been added.

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

GET /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": [
    {
      "title": "contract_first_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/771ef06d25c34c2d8e40ba275bc12550?download=ac838736f7ef4831a00e00ecb6a2c5df",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-06-19T20:02:28.190661+03:00",
      "id": "771ef06d25c34c2d8e40ba275bc12550",
      "dateModified": "2017-06-19T20:02:28.190709+03:00"
    },
    {
      "title": "contract_second_document.doc",
      "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/49459ab3d7f84c04a319c95f8cc78dc2?download=ee07c83dc2de4b2c82b617ad5c4d3d07",
      "format": "application/msword",
      "documentOf": "tender",
      "datePublished": "2017-06-19T20:02:28.342656+03:00",
      "id": "49459ab3d7f84c04a319c95f8cc78dc2",
      "dateModified": "2017-06-19T20:02:28.342704+03:00"
    }
  ]
}

Contract registration

Reporting tender contract can be registered immediately after award confirmation:

PATCH /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "documents": [
      {
        "title": "contract_first_document.doc",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/771ef06d25c34c2d8e40ba275bc12550?download=ac838736f7ef4831a00e00ecb6a2c5df",
        "format": "application/msword",
        "documentOf": "tender",
        "datePublished": "2017-06-19T20:02:28.190661+03:00",
        "id": "771ef06d25c34c2d8e40ba275bc12550",
        "dateModified": "2017-06-19T20:02:28.190709+03:00"
      },
      {
        "title": "contract_second_document.doc",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/contracts/8da00d38b52248c8a87fe8b3ef0b0159/documents/49459ab3d7f84c04a319c95f8cc78dc2?download=ee07c83dc2de4b2c82b617ad5c4d3d07",
        "format": "application/msword",
        "documentOf": "tender",
        "datePublished": "2017-06-19T20:02:28.342656+03:00",
        "id": "49459ab3d7f84c04a319c95f8cc78dc2",
        "dateModified": "2017-06-19T20:02:28.342704+03:00"
      }
    ],
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac",
        "unit": {
          "code": "MON",
          "name": "month"
        },
        "quantity": 9
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "period": {
      "startDate": "2017-06-19T20:02:22.515286+03:00",
      "endDate": "2018-06-19T20:02:22.515286+03:00"
    },
    "value": {
      "currency": "UAH",
      "amount": 238.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2017-06-19T20:02:22.515286+03:00",
    "date": "2017-06-19T20:02:28.532103+03:00",
    "awardID": "f73383149db344199699e1a8f587d557",
    "id": "8da00d38b52248c8a87fe8b3ef0b0159",
    "contractID": "UA-2017-06-19-000001-1"
  }
}

Negotiation tender contract can be registered only after the stand-still (10 day period after the award confirmation):

PATCH /api/2.3/tenders/0f67d0af4cdb47f2bab36b37e33bd84a/contracts/a082f0d8c9e0467799042ce231c43c98?acc_token=62e6766aacb942c481ff5833e5f1274a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac"
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 475000.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2017-06-19T20:02:33.798112+03:00",
    "date": "2017-06-19T20:02:33.801458+03:00",
    "awardID": "13926fdfd30c4e2e939e9b7529fb0edd",
    "id": "a082f0d8c9e0467799042ce231c43c98",
    "contractID": "UA-2017-06-19-000001-1"
  }
}

Negotiation.quick tender contract can be registered after the stand-still (5 day period after the award confirmation):

PATCH /api/2.3/tenders/ed2bd8393c4a422786a49846f1a5eb61/contracts/036242a9296148228146e8e1fae0421a?acc_token=e3475b5af2ce460895020a2db1c9926d HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "items": [
      {
        "description": "Послуги шкільних їдалень",
        "classification": {
          "scheme": "ДК021",
          "description": "Послуги з харчування у школах",
          "id": "55523100-3"
        },
        "description_en": "Services in school canteens",
        "additionalClassifications": [
          {
            "scheme": "ДКПП",
            "id": "55.51.10.300",
            "description": "Послуги шкільних їдалень"
          }
        ],
        "deliveryAddress": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "deliveryDate": {
          "startDate": "2017-06-21T20:02:22.515286+03:00",
          "endDate": "2017-06-24T20:02:22.515286+03:00"
        },
        "description_ru": "Услуги школьных столовых",
        "id": "2dc54675d6364e2baffbc0f8e74432ac"
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
          "id": "13313462",
          "uri": "http://sch10.edu.vn.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 475000.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2017-06-19T20:02:48.472611+03:00",
    "date": "2017-06-19T20:02:48.476008+03:00",
    "awardID": "cfcac0dba40547d3b128a94a2b0ffad1",
    "id": "036242a9296148228146e8e1fae0421a",
    "contractID": "UA-2017-06-19-000001-1"
  }
}

Cancelling tender

Procuring entity can cancel tender anytime. The following steps should be applied:

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

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/7d7cb83ee1384fb78ca8aaf919990c83/cancellations?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 43
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "reason": "cancellation reason"
  }
}

Response: 201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430
{
  "data": {
    "status": "pending",
    "reason": "cancellation reason",
    "reasonType": "cancelled",
    "date": "2017-06-19T20:02:28.702391+03:00",
    "cancellationOf": "tender",
    "id": "bc29eeeaf99743f986c6c3950e562430"
  }
}

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/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 40
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "reasonType": "unsuccessful"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "pending",
    "reason": "cancellation reason",
    "reasonType": "unsuccessful",
    "date": "2017-06-19T20:02:28.702391+03:00",
    "cancellationOf": "tender",
    "id": "bc29eeeaf99743f986c6c3950e562430"
  }
}

Filling cancellation with protocol and supplementary documentation

Upload the file contents

POST /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 186
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy508746614462$
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/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents/781cbd490bbd4c5eb23c40349514d8fb
{
  "data": {
    "title": "Notice.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents/781cbd490bbd4c5eb23c40349514d8fb?download=472724ab0ed74ce2bb1bd1b68bd8294b",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:28.930888+03:00",
    "id": "781cbd490bbd4c5eb23c40349514d8fb",
    "dateModified": "2017-06-19T20:02:28.930940+03:00"
  }
}

Change the document description and other properties

PATCH /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents/781cbd490bbd4c5eb23c40349514d8fb?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 48
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "description": "Changed description"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "description": "Changed description",
    "title": "Notice.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents/781cbd490bbd4c5eb23c40349514d8fb?download=472724ab0ed74ce2bb1bd1b68bd8294b",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:28.930888+03:00",
    "id": "781cbd490bbd4c5eb23c40349514d8fb",
    "dateModified": "2017-06-19T20:02:28.930940+03:00"
  }
}

Upload new version of the document

PUT /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents/781cbd490bbd4c5eb23c40349514d8fb?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 189
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy516532578802$
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "description": "Changed description",
    "title": "Notice-2.pdf",
    "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents/781cbd490bbd4c5eb23c40349514d8fb?download=8418c20c071d47bdbd3769a0b1200fe6",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-06-19T20:02:28.930888+03:00",
    "id": "781cbd490bbd4c5eb23c40349514d8fb",
    "dateModified": "2017-06-19T20:02:29.171645+03:00"
  }
}

Activating the request and cancelling tender

PATCH /api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430?acc_token=a4b7ef7e4b1248eeb4856ef095f8e657 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.openprocurement.org

{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
  "data": {
    "status": "active",
    "documents": [
      {
        "description": "Changed description",
        "title": "Notice.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents/781cbd490bbd4c5eb23c40349514d8fb?download=472724ab0ed74ce2bb1bd1b68bd8294b",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-19T20:02:28.930888+03:00",
        "id": "781cbd490bbd4c5eb23c40349514d8fb",
        "dateModified": "2017-06-19T20:02:28.930940+03:00"
      },
      {
        "description": "Changed description",
        "title": "Notice-2.pdf",
        "url": "http://api-sandbox.openprocurement.org/api/2.3/tenders/7d7cb83ee1384fb78ca8aaf919990c83/cancellations/bc29eeeaf99743f986c6c3950e562430/documents/781cbd490bbd4c5eb23c40349514d8fb?download=8418c20c071d47bdbd3769a0b1200fe6",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-06-19T20:02:28.930888+03:00",
        "id": "781cbd490bbd4c5eb23c40349514d8fb",
        "dateModified": "2017-06-19T20:02:29.171645+03:00"
      }
    ],
    "reason": "cancellation reason",
    "reasonType": "unsuccessful",
    "date": "2017-06-19T20:02:29.310210+03:00",
    "cancellationOf": "tender",
    "id": "bc29eeeaf99743f986c6c3950e562430"
  }
}