Tutorial

Exploring basic rules

Let’s try exploring the /auctions endpoint:

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


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=",
    "offset": ""
  },
  "data": []
}

Just invoking it reveals empty set.

Now let’s attempt creating some auction:

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


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/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 4
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org


422 Unprocessable Entity
Content-Type: application/json; charset=UTF-8

{
  "status": "error",
  "errors": [
    {
      "description": "Expecting value: line 1 column 1 (char 0)",
      "location": "body",
      "name": "data"
    }
  ]
}

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

Creating auction

Let’s create auction with the minimal data set (only required properties):

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

{
  "data": {
    "title": "футляри до державних нагород",
    "auctionPeriod": {
      "startDate": "2018-03-27"
    },
    "tenderAttempts": 1,
    "procurementMethodType": "dgfInsider",
    "value": {
      "currency": "UAH",
      "amount": 100
    },
    "dgfDecisionDate": "2016-11-17",
    "dgfID": "219560",
    "dgfDecisionID": "219560",
    "procurementMethodDetails": "quick, accelerator=1440",
    "items": [
      {
        "classification": {
          "scheme": "CAV",
          "id": "06000000-2",
          "description": "Земельні ділянки"
        },
        "quantity": 5,
        "description": "Земля для військовослужбовців",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "address": {
          "countryName": "Україна",
          "postalCode": "79000",
          "region": "м. Київ",
          "streetAddress": "вул. Банкова 1",
          "locality": "м. Київ"
        }
      }
    ],
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "countryName": "Україна",
        "postalCode": "01220",
        "region": "м. Київ",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "locality": "м. Київ"
      }
    }
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba

{
  "access": {
    "token": "0ce53b3a0d5d47778c36b80f90b81ad5"
  },
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2018-03-13-000001",
    "enquiryPeriod": {
      "startDate": "2018-03-13T17:49:01.717562+02:00",
      "endDate": "2018-03-26T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2018-03-26T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "ca31727f31f243b089cbc005b8fda5ba",
    "eligibilityCriteria_ru": "Участником электронного аукциона, предметом продажи на которых являются права требования по кредитным договорам и договорам обеспечения, не может быть пользователь, являющийся заёмщиком (должником относительно банка) и\\или поручителем (имущественным поручителем) по таким кредитным договорам и/или договорам обеспечения.",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:01.717914+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T17:49:01.717937+02:00",
        "id": "dd4e71968a2c4585846704771946ffb4"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "eligibilityCriteria_en": "The user, who is the borrower (the debtor of the bank) and/or guarantor (property guarantor) for loan agreements and/or collateral agreements, cannot be the bidder of the electronic auction, where the items for sale are the claim rights on such loan agreements and collateral agreements.",
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2018-03-13T17:49:01.720299+02:00",
    "status": "active.tendering",
    "eligibilityCriteria": "Учасником електронного аукціону, предметом продажу на яких є права вимоги за кредитними договорами та договорами забезпечення, не може бути користувач, який є позичальником (боржником відносно банку) та/або поручителем (майновим поручителем) за такими кредитними договорами та/або договорами забезпечення.",
    "tenderPeriod": {
      "startDate": "2018-03-13T17:49:01.717562+02:00",
      "endDate": "2018-03-27T00:00:30.631944+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2018-03-27T00:00:00+03:00"
    },
    "procurementMethodType": "dgfInsider",
    "dgfID": "219560",
    "date": "2018-03-13T17:49:01.717562+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 0.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "e24b924ada114a0d95d03a8c89eadda7",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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

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

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2018-03-13-000001",
    "enquiryPeriod": {
      "startDate": "2018-03-13T17:49:01.717562+02:00",
      "endDate": "2018-03-26T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2018-03-26T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "ca31727f31f243b089cbc005b8fda5ba",
    "eligibilityCriteria_ru": "Участником электронного аукциона, предметом продажи на которых являются права требования по кредитным договорам и договорам обеспечения, не может быть пользователь, являющийся заёмщиком (должником относительно банка) и\\или поручителем (имущественным поручителем) по таким кредитным договорам и/или договорам обеспечения.",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:01.717914+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T17:49:01.717937+02:00",
        "id": "dd4e71968a2c4585846704771946ffb4"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "eligibilityCriteria_en": "The user, who is the borrower (the debtor of the bank) and/or guarantor (property guarantor) for loan agreements and/or collateral agreements, cannot be the bidder of the electronic auction, where the items for sale are the claim rights on such loan agreements and collateral agreements.",
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2018-03-13T17:49:01.720299+02:00",
    "status": "active.tendering",
    "eligibilityCriteria": "Учасником електронного аукціону, предметом продажу на яких є права вимоги за кредитними договорами та договорами забезпечення, не може бути користувач, який є позичальником (боржником відносно банку) та/або поручителем (майновим поручителем) за такими кредитними договорами та/або договорами забезпечення.",
    "tenderPeriod": {
      "startDate": "2018-03-13T17:49:01.717562+02:00",
      "endDate": "2018-03-27T00:00:30.631944+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2018-03-27T00:00:00+03:00"
    },
    "procurementMethodType": "dgfInsider",
    "dgfID": "219560",
    "date": "2018-03-13T17:49:01.717562+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 0.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "e24b924ada114a0d95d03a8c89eadda7",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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

Let’s see what listing of auctions reveals us:

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


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=",
    "offset": ""
  },
  "data": []
}

We do see the auction’s internal id and its dateModified datestamp.

The previous auction contained only required fields. Let’s try creating auction with more data (auction has status created):

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

{
  "data": {
    "title": "футляри до державних нагород",
    "auctionPeriod": {
      "startDate": "2018-03-27"
    },
    "tenderAttempts": 1,
    "procurementMethodType": "dgfInsider",
    "value": {
      "currency": "UAH",
      "amount": 100
    },
    "dgfDecisionDate": "2016-11-17",
    "dgfID": "219560",
    "title_ru": "футляры к государственным наградам",
    "dgfDecisionID": "219560",
    "procurementMethodDetails": "quick, accelerator=1440",
    "items": [
      {
        "classification": {
          "scheme": "CAV",
          "id": "06000000-2",
          "description": "Земельні ділянки"
        },
        "description": "Земля для військовослужбовців",
        "id": "fc8f265b54ee45978a976e20010af236",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "title_en": "Cases with state awards",
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "kind": "general",
      "address": {
        "countryName": "Україна",
        "postalCode": "01220",
        "region": "м. Київ",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "locality": "м. Київ"
      }
    }
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/bdc764b5b90541328626b89b7d67d5b2

{
  "access": {
    "token": "d60deff105554bc38d9b4f7e64839e5c"
  },
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2018-03-13-000002",
    "enquiryPeriod": {
      "startDate": "2018-03-13T17:49:01.791689+02:00",
      "endDate": "2018-03-26T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2018-03-26T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "title_en": "Cases with state awards",
    "id": "bdc764b5b90541328626b89b7d67d5b2",
    "eligibilityCriteria_ru": "Участником электронного аукциона, предметом продажи на которых являются права требования по кредитным договорам и договорам обеспечения, не может быть пользователь, являющийся заёмщиком (должником относительно банка) и\\или поручителем (имущественным поручителем) по таким кредитным договорам и/или договорам обеспечения.",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:01.792037+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T17:49:01.792061+02:00",
        "id": "0f46bacba90847ac811ebe0004140acb"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "eligibilityCriteria_en": "The user, who is the borrower (the debtor of the bank) and/or guarantor (property guarantor) for loan agreements and/or collateral agreements, cannot be the bidder of the electronic auction, where the items for sale are the claim rights on such loan agreements and collateral agreements.",
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2018-03-13T17:49:01.794838+02:00",
    "status": "active.tendering",
    "eligibilityCriteria": "Учасником електронного аукціону, предметом продажу на яких є права вимоги за кредитними договорами та договорами забезпечення, не може бути користувач, який є позичальником (боржником відносно банку) та/або поручителем (майновим поручителем) за такими кредитними договорами та/або договорами забезпечення.",
    "tenderPeriod": {
      "startDate": "2018-03-13T17:49:01.791689+02:00",
      "endDate": "2018-03-27T00:00:30.631944+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2018-03-27T00:00:00+03:00"
    },
    "procurementMethodType": "dgfInsider",
    "dgfID": "219560",
    "date": "2018-03-13T17:49:01.791689+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 0.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "description": "Земля для військовослужбовців",
        "id": "fc8f265b54ee45978a976e20010af236",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "title_ru": "футляры к государственным наградам",
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "kind": "general",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

And again we have 201 Created response code, Location header and body with extra id, auctionID, and dateModified properties.

Let’s check what auction registry contains:

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


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=2018-03-13T17%3A49%3A01.720299%2B02%3A00",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2018-03-13T17%3A49%3A01.720299%2B02%3A00",
    "offset": "2018-03-13T17:49:01.720299+02:00"
  },
  "data": [
    {
      "id": "ca31727f31f243b089cbc005b8fda5ba",
      "dateModified": "2018-03-13T17:49:01.720299+02:00"
    }
  ]
}

And indeed we have 2 auctions now.

Modifying auction

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

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 75
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "tenderPeriod": {
      "endDate": "2018-03-28T17:49:11.862267+02:00"
    }
  }
}


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

{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2018-03-13-000001",
    "enquiryPeriod": {
      "startDate": "2018-03-13T17:49:01.717562+02:00",
      "endDate": "2018-03-26T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2018-03-26T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "ca31727f31f243b089cbc005b8fda5ba",
    "eligibilityCriteria_ru": "Участником электронного аукциона, предметом продажи на которых являются права требования по кредитным договорам и договорам обеспечения, не может быть пользователь, являющийся заёмщиком (должником относительно банка) и\\или поручителем (имущественным поручителем) по таким кредитным договорам и/или договорам обеспечения.",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:01.717914+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T17:49:01.717937+02:00",
        "id": "dd4e71968a2c4585846704771946ffb4"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "eligibilityCriteria_en": "The user, who is the borrower (the debtor of the bank) and/or guarantor (property guarantor) for loan agreements and/or collateral agreements, cannot be the bidder of the electronic auction, where the items for sale are the claim rights on such loan agreements and collateral agreements.",
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2018-03-13T17:49:01.903224+02:00",
    "status": "active.tendering",
    "eligibilityCriteria": "Учасником електронного аукціону, предметом продажу на яких є права вимоги за кредитними договорами та договорами забезпечення, не може бути користувач, який є позичальником (боржником відносно банку) та/або поручителем (майновим поручителем) за такими кредитними договорами та/або договорами забезпечення.",
    "tenderPeriod": {
      "startDate": "2018-03-13T17:49:01.717562+02:00",
      "endDate": "2018-03-28T17:49:11.862267+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2018-03-27T00:00:00+03:00"
    },
    "procurementMethodType": "dgfInsider",
    "dgfID": "219560",
    "date": "2018-03-13T17:49:01.717562+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 0.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "e24b924ada114a0d95d03a8c89eadda7",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

We see the added properies have merged with existing auction 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/auctions?opt_pretty=1 HTTP/1.0
Host: api-sandbox.ea.openprocurement.org


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=2018-03-13T17%3A49%3A01.837792%2B02%3A00",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2018-03-13T17%3A49%3A01.837792%2B02%3A00",
    "offset": "2018-03-13T17:49:01.837792+02:00"
  },
  "data": [
    {
      "id": "ca31727f31f243b089cbc005b8fda5ba",
      "dateModified": "2018-03-13T17:49:01.720299+02:00"
    },
    {
      "id": "bdc764b5b90541328626b89b7d67d5b2",
      "dateModified": "2018-03-13T17:49:01.794838+02:00"
    },
    {
      "id": "a8a592722cb04fe2a6738adac6ff92d0",
      "dateModified": "2018-03-13T17:49:01.837792+02:00"
    }
  ]
}

Uploading documentation

Organizer can upload PDF files into the created auction. Uploading should follow the Documents Uploading rules.

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 421
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "title": "Notice.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6e9dad0af471454ba2e3bb2ffce1ba30?KeyID=9051732b&Signature=ZfUbigS830p7cGkrIy3hx6%2BUjAnYnqFgHe9xj5ms%2Bw2u5%2BUO34%2Fy4m%2FLIAx2YNM%2BLWT%2Fpjk32GCld5bnh2cmDQ%3D%3D",
    "format": "application/pdf",
    "documentType": "technicalSpecifications"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents/d2bb192ca9d04d74a20ff43354925739

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6e9dad0af471454ba2e3bb2ffce1ba30?KeyID=9051732b&Signature=GJpo7izivTVGQ7zfncgV7ZPWkZ5mbUvz7sZANw0x2lAZ9nb0jqr2WOwF3rNVGG2O0n2qGSpDIQC8KMGxt%2F9sDQ%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:01.954983+02:00",
    "documentType": "technicalSpecifications",
    "dateModified": "2018-03-13T17:49:01.955008+02:00",
    "id": "d2bb192ca9d04d74a20ff43354925739"
  }
}

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/auctions/ca31727f31f243b089cbc005b8fda5ba/documents/d2bb192ca9d04d74a20ff43354925739 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6e9dad0af471454ba2e3bb2ffce1ba30?KeyID=9051732b&Signature=GJpo7izivTVGQ7zfncgV7ZPWkZ5mbUvz7sZANw0x2lAZ9nb0jqr2WOwF3rNVGG2O0n2qGSpDIQC8KMGxt%2F9sDQ%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:01.954983+02:00",
    "previousVersions": [],
    "documentType": "technicalSpecifications",
    "dateModified": "2018-03-13T17:49:01.955008+02:00",
    "id": "d2bb192ca9d04d74a20ff43354925739"
  }
}

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

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 338
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c53f5a29c33f48fe88c94ba1978e3636?KeyID=9051732b&Signature=JeKnzqyLsGdyy4h2Ei88eek%2FIu1hTOugBzdYoMzYmUFmRzIYZGzaOkKrPJb%2F6EVztWXK8DF6%2FyFtteJ4V9OIBw%3D%3D",
    "title": "AwardCriteria.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents/6d59ea99d07546efb587bc43c7d04a5b

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c53f5a29c33f48fe88c94ba1978e3636?KeyID=9051732b&Signature=dkQjsWyizoNpcOrbXPCKaJkVSRMjtnyjOYBdqwwu%252BBM4dL3jfTYsKQ6mYy5aFfOvYXHs5MoGMjKyxTFxO5YuDQ%253D%253D",
    "title": "AwardCriteria.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:02.007367+02:00",
    "dateModified": "2018-03-13T17:49:02.007397+02:00",
    "id": "6d59ea99d07546efb587bc43c7d04a5b"
  }
}

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

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:01.717914+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T17:49:01.717937+02:00",
      "id": "dd4e71968a2c4585846704771946ffb4"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6e9dad0af471454ba2e3bb2ffce1ba30?KeyID=9051732b&Signature=GJpo7izivTVGQ7zfncgV7ZPWkZ5mbUvz7sZANw0x2lAZ9nb0jqr2WOwF3rNVGG2O0n2qGSpDIQC8KMGxt%2F9sDQ%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:01.954983+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T17:49:01.955008+02:00",
      "id": "d2bb192ca9d04d74a20ff43354925739"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c53f5a29c33f48fe88c94ba1978e3636?KeyID=9051732b&Signature=dkQjsWyizoNpcOrbXPCKaJkVSRMjtnyjOYBdqwwu%252BBM4dL3jfTYsKQ6mYy5aFfOvYXHs5MoGMjKyxTFxO5YuDQ%253D%253D",
      "title": "AwardCriteria.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.007367+02:00",
      "dateModified": "2018-03-13T17:49:02.007397+02:00",
      "id": "6d59ea99d07546efb587bc43c7d04a5b"
    }
  ]
}

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

