Tutorial

Exploring basic rules

Let’s try exploring the /auctions endpoint:

GET /api/2.5/auctions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "next_page": {
    "path": "/api/2.5/auctions?offset=",
    "uri": "http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions?offset=",
    "offset": ""
  },
  "data": []
}

Just invoking it reveals empty set.

Now let’s attempt creating some auction:

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

Response: 415 Unsupported Media Type
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "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.5/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 4
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 422 Unprocessable Entity
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "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:

POST /api/2.5/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 2434
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "bankAccount": {
      "accountIdentification": [
        {
          "scheme": "accountNumber",
          "id": "111111-8",
          "description": "some description"
        }
      ],
      "bankName": "name of bank"
    },
    "lotIdentifier": "Q24421K222",
    "documents": [
      {
        "format": "application/msword",
        "title": "укр.doc",
        "accessDetails": "access details",
        "documentType": "x_dgfAssetFamiliarization"
      }
    ],
    "description": "description of appraisal auction",
    "title": "футляри до державних нагород",
    "auctionPeriod": {
      "startDate": "2019-02-07T12:32:10.895130"
    },
    "tenderAttempts": 1,
    "procurementMethodType": "appraisal.insider",
    "value": {
      "currency": "UAH",
      "amount": 100
    },
    "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": "м. Київ"
      }
    },
    "items": [
      {
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "address": {
          "countryName": "Україна",
          "postalCode": "79000",
          "region": "м. Київ",
          "streetAddress": "вул. Банкова 1",
          "locality": "м. Київ"
        },
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CPV",
          "id": "51413000-0",
          "description": "Земельні ділянки"
        },
        "quantity": 5
      }
    ],
    "auctionParameters": {
      "type": "insider",
      "dutchSteps": 88
    },
    "registrationFee": {
      "currency": "UAH",
      "amount": 700.87
    },
    "guarantee": {
      "currency": "UAH",
      "amount": 1000.99
    }
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23
X-Content-Type-Options: nosniff
{
  "access": {
    "transfer": "bedb1a0ffdea449aad05c8cdf0f8c6be",
    "token": "4cc54038a92f4f578a435ca9cb041343"
  },
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2019-01-28-000002",
    "enquiryPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-06T20:00:00+02:00"
    },
    "registrationFee": {
      "currency": "UAH",
      "amount": 700.87
    },
    "submissionMethod": "electronicAuction",
    "awardCriteria": "highestCost",
    "owner": "broker",
    "id": "e0c4d484a95140569171138086703f23",
    "description": "description of appraisal auction",
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "auctionParameters": {
      "type": "insider",
      "dutchSteps": 88
    },
    "guarantee": {
      "currency": "UAH",
      "amount": 1000.99
    },
    "dateModified": "2019-01-28T12:32:17.168827+02:00",
    "status": "draft",
    "tenderPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-07T16:15:00+02:00"
    },
    "bankAccount": {
      "accountIdentification": [
        {
          "scheme": "accountNumber",
          "id": "111111-8",
          "description": "some description"
        }
      ],
      "bankName": "name of bank"
    },
    "procurementMethodType": "appraisal.insider",
    "date": "2019-01-28T12:32:17.146983+02:00",
    "lotIdentifier": "Q24421K222",
    "rectificationPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-01-31T16:15:00+02:00"
    },
    "minimalStep": {
      "currency": "UAH",
      "amount": 0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CPV",
          "description": "Земельні ділянки",
          "id": "51413000-0"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "46ff602897964fdeb334c4a55e9bc9d7",
        "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 the procedure is created in draft status, so you need to manually switch it to active.tendering.

PATCH /api/2.5/auctions/e0c4d484a95140569171138086703f23 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 40
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
X-Access-Token: 4cc54038a92f4f578a435ca9cb041343
DATA:
{
  "data": {
    "status": "active.tendering"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2019-01-28-000002",
    "enquiryPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-06T20:00:00+02:00"
    },
    "registrationFee": {
      "currency": "UAH",
      "amount": 700.87
    },
    "submissionMethod": "electronicAuction",
    "next_check": "2019-02-06T20:00:00+02:00",
    "awardCriteria": "highestCost",
    "owner": "broker",
    "id": "e0c4d484a95140569171138086703f23",
    "description": "description of appraisal auction",
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "auctionParameters": {
      "type": "insider",
      "dutchSteps": 88
    },
    "guarantee": {
      "currency": "UAH",
      "amount": 1000.99
    },
    "dateModified": "2019-01-28T12:32:17.260260+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-07T16:15:00+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2019-02-07T00:00:00+02:00"
    },
    "bankAccount": {
      "accountIdentification": [
        {
          "scheme": "accountNumber",
          "id": "111111-8",
          "description": "some description"
        }
      ],
      "bankName": "name of bank"
    },
    "procurementMethodType": "appraisal.insider",
    "date": "2019-01-28T12:32:17.260260+02:00",
    "lotIdentifier": "Q24421K222",
    "rectificationPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-01-31T16:15:00+02:00",
      "invalidationDate": "2019-01-28T12:32:17.257914+02:00"
    },
    "minimalStep": {
      "currency": "UAH",
      "amount": 0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CPV",
          "description": "Земельні ділянки",
          "id": "51413000-0"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "46ff602897964fdeb334c4a55e9bc9d7",
        "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": "м. Київ"
      }
    }
  }
}

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

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2019-01-28-000002",
    "enquiryPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-06T20:00:00+02:00"
    },
    "registrationFee": {
      "currency": "UAH",
      "amount": 700.87
    },
    "submissionMethod": "electronicAuction",
    "next_check": "2019-02-06T20:00:00+02:00",
    "awardCriteria": "highestCost",
    "owner": "broker",
    "id": "e0c4d484a95140569171138086703f23",
    "description": "description of appraisal auction",
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "auctionParameters": {
      "type": "insider",
      "dutchSteps": 88
    },
    "guarantee": {
      "currency": "UAH",
      "amount": 1000.99
    },
    "dateModified": "2019-01-28T12:32:17.260260+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-07T16:15:00+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2019-02-07T00:00:00+02:00"
    },
    "bankAccount": {
      "accountIdentification": [
        {
          "scheme": "accountNumber",
          "id": "111111-8",
          "description": "some description"
        }
      ],
      "bankName": "name of bank"
    },
    "procurementMethodType": "appraisal.insider",
    "date": "2019-01-28T12:32:17.260260+02:00",
    "lotIdentifier": "Q24421K222",
    "rectificationPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-01-31T16:15:00+02:00",
      "invalidationDate": "2019-01-28T12:32:17.257914+02:00"
    },
    "minimalStep": {
      "currency": "UAH",
      "amount": 0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CPV",
          "description": "Земельні ділянки",
          "id": "51413000-0"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "46ff602897964fdeb334c4a55e9bc9d7",
        "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.5/auctions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "next_page": {
    "path": "/api/2.5/auctions?offset=2019-01-28T12%3A32%3A16.843339%2B02%3A00",
    "uri": "http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions?offset=2019-01-28T12%3A32%3A16.843339%2B02%3A00",
    "offset": "2019-01-28T12:32:16.843339+02:00"
  },
  "data": [
    {
      "id": "3fead5d747954a879aa64ef0852cd77a",
      "dateModified": "2019-01-28T12:32:16.843339+02:00"
    }
  ]
}

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

Let’s try creating auction with more data:

POST /api/2.5/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 2463
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "bankAccount": {
      "accountIdentification": [
        {
          "scheme": "accountNumber",
          "id": "111111-8",
          "description": "some description"
        }
      ],
      "bankName": "name of bank"
    },
    "lotIdentifier": "Q24421K222",
    "documents": [
      {
        "format": "application/msword",
        "title": "укр.doc",
        "accessDetails": "access details",
        "documentType": "x_dgfAssetFamiliarization"
      }
    ],
    "description": "description of appraisal auction",
    "title": "футляри до державних нагород",
    "auctionPeriod": {
      "startDate": "2019-02-07T12:32:10.895130"
    },
    "tenderAttempts": 1,
    "procurementMethodType": "appraisal.insider",
    "value": {
      "currency": "UAH",
      "amount": 100
    },
    "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": "м. Київ"
      }
    },
    "title_ru": "футляры к государственным наградам",
    "items": [
      {
        "classification": {
          "scheme": "CPV",
          "id": "45255120-6",
          "description": "Земельні ділянки"
        },
        "description": "Земля для військовослужбовців",
        "id": "80fdd02d97304cdebb7fc6fbcdc0980f",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "auctionParameters": {
      "type": "insider",
      "dutchSteps": 88
    },
    "title_en": "Cases with state awards",
    "registrationFee": {
      "currency": "UAH",
      "amount": 700.87
    },
    "guarantee": {
      "currency": "UAH",
      "amount": 1000.99
    }
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/2a4f3f66ced44d0b9b014e0a814c01b8
X-Content-Type-Options: nosniff
{
  "access": {
    "transfer": "23333c81574b4a0881a13faabb465343",
    "token": "453a05152a3e4685910c1f11cd7a08d4"
  },
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2019-01-28-000003",
    "enquiryPeriod": {
      "startDate": "2019-01-28T12:32:17.344409+02:00",
      "endDate": "2019-02-06T20:00:00+02:00"
    },
    "registrationFee": {
      "currency": "UAH",
      "amount": 700.87
    },
    "submissionMethod": "electronicAuction",
    "awardCriteria": "highestCost",
    "owner": "broker",
    "id": "2a4f3f66ced44d0b9b014e0a814c01b8",
    "description": "description of appraisal auction",
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "auctionParameters": {
      "type": "insider",
      "dutchSteps": 88
    },
    "guarantee": {
      "currency": "UAH",
      "amount": 1000.99
    },
    "dateModified": "2019-01-28T12:32:17.370791+02:00",
    "status": "draft",
    "tenderPeriod": {
      "startDate": "2019-01-28T12:32:17.344409+02:00",
      "endDate": "2019-02-07T16:15:00+02:00"
    },
    "title_en": "Cases with state awards",
    "bankAccount": {
      "accountIdentification": [
        {
          "scheme": "accountNumber",
          "id": "111111-8",
          "description": "some description"
        }
      ],
      "bankName": "name of bank"
    },
    "procurementMethodType": "appraisal.insider",
    "date": "2019-01-28T12:32:17.344409+02:00",
    "lotIdentifier": "Q24421K222",
    "rectificationPeriod": {
      "startDate": "2019-01-28T12:32:17.344409+02:00",
      "endDate": "2019-01-31T16:15:00+02:00"
    },
    "minimalStep": {
      "currency": "UAH",
      "amount": 0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "description": "Земля для військовослужбовців",
        "id": "80fdd02d97304cdebb7fc6fbcdc0980f",
        "classification": {
          "scheme": "CPV",
          "description": "Земельні ділянки",
          "id": "45255120-6"
        },
        "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.5/auctions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "next_page": {
    "path": "/api/2.5/auctions?offset=2019-01-28T12%3A32%3A17.260260%2B02%3A00",
    "uri": "http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions?offset=2019-01-28T12%3A32%3A17.260260%2B02%3A00",
    "offset": "2019-01-28T12:32:17.260260+02:00"
  },
  "data": [
    {
      "id": "3fead5d747954a879aa64ef0852cd77a",
      "dateModified": "2019-01-28T12:32:16.843339+02:00"
    },
    {
      "id": "e0c4d484a95140569171138086703f23",
      "dateModified": "2019-01-28T12:32:17.260260+02:00"
    }
  ]
}

And indeed we have 2 procedures now.

Modifying auction

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

PATCH /api/2.5/auctions/e0c4d484a95140569171138086703f23?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 75
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "tenderPeriod": {
      "endDate": "2019-02-12T12:32:27.509448+02:00"
    }
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2019-01-28-000002",
    "enquiryPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-06T20:00:00+02:00"
    },
    "registrationFee": {
      "currency": "UAH",
      "amount": 700.87
    },
    "submissionMethod": "electronicAuction",
    "next_check": "2019-02-06T20:00:00+02:00",
    "awardCriteria": "highestCost",
    "owner": "broker",
    "id": "e0c4d484a95140569171138086703f23",
    "description": "description of appraisal auction",
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "auctionParameters": {
      "type": "insider",
      "dutchSteps": 88
    },
    "guarantee": {
      "currency": "UAH",
      "amount": 1000.99
    },
    "dateModified": "2019-01-28T12:32:17.571049+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-12T12:32:27.509448+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2019-02-07T00:00:00+02:00"
    },
    "bankAccount": {
      "accountIdentification": [
        {
          "scheme": "accountNumber",
          "id": "111111-8",
          "description": "some description"
        }
      ],
      "bankName": "name of bank"
    },
    "procurementMethodType": "appraisal.insider",
    "date": "2019-01-28T12:32:17.260260+02:00",
    "lotIdentifier": "Q24421K222",
    "rectificationPeriod": {
      "startDate": "2019-01-28T12:32:17.146983+02:00",
      "endDate": "2019-02-05T12:32:27.509448+02:00",
      "invalidationDate": "2019-01-28T12:32:17.569080+02:00"
    },
    "minimalStep": {
      "currency": "UAH",
      "amount": 0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CPV",
          "description": "Земельні ділянки",
          "id": "51413000-0"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "46ff602897964fdeb334c4a55e9bc9d7",
        "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 properties have merged with existing 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.5/auctions?opt_pretty=1 HTTP/1.0
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "next_page": {
    "path": "/api/2.5/auctions?offset=2019-01-28T12%3A32%3A17.260260%2B02%3A00",
    "uri": "http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions?offset=2019-01-28T12%3A32%3A17.260260%2B02%3A00",
    "offset": "2019-01-28T12:32:17.260260+02:00"
  },
  "data": [
    {
      "id": "3fead5d747954a879aa64ef0852cd77a",
      "dateModified": "2019-01-28T12:32:16.843339+02:00"
    },
    {
      "id": "e0c4d484a95140569171138086703f23",
      "dateModified": "2019-01-28T12:32:17.260260+02:00"
    }
  ]
}