PUT /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents/6d59ea99d07546efb587bc43c7d04a5b?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 344
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9abe5606eb7c46dbae8af95de91a6571?KeyID=9051732b&Signature=o6a2%2B3P%2B2JBYnUjGiSDvP%2B4dmdDNiJGpm3CJ3kYF%2FFDU2iLFQ5sNVUrOpudeRVQ7WBx%2B49kywd9HDafXTUmnDw%3D%3D",
    "title": "AwardCriteria-2.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9abe5606eb7c46dbae8af95de91a6571?KeyID=9051732b&Signature=ciAZjBQOOYzNZVQzLejH4Sk2kHgB%252BbIJNd2%2FnB3NZFgE0qDtUL2%2FKp0nolXWoINRa%252BzqBcOITbXJvpQ5jt95Cw%253D%253D",
    "title": "AwardCriteria-2.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:02.007367+02:00",
    "dateModified": "2018-03-13T17:49:02.059143+02:00",
    "id": "6d59ea99d07546efb587bc43c7d04a5b"
  }
}

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

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:01.717914+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T17:49:01.717937+02:00",
      "id": "dd4e71968a2c4585846704771946ffb4"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6e9dad0af471454ba2e3bb2ffce1ba30?KeyID=9051732b&Signature=GJpo7izivTVGQ7zfncgV7ZPWkZ5mbUvz7sZANw0x2lAZ9nb0jqr2WOwF3rNVGG2O0n2qGSpDIQC8KMGxt%2F9sDQ%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:01.954983+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T17:49:01.955008+02:00",
      "id": "d2bb192ca9d04d74a20ff43354925739"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9abe5606eb7c46dbae8af95de91a6571?KeyID=9051732b&Signature=ciAZjBQOOYzNZVQzLejH4Sk2kHgB%252BbIJNd2%2FnB3NZFgE0qDtUL2%2FKp0nolXWoINRa%252BzqBcOITbXJvpQ5jt95Cw%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.007367+02:00",
      "dateModified": "2018-03-13T17:49:02.059143+02:00",
      "id": "6d59ea99d07546efb587bc43c7d04a5b"
    }
  ]
}

Uploading illustration

Organizer can upload illustration files into the created auction. Uploading should follow the Documents Uploading rules.

In order to specify illustration display order, index field can be used (for details see Document). Since this illustration should be displayed first, it has "index": 1.

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 434
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "index": 1,
    "hash": "md5:00000000000000000000000000000000",
    "description": "First illustration description",
    "title": "first_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/d5a56252751245e493d7a5fb3b143f25?KeyID=9051732b&Signature=CAp7SEKY%2BWSOtYvOSRMLH89TZxNGdAfcwZHqj08xyvfCJfyF872w%2FC%2Bf%2BHPWHVQNEVMF7svv1UyNVPCmnGVwBA%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents/31d1a44dd9924687afb1a50be3e330f6

{
  "data": {
    "index": 1,
    "hash": "md5:00000000000000000000000000000000",
    "description": "First illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/d5a56252751245e493d7a5fb3b143f25?KeyID=9051732b&Signature=YZ317VHUZ%252B%252BnVQa%2FFC6qqI9ZZHhlPx6l%2FRrR2NWWcB%252BB2bdAoxDdg9YtwEg3aZi0V2Oi9ZS2afqLKYUGOW7UDA%253D%253D",
    "title": "first_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:02.110025+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T17:49:02.110045+02:00",
    "id": "31d1a44dd9924687afb1a50be3e330f6"
  }
}

We can check whether illustration is uploaded.

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:01.717914+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T17:49:01.717937+02:00",
      "id": "dd4e71968a2c4585846704771946ffb4"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6e9dad0af471454ba2e3bb2ffce1ba30?KeyID=9051732b&Signature=GJpo7izivTVGQ7zfncgV7ZPWkZ5mbUvz7sZANw0x2lAZ9nb0jqr2WOwF3rNVGG2O0n2qGSpDIQC8KMGxt%2F9sDQ%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:01.954983+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T17:49:01.955008+02:00",
      "id": "d2bb192ca9d04d74a20ff43354925739"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9abe5606eb7c46dbae8af95de91a6571?KeyID=9051732b&Signature=ciAZjBQOOYzNZVQzLejH4Sk2kHgB%252BbIJNd2%2FnB3NZFgE0qDtUL2%2FKp0nolXWoINRa%252BzqBcOITbXJvpQ5jt95Cw%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.007367+02:00",
      "dateModified": "2018-03-13T17:49:02.059143+02:00",
      "id": "6d59ea99d07546efb587bc43c7d04a5b"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/d5a56252751245e493d7a5fb3b143f25?KeyID=9051732b&Signature=YZ317VHUZ%252B%252BnVQa%2FFC6qqI9ZZHhlPx6l%2FRrR2NWWcB%252BB2bdAoxDdg9YtwEg3aZi0V2Oi9ZS2afqLKYUGOW7UDA%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.110025+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T17:49:02.110045+02:00",
      "id": "31d1a44dd9924687afb1a50be3e330f6"
    }
  ]
}

Organizer can upload second illustration. This illustration should be displayed second, so it has "index": 2.

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 434
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Second illustration description",
    "title": "second_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a08e06066d06463498b6682b6aa5548c?KeyID=9051732b&Signature=c26yXdcyi5ugLh%2Bfm8TOk60NAz1JY3PfhA8njZBbIkpTvtaYtyXw1388LxNo6QFS58ZaXme%2B4b1sOd0Il%2BRDDQ%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents/76ce8a740ea6437c96b081489123d870

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Second illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a08e06066d06463498b6682b6aa5548c?KeyID=9051732b&Signature=FDbJjboLrT9Lo3ey%252B8MkXR6oyLBF2MZSeGHglx7y1nhG3ASrLSCQJu6Z0GjqdJFkl1YeeKLHWnNXVRLAmFHPDg%253D%253D",
    "title": "second_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:02.165811+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T17:49:02.165831+02:00",
    "id": "76ce8a740ea6437c96b081489123d870"
  }
}

Add third illustration:

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 430
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Third illustration description",
    "title": "third_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8728cd5d2dfb4ca2b21fff932fa0a9b6?KeyID=9051732b&Signature=RJCOMwLzJoSV%2BNKcr98oeg5EKPkRQlRGcybKJwqFyclB0WVAEEWQHVxD0GtdiyxHt95MK9onel7v49F1Cp%2BoCQ%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents/508315674c6c489cb8f9f93fd1c88a2d

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Third illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8728cd5d2dfb4ca2b21fff932fa0a9b6?KeyID=9051732b&Signature=w%2F0W0Z%252Bf%252B%2FEt9%2FsEZqq97NmLTiSg1d8CZopcTPwG1UZW2yfWLeSymMDfoIc1eHUftR9v0rXUmw0Xrl3qFSiCAA%253D%253D",
    "title": "third_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:02.207809+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T17:49:02.207831+02:00",
    "id": "508315674c6c489cb8f9f93fd1c88a2d"
  }
}

Note that index of the third illustration is the same as for the second illustration: "index": 2. In such cases firstly will be displayed illustration that was uploaded earlier.

We can check that there are three uploaded illustrations.

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:01.717914+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T17:49:01.717937+02:00",
      "id": "dd4e71968a2c4585846704771946ffb4"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6e9dad0af471454ba2e3bb2ffce1ba30?KeyID=9051732b&Signature=GJpo7izivTVGQ7zfncgV7ZPWkZ5mbUvz7sZANw0x2lAZ9nb0jqr2WOwF3rNVGG2O0n2qGSpDIQC8KMGxt%2F9sDQ%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:01.954983+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T17:49:01.955008+02:00",
      "id": "d2bb192ca9d04d74a20ff43354925739"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9abe5606eb7c46dbae8af95de91a6571?KeyID=9051732b&Signature=ciAZjBQOOYzNZVQzLejH4Sk2kHgB%252BbIJNd2%2FnB3NZFgE0qDtUL2%2FKp0nolXWoINRa%252BzqBcOITbXJvpQ5jt95Cw%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.007367+02:00",
      "dateModified": "2018-03-13T17:49:02.059143+02:00",
      "id": "6d59ea99d07546efb587bc43c7d04a5b"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/d5a56252751245e493d7a5fb3b143f25?KeyID=9051732b&Signature=YZ317VHUZ%252B%252BnVQa%2FFC6qqI9ZZHhlPx6l%2FRrR2NWWcB%252BB2bdAoxDdg9YtwEg3aZi0V2Oi9ZS2afqLKYUGOW7UDA%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.110025+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T17:49:02.110045+02:00",
      "id": "31d1a44dd9924687afb1a50be3e330f6"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Second illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a08e06066d06463498b6682b6aa5548c?KeyID=9051732b&Signature=FDbJjboLrT9Lo3ey%252B8MkXR6oyLBF2MZSeGHglx7y1nhG3ASrLSCQJu6Z0GjqdJFkl1YeeKLHWnNXVRLAmFHPDg%253D%253D",
      "title": "second_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.165811+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T17:49:02.165831+02:00",
      "id": "76ce8a740ea6437c96b081489123d870"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Third illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8728cd5d2dfb4ca2b21fff932fa0a9b6?KeyID=9051732b&Signature=w%2F0W0Z%252Bf%252B%2FEt9%2FsEZqq97NmLTiSg1d8CZopcTPwG1UZW2yfWLeSymMDfoIc1eHUftR9v0rXUmw0Xrl3qFSiCAA%253D%253D",
      "title": "third_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.207809+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T17:49:02.207831+02:00",
      "id": "508315674c6c489cb8f9f93fd1c88a2d"
    }
  ]
}

Enquiries

When auction is in active.tendering status, interested parties can ask questions:

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/questions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1506
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "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": "Калорійність"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/questions/e87d7b1491a94908bb914e4210e0994b

{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність",
    "author": {
      "contactPoint": {
        "email": "soleksuk@gmail.com",
        "telephone": "+380 (432) 21-69-30",
        "name": "Сергій Олексюк"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
        "uri": "http://sch10.edu.vn.ua/",
        "id": "00137226"
      },
      "name": "ДКП «Школяр»",
      "address": {
        "postalCode": "21100",
        "countryName": "Україна",
        "streetAddress": "вул. Островського, 33",
        "region": "м. Вінниця",
        "locality": "м. Вінниця"
      }
    },
    "date": "2018-03-13T17:49:02.343126+02:00",
    "id": "e87d7b1491a94908bb914e4210e0994b",
    "questionOf": "tender"
  }
}

Organizer can answer them:

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/questions/e87d7b1491a94908bb914e4210e0994b?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 162
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\""
  }
}


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

{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність",
    "date": "2018-03-13T17:49:02.343126+02:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "e87d7b1491a94908bb914e4210e0994b",
    "questionOf": "tender"
  }
}

And one can retrieve the question list:

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/questions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "description": "Просимо додати таблицю потрібної калорійності харчування",
      "title": "Калорійність",
      "date": "2018-03-13T17:49:02.343126+02:00",
      "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
      "id": "e87d7b1491a94908bb914e4210e0994b",
      "questionOf": "tender"
    }
  ]
}