Uploading documentation

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

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 407
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "title": "Notice.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=5e4W7kjbPCSTnRdcmDox0Ro9u3Nd2e0kGJnnSvWq1WSFZc95Vk2Kzg2HnCYMsLSscPP8JMYvbjxaB6s9JPHOAw%3D%3D",
    "format": "application/pdf",
    "documentType": "technicalSpecifications"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/documents/c33444fdcca243b382630e9924d54509
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:17.643280+02:00",
    "documentType": "technicalSpecifications",
    "dateModified": "2019-01-28T12:32:17.643302+02:00",
    "id": "c33444fdcca243b382630e9924d54509"
  }
}

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.5/auctions/e0c4d484a95140569171138086703f23/documents/c33444fdcca243b382630e9924d54509 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:17.643280+02:00",
    "previousVersions": [],
    "documentType": "technicalSpecifications",
    "dateModified": "2019-01-28T12:32:17.643302+02:00",
    "id": "c33444fdcca243b382630e9924d54509"
  }
}

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

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 338
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/2a50abcb014040178e7422cf1e55cca5?KeyID=172d32c8&Signature=We5g3BGI2rDgwnPIeYsc56v90VyARtx3eTUBXUIEGKPD0EotViIKc%2BcOdvjT%2BtoIaLbrZFhnQTtAZH%2BqQp6vDQ%3D%3D",
    "title": "AwardCriteria.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/documents/b85a9b4422084bd49a2885b32fe9b4b9
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "title": "AwardCriteria.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/2a50abcb014040178e7422cf1e55cca5?KeyID=172d32c8&Signature=Fl3iQGfQngVzqc8YA2LFUMT6xg8mCVfoYw82EDdi6eC2G0OnvFmLiGVbfN1hLSudC%2F7pUs7mBtVxF%2FxtASBsBA%253D%253D",
    "format": "application/pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:17.724608+02:00",
    "dateModified": "2019-01-28T12:32:17.724645+02:00",
    "id": "b85a9b4422084bd49a2885b32fe9b4b9"
  }
}

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

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.643280+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2019-01-28T12:32:17.643302+02:00",
      "id": "c33444fdcca243b382630e9924d54509"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "title": "AwardCriteria.pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/2a50abcb014040178e7422cf1e55cca5?KeyID=172d32c8&Signature=Fl3iQGfQngVzqc8YA2LFUMT6xg8mCVfoYw82EDdi6eC2G0OnvFmLiGVbfN1hLSudC%2F7pUs7mBtVxF%2FxtASBsBA%253D%253D",
      "format": "application/pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.724608+02:00",
      "dateModified": "2019-01-28T12:32:17.724645+02:00",
      "id": "b85a9b4422084bd49a2885b32fe9b4b9"
    }
  ]
}

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

PUT /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents/b85a9b4422084bd49a2885b32fe9b4b9?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 340
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/53ef485f1a1f41b6a6fbad631572346c?KeyID=172d32c8&Signature=iGf3uU89QfT3uYjaki1iOM3cwLEK9edS1%2Bu9y7VKX7Nixog6vvI%2BQL9kVh23Dzgh52QK7bX%2BXQQqoAq4uraKBQ%3D%3D",
    "title": "AwardCriteria-2.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "title": "AwardCriteria-2.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/53ef485f1a1f41b6a6fbad631572346c?KeyID=172d32c8&Signature=zS2ipM2G7i8Y%252BpT9XNBXW2Hi9LM4x8w40wpyHXaZJRCymcX5BJLEELPBgK8SDWqB22j8DvskE1XSa75hh7n3Dg%253D%253D",
    "format": "application/pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:17.724608+02:00",
    "dateModified": "2019-01-28T12:32:17.817955+02:00",
    "id": "b85a9b4422084bd49a2885b32fe9b4b9"
  }
}

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

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.643280+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2019-01-28T12:32:17.643302+02:00",
      "id": "c33444fdcca243b382630e9924d54509"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "title": "AwardCriteria-2.pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/53ef485f1a1f41b6a6fbad631572346c?KeyID=172d32c8&Signature=zS2ipM2G7i8Y%252BpT9XNBXW2Hi9LM4x8w40wpyHXaZJRCymcX5BJLEELPBgK8SDWqB22j8DvskE1XSa75hh7n3Dg%253D%253D",
      "format": "application/pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.724608+02:00",
      "dateModified": "2019-01-28T12:32:17.817955+02:00",
      "id": "b85a9b4422084bd49a2885b32fe9b4b9"
    }
  ]
}

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.5/auctions/e0c4d484a95140569171138086703f23/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 428
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "index": 1,
    "hash": "md5:00000000000000000000000000000000",
    "description": "First illustration description",
    "title": "first_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c82312f5185f4134ad73697a076eb077?KeyID=172d32c8&Signature=RDpoZap%2FZ3WKj77W1eW5jZNpKDQl3vC22B7pWglsO9J6bG4fbU9L6VG5UrcgauAJSeEgOGE7I9PXpsm92qlyDw%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/documents/44c7331c169b47f6aea97b05846b0d74
X-Content-Type-Options: nosniff
{
  "data": {
    "index": 1,
    "hash": "md5:00000000000000000000000000000000",
    "description": "First illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c82312f5185f4134ad73697a076eb077?KeyID=172d32c8&Signature=TGH4gd2rROfKB3wsnIwhIfPMu45Caqv2EG3yjy5NJl1C12z1wf1XcfvsavyA%2F7pnWqRX3Eo%252BTUqSn69pPiiiCQ%253D%253D",
    "title": "first_illustration.jpeg",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:17.924605+02:00",
    "documentType": "illustration",
    "dateModified": "2019-01-28T12:32:17.924642+02:00",
    "id": "44c7331c169b47f6aea97b05846b0d74"
  }
}

We can check whether illustration is uploaded.

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.643280+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2019-01-28T12:32:17.643302+02:00",
      "id": "c33444fdcca243b382630e9924d54509"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "title": "AwardCriteria-2.pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/53ef485f1a1f41b6a6fbad631572346c?KeyID=172d32c8&Signature=zS2ipM2G7i8Y%252BpT9XNBXW2Hi9LM4x8w40wpyHXaZJRCymcX5BJLEELPBgK8SDWqB22j8DvskE1XSa75hh7n3Dg%253D%253D",
      "format": "application/pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.724608+02:00",
      "dateModified": "2019-01-28T12:32:17.817955+02:00",
      "id": "b85a9b4422084bd49a2885b32fe9b4b9"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c82312f5185f4134ad73697a076eb077?KeyID=172d32c8&Signature=TGH4gd2rROfKB3wsnIwhIfPMu45Caqv2EG3yjy5NJl1C12z1wf1XcfvsavyA%2F7pnWqRX3Eo%252BTUqSn69pPiiiCQ%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.924605+02:00",
      "documentType": "illustration",
      "dateModified": "2019-01-28T12:32:17.924642+02:00",
      "id": "44c7331c169b47f6aea97b05846b0d74"
    }
  ]
}

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

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 432
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Second illustration description",
    "title": "second_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8581590c05844a9c8d527b63232aff4a?KeyID=172d32c8&Signature=59BJ8pQObCY9eHUi9v5Bp%2B0s67mYVWCZWLR7Z5FVKYcWfzO4aDn1NNse3g1odrR4rJJhfS%2B6SClFFF2KAdUUCA%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/documents/84bace22f9114d8d98f2c9c06a858c6d
X-Content-Type-Options: nosniff
{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Second illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8581590c05844a9c8d527b63232aff4a?KeyID=172d32c8&Signature=4lr0rXnd1icb0cmt9itu1y2c1OWAZrI3nyi8JYtfY6llpSryb2sVvlV6HgGDJiJTYA4yW7OqXmMZXwZuzArxDA%253D%253D",
    "title": "second_illustration.jpeg",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:18.049118+02:00",
    "documentType": "illustration",
    "dateModified": "2019-01-28T12:32:18.049168+02:00",
    "id": "84bace22f9114d8d98f2c9c06a858c6d"
  }
}

Add third illustration:

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 428
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Third illustration description",
    "title": "third_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/175b11887c4d48498b9aa02d194ed679?KeyID=172d32c8&Signature=TCn4MV60rm7fFzjgDaIxQJgYy%2Bhkp3Dxnruyz9F0uyEBRejuU1wx9x7i8pgw2ZiOXfP8aVVLxb0qzkwo4J7EDg%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/documents/2e87d27713dd488ab403104d6b41b338