Or an individual answer:

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/questions/e87d7b1491a94908bb914e4210e0994b HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність",
    "date": "2018-03-13T17:49:02.343126+02:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "e87d7b1491a94908bb914e4210e0994b",
    "questionOf": "tender"
  }
}

Registering bid

Bidder can register a bid in draft status:

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 768
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "draft",
    "qualified": true,
    "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": "м. Вінниця"
        }
      }
    ],
    "eligible": true
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1

{
  "access": {
    "token": "a2b9dcbe25774fe2a9331a7c5da3b88e"
  },
  "data": {
    "status": "draft",
    "eligible": true,
    "date": "2018-03-13T17:49:02.490172+02:00",
    "qualified": 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": "м. Вінниця"
        }
      }
    ],
    "owner": "broker",
    "id": "2d61cec5ecd340d5b72e8193a84ec6e1"
  }
}

And activate a bid:

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1?acc_token=a2b9dcbe25774fe2a9331a7c5da3b88e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "active",
    "eligible": true,
    "date": "2018-03-13T17:49:02.490172+02:00",
    "qualified": 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": "м. Вінниця"
        }
      }
    ],
    "owner": "broker",
    "id": "2d61cec5ecd340d5b72e8193a84ec6e1",
    "participationUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/ca31727f31f243b089cbc005b8fda5ba/login?bidder_id=2d61cec5ecd340d5b72e8193a84ec6e1&signature=06SLpa1457CetL%2BUdB3Pza%2B6xacncLA8MFnKtQx%2B%2BFgm94uCVjeSxSqRtVlCIPQR1Ng64Mg5%2BMxy0GDRUFZBCw%3D%3D"
  }
}

And upload proposal document:

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1/documents?acc_token=a2b9dcbe25774fe2a9331a7c5da3b88e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 333
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/90f5ca27a7ea4708a1c3a8e79617a134?KeyID=9051732b&Signature=ipsBMoxbbe3M%2FvtE8DvyRQu2jTKBOQd529hukqNHXL0WfgcuQiZzUmIVyb6zCeNOWvg2K%2FKfZ%2Fjn0n6pJKDwAw%3D%3D",
    "title": "Proposal.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1/documents/bc8f62c615d8467fac907dd9b9522d6e

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1/documents/bc8f62c615d8467fac907dd9b9522d6e?download=90f5ca27a7ea4708a1c3a8e79617a134",
    "title": "Proposal.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:02.616512+02:00",
    "dateModified": "2018-03-13T17:49:02.616532+02:00",
    "id": "bc8f62c615d8467fac907dd9b9522d6e"
  }
}

It is possible to check the uploaded documents:

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1/documents?acc_token=a2b9dcbe25774fe2a9331a7c5da3b88e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1/documents/bc8f62c615d8467fac907dd9b9522d6e?download=90f5ca27a7ea4708a1c3a8e79617a134",
      "title": "Proposal.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:02.616512+02:00",
      "dateModified": "2018-03-13T17:49:02.616532+02:00",
      "id": "bc8f62c615d8467fac907dd9b9522d6e"
    }
  ]
}

For the best effect (biggest economy) auction should have multiple bidders registered:

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 741
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "qualified": true,
    "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": "м. Львів"
        }
      }
    ],
    "value": {
      "amount": 501
    },
    "eligible": true
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/86459d45ea7847a199f1ad3b0b983b05

{
  "access": {
    "token": "0f09820ab05d457cac54e061ee8b9b2a"
  },
  "data": {
    "status": "active",
    "eligible": true,
    "date": "2018-03-13T17:49:02.700940+02:00",
    "qualified": 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": "м. Львів"
        }
      }
    ],
    "owner": "broker",
    "id": "86459d45ea7847a199f1ad3b0b983b05",
    "participationUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/ca31727f31f243b089cbc005b8fda5ba/login?bidder_id=86459d45ea7847a199f1ad3b0b983b05&signature=QEZ4%2BaAV1nTEGT%2BpXO2kWbk0NMp7rhadzC2IytuwSBzMD/BNsvVpYoi78aA24FC3u1HTJJILvdhsBcrbreVODQ%3D%3D"
  }
}

Auction

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

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2018-03-13-000001",
    "auctionUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/ca31727f31f243b089cbc005b8fda5ba",
    "enquiryPeriod": {
      "startDate": "2018-02-21T17:48:55.444253+02:00",
      "endDate": "2018-03-13T17:48:55.444253+02:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2018-03-14T01:04:45.444253+02:00",
    "awardCriteria": "highestCost",
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "title": "Калорійність",
        "date": "2018-03-13T17:49:02.343126+02:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "e87d7b1491a94908bb914e4210e0994b",
        "questionOf": "tender"
      }
    ],
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "ca31727f31f243b089cbc005b8fda5ba",
    "eligibilityCriteria_ru": "Участником электронного аукциона, предметом продажи на которых являются права требования по кредитным договорам и договорам обеспечения, не может быть пользователь, являющийся заёмщиком (должником относительно банка) и\\или поручителем (имущественным поручителем) по таким кредитным договорам и/или договорам обеспечения.",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:01.717914+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T17:49:01.717937+02:00",
        "id": "dd4e71968a2c4585846704771946ffb4"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "document description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6e9dad0af471454ba2e3bb2ffce1ba30?KeyID=9051732b&Signature=GJpo7izivTVGQ7zfncgV7ZPWkZ5mbUvz7sZANw0x2lAZ9nb0jqr2WOwF3rNVGG2O0n2qGSpDIQC8KMGxt%2F9sDQ%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:01.954983+02:00",
        "documentType": "technicalSpecifications",
        "dateModified": "2018-03-13T17:49:01.955008+02:00",
        "id": "d2bb192ca9d04d74a20ff43354925739"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c53f5a29c33f48fe88c94ba1978e3636?KeyID=9051732b&Signature=dkQjsWyizoNpcOrbXPCKaJkVSRMjtnyjOYBdqwwu%252BBM4dL3jfTYsKQ6mYy5aFfOvYXHs5MoGMjKyxTFxO5YuDQ%253D%253D",
        "title": "AwardCriteria.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:02.007367+02:00",
        "dateModified": "2018-03-13T17:49:02.007397+02:00",
        "id": "6d59ea99d07546efb587bc43c7d04a5b"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9abe5606eb7c46dbae8af95de91a6571?KeyID=9051732b&Signature=ciAZjBQOOYzNZVQzLejH4Sk2kHgB%252BbIJNd2%2FnB3NZFgE0qDtUL2%2FKp0nolXWoINRa%252BzqBcOITbXJvpQ5jt95Cw%253D%253D",
        "title": "AwardCriteria-2.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:02.007367+02:00",
        "dateModified": "2018-03-13T17:49:02.059143+02:00",
        "id": "6d59ea99d07546efb587bc43c7d04a5b"
      },
      {
        "index": 1,
        "hash": "md5:00000000000000000000000000000000",
        "description": "First illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/d5a56252751245e493d7a5fb3b143f25?KeyID=9051732b&Signature=YZ317VHUZ%252B%252BnVQa%2FFC6qqI9ZZHhlPx6l%2FRrR2NWWcB%252BB2bdAoxDdg9YtwEg3aZi0V2Oi9ZS2afqLKYUGOW7UDA%253D%253D",
        "title": "first_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:02.110025+02:00",
        "documentType": "illustration",
        "dateModified": "2018-03-13T17:49:02.110045+02:00",
        "id": "31d1a44dd9924687afb1a50be3e330f6"
      },
      {
        "index": 2,
        "hash": "md5:00000000000000000000000000000000",
        "description": "Second illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a08e06066d06463498b6682b6aa5548c?KeyID=9051732b&Signature=FDbJjboLrT9Lo3ey%252B8MkXR6oyLBF2MZSeGHglx7y1nhG3ASrLSCQJu6Z0GjqdJFkl1YeeKLHWnNXVRLAmFHPDg%253D%253D",
        "title": "second_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:02.165811+02:00",
        "documentType": "illustration",
        "dateModified": "2018-03-13T17:49:02.165831+02:00",
        "id": "76ce8a740ea6437c96b081489123d870"
      },
      {
        "index": 2,
        "hash": "md5:00000000000000000000000000000000",
        "description": "Third illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8728cd5d2dfb4ca2b21fff932fa0a9b6?KeyID=9051732b&Signature=w%2F0W0Z%252Bf%252B%2FEt9%2FsEZqq97NmLTiSg1d8CZopcTPwG1UZW2yfWLeSymMDfoIc1eHUftR9v0rXUmw0Xrl3qFSiCAA%253D%253D",
        "title": "third_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:02.207809+02:00",
        "documentType": "illustration",
        "dateModified": "2018-03-13T17:49:02.207831+02:00",
        "id": "508315674c6c489cb8f9f93fd1c88a2d"
      },
      {
        "title": "Familiarization with bank asset",
        "format": "offline/on-site-examination",
        "accessDetails": "Familiar with asset: days, time, address",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:02.273728+02:00",
        "documentType": "x_dgfAssetFamiliarization",
        "dateModified": "2018-03-13T17:49:02.273747+02:00",
        "id": "c2cc28c265a64cdcb3f2bd1bafcd892f"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "eligibilityCriteria_en": "The user, who is the borrower (the debtor of the bank) and/or guarantor (property guarantor) for loan agreements and/or collateral agreements, cannot be the bidder of the electronic auction, where the items for sale are the claim rights on such loan agreements and collateral agreements.",
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2018-03-13T17:49:02.901426+02:00",
    "status": "active.auction",
    "eligibilityCriteria": "Учасником електронного аукціону, предметом продажу на яких є права вимоги за кредитними договорами та договорами забезпечення, не може бути користувач, який є позичальником (боржником відносно банку) та/або поручителем (майновим поручителем) за такими кредитними договорами та/або договорами забезпечення.",
    "tenderPeriod": {
      "startDate": "2018-02-21T17:48:55.444253+02:00",
      "endDate": "2018-03-13T17:49:12.319253+02:00"
    },
    "auctionPeriod": {
      "startDate": "2018-03-13T17:48:55.444253+02:00",
      "shouldStartAfter": "2018-03-14T00:00:00+02:00"
    },
    "procurementMethodType": "dgfInsider",
    "dgfID": "219560",
    "date": "2018-03-13T17:49:02.901426+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 0.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "e24b924ada114a0d95d03a8c89eadda7",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

And bidders can find out their participation URLs via their bids:

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1?acc_token=a2b9dcbe25774fe2a9331a7c5da3b88e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/2d61cec5ecd340d5b72e8193a84ec6e1/documents/bc8f62c615d8467fac907dd9b9522d6e?download=90f5ca27a7ea4708a1c3a8e79617a134",
        "title": "Proposal.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:02.616512+02:00",
        "dateModified": "2018-03-13T17:49:02.616532+02:00",
        "id": "bc8f62c615d8467fac907dd9b9522d6e"
      }
    ],
    "eligible": true,
    "date": "2018-03-13T17:49:02.490172+02:00",
    "qualified": 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": "м. Вінниця"
        }
      }
    ],
    "owner": "broker",
    "id": "2d61cec5ecd340d5b72e8193a84ec6e1",
    "participationUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/ca31727f31f243b089cbc005b8fda5ba/login?bidder_id=2d61cec5ecd340d5b72e8193a84ec6e1&signature=06SLpa1457CetL%2BUdB3Pza%2B6xacncLA8MFnKtQx%2B%2BFgm94uCVjeSxSqRtVlCIPQR1Ng64Mg5%2BMxy0GDRUFZBCw%3D%3D"
  }
}

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

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/bids/86459d45ea7847a199f1ad3b0b983b05?acc_token=0f09820ab05d457cac54e061ee8b9b2a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": {
    "status": "active",
    "eligible": true,
    "date": "2018-03-13T17:49:02.700940+02:00",
    "qualified": 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": "м. Львів"
        }
      }
    ],
    "owner": "broker",
    "id": "86459d45ea7847a199f1ad3b0b983b05",
    "participationUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/ca31727f31f243b089cbc005b8fda5ba/login?bidder_id=86459d45ea7847a199f1ad3b0b983b05&signature=QEZ4%2BaAV1nTEGT%2BpXO2kWbk0NMp7rhadzC2IytuwSBzMD/BNsvVpYoi78aA24FC3u1HTJJILvdhsBcrbreVODQ%3D%3D"
  }
}