X-Content-Type-Options: nosniff
{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Third illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/175b11887c4d48498b9aa02d194ed679?KeyID=172d32c8&Signature=TOp%252BFcDvaNPDgm%2Fl%252BznQuaqJRM7qjfxV4EvgmHIfM9fXyJjyneOu9k%252B28BNJn0qA3FEGFzDyHONIx8msSzlvDw%253D%253D",
    "title": "third_illustration.jpeg",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:18.139983+02:00",
    "documentType": "illustration",
    "dateModified": "2019-01-28T12:32:18.140007+02:00",
    "id": "2e87d27713dd488ab403104d6b41b338"
  }
}

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.5/auctions/e0c4d484a95140569171138086703f23/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.643280+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2019-01-28T12:32:17.643302+02:00",
      "id": "c33444fdcca243b382630e9924d54509"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "title": "AwardCriteria-2.pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/53ef485f1a1f41b6a6fbad631572346c?KeyID=172d32c8&Signature=zS2ipM2G7i8Y%252BpT9XNBXW2Hi9LM4x8w40wpyHXaZJRCymcX5BJLEELPBgK8SDWqB22j8DvskE1XSa75hh7n3Dg%253D%253D",
      "format": "application/pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.724608+02:00",
      "dateModified": "2019-01-28T12:32:17.817955+02:00",
      "id": "b85a9b4422084bd49a2885b32fe9b4b9"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c82312f5185f4134ad73697a076eb077?KeyID=172d32c8&Signature=TGH4gd2rROfKB3wsnIwhIfPMu45Caqv2EG3yjy5NJl1C12z1wf1XcfvsavyA%2F7pnWqRX3Eo%252BTUqSn69pPiiiCQ%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:17.924605+02:00",
      "documentType": "illustration",
      "dateModified": "2019-01-28T12:32:17.924642+02:00",
      "id": "44c7331c169b47f6aea97b05846b0d74"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Second illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8581590c05844a9c8d527b63232aff4a?KeyID=172d32c8&Signature=4lr0rXnd1icb0cmt9itu1y2c1OWAZrI3nyi8JYtfY6llpSryb2sVvlV6HgGDJiJTYA4yW7OqXmMZXwZuzArxDA%253D%253D",
      "title": "second_illustration.jpeg",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:18.049118+02:00",
      "documentType": "illustration",
      "dateModified": "2019-01-28T12:32:18.049168+02:00",
      "id": "84bace22f9114d8d98f2c9c06a858c6d"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Third illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/175b11887c4d48498b9aa02d194ed679?KeyID=172d32c8&Signature=TOp%252BFcDvaNPDgm%2Fl%252BznQuaqJRM7qjfxV4EvgmHIfM9fXyJjyneOu9k%252B28BNJn0qA3FEGFzDyHONIx8msSzlvDw%253D%253D",
      "title": "third_illustration.jpeg",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:18.139983+02:00",
      "documentType": "illustration",
      "dateModified": "2019-01-28T12:32:18.140007+02:00",
      "id": "2e87d27713dd488ab403104d6b41b338"
    }
  ]
}

Enquiries

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

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

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/questions/8a9247bb32fe4b1abcc87d59d4b65f53
X-Content-Type-Options: nosniff
{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "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": "м. Вінниця"
      }
    },
    "title": "Калорійність",
    "date": "2019-01-28T12:32:18.382280+02:00",
    "id": "8a9247bb32fe4b1abcc87d59d4b65f53",
    "questionOf": "tender"
  }
}

Organizer can answer them:

PATCH /api/2.5/auctions/e0c4d484a95140569171138086703f23/questions/8a9247bb32fe4b1abcc87d59d4b65f53?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 162
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\""
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність",
    "date": "2019-01-28T12:32:18.382280+02:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "8a9247bb32fe4b1abcc87d59d4b65f53",
    "questionOf": "tender"
  }
}

And one can retrieve the questions list:

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/questions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": [
    {
      "description": "Просимо додати таблицю потрібної калорійності харчування",
      "title": "Калорійність",
      "date": "2019-01-28T12:32:18.382280+02:00",
      "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
      "id": "8a9247bb32fe4b1abcc87d59d4b65f53",
      "questionOf": "tender"
    }
  ]
}

Or an individual answer:

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/questions/8a9247bb32fe4b1abcc87d59d4b65f53 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність",
    "date": "2019-01-28T12:32:18.382280+02:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "8a9247bb32fe4b1abcc87d59d4b65f53",
    "questionOf": "tender"
  }
}

Registering bid

Bidder can register a bid in draft status:

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 768
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "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
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff
X-Content-Type-Options: nosniff
{
  "access": {
    "token": "898cfa971bac42239310ee094fdb7b78"
  },
  "data": {
    "status": "draft",
    "eligible": true,
    "date": "2019-01-28T12:32:18.673849+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": "f59572206a724c87901cfd00ff8244ff"
  }
}

And activate a bid:

PATCH /api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff?acc_token=898cfa971bac42239310ee094fdb7b78 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "status": "active",
    "eligible": true,
    "date": "2019-01-28T12:32:18.673849+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": "f59572206a724c87901cfd00ff8244ff",
    "participationUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/e0c4d484a95140569171138086703f23/login?bidder_id=f59572206a724c87901cfd00ff8244ff&signature=qlOLANfxG6AFyIZQ1OW4yMLNPZyNNexBKT5LicVdwBCqBICJyql4YvkHdQ8bI4qDhdqV61B/CRq7Xqc3DtXzDA%3D%3D"
  }
}

And upload proposal document:

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff/documents?acc_token=898cfa971bac42239310ee094fdb7b78 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 331
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/68750b094c3e49d08e5dbde6f6350844?KeyID=172d32c8&Signature=rcoakWhdJofbUeKG355Xqadwrv%2FdUnl0TTdQ%2BLdQUK4ZGVD59s98ifkx3glx2UpORR7W3Zy6Iw7PgtOVo3GRCg%3D%3D",
    "title": "Proposal.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff/documents/32dc664664054b7fa466ab487abbd735
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "title": "Proposal.pdf",
    "url": "http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff/documents/32dc664664054b7fa466ab487abbd735?download=68750b094c3e49d08e5dbde6f6350844",
    "format": "application/pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:18.924319+02:00",
    "dateModified": "2019-01-28T12:32:18.924374+02:00",
    "id": "32dc664664054b7fa466ab487abbd735"
  }
}

It is possible to check the uploaded documents:

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff/documents?acc_token=898cfa971bac42239310ee094fdb7b78 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "title": "Proposal.pdf",
      "url": "http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff/documents/32dc664664054b7fa466ab487abbd735?download=68750b094c3e49d08e5dbde6f6350844",
      "format": "application/pdf",
      "documentOf": "auction",
      "datePublished": "2019-01-28T12:32:18.924319+02:00",
      "dateModified": "2019-01-28T12:32:18.924374+02:00",
      "id": "32dc664664054b7fa466ab487abbd735"
    }
  ]
}

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

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 741
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "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
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/a22200d873de40e39f7f4ab5dd59f7eb
X-Content-Type-Options: nosniff
{
  "access": {
    "token": "40b7cd7fd2b4441396c1efa92bfc2b1b"
  },
  "data": {
    "status": "active",
    "eligible": true,
    "date": "2019-01-28T12:32:19.091300+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": "a22200d873de40e39f7f4ab5dd59f7eb",
    "participationUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/e0c4d484a95140569171138086703f23/login?bidder_id=a22200d873de40e39f7f4ab5dd59f7eb&signature=PVInewnhc5/KpOU5TwAeWEu3yUmtGNJt1NUINQgyQ%2Bqnmjs7emZvnCx8KcsfL2eVAH5MtNNDxCQYPPL5HZTsAw%3D%3D"
  }
}