Qualification

After the competitive auction two awards are created:
  • for the first candidate (a participant that has submitted the highest valid bid at the auction) - initially has a pending.verification status and awaits auction protocol to be uploaded by the organizer;
  • for the second candidate (a participant that has submitted the second highest valid bid at the auction).
GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/awards HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "status": "pending",
      "verificationPeriod": {
        "startDate": "2018-03-13T17:49:03.167518+02:00",
        "endDate": "2018-03-13T17:53:03.457101+02:00"
      },
      "signingPeriod": {
        "startDate": "2018-03-13T17:49:03.167518+02:00",
        "endDate": "2018-03-13T18:09:02.790434+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": "м. Львів"
          }
        }
      ],
      "complaintPeriod": {
        "startDate": "2018-03-13T17:49:03.167518+02:00"
      },
      "bid_id": "86459d45ea7847a199f1ad3b0b983b05",
      "value": {
        "currency": "UAH",
        "amount": 479.0,
        "valueAddedTaxIncluded": true
      },
      "date": "2018-03-13T17:49:03.167518+02:00",
      "id": "7d4e36e2232f45b0910f887feaf23af1"
    },
    {
      "status": "pending.waiting",
      "complaintPeriod": {
        "startDate": "2018-03-13T17:49:03.167518+02:00"
      },
      "suppliers": [
        {
          "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": "м. Вінниця"
          }
        }
      ],
      "bid_id": "2d61cec5ecd340d5b72e8193a84ec6e1",
      "value": {
        "currency": "UAH",
        "amount": 469.0,
        "valueAddedTaxIncluded": true
      },
      "date": "2018-03-13T17:49:03.167518+02:00",
      "id": "70ae2a31ad3840de92d8b0ced384fce6"
    }
  ]
}

Confirming qualification

The organizer must upload and confirm the auction protocol auctionProtocol and add it to the award within 4 business days after the start of the qualification procedure. The candidate still has a possibility to upload the protocol, but it is neither mandatory, nor sufficient to move to the next status. If the auction protocol has not been uploaded before the end of verificationPeriod, the award is automatically transferred to the unsuccessful status.

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/awards/7d4e36e2232f45b0910f887feaf23af1/documents?acc_token=0f09820ab05d457cac54e061ee8b9b2a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 377
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a896d2bee21d48669b866b658a2b5421?KeyID=9051732b&Signature=7Gbk0xPVvAhPC0AqX08PCu9LBQXtExeYCnSfMBx1xShbXE2xBhI9QPAjYC2a%2BFi410oWlJYn4UqwK1q3nOp7DQ%3D%3D",
    "title": "SignedAuctionProtocol.pdf",
    "format": "application/pdf",
    "hash": "md5:00000000000000000000000000000000",
    "documentType": "auctionProtocol"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/awards/7d4e36e2232f45b0910f887feaf23af1/documents/dc7ccdfb41a44533a03a9cffff4a8850

{
  "data": {
    "dateModified": "2018-03-13T17:49:03.449222+02:00",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a896d2bee21d48669b866b658a2b5421?KeyID=9051732b&Signature=i6P59QQMzh8%252BfWJik6jodxWwsAdokeAWTfJbaM76B5amghHYoZqUgrQxx%252BUU3WDT9Tr5cxxwrps4%2FZixJDgFDw%253D%253D",
    "author": "bid_owner",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:03.449202+02:00",
    "documentType": "auctionProtocol",
    "title": "SignedAuctionProtocol.pdf",
    "id": "dc7ccdfb41a44533a03a9cffff4a8850"
  }
}
POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/awards/7d4e36e2232f45b0910f887feaf23af1/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 379
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/d34f99a7d7974129b0b07a29cc6fab83?KeyID=9051732b&Signature=JOhIuaYeqT%2BS2ojCGA4BR0diafDotXmneTp4hMLVNR1hS4fmsjK6s9QhSBUXFcgfmsd8Q%2FIAEtivwbsS2FiYDA%3D%3D",
    "title": "SignedAuctionProtocol.pdf",
    "format": "application/pdf",
    "hash": "md5:00000000000000000000000000000000",
    "documentType": "auctionProtocol"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/awards/7d4e36e2232f45b0910f887feaf23af1/documents/9aa74f7dd18a486d8f2950d1ca989ae7

{
  "data": {
    "dateModified": "2018-03-13T17:49:03.539780+02:00",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/d34f99a7d7974129b0b07a29cc6fab83?KeyID=9051732b&Signature=JfJFODRl68KuCQto%252BnHrgJeaQ7ZGLG8wRL42YA8PH5aDbXPDVds1gVQGyqTNXGKB7sqwdLnhRXGJpMLlpBIqCA%253D%253D",
    "author": "auction_owner",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:03.539741+02:00",
    "documentType": "auctionProtocol",
    "title": "SignedAuctionProtocol.pdf",
    "id": "9aa74f7dd18a486d8f2950d1ca989ae7"
  }
}

It is the organizer’s duty to upload and confirm the protocol, although the award will not switch the status to “pending.payment” automatically.

PATCH /api/2.3/auctions/f286dd83f6f0475abf06f75d34486918/awards/e00f0f4e529c427096517fec0d32036b?acc_token=8afef504e6e64f1f94342c77c88294f3 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 39
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "pending.payment"
  }
}