Auction

The auction can be reached at Auction.auctionUrl:

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2019-01-28-000002",
    "auctionUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/e0c4d484a95140569171138086703f23",
    "enquiryPeriod": {
      "startDate": "2019-01-08T12:32:10.895130+02:00",
      "endDate": "2019-01-28T12:32:10.895130+02:00"
    },
    "registrationFee": {
      "currency": "UAH",
      "amount": 700.87
    },
    "submissionMethod": "electronicAuction",
    "next_check": "2019-01-28T19:48:00.895130+02:00",
    "awardCriteria": "highestCost",
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "title": "Калорійність",
        "date": "2019-01-28T12:32:18.382280+02:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "8a9247bb32fe4b1abcc87d59d4b65f53",
        "questionOf": "tender"
      }
    ],
    "owner": "broker",
    "id": "e0c4d484a95140569171138086703f23",
    "description": "description of appraisal auction",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "document description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6ac51cb148a042db8c3ff05ca03e17eb?KeyID=172d32c8&Signature=ODek9PjlhbCkmeL80dDgAiaDHzTqYEmQSYBqYnKfyIFMJoQsrLkzcPHkb3Cnpj%2FYCHink%252B2Hl6ag%252BbdlGkv1DA%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:17.643280+02:00",
        "documentType": "technicalSpecifications",
        "dateModified": "2019-01-28T12:32:17.643302+02:00",
        "id": "c33444fdcca243b382630e9924d54509"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "title": "AwardCriteria.pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/2a50abcb014040178e7422cf1e55cca5?KeyID=172d32c8&Signature=Fl3iQGfQngVzqc8YA2LFUMT6xg8mCVfoYw82EDdi6eC2G0OnvFmLiGVbfN1hLSudC%2F7pUs7mBtVxF%2FxtASBsBA%253D%253D",
        "format": "application/pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:17.724608+02:00",
        "dateModified": "2019-01-28T12:32:17.724645+02:00",
        "id": "b85a9b4422084bd49a2885b32fe9b4b9"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "title": "AwardCriteria-2.pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/53ef485f1a1f41b6a6fbad631572346c?KeyID=172d32c8&Signature=zS2ipM2G7i8Y%252BpT9XNBXW2Hi9LM4x8w40wpyHXaZJRCymcX5BJLEELPBgK8SDWqB22j8DvskE1XSa75hh7n3Dg%253D%253D",
        "format": "application/pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:17.724608+02:00",
        "dateModified": "2019-01-28T12:32:17.817955+02:00",
        "id": "b85a9b4422084bd49a2885b32fe9b4b9"
      },
      {
        "index": 1,
        "hash": "md5:00000000000000000000000000000000",
        "description": "First illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c82312f5185f4134ad73697a076eb077?KeyID=172d32c8&Signature=TGH4gd2rROfKB3wsnIwhIfPMu45Caqv2EG3yjy5NJl1C12z1wf1XcfvsavyA%2F7pnWqRX3Eo%252BTUqSn69pPiiiCQ%253D%253D",
        "title": "first_illustration.jpeg",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:17.924605+02:00",
        "documentType": "illustration",
        "dateModified": "2019-01-28T12:32:17.924642+02:00",
        "id": "44c7331c169b47f6aea97b05846b0d74"
      },
      {
        "index": 2,
        "hash": "md5:00000000000000000000000000000000",
        "description": "Second illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8581590c05844a9c8d527b63232aff4a?KeyID=172d32c8&Signature=4lr0rXnd1icb0cmt9itu1y2c1OWAZrI3nyi8JYtfY6llpSryb2sVvlV6HgGDJiJTYA4yW7OqXmMZXwZuzArxDA%253D%253D",
        "title": "second_illustration.jpeg",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:18.049118+02:00",
        "documentType": "illustration",
        "dateModified": "2019-01-28T12:32:18.049168+02:00",
        "id": "84bace22f9114d8d98f2c9c06a858c6d"
      },
      {
        "index": 2,
        "hash": "md5:00000000000000000000000000000000",
        "description": "Third illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/175b11887c4d48498b9aa02d194ed679?KeyID=172d32c8&Signature=TOp%252BFcDvaNPDgm%2Fl%252BznQuaqJRM7qjfxV4EvgmHIfM9fXyJjyneOu9k%252B28BNJn0qA3FEGFzDyHONIx8msSzlvDw%253D%253D",
        "title": "third_illustration.jpeg",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:18.139983+02:00",
        "documentType": "illustration",
        "dateModified": "2019-01-28T12:32:18.140007+02:00",
        "id": "2e87d27713dd488ab403104d6b41b338"
      },
      {
        "title": "Familiarization with bank asset",
        "format": "offline/on-site-examination",
        "accessDetails": "Familiar with asset: days, time, address",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:18.267862+02:00",
        "documentType": "x_dgfAssetFamiliarization",
        "dateModified": "2019-01-28T12:32:18.267912+02:00",
        "id": "70f92e8fa46046e3955bab0701ffedf1"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "auctionParameters": {
      "type": "insider",
      "dutchSteps": 88
    },
    "guarantee": {
      "currency": "UAH",
      "amount": 1000.99
    },
    "dateModified": "2019-01-28T12:32:19.472633+02:00",
    "status": "active.auction",
    "tenderPeriod": {
      "startDate": "2019-01-08T12:32:10.895130+02:00",
      "endDate": "2019-01-28T19:17:10.895130+02:00"
    },
    "auctionPeriod": {
      "startDate": "2019-01-28T12:32:10.895130+02:00",
      "shouldStartAfter": "2019-01-29T00:00:00+02:00"
    },
    "bankAccount": {
      "accountIdentification": [
        {
          "scheme": "accountNumber",
          "id": "111111-8",
          "description": "some description"
        }
      ],
      "bankName": "name of bank"
    },
    "procurementMethodType": "appraisal.insider",
    "date": "2019-01-28T12:32:19.472633+02:00",
    "lotIdentifier": "Q24421K222",
    "rectificationPeriod": {
      "startDate": "2019-01-08T12:32:10.895130+02:00",
      "endDate": "2019-01-21T19:17:10.895130+02:00",
      "invalidationDate": "2019-01-28T12:32:18.268192+02:00"
    },
    "minimalStep": {
      "currency": "UAH",
      "amount": 0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CPV",
          "description": "Земельні ділянки",
          "id": "51413000-0"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "46ff602897964fdeb334c4a55e9bc9d7",
        "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 their participation URLs via their bids:

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff?acc_token=898cfa971bac42239310ee094fdb7b78 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "title": "Proposal.pdf",
        "url": "http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/f59572206a724c87901cfd00ff8244ff/documents/32dc664664054b7fa466ab487abbd735?download=68750b094c3e49d08e5dbde6f6350844",
        "format": "application/pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:18.924319+02:00",
        "dateModified": "2019-01-28T12:32:18.924374+02:00",
        "id": "32dc664664054b7fa466ab487abbd735"
      }
    ],
    "eligible": true,
    "date": "2019-01-28T12:32:18.673849+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": "f59572206a724c87901cfd00ff8244ff",
    "participationUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/e0c4d484a95140569171138086703f23/login?bidder_id=f59572206a724c87901cfd00ff8244ff&signature=qlOLANfxG6AFyIZQ1OW4yMLNPZyNNexBKT5LicVdwBCqBICJyql4YvkHdQ8bI4qDhdqV61B/CRq7Xqc3DtXzDA%3D%3D"
  }
}

See the Bid.participationUrl in the response. The links can be also retrieved for other participants:

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/bids/a22200d873de40e39f7f4ab5dd59f7eb?acc_token=40b7cd7fd2b4441396c1efa92bfc2b1b HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "status": "active",
    "eligible": true,
    "date": "2019-01-28T12:32:19.091300+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": "a22200d873de40e39f7f4ab5dd59f7eb",
    "participationUrl": "http://auction-sandbox.openprocurement.org/insider-auctions/e0c4d484a95140569171138086703f23/login?bidder_id=a22200d873de40e39f7f4ab5dd59f7eb&signature=PVInewnhc5/KpOU5TwAeWEu3yUmtGNJt1NUINQgyQ%2Bqnmjs7emZvnCx8KcsfL2eVAH5MtNNDxCQYPPL5HZTsAw%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 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).

The procedure receives active.qualification status. The process enters the verificationPeriod with the auto-generated duration of 0-10 business days.

GET /api/2.5/auctions/e0c4d484a95140569171138086703f23/awards HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": [
    {
      "status": "pending",
      "verificationPeriod": {
        "startDate": "2019-01-28T12:32:19.988125+02:00",
        "endDate": "2019-02-05T18:00:00+02:00"
      },
      "signingPeriod": {
        "startDate": "2019-01-28T12:32:19.988125+02:00",
        "endDate": "2019-02-18T18:00:00+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": "2019-01-28T12:32:19.988125+02:00"
      },
      "bid_id": "a22200d873de40e39f7f4ab5dd59f7eb",
      "value": {
        "currency": "UAH",
        "amount": 479,
        "valueAddedTaxIncluded": true
      },
      "date": "2019-01-28T12:32:19.988125+02:00",
      "id": "8e0279bc48cd41949e6ba8d436f31a0f"
    },
    {
      "status": "pending.waiting",
      "complaintPeriod": {
        "startDate": "2019-01-28T12:32:19.988125+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": "f59572206a724c87901cfd00ff8244ff",
      "value": {
        "currency": "UAH",
        "amount": 469,
        "valueAddedTaxIncluded": true
      },
      "date": "2019-01-28T12:32:19.988125+02:00",
      "id": "24f7e995bebe479d8acf5d3a9337ff3d"
    }
  ]
}

Confirming qualification

For the winner to be qualified, the Organizer has to upload auctionProtocol first:

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/awards/8e0279bc48cd41949e6ba8d436f31a0f/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 379
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a833a8df66ed44a18260bd021ab7cd2c?KeyID=172d32c8&Signature=WxuIUBpwMIwSUEF2P9gA6ssqgFgDWhMIFjBGJ7DWrP2CsBF%2F0Tki7Nce2nhc4FMLwORG2sf%2FxTAgTWIKWyBKBg%3D%3D",
    "title": "SignedAuctionProtocol.pdf",
    "format": "application/pdf",
    "hash": "md5:00000000000000000000000000000000",
    "documentType": "auctionProtocol"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/awards/8e0279bc48cd41949e6ba8d436f31a0f/documents/85b3a0d97fcb4b83af6b5a21b2789c4c
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "author": "auction_owner",
    "title": "SignedAuctionProtocol.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a833a8df66ed44a18260bd021ab7cd2c?KeyID=172d32c8&Signature=eAp2158FA%2F7m6SiQ9tICQOXDjLYWFjoEcyvhx%2FIJ6gio4FBZig5r9IVWZFBMKC%252Bl36EJOWUwDKVnKTT0OlK5AA%253D%253D",
    "format": "application/pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:20.543980+02:00",
    "documentType": "auctionProtocol",
    "dateModified": "2019-01-28T12:32:20.544014+02:00",
    "id": "85b3a0d97fcb4b83af6b5a21b2789c4c"
  }
}

The winner can also upload auctionProtocol to award:

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/awards/8e0279bc48cd41949e6ba8d436f31a0f/documents?acc_token=40b7cd7fd2b4441396c1efa92bfc2b1b HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 381
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/733e3efd60604f2c8c2e2142fca2f269?KeyID=172d32c8&Signature=zORh6NIwF4bOKmcQss5VZgna8%2B1r%2FunOE3NKB42km3MExo3f3N5L391aAoWePu6%2Fwq4MKG3ZFzDYP2uPcL6vAw%3D%3D",
    "title": "SignedAuctionProtocol.pdf",
    "format": "application/pdf",
    "hash": "md5:00000000000000000000000000000000",
    "documentType": "auctionProtocol"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/awards/8e0279bc48cd41949e6ba8d436f31a0f/documents/c15f1049d5c84aeaa164e4bb650daa0f
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "author": "bid_owner",
    "title": "SignedAuctionProtocol.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/733e3efd60604f2c8c2e2142fca2f269?KeyID=172d32c8&Signature=aof6f%252BRhjahdFxYpQm%2Fc8bJxVu0TLoPAWVrMptbcSVoWiIGRObTlVDvelXFarRhIkCrZsp9laoSOA%252BYN8c%2FrDQ%253D%253D",
    "format": "application/pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:20.409366+02:00",
    "documentType": "auctionProtocol",
    "dateModified": "2019-01-28T12:32:20.409386+02:00",
    "id": "c15f1049d5c84aeaa164e4bb650daa0f"
  }
}

With the document being uploaded the Organizer has to switch the award to active status:

PATCH /api/2.5/auctions/e0c4d484a95140569171138086703f23/awards/8e0279bc48cd41949e6ba8d436f31a0f?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "author": "bid_owner",
        "title": "SignedAuctionProtocol.pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/733e3efd60604f2c8c2e2142fca2f269?KeyID=172d32c8&Signature=aof6f%252BRhjahdFxYpQm%2Fc8bJxVu0TLoPAWVrMptbcSVoWiIGRObTlVDvelXFarRhIkCrZsp9laoSOA%252BYN8c%2FrDQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:20.409366+02:00",
        "documentType": "auctionProtocol",
        "dateModified": "2019-01-28T12:32:20.409386+02:00",
        "id": "c15f1049d5c84aeaa164e4bb650daa0f"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "author": "auction_owner",
        "title": "SignedAuctionProtocol.pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/a833a8df66ed44a18260bd021ab7cd2c?KeyID=172d32c8&Signature=eAp2158FA%2F7m6SiQ9tICQOXDjLYWFjoEcyvhx%2FIJ6gio4FBZig5r9IVWZFBMKC%252Bl36EJOWUwDKVnKTT0OlK5AA%253D%253D",
        "format": "application/pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:20.543980+02:00",
        "documentType": "auctionProtocol",
        "dateModified": "2019-01-28T12:32:20.544014+02:00",
        "id": "85b3a0d97fcb4b83af6b5a21b2789c4c"
      }
    ],
    "verificationPeriod": {
      "startDate": "2019-01-28T12:32:19.988125+02:00",
      "endDate": "2019-01-28T12:32:20.693449+02:00"
    },
    "signingPeriod": {
      "startDate": "2019-01-28T12:32:19.988125+02:00",
      "endDate": "2019-02-18T18:00:00+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": "2019-01-28T12:32:19.988125+02:00",
      "endDate": "2019-01-28T12:32:20.693449+02:00"
    },
    "bid_id": "a22200d873de40e39f7f4ab5dd59f7eb",
    "value": {
      "currency": "UAH",
      "amount": 479,
      "valueAddedTaxIncluded": true
    },
    "date": "2019-01-28T12:32:20.705871+02:00",
    "id": "8e0279bc48cd41949e6ba8d436f31a0f"
  }
}