Within 20 business days after becoming a candidate he/she must provide payment and organizer has the same time to confirm the payment. Otherwise, the award will automatically become “unsuccessful”:

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/awards/7d4e36e2232f45b0910f887feaf23af1?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "active",
    "documents": [
      {
        "dateModified": "2018-03-13T17:49:03.449222+02:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a896d2bee21d48669b866b658a2b5421?KeyID=9051732b&Signature=i6P59QQMzh8%252BfWJik6jodxWwsAdokeAWTfJbaM76B5amghHYoZqUgrQxx%252BUU3WDT9Tr5cxxwrps4%2FZixJDgFDw%253D%253D",
        "author": "bid_owner",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:03.449202+02:00",
        "documentType": "auctionProtocol",
        "title": "SignedAuctionProtocol.pdf",
        "id": "dc7ccdfb41a44533a03a9cffff4a8850"
      },
      {
        "dateModified": "2018-03-13T17:49:03.539780+02:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/d34f99a7d7974129b0b07a29cc6fab83?KeyID=9051732b&Signature=JfJFODRl68KuCQto%252BnHrgJeaQ7ZGLG8wRL42YA8PH5aDbXPDVds1gVQGyqTNXGKB7sqwdLnhRXGJpMLlpBIqCA%253D%253D",
        "author": "auction_owner",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:03.539741+02:00",
        "documentType": "auctionProtocol",
        "title": "SignedAuctionProtocol.pdf",
        "id": "9aa74f7dd18a486d8f2950d1ca989ae7"
      }
    ],
    "verificationPeriod": {
      "startDate": "2018-03-13T17:49:03.167518+02:00",
      "endDate": "2018-03-13T17:49:03.647933+02:00"
    },
    "signingPeriod": {
      "startDate": "2018-03-13T17:49:03.167518+02:00",
      "endDate": "2018-03-13T18:09:02.790434+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": "м. Львів"
        }
      }
    ],
    "complaintPeriod": {
      "startDate": "2018-03-13T17:49:03.167518+02:00",
      "endDate": "2018-03-13T17:49:03.647933+02:00"
    },
    "bid_id": "86459d45ea7847a199f1ad3b0b983b05",
    "value": {
      "currency": "UAH",
      "amount": 479.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T17:49:03.658341+02:00",
    "id": "7d4e36e2232f45b0910f887feaf23af1"
  }
}

Disqualification of a candidate

In case of manual disqualification, the organizer has to upload file with cancellation reason:

POST /api/2.3/auctions/6f0f6b78d53f463bbd96a6e7721b15aa/awards/d1083268c50c4fa2b55c30351d57e1c1/documents?acc_token=d04bcd5a5db84bebaf2d7af95aea2a4a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 382
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/719ad9fe39f744acb248bd2d32d9f9af?KeyID=3ad9481a&Signature=vnBgkdj07suX8iD8d0xOlE8Jer4KzN2lNdQZT9o3EbUhcJcRR0tOJtFl6Kjneghy5K%2BKX51nIdwZ0k0Qx2zeDw%3D%3D",
    "title": "Disqualified_reason.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "description": "Disqualification reason",
    "format": "application/pdf"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/6f0f6b78d53f463bbd96a6e7721b15aa/awards/d1083268c50c4fa2b55c30351d57e1c1/documents/a9e934f6aa8d4ed8be541d81c44feef0

{
  "data": {
    "dateModified": "2018-03-13T17:49:00.623811+02:00",
    "hash": "md5:00000000000000000000000000000000",
    "description": "Disqualification reason",
    "author": "auction_owner",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/719ad9fe39f744acb248bd2d32d9f9af?KeyID=3ad9481a&Signature=tjEu7V%2FxtrYA%252BNpAv6YB5Yje17vtaRGdbpxI71wYj08QHJCb3mYCbJARem%2FpkX%2FoC7SPp5mFNRCqRgT7m3GtBQ%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:00.623792+02:00",
    "title": "Disqualified_reason.pdf",
    "id": "a9e934f6aa8d4ed8be541d81c44feef0"
  }
}

And disqualify candidate:

PATCH /api/2.3/auctions/6f0f6b78d53f463bbd96a6e7721b15aa/awards/d1083268c50c4fa2b55c30351d57e1c1?acc_token=d04bcd5a5db84bebaf2d7af95aea2a4a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 146
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "unsuccessful",
    "description": "Candidate didn’t sign the auction protocol in 3 business days",
    "title": "Disqualified"
  }
}


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

{
  "data": {
    "status": "unsuccessful",
    "documents": [
      {
        "dateModified": "2018-03-13T17:49:00.542652+02:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7ede9960779e46a0a2566d2f31dc2cd0?KeyID=3ad9481a&Signature=xxQKAL%252B3srRivLQgQzdsKhX2n4%252BLPsOkt6uYjHQMXjrrL%2FPMPP9iSKa3jQiu3CoRmz5thKn9Qco%2FVIccfnPNDw%253D%253D",
        "author": "bid_owner",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:00.542631+02:00",
        "documentType": "auctionProtocol",
        "title": "auction_protocol.pdf",
        "id": "ab622968b0944f7d94e2f7702da54c61"
      },
      {
        "dateModified": "2018-03-13T17:49:00.623811+02:00",
        "hash": "md5:00000000000000000000000000000000",
        "description": "Disqualification reason",
        "author": "auction_owner",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/719ad9fe39f744acb248bd2d32d9f9af?KeyID=3ad9481a&Signature=tjEu7V%2FxtrYA%252BNpAv6YB5Yje17vtaRGdbpxI71wYj08QHJCb3mYCbJARem%2FpkX%2FoC7SPp5mFNRCqRgT7m3GtBQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:00.623792+02:00",
        "title": "Disqualified_reason.pdf",
        "id": "a9e934f6aa8d4ed8be541d81c44feef0"
      }
    ],
    "verificationPeriod": {
      "startDate": "2018-03-13T17:49:00.433838+02:00",
      "endDate": "2018-03-13T17:49:00.719379+02:00"
    },
    "description": "Candidate didn’t sign the auction protocol in 3 business days",
    "title": "Disqualified",
    "suppliers": [
      {
        "additionalIdentifiers": [
          {
            "scheme": "UA-FIN",
            "id": "А01 457213"
          }
        ],
        "contactPoint": {
          "name": "Державне управління справами",
          "telephone": "0440000000"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00037256",
          "uri": "http://www.dus.gov.ua/"
        },
        "name": "Державне управління справами",
        "address": {
          "postalCode": "01220",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова, 11, корпус 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        }
      }
    ],
    "complaintPeriod": {
      "startDate": "2018-03-13T17:49:00.161595+02:00",
      "endDate": "2018-03-13T17:49:00.719379+02:00"
    },
    "bid_id": "408137f98b17480cbd50c7d917d591fd",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T17:49:00.729111+02:00",
    "id": "d1083268c50c4fa2b55c30351d57e1c1",
    "signingPeriod": {
      "startDate": "2018-03-13T17:49:00.433838+02:00",
      "endDate": "2018-03-13T18:09:00.058838+02:00"
    }
  }
}

Within 20 business days since becoming candidate a new candidate must confirm qualification with steps described above (Qualification).

Refusal of waiting by another participant

The second candidate (participant that has submitted the second highest valid bid at the auction) can refuse to wait for the disqualification of the first candidate:

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/awards/70ae2a31ad3840de92d8b0ced384fce6?acc_token=a2b9dcbe25774fe2a9331a7c5da3b88e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 33
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "cancelled"
  }
}


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

{
  "data": {
    "status": "cancelled",
    "complaintPeriod": {
      "startDate": "2018-03-13T17:49:03.167518+02:00",
      "endDate": "2018-03-13T17:49:03.332068+02:00"
    },
    "suppliers": [
      {
        "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": "м. Вінниця"
        }
      }
    ],
    "bid_id": "2d61cec5ecd340d5b72e8193a84ec6e1",
    "value": {
      "currency": "UAH",
      "amount": 469.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T17:49:03.338642+02:00",
    "id": "70ae2a31ad3840de92d8b0ced384fce6"
  }
}

Signing contract

The candidate has 20 business days after becoming a candidate to conclude a contract with the bank based on the results of electronic auction.

Uploading contract documentation

You can upload contract documents. Let’s upload contract document:

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 349
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/39b2454289e240d38e00636e2e79016a?KeyID=9051732b&Signature=0wVbzhYE8tbKPUz5Ekn2cb%2B9ClOyh2giql3ju30HBQ818xVUQg1vi975QxDFtW4NO2A6intTKkUfBUEtF%2BZWBw%3D%3D",
    "title": "contract_first_document.doc",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/documents/393a04982b1441138438c7273b49eac1

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/39b2454289e240d38e00636e2e79016a?KeyID=9051732b&Signature=sGiPfaDjXW6iDJHcCpbc1eAc6aGcy9NdEnxZLrLVxcpIIbLp2TheHdUM4klGIrfd7L8rbhBG83PEk%252BrW9%252BzCCg%253D%253D",
    "title": "contract_first_document.doc",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:03.945461+02:00",
    "documentType": "prolongationProtocol",
    "dateModified": "2018-03-13T17:49:03.945487+02:00",
    "id": "393a04982b1441138438c7273b49eac1"
  }
}

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/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/msword",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/39b2454289e240d38e00636e2e79016a?KeyID=9051732b&Signature=sGiPfaDjXW6iDJHcCpbc1eAc6aGcy9NdEnxZLrLVxcpIIbLp2TheHdUM4klGIrfd7L8rbhBG83PEk%252BrW9%252BzCCg%253D%253D",
      "title": "contract_first_document.doc",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:03.945461+02:00",
      "documentType": "prolongationProtocol",
      "dateModified": "2018-03-13T17:49:03.945487+02:00",
      "id": "393a04982b1441138438c7273b49eac1"
    }
  ]
}