Disqualification of a candidate

In case of a manual disqualification, the organizer has to upload file with act or rejectionProtocol document type:

POST /api/2.5/auctions/17a42b23eaed4286a8937da1348817bb/awards/4e8136ff281a4f97aca77361f2e29641/documents?acc_token=b08a569f0fc244778d05c70166974957 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 377
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/990c527a9fe34b218bcb6330691b6a3a?KeyID=172d32c8&Signature=iE%2F8ruakyL6beJiIgA2h8QaYgOyzRNYqkUxIVDtumj%2Bat2Zs9lrWAHl9XpPtYmAzsrm6ovTGQaf44wY6XHuWCg%3D%3D",
    "title": "RejectionProtocol.pdf",
    "format": "application/pdf",
    "hash": "md5:00000000000000000000000000000000",
    "documentType": "rejectionProtocol"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/17a42b23eaed4286a8937da1348817bb/awards/4e8136ff281a4f97aca77361f2e29641/documents/b743cbdfd1444110bfdf3740457ddff1
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "author": "auction_owner",
    "title": "RejectionProtocol.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/990c527a9fe34b218bcb6330691b6a3a?KeyID=172d32c8&Signature=npfcCCOLpOyFNfnK9p0RC4z5%252BMbLIAozLJ4nOE0tw033hfeLUdS%252BFndF4MtD8MZPw86N%2FG79eG%2F62fpy54S9BQ%253D%253D",
    "format": "application/pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:16.508364+02:00",
    "documentType": "rejectionProtocol",
    "dateModified": "2019-01-28T12:32:16.508385+02:00",
    "id": "b743cbdfd1444110bfdf3740457ddff1"
  }
}

And disqualify candidate:

PATCH /api/2.5/auctions/17a42b23eaed4286a8937da1348817bb/awards/4e8136ff281a4f97aca77361f2e29641?acc_token=b08a569f0fc244778d05c70166974957 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 146
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "status": "unsuccessful",
    "description": "Candidate didn’t sign the auction protocol in 3 business days",
    "title": "Disqualified"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "status": "unsuccessful",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "author": "bid_owner",
        "title": "auction_protocol.pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/f7bfc14aee6f407dbce67342bec27cfe?KeyID=172d32c8&Signature=Z2WHBaMxm15G%252BTbq%2F5DNaCRA05rZV9F0XK1yx2%2FnywzB5d5aNfCSJSW1S6vYZleOfvx%252B11CBfXTAfe34x%2FYYCg%253D%253D",
        "format": "application/pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:16.391113+02:00",
        "documentType": "auctionProtocol",
        "dateModified": "2019-01-28T12:32:16.391142+02:00",
        "id": "81dd291ccb2342628e48c70e22593b4d"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "author": "auction_owner",
        "title": "RejectionProtocol.pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/990c527a9fe34b218bcb6330691b6a3a?KeyID=172d32c8&Signature=npfcCCOLpOyFNfnK9p0RC4z5%252BMbLIAozLJ4nOE0tw033hfeLUdS%252BFndF4MtD8MZPw86N%2FG79eG%2F62fpy54S9BQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:16.508364+02:00",
        "documentType": "rejectionProtocol",
        "dateModified": "2019-01-28T12:32:16.508385+02:00",
        "id": "b743cbdfd1444110bfdf3740457ddff1"
      }
    ],
    "verificationPeriod": {
      "startDate": "2019-01-28T12:32:16.245982+02:00",
      "endDate": "2019-01-28T12:32:16.660016+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": "2019-01-28T12:32:15.706689+02:00",
      "endDate": "2019-01-28T12:32:16.660016+02:00"
    },
    "bid_id": "9d7e4eed27534b56b663ea362332e0ab",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2019-01-28T12:32:16.672132+02:00",
    "id": "4e8136ff281a4f97aca77361f2e29641",
    "signingPeriod": {
      "startDate": "2019-01-28T12:32:16.245982+02:00",
      "endDate": "2019-02-18T18:00:00+02:00"
    }
  }
}

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.5/auctions/e0c4d484a95140569171138086703f23/awards/24f7e995bebe479d8acf5d3a9337ff3d?acc_token=898cfa971bac42239310ee094fdb7b78 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 33
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "status": "cancelled"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "status": "cancelled",
    "complaintPeriod": {
      "startDate": "2019-01-28T12:32:19.988125+02:00",
      "endDate": "2019-01-28T12:32:20.223166+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": "f59572206a724c87901cfd00ff8244ff",
    "value": {
      "currency": "UAH",
      "amount": 469,
      "valueAddedTaxIncluded": true
    },
    "date": "2019-01-28T12:32:20.234410+02:00",
    "id": "24f7e995bebe479d8acf5d3a9337ff3d"
  }
}

Note that the action can be completed till the award has pending.waiting status.

Signing contract

Contract registration

For the contract to be activated, the Organizer has

  1. to upload contractSigned first:
POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/contracts/d76886a9843e4f808588f58574dcb6c9/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 371
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9148af89eed54101a3fa62cf4422f6d0?KeyID=172d32c8&Signature=PEmdmSpKU9bufx2gED%2BalhGjAyQyrKScHdiXD2FcoDc1jn%2BNEg4FwzEBtvWRmlgFxJeqwG%2FjQEUNPaAa4HjlCg%3D%3D",
    "title": "signDocument.pdf",
    "format": "application/pdf",
    "hash": "md5:00000000000000000000000000000000",
    "documentType": "contractSigned"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/contracts/d76886a9843e4f808588f58574dcb6c9/documents/277b59122b864c5fbdee3161f295e02d
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "title": "signDocument.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9148af89eed54101a3fa62cf4422f6d0?KeyID=172d32c8&Signature=BQNh3no6i2XeO7SjTp1kmzNMtUN3n31qczIjfxF%2FYBzO%2FLNZdr3UXrgR7rdTbQ7vu9uvwNvURBrZCeFq234dAQ%253D%253D",
    "format": "application/pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:21.514717+02:00",
    "documentType": "contractSigned",
    "dateModified": "2019-01-28T12:32:21.514739+02:00",
    "id": "277b59122b864c5fbdee3161f295e02d"
  }
}
  1. set value for dateSigned and
  2. switch contract status to active:
PATCH /api/2.5/auctions/e0c4d484a95140569171138086703f23/contracts/d76886a9843e4f808588f58574dcb6c9?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 80
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "status": "active",
    "dateSigned": "2019-01-28T12:32:21.632395+02:00"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "title": "contract_first_document.doc",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/b7d0b588dd384a978d9ffb21449240f1?KeyID=172d32c8&Signature=LgYWwqGPjlhYsD53mpm8fhwedTGzfeLj0fi6TReADET4PMRZN4qnMRCAMnTnMVQnfNAVvLbWyJ4WvCq3XdWGCQ%253D%253D",
        "format": "application/msword",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:21.096880+02:00",
        "dateModified": "2019-01-28T12:32:21.096930+02:00",
        "id": "bc2700d6e7fd485ea78e86cb23fbe9bf"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "title": "contract_second_document.doc",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/27494a750520467582b01376318dd217?KeyID=172d32c8&Signature=9sdWrx0iQvYIUAxDgiR32B9BSYmOZ96gJsR0e8MPapGT5dFb8q2N2GfJddGJEFRcNLBTJT%2Fup4jUrmMJeOOvBA%253D%253D",
        "format": "application/msword",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:21.318353+02:00",
        "dateModified": "2019-01-28T12:32:21.318392+02:00",
        "id": "60b804cd00ec403f99158d127f552d7e"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "title": "signDocument.pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9148af89eed54101a3fa62cf4422f6d0?KeyID=172d32c8&Signature=BQNh3no6i2XeO7SjTp1kmzNMtUN3n31qczIjfxF%2FYBzO%2FLNZdr3UXrgR7rdTbQ7vu9uvwNvURBrZCeFq234dAQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:21.514717+02:00",
        "documentType": "contractSigned",
        "dateModified": "2019-01-28T12:32:21.514739+02:00",
        "id": "277b59122b864c5fbdee3161f295e02d"
      }
    ],
    "signingPeriod": {
      "startDate": "2019-01-28T12:32:19.988125+02:00",
      "endDate": "2019-02-18T18:00:00+02:00"
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CPV",
          "description": "Земельні ділянки",
          "id": "51413000-0"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "46ff602897964fdeb334c4a55e9bc9d7",
        "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": "2019-01-28T12:32:10.896560+02:00",
      "endDate": "2020-01-28T12:32:10.896560+02:00"
    },
    "dateSigned": "2019-01-28T12:32:21.632395+02:00",
    "value": {
      "currency": "UAH",
      "amount": 479,
      "valueAddedTaxIncluded": true
    },
    "date": "2019-01-28T12:32:21.772640+02:00",
    "awardID": "8e0279bc48cd41949e6ba8d436f31a0f",
    "id": "d76886a9843e4f808588f58574dcb6c9",
    "contractID": "UA-EA-2019-01-28-000002-1"
  }
}

As soon as the contracts receives active status, the procedure becomes complete.

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.5/auctions/e0c4d484a95140569171138086703f23/cancellations?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 43
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "reason": "cancellation reason"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/cancellations/a26b6050db80408983ad92b6bca5f1c6
X-Content-Type-Options: nosniff
{
  "data": {
    "date": "2019-01-28T12:32:22.086444+02:00",
    "status": "pending",
    "reason": "cancellation reason",
    "cancellationOf": "tender",
    "id": "a26b6050db80408983ad92b6bca5f1c6"
  }
}

Filling cancellation with protocol and supplementary documentation

Upload the file contents:

POST /api/2.5/auctions/e0c4d484a95140569171138086703f23/cancellations/a26b6050db80408983ad92b6bca5f1c6/documents?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 329
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0b8cfaf813ef42ab9fb4368c3502ad3d?KeyID=172d32c8&Signature=aj4XnrwIw5XtQ4RtCrc7ouV9FeUCjO5v5TeLwtvzcn2raOsdKZI%2B4O7Jcin3nQT1O1sgkCh9J%2FEK0W89ilDbDQ%3D%3D",
    "title": "Notice.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}

Response: 201 Created
Content-Type: application/json
Location: http://https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions/api/2.5/auctions/e0c4d484a95140569171138086703f23/cancellations/a26b6050db80408983ad92b6bca5f1c6/documents/fb5be37e1ada459ab4a05622f31541e4
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "title": "Notice.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0b8cfaf813ef42ab9fb4368c3502ad3d?KeyID=172d32c8&Signature=aPf4hHKbP%252BxZkpagxIVO136KI66kwUjjSSvwS56J0HMOGb0vT1cc3HgMhnAD1K%252B4v6Nvr%2FATeDCjqFotR3asDA%253D%253D",
    "format": "application/pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:22.306099+02:00",
    "dateModified": "2019-01-28T12:32:22.306133+02:00",
    "id": "fb5be37e1ada459ab4a05622f31541e4"
  }
}

Change the document description and other properties:

PATCH /api/2.5/auctions/e0c4d484a95140569171138086703f23/cancellations/a26b6050db80408983ad92b6bca5f1c6/documents/fb5be37e1ada459ab4a05622f31541e4?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 48
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "description": "Changed description"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "Changed description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0b8cfaf813ef42ab9fb4368c3502ad3d?KeyID=172d32c8&Signature=aPf4hHKbP%252BxZkpagxIVO136KI66kwUjjSSvwS56J0HMOGb0vT1cc3HgMhnAD1K%252B4v6Nvr%2FATeDCjqFotR3asDA%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:22.306099+02:00",
    "dateModified": "2019-01-28T12:32:22.306133+02:00",
    "id": "fb5be37e1ada459ab4a05622f31541e4"
  }
}

Upload new version of the document:

PUT /api/2.5/auctions/e0c4d484a95140569171138086703f23/cancellations/a26b6050db80408983ad92b6bca5f1c6/documents/fb5be37e1ada459ab4a05622f31541e4?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 327
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/3f54300127784140bd8dc69c407ac851?KeyID=172d32c8&Signature=PxO3c07cLYGXhhtgqM4muUTOIeNRy2EoI2r0ZvSboFJCHsqqjGxOrOTGKFlBk2GGdTdJyFQkLG0dVp0NOobcBA%3D%3D",
    "title": "Notice-2.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "Changed description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/3f54300127784140bd8dc69c407ac851?KeyID=172d32c8&Signature=70fWiI5taKEkiCIFmLijKvdnZ3jEemrJfFlLEbQ63JvQGRRO9WgMdUt57TSC0SMkEnlwsLRr%252BM1FsyQuNkDrAw%253D%253D",
    "title": "Notice-2.pdf",
    "documentOf": "auction",
    "datePublished": "2019-01-28T12:32:22.306099+02:00",
    "dateModified": "2019-01-28T12:32:22.792398+02:00",
    "id": "fb5be37e1ada459ab4a05622f31541e4"
  }
}

Activating the request and cancelling auction

PATCH /api/2.5/auctions/e0c4d484a95140569171138086703f23/cancellations/a26b6050db80408983ad92b6bca5f1c6?acc_token=4cc54038a92f4f578a435ca9cb041343 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: https://lb.api-sandbox.ea2.openprocurement.net/api/2.3/auctions
DATA:
{
  "data": {
    "status": "active"
  }
}

Response: 200 OK
Content-Type: application/json
X-Content-Type-Options: nosniff
{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0b8cfaf813ef42ab9fb4368c3502ad3d?KeyID=172d32c8&Signature=aPf4hHKbP%252BxZkpagxIVO136KI66kwUjjSSvwS56J0HMOGb0vT1cc3HgMhnAD1K%252B4v6Nvr%2FATeDCjqFotR3asDA%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:22.306099+02:00",
        "dateModified": "2019-01-28T12:32:22.306133+02:00",
        "id": "fb5be37e1ada459ab4a05622f31541e4"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/3f54300127784140bd8dc69c407ac851?KeyID=172d32c8&Signature=70fWiI5taKEkiCIFmLijKvdnZ3jEemrJfFlLEbQ63JvQGRRO9WgMdUt57TSC0SMkEnlwsLRr%252BM1FsyQuNkDrAw%253D%253D",
        "title": "Notice-2.pdf",
        "documentOf": "auction",
        "datePublished": "2019-01-28T12:32:22.306099+02:00",
        "dateModified": "2019-01-28T12:32:22.792398+02:00",
        "id": "fb5be37e1ada459ab4a05622f31541e4"
      }
    ],
    "reason": "cancellation reason",
    "date": "2019-01-28T12:32:22.947408+02:00",
    "cancellationOf": "tender",
    "id": "a26b6050db80408983ad92b6bca5f1c6"
  }
}