We can add another contract document:

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 352
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/88721cf4cae843ee80ce612a2fe1b79b?KeyID=9051732b&Signature=tL9k0SRxwU0cs%2BbHY3xF0UcTDMqhxd3t2BGCUNGgioWi09k%2BgHKE5vjRz4rmOYYIttUEy3WIyVjeDZdg%2BeaABQ%3D%3D",
    "title": "contract_second_document.doc",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/documents/718396f63ab84e5d805f02e0026c9ded

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/88721cf4cae843ee80ce612a2fe1b79b?KeyID=9051732b&Signature=ZA%2FjEQr6RDA%2F7FhI6UstyyAqrqKmIsxU4EyuYfLUVSu8Wj3BPm3E3ypVkeG3dVLIhZm785Un8%2Fr4ZM%252BvC8F0AQ%253D%253D",
    "title": "contract_second_document.doc",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:04.104741+02:00",
    "documentType": "prolongationProtocol",
    "dateModified": "2018-03-13T17:49:04.104761+02:00",
    "id": "718396f63ab84e5d805f02e0026c9ded"
  }
}

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

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

GET /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/msword",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/39b2454289e240d38e00636e2e79016a?KeyID=9051732b&Signature=sGiPfaDjXW6iDJHcCpbc1eAc6aGcy9NdEnxZLrLVxcpIIbLp2TheHdUM4klGIrfd7L8rbhBG83PEk%252BrW9%252BzCCg%253D%253D",
      "title": "contract_first_document.doc",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:03.945461+02:00",
      "documentType": "prolongationProtocol",
      "dateModified": "2018-03-13T17:49:03.945487+02:00",
      "id": "393a04982b1441138438c7273b49eac1"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/msword",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/88721cf4cae843ee80ce612a2fe1b79b?KeyID=9051732b&Signature=ZA%2FjEQr6RDA%2F7FhI6UstyyAqrqKmIsxU4EyuYfLUVSu8Wj3BPm3E3ypVkeG3dVLIhZm785Un8%2Fr4ZM%252BvC8F0AQ%253D%253D",
      "title": "contract_second_document.doc",
      "documentOf": "tender",
      "datePublished": "2018-03-13T17:49:04.104741+02:00",
      "documentType": "prolongationProtocol",
      "dateModified": "2018-03-13T17:49:04.104761+02:00",
      "id": "718396f63ab84e5d805f02e0026c9ded"
    }
  ]
}

Contract prolongation

Candidate can prolongate contract signing period by creating prolongation

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 172
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "decisionID": "ZM-937-99-92",
    "reason": "other",
    "documents": [],
    "description": "Prolongation description",
    "datePublished": "2018-03-13T17:48:55.444916+02:00"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations

{
  "data": {
    "status": "draft",
    "decisionID": "ZM-937-99-92",
    "description": "Prolongation description",
    "dateCreated": "2018-03-13T17:48:56.056522+02:00",
    "reason": "other",
    "datePublished": "2018-03-13T17:48:55.444916+02:00",
    "id": "5a7332f6287f4f36ab23e2f00b755a5b"
  }
}

Prolongation must have documents attached to be prepared for activation

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations/5a7332f6287f4f36ab23e2f00b755a5b/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 226
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy671957802199$
Host: api-sandbox.ea.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations/5a7332f6287f4f36ab23e2f00b755a5b/documents/876f84e9cb9e4c78bc59a82f6a994aa7

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/bf938a820dfd4afea7f6257f6b7890c0?KeyID=9051732b&Signature=3lf7HJKApzjAFumRfN8w7KjWRD1YZFly%252BwEFyrOpiVrbc3m%2FKl%252BJq1X%252BJuEXRkkDwzc1nTgA0GtXovI2Gjr3Cg%253D%253D",
    "title": "ProlongationDocument.doc",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:04.483038+02:00",
    "documentType": "prolongationProtocol",
    "dateModified": "2018-03-13T17:49:04.483060+02:00",
    "id": "876f84e9cb9e4c78bc59a82f6a994aa7"
  }
}

Created prolongation has status “draft” by default, so there is a need to set status to “applied” to make it active.

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations/5a7332f6287f4f36ab23e2f00b755a5b?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 31
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "applied"
  }
}


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

{
  "data": {
    "status": "applied",
    "decisionID": "ZM-937-99-92",
    "description": "Prolongation description",
    "datePublished": "2018-03-13T17:48:55.444916+02:00",
    "reason": "other",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/bf938a820dfd4afea7f6257f6b7890c0?KeyID=9051732b&Signature=3lf7HJKApzjAFumRfN8w7KjWRD1YZFly%252BwEFyrOpiVrbc3m%2FKl%252BJq1X%252BJuEXRkkDwzc1nTgA0GtXovI2Gjr3Cg%253D%253D",
        "title": "ProlongationDocument.doc",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:04.483038+02:00",
        "documentType": "prolongationProtocol",
        "dateModified": "2018-03-13T17:49:04.483060+02:00",
        "id": "876f84e9cb9e4c78bc59a82f6a994aa7"
      }
    ],
    "dateCreated": "2018-03-13T17:48:56.056522+02:00",
    "id": "5a7332f6287f4f36ab23e2f00b755a5b"
  }
}

When a contract has been prolongated for first time, a short prolongation period applies. It is equal to 42 working days. It’s also possible to apply long-term (132 days) prolongation: just create new Prolongation for the already prolongated Contract, and apply it.

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 179
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "decisionID": "ZM-937-99-92-2",
    "reason": "other",
    "documents": [],
    "description": "Long prolongation description",
    "datePublished": "2018-03-13T17:48:55.444945+02:00"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations

{
  "data": {
    "status": "draft",
    "decisionID": "ZM-937-99-92-2",
    "description": "Long prolongation description",
    "dateCreated": "2018-03-13T17:48:56.056522+02:00",
    "reason": "other",
    "datePublished": "2018-03-13T17:48:55.444945+02:00",
    "id": "17001a57deec4c9e8d94893e98a41b2c"
  }
}
POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations/17001a57deec4c9e8d94893e98a41b2c/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 232
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy0634313776474$
Host: api-sandbox.ea.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations/17001a57deec4c9e8d94893e98a41b2c/documents/3ac38b03ea5147c2bb4b5b7aa432ea56

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/83bf8a28d4b54833b5050aa186d5dafc?KeyID=9051732b&Signature=hEOASma%2FODQf7xlDG%2FXkEYDkNskZT7o8wdNu7a0mAzDIEpRnvTOHYIwRwggMdVjnVsszxyiTE4Oa1q%252BPTG8lAQ%253D%253D",
    "title": "LongProlongationDocument.doc",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:04.872779+02:00",
    "documentType": "prolongationProtocol",
    "dateModified": "2018-03-13T17:49:04.872805+02:00",
    "id": "3ac38b03ea5147c2bb4b5b7aa432ea56"
  }
}
PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e/prolongations/17001a57deec4c9e8d94893e98a41b2c?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 31
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "applied"
  }
}


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

{
  "data": {
    "status": "applied",
    "decisionID": "ZM-937-99-92-2",
    "description": "Long prolongation description",
    "datePublished": "2018-03-13T17:48:55.444945+02:00",
    "reason": "other",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/83bf8a28d4b54833b5050aa186d5dafc?KeyID=9051732b&Signature=hEOASma%2FODQf7xlDG%2FXkEYDkNskZT7o8wdNu7a0mAzDIEpRnvTOHYIwRwggMdVjnVsszxyiTE4Oa1q%252BPTG8lAQ%253D%253D",
        "title": "LongProlongationDocument.doc",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:04.872779+02:00",
        "documentType": "prolongationProtocol",
        "dateModified": "2018-03-13T17:49:04.872805+02:00",
        "id": "3ac38b03ea5147c2bb4b5b7aa432ea56"
      }
    ],
    "dateCreated": "2018-03-13T17:48:56.056522+02:00",
    "id": "17001a57deec4c9e8d94893e98a41b2c"
  }
}

Contract registration

There is a possibility to set custom contract signature date. If the date is not set it will be generated on contract registration. You can register contract:

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/contracts/30925f126c174b389a1eed392c9f0c9e?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 80
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "active",
    "dateSigned": "2018-03-13T17:49:05.103318+02:00"
  }
}


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

{
  "data": {
    "status": "active",
    "prolongations": [
      {
        "status": "applied",
        "decisionID": "ZM-937-99-92",
        "description": "Prolongation description",
        "datePublished": "2018-03-13T17:48:55.444916+02:00",
        "reason": "other",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "format": "application/msword",
            "url": "http://public.docs-sandbox.ea.openprocurement.org/get/bf938a820dfd4afea7f6257f6b7890c0?KeyID=9051732b&Signature=3lf7HJKApzjAFumRfN8w7KjWRD1YZFly%252BwEFyrOpiVrbc3m%2FKl%252BJq1X%252BJuEXRkkDwzc1nTgA0GtXovI2Gjr3Cg%253D%253D",
            "title": "ProlongationDocument.doc",
            "documentOf": "tender",
            "datePublished": "2018-03-13T17:49:04.483038+02:00",
            "documentType": "prolongationProtocol",
            "dateModified": "2018-03-13T17:49:04.483060+02:00",
            "id": "876f84e9cb9e4c78bc59a82f6a994aa7"
          }
        ],
        "dateCreated": "2018-03-13T17:48:56.056522+02:00",
        "id": "5a7332f6287f4f36ab23e2f00b755a5b"
      },
      {
        "status": "applied",
        "decisionID": "ZM-937-99-92-2",
        "description": "Long prolongation description",
        "datePublished": "2018-03-13T17:48:55.444945+02:00",
        "reason": "other",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "format": "application/msword",
            "url": "http://public.docs-sandbox.ea.openprocurement.org/get/83bf8a28d4b54833b5050aa186d5dafc?KeyID=9051732b&Signature=hEOASma%2FODQf7xlDG%2FXkEYDkNskZT7o8wdNu7a0mAzDIEpRnvTOHYIwRwggMdVjnVsszxyiTE4Oa1q%252BPTG8lAQ%253D%253D",
            "title": "LongProlongationDocument.doc",
            "documentOf": "tender",
            "datePublished": "2018-03-13T17:49:04.872779+02:00",
            "documentType": "prolongationProtocol",
            "dateModified": "2018-03-13T17:49:04.872805+02:00",
            "id": "3ac38b03ea5147c2bb4b5b7aa432ea56"
          }
        ],
        "dateCreated": "2018-03-13T17:48:56.056522+02:00",
        "id": "17001a57deec4c9e8d94893e98a41b2c"
      }
    ],
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/39b2454289e240d38e00636e2e79016a?KeyID=9051732b&Signature=sGiPfaDjXW6iDJHcCpbc1eAc6aGcy9NdEnxZLrLVxcpIIbLp2TheHdUM4klGIrfd7L8rbhBG83PEk%252BrW9%252BzCCg%253D%253D",
        "title": "contract_first_document.doc",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:03.945461+02:00",
        "documentType": "prolongationProtocol",
        "dateModified": "2018-03-13T17:49:03.945487+02:00",
        "id": "393a04982b1441138438c7273b49eac1"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/88721cf4cae843ee80ce612a2fe1b79b?KeyID=9051732b&Signature=ZA%2FjEQr6RDA%2F7FhI6UstyyAqrqKmIsxU4EyuYfLUVSu8Wj3BPm3E3ypVkeG3dVLIhZm785Un8%2Fr4ZM%252BvC8F0AQ%253D%253D",
        "title": "contract_second_document.doc",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:04.104741+02:00",
        "documentType": "prolongationProtocol",
        "dateModified": "2018-03-13T17:49:04.104761+02:00",
        "id": "718396f63ab84e5d805f02e0026c9ded"
      }
    ],
    "signingPeriod": {
      "startDate": "2018-03-13T17:49:03.167518+02:00",
      "endDate": "2018-07-23T17:49:03.167518+02:00"
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "e24b924ada114a0d95d03a8c89eadda7",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "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": "м. Львів"
        }
      }
    ],
    "period": {
      "startDate": "2018-03-13T17:48:55.444611+02:00",
      "endDate": "2019-03-13T17:48:55.444611+02:00"
    },
    "value": {
      "currency": "UAH",
      "amount": 479.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2018-03-13T17:49:05.103318+02:00",
    "date": "2018-03-13T17:49:05.192504+02:00",
    "awardID": "7d4e36e2232f45b0910f887feaf23af1",
    "id": "30925f126c174b389a1eed392c9f0c9e",
    "contractID": "UA-EA-2018-03-13-000001-1"
  }
}

Cancelling auction

Organizer can cancel auction anytime (except when auction has terminal status e.g. unsuccesfull, canceled, complete).

The following steps should be applied:

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

Only the request that has been activated (3rd step above) has power to cancel auction. 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/auctions/ca31727f31f243b089cbc005b8fda5ba/cancellations?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 43
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/cancellations/7465de80754845dfa596f704a7b40393

{
  "data": {
    "date": "2018-03-13T17:49:05.377907+02:00",
    "status": "pending",
    "reason": "cancellation reason",
    "cancellationOf": "tender",
    "id": "7465de80754845dfa596f704a7b40393"
  }
}

Filling cancellation with protocol and supplementary documentation

Upload the file contents:

POST /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/cancellations/7465de80754845dfa596f704a7b40393/documents?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 333
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7c88d88f79254063aa8c756ad81c5a6e?KeyID=9051732b&Signature=jjlF0Tc6Zr6sYxmp1YV3dfOt%2B1H8YDD7qwEPJRcSpqB%2FJiP%2Ft8PQEeVOBrOOVGQFxYAXNRRTMBoYP%2Bx1C8P6BQ%3D%3D",
    "title": "Notice.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/cancellations/7465de80754845dfa596f704a7b40393/documents/3a1a42be6a1e4beead06cf68b634b8e9

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7c88d88f79254063aa8c756ad81c5a6e?KeyID=9051732b&Signature=kZWyhN76WQg6ZR63AOg%2FkCke%252BfehPI3roD5KJxd6JBLE936jQGchBGpxo8KVKNoxGvMHhbRwSfkb2zqnhXKBDg%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:05.501173+02:00",
    "dateModified": "2018-03-13T17:49:05.501193+02:00",
    "id": "3a1a42be6a1e4beead06cf68b634b8e9"
  }
}

Change the document description and other properties:

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/cancellations/7465de80754845dfa596f704a7b40393/documents/3a1a42be6a1e4beead06cf68b634b8e9?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 48
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "Changed description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7c88d88f79254063aa8c756ad81c5a6e?KeyID=9051732b&Signature=kZWyhN76WQg6ZR63AOg%2FkCke%252BfehPI3roD5KJxd6JBLE936jQGchBGpxo8KVKNoxGvMHhbRwSfkb2zqnhXKBDg%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:05.501173+02:00",
    "dateModified": "2018-03-13T17:49:05.501193+02:00",
    "id": "3a1a42be6a1e4beead06cf68b634b8e9"
  }
}

Upload new version of the document:

PUT /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/cancellations/7465de80754845dfa596f704a7b40393/documents/3a1a42be6a1e4beead06cf68b634b8e9?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 327
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/54b18e96888648e996cd04e6ba416e58?KeyID=9051732b&Signature=EoZExOvGpEtpbJe5BurLPHs2IfsRjOiFfc3Vw6R5rcr6q4zslblzMsFMkbNR5dszYaXWkRsJJPeqUpFXja5wCQ%3D%3D",
    "title": "Notice-2.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "Changed description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/54b18e96888648e996cd04e6ba416e58?KeyID=9051732b&Signature=tH5MoraFQRPZc01RX7pu1gjXhlP4vPaIwCmwFx9tttJgCQWJn0rbkZq5p2jerzGAV2MFNNVKSkpWchK%252B8h%252BtDA%253D%253D",
    "title": "Notice-2.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T17:49:05.501173+02:00",
    "dateModified": "2018-03-13T17:49:05.764704+02:00",
    "id": "3a1a42be6a1e4beead06cf68b634b8e9"
  }
}

Activating the request and cancelling auction

PATCH /api/2.3/auctions/ca31727f31f243b089cbc005b8fda5ba/cancellations/7465de80754845dfa596f704a7b40393?acc_token=0ce53b3a0d5d47778c36b80f90b81ad5 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7c88d88f79254063aa8c756ad81c5a6e?KeyID=9051732b&Signature=kZWyhN76WQg6ZR63AOg%2FkCke%252BfehPI3roD5KJxd6JBLE936jQGchBGpxo8KVKNoxGvMHhbRwSfkb2zqnhXKBDg%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:05.501173+02:00",
        "dateModified": "2018-03-13T17:49:05.501193+02:00",
        "id": "3a1a42be6a1e4beead06cf68b634b8e9"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/54b18e96888648e996cd04e6ba416e58?KeyID=9051732b&Signature=tH5MoraFQRPZc01RX7pu1gjXhlP4vPaIwCmwFx9tttJgCQWJn0rbkZq5p2jerzGAV2MFNNVKSkpWchK%252B8h%252BtDA%253D%253D",
        "title": "Notice-2.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T17:49:05.501173+02:00",
        "dateModified": "2018-03-13T17:49:05.764704+02:00",
        "id": "3a1a42be6a1e4beead06cf68b634b8e9"
      }
    ],
    "reason": "cancellation reason",
    "date": "2018-03-13T17:49:05.920065+02:00",
    "cancellationOf": "tender",
    "id": "7465de80754845dfa596f704a7b40393"
  }
}