Tutorial

Exploring basic rules

Let’s try exploring the /auctions endpoint:

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


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

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

Just invoking it reveals empty set.

Now let’s attempt creating some auction:

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


415 Unsupported Media Type
Content-Type: application/json; charset=UTF-8

{
  "status": "error",
  "errors": [
    {
      "description": "Content-Type header should be one of ['application/json']",
      "location": "header",
      "name": "Content-Type"
    }
  ]
}

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

Let’s satisfy the Content-type requirement:

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


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

{
  "status": "error",
  "errors": [
    {
      "description": "No JSON object could be decoded",
      "location": "body",
      "name": "data"
    }
  ]
}

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

Creating auction

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

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

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


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

{
  "access": {
    "token": "5303e3bebff44ed3a5a9f8f7db899743"
  },
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2017-04-07-000001",
    "enquiryPeriod": {
      "startDate": "2017-04-07T15:31:20.714247+03:00",
      "endDate": "2017-04-20T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2017-04-20T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "331e9ef3d78d46cfb3df35c17b0650c7",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:20.714686+03:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2017-04-07T15:31:20.714721+03:00",
        "id": "345103188a104e4b9cde2d28c24afb37"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2017-04-07T15:31:20.718580+03:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-04-07T15:31:20.714247+03:00",
      "endDate": "2017-04-20T23:59:50+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-04-21T00:00:00+03:00"
    },
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2017-04-07T15:31:20.714247+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "c910adfa79164d8d83b51c4bfcec1f59",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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

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

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


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

{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2017-04-07-000001",
    "enquiryPeriod": {
      "startDate": "2017-04-07T15:31:20.714247+03:00",
      "endDate": "2017-04-20T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2017-04-20T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "331e9ef3d78d46cfb3df35c17b0650c7",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:20.714686+03:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2017-04-07T15:31:20.714721+03:00",
        "id": "345103188a104e4b9cde2d28c24afb37"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2017-04-07T15:31:20.718580+03:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-04-07T15:31:20.714247+03:00",
      "endDate": "2017-04-20T23:59:50+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-04-21T00:00:00+03:00"
    },
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2017-04-07T15:31:20.714247+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "c910adfa79164d8d83b51c4bfcec1f59",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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

Let’s see what listing of auctions reveals us:

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


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=2017-04-07T15%3A31%3A20.718580%2B03%3A00",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2017-04-07T15%3A31%3A20.718580%2B03%3A00",
    "offset": "2017-04-07T15:31:20.718580+03:00"
  },
  "data": [
    {
      "id": "331e9ef3d78d46cfb3df35c17b0650c7",
      "dateModified": "2017-04-07T15:31:20.718580+03:00"
    }
  ]
}

We do see the auction’s internal id (that can be used to construct full URL by prepending https://api-sandbox.ea.openprocurement.org/api/0/auctions/) and its dateModified datestamp.

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

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

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


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

{
  "access": {
    "token": "a1cfe7e1c6ca480e98d94d9830d22d89"
  },
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2017-04-07-000002",
    "enquiryPeriod": {
      "startDate": "2017-04-07T15:31:20.882324+03:00",
      "endDate": "2017-04-20T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2017-04-20T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "title_en": "Cases with state awards",
    "id": "416ef4dd4318465b8542ec9f85e7c425",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:20.882728+03:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2017-04-07T15:31:20.882760+03:00",
        "id": "6eadaa8ef2d940bba800a6e91e2fc895"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2017-04-07T15:31:20.886690+03:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-04-07T15:31:20.882324+03:00",
      "endDate": "2017-04-20T23:59:50+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-04-21T00:00:00+03:00"
    },
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2017-04-07T15:31:20.882324+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "description": "Земля для військовослужбовців",
        "id": "81ad8752f450486cb676d3f6e20e0cda",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "title_ru": "футляры к государственным наградам",
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "kind": "general",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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

Let’s check what auction registry contains:

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


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=2017-04-07T15%3A31%3A20.718580%2B03%3A00",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2017-04-07T15%3A31%3A20.718580%2B03%3A00",
    "offset": "2017-04-07T15:31:20.718580+03:00"
  },
  "data": [
    {
      "id": "331e9ef3d78d46cfb3df35c17b0650c7",
      "dateModified": "2017-04-07T15:31:20.718580+03:00"
    }
  ]
}

And indeed we have 2 auctions now.

Modifying auction

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

PATCH /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 75
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "tenderPeriod": {
      "endDate": "2017-04-22T15:31:31.008575+03:00"
    }
  }
}


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

{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2017-04-07-000001",
    "enquiryPeriod": {
      "startDate": "2017-04-07T15:31:20.714247+03:00",
      "endDate": "2017-04-20T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2017-04-20T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "331e9ef3d78d46cfb3df35c17b0650c7",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:20.714686+03:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2017-04-07T15:31:20.714721+03:00",
        "id": "345103188a104e4b9cde2d28c24afb37"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2017-04-07T15:31:20.718580+03:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2017-04-07T15:31:20.714247+03:00",
      "endDate": "2017-04-20T23:59:50+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2017-04-21T00:00:00+03:00"
    },
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2017-04-07T15:31:20.714247+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "c910adfa79164d8d83b51c4bfcec1f59",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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

Checking the listing again reflects the new modification date:

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


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=2017-04-07T15%3A31%3A20.940602%2B03%3A00",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2017-04-07T15%3A31%3A20.940602%2B03%3A00",
    "offset": "2017-04-07T15:31:20.940602+03:00"
  },
  "data": [
    {
      "id": "331e9ef3d78d46cfb3df35c17b0650c7",
      "dateModified": "2017-04-07T15:31:20.718580+03:00"
    },
    {
      "id": "416ef4dd4318465b8542ec9f85e7c425",
      "dateModified": "2017-04-07T15:31:20.886690+03:00"
    },
    {
      "id": "d007ef36fbd54501ae61fc15cd9697cc",
      "dateModified": "2017-04-07T15:31:20.940602+03:00"
    }
  ]
}

Uploading documentation

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

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/documents?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 409
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "title": "Notice.pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0f4fa89c2d474b758b69c4519deb4669?KeyID=df79319d&Signature=LxBTbmhazeLX4GDpNekBawKJLoQI%2BVaXLQX0Jub0vRia906oaGivDck7rN7XLJJEb3Ov1pARvjaZPBm1qLYJAg%3D%3D",
    "format": "application/pdf",
    "documentType": "technicalSpecifications"
  }
}


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0f4fa89c2d474b758b69c4519deb4669?KeyID=df79319d&Signature=NFKTdJ0NEPpLGoHhQLj5BZk%252BcMcqYYNmDSaC728CSeFbAJVf4%252B1r1DSbxnVNomhP%2FCJLp4AScSrdoKcwlI1QCg%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:21.147289+03:00",
    "documentType": "technicalSpecifications",
    "dateModified": "2017-04-07T15:31:21.147318+03:00",
    "id": "5b056653d3ba44c3a31e42b36c211250"
  }
}

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

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


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0f4fa89c2d474b758b69c4519deb4669?KeyID=df79319d&Signature=NFKTdJ0NEPpLGoHhQLj5BZk%252BcMcqYYNmDSaC728CSeFbAJVf4%252B1r1DSbxnVNomhP%2FCJLp4AScSrdoKcwlI1QCg%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:21.147289+03:00",
    "previousVersions": [],
    "documentType": "technicalSpecifications",
    "dateModified": "2017-04-07T15:31:21.147318+03:00",
    "id": "5b056653d3ba44c3a31e42b36c211250"
  }
}

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

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/documents?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 332
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/31179efc649e4f649d58208d7bfcd62d?KeyID=df79319d&Signature=DUCFXuVD7VR5lct6whdqA5HtNS88sDbyCdqcIMqOUa6jOkLqxMjkGQg1EveHbN0tn9o6ARmz0053Of9e6XpdDQ%3D%3D",
    "title": "AwardCriteria.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/31179efc649e4f649d58208d7bfcd62d?KeyID=df79319d&Signature=G2Derjlzj8JCHJ9mJejuKkBVfnM9mNJ9Q0sV1nqhUYyP0viarW06obUyiHZWLk9VL06pbay54qjS7cpN0YjAAQ%253D%253D",
    "title": "AwardCriteria.pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:21.205404+03:00",
    "dateModified": "2017-04-07T15:31:21.205436+03:00",
    "id": "16e007ddfe38495f9eb9632916bdc119"
  }
}

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

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:20.714686+03:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2017-04-07T15:31:20.714721+03:00",
      "id": "345103188a104e4b9cde2d28c24afb37"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0f4fa89c2d474b758b69c4519deb4669?KeyID=df79319d&Signature=NFKTdJ0NEPpLGoHhQLj5BZk%252BcMcqYYNmDSaC728CSeFbAJVf4%252B1r1DSbxnVNomhP%2FCJLp4AScSrdoKcwlI1QCg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.147289+03:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2017-04-07T15:31:21.147318+03:00",
      "id": "5b056653d3ba44c3a31e42b36c211250"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/31179efc649e4f649d58208d7bfcd62d?KeyID=df79319d&Signature=G2Derjlzj8JCHJ9mJejuKkBVfnM9mNJ9Q0sV1nqhUYyP0viarW06obUyiHZWLk9VL06pbay54qjS7cpN0YjAAQ%253D%253D",
      "title": "AwardCriteria.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.205404+03:00",
      "dateModified": "2017-04-07T15:31:21.205436+03:00",
      "id": "16e007ddfe38495f9eb9632916bdc119"
    }
  ]
}

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

PUT /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/documents/16e007ddfe38495f9eb9632916bdc119?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 342
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/b01d0e1c43b6412a85bebafe91534ee0?KeyID=df79319d&Signature=mzNNaXcQr7LL5ddWF%2Bwqa8%2BuCXBybvyir%2BvppValKzVByvOVinO5t2B6ZRWdNLucYNP7wE7gQ1KfwOrJ%2F0BdDg%3D%3D",
    "title": "AwardCriteria-2.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/b01d0e1c43b6412a85bebafe91534ee0?KeyID=df79319d&Signature=ZVHrYmy%2FAAY2Qq4J1Fr%2FfxqDK2P2cXFlXcNm0mlbn%252BYm0aYsDYun8R%252BrjFLgV%2FGey67oYqZxwWaAQXn53zSXCg%253D%253D",
    "title": "AwardCriteria-2.pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:21.205404+03:00",
    "dateModified": "2017-04-07T15:31:21.274489+03:00",
    "id": "16e007ddfe38495f9eb9632916bdc119"
  }
}

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

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:20.714686+03:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2017-04-07T15:31:20.714721+03:00",
      "id": "345103188a104e4b9cde2d28c24afb37"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0f4fa89c2d474b758b69c4519deb4669?KeyID=df79319d&Signature=NFKTdJ0NEPpLGoHhQLj5BZk%252BcMcqYYNmDSaC728CSeFbAJVf4%252B1r1DSbxnVNomhP%2FCJLp4AScSrdoKcwlI1QCg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.147289+03:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2017-04-07T15:31:21.147318+03:00",
      "id": "5b056653d3ba44c3a31e42b36c211250"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/b01d0e1c43b6412a85bebafe91534ee0?KeyID=df79319d&Signature=ZVHrYmy%2FAAY2Qq4J1Fr%2FfxqDK2P2cXFlXcNm0mlbn%252BYm0aYsDYun8R%252BrjFLgV%2FGey67oYqZxwWaAQXn53zSXCg%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.205404+03:00",
      "dateModified": "2017-04-07T15:31:21.274489+03:00",
      "id": "16e007ddfe38495f9eb9632916bdc119"
    }
  ]
}

Uploading illustration

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

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

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/documents?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 438
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "index": 1,
    "hash": "md5:00000000000000000000000000000000",
    "description": "First illustration description",
    "title": "first_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/746b61b2d1264604b1e98c058ac1740f?KeyID=df79319d&Signature=Gc3B2F2yC9%2FB8cg2NSdB4srgDKZnSFVydhfK2acfFSGrAmhqb9DPaty0%2Fa%2F5iY0fqYOkY%2FkFDtnvz%2BUlKY%2BUBA%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}


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

{
  "data": {
    "index": 1,
    "hash": "md5:00000000000000000000000000000000",
    "description": "First illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/746b61b2d1264604b1e98c058ac1740f?KeyID=df79319d&Signature=982LynSZlgaXIbNRD9RoN8In%252B2VO3UW7AZPg9DSooxblspu2xjGPigezf5GiMG9j1d2xE%252B9%2FZUG%2FHY3GyJ5WCw%253D%253D",
    "title": "first_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:21.345637+03:00",
    "documentType": "illustration",
    "dateModified": "2017-04-07T15:31:21.345663+03:00",
    "id": "76b72b2fd48a4a61a99eef1ae5ebbb1c"
  }
}

We can check whether illustration is uploaded.

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:20.714686+03:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2017-04-07T15:31:20.714721+03:00",
      "id": "345103188a104e4b9cde2d28c24afb37"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0f4fa89c2d474b758b69c4519deb4669?KeyID=df79319d&Signature=NFKTdJ0NEPpLGoHhQLj5BZk%252BcMcqYYNmDSaC728CSeFbAJVf4%252B1r1DSbxnVNomhP%2FCJLp4AScSrdoKcwlI1QCg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.147289+03:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2017-04-07T15:31:21.147318+03:00",
      "id": "5b056653d3ba44c3a31e42b36c211250"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/b01d0e1c43b6412a85bebafe91534ee0?KeyID=df79319d&Signature=ZVHrYmy%2FAAY2Qq4J1Fr%2FfxqDK2P2cXFlXcNm0mlbn%252BYm0aYsDYun8R%252BrjFLgV%2FGey67oYqZxwWaAQXn53zSXCg%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.205404+03:00",
      "dateModified": "2017-04-07T15:31:21.274489+03:00",
      "id": "16e007ddfe38495f9eb9632916bdc119"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/746b61b2d1264604b1e98c058ac1740f?KeyID=df79319d&Signature=982LynSZlgaXIbNRD9RoN8In%252B2VO3UW7AZPg9DSooxblspu2xjGPigezf5GiMG9j1d2xE%252B9%2FZUG%2FHY3GyJ5WCw%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.345637+03:00",
      "documentType": "illustration",
      "dateModified": "2017-04-07T15:31:21.345663+03:00",
      "id": "76b72b2fd48a4a61a99eef1ae5ebbb1c"
    }
  ]
}

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

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

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Second illustration description",
    "title": "second_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8b5e76acca8148d492d44fae7b821cb3?KeyID=df79319d&Signature=2liAez4DlOJjoISUu826Fjf0k6Ng6R2wTFtotgAkvVNbFHu8KGOlH6vJugXObk8U%2FT5QDHiF1h7OB1XPLzUrDw%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}


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

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Second illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8b5e76acca8148d492d44fae7b821cb3?KeyID=df79319d&Signature=2bswW9s0i7HgLGfpy8lRozJ7y%252Bu17vN0AumIUYcxCPXoHygorapn36ezzuVSquGnfW66NV%252BEPS4zkV9os1AyDw%253D%253D",
    "title": "second_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:21.455148+03:00",
    "documentType": "illustration",
    "dateModified": "2017-04-07T15:31:21.455217+03:00",
    "id": "55976c9629af4c019ea720089cf11433"
  }
}

Add third illustration:

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

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Third illustration description",
    "title": "third_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9326da9980b0434fb6887ffaa9cb9b43?KeyID=df79319d&Signature=eZ82BR29z3EwUPBAi3qY3r0Mx1gTuJJ3Bwug%2FQMjsI%2FY4g7I2TFJkFGYhOEOh7LrlEGrbRbuRCjJ9R1JC4X1Cw%3D%3D",
    "format": "image/jpeg",
    "documentType": "illustration"
  }
}


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

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Third illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9326da9980b0434fb6887ffaa9cb9b43?KeyID=df79319d&Signature=tjmY%2FqWF7xtF5XwneSbWfiQ%2F0RsWQeVbeEph6SvyDoYxkCUdPrAIlZaJOtEk7x44Z4wBO4oSbUt8OAEXovzYBQ%253D%253D",
    "title": "third_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:21.525229+03:00",
    "documentType": "illustration",
    "dateModified": "2017-04-07T15:31:21.525267+03:00",
    "id": "a3f7774f77a448619ba16aa270100d21"
  }
}

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

We can check that there are three uploaded illustrations.

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:20.714686+03:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2017-04-07T15:31:20.714721+03:00",
      "id": "345103188a104e4b9cde2d28c24afb37"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0f4fa89c2d474b758b69c4519deb4669?KeyID=df79319d&Signature=NFKTdJ0NEPpLGoHhQLj5BZk%252BcMcqYYNmDSaC728CSeFbAJVf4%252B1r1DSbxnVNomhP%2FCJLp4AScSrdoKcwlI1QCg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.147289+03:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2017-04-07T15:31:21.147318+03:00",
      "id": "5b056653d3ba44c3a31e42b36c211250"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/b01d0e1c43b6412a85bebafe91534ee0?KeyID=df79319d&Signature=ZVHrYmy%2FAAY2Qq4J1Fr%2FfxqDK2P2cXFlXcNm0mlbn%252BYm0aYsDYun8R%252BrjFLgV%2FGey67oYqZxwWaAQXn53zSXCg%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.205404+03:00",
      "dateModified": "2017-04-07T15:31:21.274489+03:00",
      "id": "16e007ddfe38495f9eb9632916bdc119"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/746b61b2d1264604b1e98c058ac1740f?KeyID=df79319d&Signature=982LynSZlgaXIbNRD9RoN8In%252B2VO3UW7AZPg9DSooxblspu2xjGPigezf5GiMG9j1d2xE%252B9%2FZUG%2FHY3GyJ5WCw%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.345637+03:00",
      "documentType": "illustration",
      "dateModified": "2017-04-07T15:31:21.345663+03:00",
      "id": "76b72b2fd48a4a61a99eef1ae5ebbb1c"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Second illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8b5e76acca8148d492d44fae7b821cb3?KeyID=df79319d&Signature=2bswW9s0i7HgLGfpy8lRozJ7y%252Bu17vN0AumIUYcxCPXoHygorapn36ezzuVSquGnfW66NV%252BEPS4zkV9os1AyDw%253D%253D",
      "title": "second_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.455148+03:00",
      "documentType": "illustration",
      "dateModified": "2017-04-07T15:31:21.455217+03:00",
      "id": "55976c9629af4c019ea720089cf11433"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Third illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9326da9980b0434fb6887ffaa9cb9b43?KeyID=df79319d&Signature=tjmY%2FqWF7xtF5XwneSbWfiQ%2F0RsWQeVbeEph6SvyDoYxkCUdPrAIlZaJOtEk7x44Z4wBO4oSbUt8OAEXovzYBQ%253D%253D",
      "title": "third_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:21.525229+03:00",
      "documentType": "illustration",
      "dateModified": "2017-04-07T15:31:21.525267+03:00",
      "id": "a3f7774f77a448619ba16aa270100d21"
    }
  ]
}

Enquiries

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

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

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


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

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

Organizer can answer them:

PATCH /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/questions/78992556c97a4cbbbf386c8ce0fc7d58?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 162
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність",
    "date": "2017-04-07T15:31:21.724463+03:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "78992556c97a4cbbbf386c8ce0fc7d58",
    "questionOf": "tender"
  }
}

And one can retrieve the question list:

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


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

{
  "data": [
    {
      "description": "Просимо додати таблицю потрібної калорійності харчування",
      "title": "Калорійність",
      "date": "2017-04-07T15:31:21.724463+03:00",
      "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
      "id": "78992556c97a4cbbbf386c8ce0fc7d58",
      "questionOf": "tender"
    }
  ]
}

Or an individual answer:

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


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

{
  "data": {
    "description": "Просимо додати таблицю потрібної калорійності харчування",
    "title": "Калорійність",
    "date": "2017-04-07T15:31:21.724463+03:00",
    "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
    "id": "78992556c97a4cbbbf386c8ce0fc7d58",
    "questionOf": "tender"
  }
}

Registering bid

Bidder can register a bid in draft status:

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

{
  "data": {
    "status": "draft",
    "qualified": true,
    "value": {
      "amount": 500
    },
    "tenderers": [
      {
        "contactPoint": {
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк",
          "email": "soleksuk@gmail.com"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137256",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "countryName": "Україна",
          "postalCode": "21100",
          "region": "м. Вінниця",
          "streetAddress": "вул. Островського, 33",
          "locality": "м. Вінниця"
        }
      }
    ]
  }
}


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

{
  "access": {
    "token": "2dd2f5676d0944dca1c134c73f8456b0"
  },
  "data": {
    "status": "draft",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:21.919522+03: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": "a96a4681a1ef4b9fba6b598bd1d39406"
  }
}

And activate a bid:

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

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


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

{
  "data": {
    "status": "active",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:21.919522+03: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": "a96a4681a1ef4b9fba6b598bd1d39406"
  }
}

And upload proposal document:

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/bids/a96a4681a1ef4b9fba6b598bd1d39406/documents?acc_token=2dd2f5676d0944dca1c134c73f8456b0 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 331
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/615ccdea0aa04f57bf9adbd61816ce29?KeyID=df79319d&Signature=zBgSfxy6o68K1JIC%2FqZF1EaRAoFSBfjdowfgJiVZRy2sjDh54l3LkuEwSytTPThR2AV%2BfIdKxmesa0UISzOBCg%3D%3D",
    "title": "Proposal.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/bids/a96a4681a1ef4b9fba6b598bd1d39406/documents/b3c46d311886494887c261086517d00e

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/bids/a96a4681a1ef4b9fba6b598bd1d39406/documents/b3c46d311886494887c261086517d00e?download=615ccdea0aa04f57bf9adbd61816ce29",
    "title": "Proposal.pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:22.093060+03:00",
    "dateModified": "2017-04-07T15:31:22.093086+03:00",
    "id": "b3c46d311886494887c261086517d00e"
  }
}

It is possible to check the uploaded documents:

GET /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/bids/a96a4681a1ef4b9fba6b598bd1d39406/documents?acc_token=2dd2f5676d0944dca1c134c73f8456b0 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/bids/a96a4681a1ef4b9fba6b598bd1d39406/documents/b3c46d311886494887c261086517d00e?download=615ccdea0aa04f57bf9adbd61816ce29",
      "title": "Proposal.pdf",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:22.093060+03:00",
      "dateModified": "2017-04-07T15:31:22.093086+03:00",
      "id": "b3c46d311886494887c261086517d00e"
    }
  ]
}

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

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

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


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

{
  "access": {
    "token": "6397d7db922b42698cbf52fc510d2e09"
  },
  "data": {
    "status": "active",
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:22.210549+03: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": "0743a2c22cc24b19ad9bf844fdf98e50"
  }
}

Auction

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

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


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

{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2017-04-07-000001",
    "auctionUrl": "http://auction-sandbox.openprocurement.org/auctions/331e9ef3d78d46cfb3df35c17b0650c7",
    "enquiryPeriod": {
      "startDate": "2017-03-31T15:31:12.615461+03:00",
      "endDate": "2017-04-07T15:31:12.615461+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2017-04-07T16:15:12.615461+03:00",
    "awardCriteria": "highestCost",
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "title": "Калорійність",
        "date": "2017-04-07T15:31:21.724463+03:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "78992556c97a4cbbbf386c8ce0fc7d58",
        "questionOf": "tender"
      }
    ],
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "331e9ef3d78d46cfb3df35c17b0650c7",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:20.714686+03:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2017-04-07T15:31:20.714721+03:00",
        "id": "345103188a104e4b9cde2d28c24afb37"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "document description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0f4fa89c2d474b758b69c4519deb4669?KeyID=df79319d&Signature=NFKTdJ0NEPpLGoHhQLj5BZk%252BcMcqYYNmDSaC728CSeFbAJVf4%252B1r1DSbxnVNomhP%2FCJLp4AScSrdoKcwlI1QCg%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:21.147289+03:00",
        "documentType": "technicalSpecifications",
        "dateModified": "2017-04-07T15:31:21.147318+03:00",
        "id": "5b056653d3ba44c3a31e42b36c211250"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/31179efc649e4f649d58208d7bfcd62d?KeyID=df79319d&Signature=G2Derjlzj8JCHJ9mJejuKkBVfnM9mNJ9Q0sV1nqhUYyP0viarW06obUyiHZWLk9VL06pbay54qjS7cpN0YjAAQ%253D%253D",
        "title": "AwardCriteria.pdf",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:21.205404+03:00",
        "dateModified": "2017-04-07T15:31:21.205436+03:00",
        "id": "16e007ddfe38495f9eb9632916bdc119"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/b01d0e1c43b6412a85bebafe91534ee0?KeyID=df79319d&Signature=ZVHrYmy%2FAAY2Qq4J1Fr%2FfxqDK2P2cXFlXcNm0mlbn%252BYm0aYsDYun8R%252BrjFLgV%2FGey67oYqZxwWaAQXn53zSXCg%253D%253D",
        "title": "AwardCriteria-2.pdf",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:21.205404+03:00",
        "dateModified": "2017-04-07T15:31:21.274489+03:00",
        "id": "16e007ddfe38495f9eb9632916bdc119"
      },
      {
        "index": 1,
        "hash": "md5:00000000000000000000000000000000",
        "description": "First illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/746b61b2d1264604b1e98c058ac1740f?KeyID=df79319d&Signature=982LynSZlgaXIbNRD9RoN8In%252B2VO3UW7AZPg9DSooxblspu2xjGPigezf5GiMG9j1d2xE%252B9%2FZUG%2FHY3GyJ5WCw%253D%253D",
        "title": "first_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:21.345637+03:00",
        "documentType": "illustration",
        "dateModified": "2017-04-07T15:31:21.345663+03:00",
        "id": "76b72b2fd48a4a61a99eef1ae5ebbb1c"
      },
      {
        "index": 2,
        "hash": "md5:00000000000000000000000000000000",
        "description": "Second illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8b5e76acca8148d492d44fae7b821cb3?KeyID=df79319d&Signature=2bswW9s0i7HgLGfpy8lRozJ7y%252Bu17vN0AumIUYcxCPXoHygorapn36ezzuVSquGnfW66NV%252BEPS4zkV9os1AyDw%253D%253D",
        "title": "second_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:21.455148+03:00",
        "documentType": "illustration",
        "dateModified": "2017-04-07T15:31:21.455217+03:00",
        "id": "55976c9629af4c019ea720089cf11433"
      },
      {
        "index": 2,
        "hash": "md5:00000000000000000000000000000000",
        "description": "Third illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9326da9980b0434fb6887ffaa9cb9b43?KeyID=df79319d&Signature=tjmY%2FqWF7xtF5XwneSbWfiQ%2F0RsWQeVbeEph6SvyDoYxkCUdPrAIlZaJOtEk7x44Z4wBO4oSbUt8OAEXovzYBQ%253D%253D",
        "title": "third_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:21.525229+03:00",
        "documentType": "illustration",
        "dateModified": "2017-04-07T15:31:21.525267+03:00",
        "id": "a3f7774f77a448619ba16aa270100d21"
      },
      {
        "title": "Familiarization with bank asset",
        "format": "offline/on-site-examination",
        "accessDetails": "Familiar with asset: days, time, address",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:21.635197+03:00",
        "documentType": "x_dgfAssetFamiliarization",
        "dateModified": "2017-04-07T15:31:21.635233+03:00",
        "id": "de8d3b83672f4924af2a8abe32e13b50"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2017-04-07T15:31:22.506250+03:00",
    "status": "active.auction",
    "tenderPeriod": {
      "startDate": "2017-03-31T15:31:12.615461+03:00",
      "endDate": "2017-04-07T15:31:12.615461+03:00"
    },
    "auctionPeriod": {
      "startDate": "2017-04-07T15:31:12.615461+03:00",
      "shouldStartAfter": "2017-04-08T00:00:00+03:00"
    },
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2017-04-07T15:31:20.714247+03:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "c910adfa79164d8d83b51c4bfcec1f59",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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

GET /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/bids/a96a4681a1ef4b9fba6b598bd1d39406?acc_token=2dd2f5676d0944dca1c134c73f8456b0 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/bids/a96a4681a1ef4b9fba6b598bd1d39406/documents/b3c46d311886494887c261086517d00e?download=615ccdea0aa04f57bf9adbd61816ce29",
        "title": "Proposal.pdf",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:22.093060+03:00",
        "dateModified": "2017-04-07T15:31:22.093086+03:00",
        "id": "b3c46d311886494887c261086517d00e"
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:21.919522+03: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": "a96a4681a1ef4b9fba6b598bd1d39406",
    "participationUrl": "http://auction-sandbox.openprocurement.org/auctions/331e9ef3d78d46cfb3df35c17b0650c7?key_for_bid=a96a4681a1ef4b9fba6b598bd1d39406"
  }
}

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

GET /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/bids/0743a2c22cc24b19ad9bf844fdf98e50?acc_token=6397d7db922b42698cbf52fc510d2e09 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": {
    "status": "active",
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:22.210549+03: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": "0743a2c22cc24b19ad9bf844fdf98e50",
    "participationUrl": "http://auction-sandbox.openprocurement.org/auctions/331e9ef3d78d46cfb3df35c17b0650c7?key_for_bid=0743a2c22cc24b19ad9bf844fdf98e50"
  }
}

Qualification

After the competitive auction two awards are created:
  • for the first candidate (a participant that has submitted the highest valid bid at the auction) - initially has a pending.verification status and awaits auction protocol to be uploaded by the organizer;
  • for the second candidate (a participant that has submitted the second highest valid bid at the auction).
There are two more scenarios that can happen after the competitive auction:
  • If the two highest bidders have invalid bids (lower than auction starting price + minimal step), the awards will not be created at all, and the qualification procedure will automatically receive the “unsuccessful” status.
  • If the second highest bidder has a bid that is less than the starting price + minimal step, two awards are created, with one of them receiving a pending.verification status and undergoing the qualification procedure, and the other (with an invalid bid) automatically becoming “unsuccessful”.
GET /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/awards HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "status": "pending.verification",
      "paymentPeriod": {
        "startDate": "2017-04-07T15:31:22.815369+03:00",
        "endDate": "2017-04-07T15:51:22.815369+03:00"
      },
      "verificationPeriod": {
        "startDate": "2017-04-07T15:31:22.815369+03:00",
        "endDate": "2017-04-07T15:34:22.815369+03:00"
      },
      "signingPeriod": {
        "startDate": "2017-04-07T15:31:22.815369+03:00",
        "endDate": "2017-04-07T15:51:22.815369+03: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": "2017-04-07T15:31:22.815369+03:00",
        "endDate": "2017-04-07T15:51:22.815369+03:00"
      },
      "bid_id": "0743a2c22cc24b19ad9bf844fdf98e50",
      "value": {
        "currency": "UAH",
        "amount": 501.0,
        "valueAddedTaxIncluded": true
      },
      "date": "2017-04-07T15:31:22.815369+03:00",
      "id": "e5ff037d8e964151b6cb1d2a00a205e2"
    },
    {
      "status": "pending.waiting",
      "complaintPeriod": {
        "startDate": "2017-04-07T15:31:22.815369+03: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": "a96a4681a1ef4b9fba6b598bd1d39406",
      "value": {
        "currency": "UAH",
        "amount": 500.0,
        "valueAddedTaxIncluded": true
      },
      "date": "2017-04-07T15:31:22.815369+03:00",
      "id": "d4b1e5fa83294e11b1f68b0e180aaf21"
    }
  ]
}

Confirming qualification

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

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/awards/e5ff037d8e964151b6cb1d2a00a205e2/documents?acc_token=6397d7db922b42698cbf52fc510d2e09 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 377
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/1b3254efe97a43fe8c32d50835dcf2cb?KeyID=df79319d&Signature=dDY4gfIXztre2WA8djw8jIYNIUCXWcYRnyvXinq4mkkO1jwPfqDFRcEKwK1x%2FOoY3s7W2iYjkZjaOYyd8LIOBA%3D%3D",
    "title": "SignedAuctionProtocol.pdf",
    "format": "application/pdf",
    "hash": "md5:00000000000000000000000000000000",
    "documentType": "auctionProtocol"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/awards/e5ff037d8e964151b6cb1d2a00a205e2/documents/6bee80d99c2e40728271fa1d6a076696

{
  "data": {
    "dateModified": "2017-04-07T15:31:23.191237+03:00",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/1b3254efe97a43fe8c32d50835dcf2cb?KeyID=df79319d&Signature=ZfY1BOFDOQLc%252B%252B%2FoCwOmd%2FKFmwfIpmgnkAZnau3WnH0go%2F6iFpVmsSV%252BkzWncGkpoJlBsLohaoFfOspcteXTBg%253D%253D",
    "author": "bid_owner",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:23.191202+03:00",
    "documentType": "auctionProtocol",
    "title": "SignedAuctionProtocol.pdf",
    "id": "6bee80d99c2e40728271fa1d6a076696"
  }
}
POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/awards/e5ff037d8e964151b6cb1d2a00a205e2/documents?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 389
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6495273a1db3420897958969af4b63b7?KeyID=df79319d&Signature=qcPofA81L5%2F%2BPcUm95Q9%2B%2Fhqb81v1nMKOgxPkCKzQjs0%2FvN%2F61tFTzTygTrjvXaorkTSfo2yg1AHqollu%2BHFBA%3D%3D",
    "title": "SignedAuctionProtocol.pdf",
    "format": "application/pdf",
    "hash": "md5:00000000000000000000000000000000",
    "documentType": "auctionProtocol"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/awards/e5ff037d8e964151b6cb1d2a00a205e2/documents/70b1da92f7a04bada8aa4b04fa75c29c

{
  "data": {
    "dateModified": "2017-04-07T15:31:23.312959+03:00",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6495273a1db3420897958969af4b63b7?KeyID=df79319d&Signature=48yS5V6Lg9SXCRMDK0lEA9%2F%2FG8XQneARWvQcmVD%252BxDkxJPlT%252Bkcy6FPU0kmSvacNCc7cUx7DTZmEMy3H80LkCg%253D%253D",
    "author": "auction_owner",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:23.312917+03:00",
    "documentType": "auctionProtocol",
    "title": "SignedAuctionProtocol.pdf",
    "id": "70b1da92f7a04bada8aa4b04fa75c29c"
  }
}

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

PATCH /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/awards/e5ff037d8e964151b6cb1d2a00a205e2?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 39
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "pending.payment",
    "paymentPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:51:22.815369+03:00"
    },
    "documents": [
      {
        "dateModified": "2017-04-07T15:31:23.191237+03:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/1b3254efe97a43fe8c32d50835dcf2cb?KeyID=df79319d&Signature=ZfY1BOFDOQLc%252B%252B%2FoCwOmd%2FKFmwfIpmgnkAZnau3WnH0go%2F6iFpVmsSV%252BkzWncGkpoJlBsLohaoFfOspcteXTBg%253D%253D",
        "author": "bid_owner",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:23.191202+03:00",
        "documentType": "auctionProtocol",
        "title": "SignedAuctionProtocol.pdf",
        "id": "6bee80d99c2e40728271fa1d6a076696"
      },
      {
        "dateModified": "2017-04-07T15:31:23.312959+03:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6495273a1db3420897958969af4b63b7?KeyID=df79319d&Signature=48yS5V6Lg9SXCRMDK0lEA9%2F%2FG8XQneARWvQcmVD%252BxDkxJPlT%252Bkcy6FPU0kmSvacNCc7cUx7DTZmEMy3H80LkCg%253D%253D",
        "author": "auction_owner",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:23.312917+03:00",
        "documentType": "auctionProtocol",
        "title": "SignedAuctionProtocol.pdf",
        "id": "70b1da92f7a04bada8aa4b04fa75c29c"
      }
    ],
    "verificationPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:31:23.473116+03:00"
    },
    "complaintPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:51:22.815369+03: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": "м. Львів"
        }
      }
    ],
    "signingPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:51:22.815369+03:00"
    },
    "bid_id": "0743a2c22cc24b19ad9bf844fdf98e50",
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:23.486630+03:00",
    "id": "e5ff037d8e964151b6cb1d2a00a205e2"
  }
}

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

PATCH /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/awards/e5ff037d8e964151b6cb1d2a00a205e2?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "active",
    "paymentPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:31:23.617069+03:00"
    },
    "documents": [
      {
        "dateModified": "2017-04-07T15:31:23.191237+03:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/1b3254efe97a43fe8c32d50835dcf2cb?KeyID=df79319d&Signature=ZfY1BOFDOQLc%252B%252B%2FoCwOmd%2FKFmwfIpmgnkAZnau3WnH0go%2F6iFpVmsSV%252BkzWncGkpoJlBsLohaoFfOspcteXTBg%253D%253D",
        "author": "bid_owner",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:23.191202+03:00",
        "documentType": "auctionProtocol",
        "title": "SignedAuctionProtocol.pdf",
        "id": "6bee80d99c2e40728271fa1d6a076696"
      },
      {
        "dateModified": "2017-04-07T15:31:23.312959+03:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/6495273a1db3420897958969af4b63b7?KeyID=df79319d&Signature=48yS5V6Lg9SXCRMDK0lEA9%2F%2FG8XQneARWvQcmVD%252BxDkxJPlT%252Bkcy6FPU0kmSvacNCc7cUx7DTZmEMy3H80LkCg%253D%253D",
        "author": "auction_owner",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:23.312917+03:00",
        "documentType": "auctionProtocol",
        "title": "SignedAuctionProtocol.pdf",
        "id": "70b1da92f7a04bada8aa4b04fa75c29c"
      }
    ],
    "verificationPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:31:23.473116+03:00"
    },
    "complaintPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:31:23.617069+03: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": "м. Львів"
        }
      }
    ],
    "signingPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:51:22.815369+03:00"
    },
    "bid_id": "0743a2c22cc24b19ad9bf844fdf98e50",
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:23.632402+03:00",
    "id": "e5ff037d8e964151b6cb1d2a00a205e2"
  }
}

Disqualification of a candidate

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

POST /api/2.3/auctions/ed4868a3494e4e7ba28ecbbbeecd2507/awards/274291aae8ee4581b2c5c376d02cf06b/documents?acc_token=e486aa404a524647bcc38e1e66ede0d6 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 386
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9eb9de12760643dd86e2a6b42d3188fb?KeyID=22856ef5&Signature=UNJHN%2FJnqLGmOL17vICZB7ZFlJtKjo467HlgPk7s0vzTvEXCTgaa%2FCbxkqdWjMARpZJEJnpcVUOqo1%2BgrFPqDQ%3D%3D",
    "title": "Disqualified_reason.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "description": "Disqualification reason",
    "format": "application/pdf"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/ed4868a3494e4e7ba28ecbbbeecd2507/awards/274291aae8ee4581b2c5c376d02cf06b/documents/13087ff7fdbb4596883302b59fc3aa41

{
  "data": {
    "dateModified": "2017-04-07T15:31:17.817365+03:00",
    "hash": "md5:00000000000000000000000000000000",
    "description": "Disqualification reason",
    "author": "auction_owner",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9eb9de12760643dd86e2a6b42d3188fb?KeyID=22856ef5&Signature=8Bdwc%252Bso%2FpQ2Vrz6X53agRroN7vrpopcilis61DLCcmG4YsI5%252Ba%252BEnqhnw9I0HPZ2Txhwow1UYJput5kcLvsAQ%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:17.817332+03:00",
    "title": "Disqualified_reason.pdf",
    "id": "13087ff7fdbb4596883302b59fc3aa41"
  }
}

And disqualify candidate:

PATCH /api/2.3/auctions/ed4868a3494e4e7ba28ecbbbeecd2507/awards/274291aae8ee4581b2c5c376d02cf06b?acc_token=e486aa404a524647bcc38e1e66ede0d6 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 146
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "unsuccessful",
    "paymentPeriod": {
      "startDate": "2017-04-07T15:31:17.552481+03:00",
      "endDate": "2017-04-07T15:51:17.552481+03:00"
    },
    "documents": [
      {
        "dateModified": "2017-04-07T15:31:17.698094+03:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c1d4952f5a344cb8a9c2f2019616b27f?KeyID=22856ef5&Signature=B%2FeiTmaKdeu04cLbRpCchksu0%252BCl1BagGBw2rxGLlGvLNzioUCsqqkl4IvqyrHNKH74%2FxGOF%2F8ogr%2F46tV1SCA%253D%253D",
        "author": "bid_owner",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:17.698064+03:00",
        "documentType": "auctionProtocol",
        "title": "auction_protocol.pdf",
        "id": "b3724f9e085b4659b4b29e9d79e7c0c0"
      },
      {
        "dateModified": "2017-04-07T15:31:17.817365+03:00",
        "hash": "md5:00000000000000000000000000000000",
        "description": "Disqualification reason",
        "author": "auction_owner",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/9eb9de12760643dd86e2a6b42d3188fb?KeyID=22856ef5&Signature=8Bdwc%252Bso%2FpQ2Vrz6X53agRroN7vrpopcilis61DLCcmG4YsI5%252Ba%252BEnqhnw9I0HPZ2Txhwow1UYJput5kcLvsAQ%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:17.817332+03:00",
        "title": "Disqualified_reason.pdf",
        "id": "13087ff7fdbb4596883302b59fc3aa41"
      }
    ],
    "verificationPeriod": {
      "startDate": "2017-04-07T15:31:17.552481+03:00",
      "endDate": "2017-04-07T15:31:17.949791+03:00"
    },
    "description": "Candidate didn’t sign the auction protocol in 3 business days",
    "title": "Disqualified",
    "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": "м. Вінниця"
        }
      }
    ],
    "complaintPeriod": {
      "startDate": "2017-04-07T15:31:17.166880+03:00",
      "endDate": "2017-04-07T15:31:17.949791+03:00"
    },
    "bid_id": "bfbed8a0f02344a7a01a361e9811cbcb",
    "value": {
      "currency": "UAH",
      "amount": 475.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:17.963144+03:00",
    "id": "274291aae8ee4581b2c5c376d02cf06b",
    "signingPeriod": {
      "startDate": "2017-04-07T15:31:17.552481+03:00",
      "endDate": "2017-04-07T15:51:17.552481+03:00"
    }
  }
}

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

Refusal of waiting by another participant

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

PATCH /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/awards/d4b1e5fa83294e11b1f68b0e180aaf21?acc_token=2dd2f5676d0944dca1c134c73f8456b0 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 33
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "cancelled",
    "complaintPeriod": {
      "startDate": "2017-04-07T15:31:22.815369+03:00",
      "endDate": "2017-04-07T15:31:23.032657+03: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": "a96a4681a1ef4b9fba6b598bd1d39406",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2017-04-07T15:31:23.042225+03:00",
    "id": "d4b1e5fa83294e11b1f68b0e180aaf21"
  }
}

Signing contract

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

Uploading contract documentation

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

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/contracts/008bc018d2194ae5bfdcb1fee49b29ca/documents?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 353
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7053e8cb8afa4c62a87c5c84ac055fd9?KeyID=df79319d&Signature=cpB4WuiT3ZcrwpPbF%2BsAGXGGOFA3Q46aprC96KjhI7nFO4rDgq%2FA%2FLJ7MpgjAP2e%2FIscqd0TFCM4OdIe1OgQBQ%3D%3D",
    "title": "contract_first_document.doc",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/contracts/008bc018d2194ae5bfdcb1fee49b29ca/documents/ec3ae23e3aa64e0992d515a4a4dbeac6

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7053e8cb8afa4c62a87c5c84ac055fd9?KeyID=df79319d&Signature=t3nd%2Fhc9%252BL9TrPBcZ0zgIizGWkEVVNFm%2FWf3IsNx4XSNu%252Bt4z1rxZWIuP9rza%252BLF6uOm0uKaEATw9kccNmajCg%253D%253D",
    "title": "contract_first_document.doc",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:23.985878+03:00",
    "dateModified": "2017-04-07T15:31:23.985905+03:00",
    "id": "ec3ae23e3aa64e0992d515a4a4dbeac6"
  }
}

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

Let’s see the list of contract documents:

GET /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/contracts/008bc018d2194ae5bfdcb1fee49b29ca/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/msword",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7053e8cb8afa4c62a87c5c84ac055fd9?KeyID=df79319d&Signature=t3nd%2Fhc9%252BL9TrPBcZ0zgIizGWkEVVNFm%2FWf3IsNx4XSNu%252Bt4z1rxZWIuP9rza%252BLF6uOm0uKaEATw9kccNmajCg%253D%253D",
      "title": "contract_first_document.doc",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:23.985878+03:00",
      "dateModified": "2017-04-07T15:31:23.985905+03:00",
      "id": "ec3ae23e3aa64e0992d515a4a4dbeac6"
    }
  ]
}

We can add another contract document:

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/contracts/008bc018d2194ae5bfdcb1fee49b29ca/documents?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 352
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/818e582e80fa471492c14eaca586fe77?KeyID=df79319d&Signature=2B1oJafcQZ9iESuUvJuEwJBb%2BkptPZtpk2d1Hn8Y%2FIhWjgfakJ2de6NHNsWRgFNEPtG4rOWpQJI%2F97esJucqBw%3D%3D",
    "title": "contract_second_document.doc",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/contracts/008bc018d2194ae5bfdcb1fee49b29ca/documents/d263ad30762e4e958c0a0e0ea140a236

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/818e582e80fa471492c14eaca586fe77?KeyID=df79319d&Signature=dKxYnVzqkVf1nkO%252BE8kI3XJIm6OEaIxENDJK%252BWm%252BGE0aKziPR9pMOZAVx8jK8Md4mubCK0kXJDuy0N96ST3XDQ%253D%253D",
    "title": "contract_second_document.doc",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:24.335889+03:00",
    "dateModified": "2017-04-07T15:31:24.335915+03:00",
    "id": "d263ad30762e4e958c0a0e0ea140a236"
  }
}

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

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

GET /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/contracts/008bc018d2194ae5bfdcb1fee49b29ca/documents HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/msword",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7053e8cb8afa4c62a87c5c84ac055fd9?KeyID=df79319d&Signature=t3nd%2Fhc9%252BL9TrPBcZ0zgIizGWkEVVNFm%2FWf3IsNx4XSNu%252Bt4z1rxZWIuP9rza%252BLF6uOm0uKaEATw9kccNmajCg%253D%253D",
      "title": "contract_first_document.doc",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:23.985878+03:00",
      "dateModified": "2017-04-07T15:31:23.985905+03:00",
      "id": "ec3ae23e3aa64e0992d515a4a4dbeac6"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/msword",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/818e582e80fa471492c14eaca586fe77?KeyID=df79319d&Signature=dKxYnVzqkVf1nkO%252BE8kI3XJIm6OEaIxENDJK%252BWm%252BGE0aKziPR9pMOZAVx8jK8Md4mubCK0kXJDuy0N96ST3XDQ%253D%253D",
      "title": "contract_second_document.doc",
      "documentOf": "tender",
      "datePublished": "2017-04-07T15:31:24.335889+03:00",
      "dateModified": "2017-04-07T15:31:24.335915+03:00",
      "id": "d263ad30762e4e958c0a0e0ea140a236"
    }
  ]
}

Contract registration

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

PATCH /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/contracts/008bc018d2194ae5bfdcb1fee49b29ca?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 80
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "active",
    "dateSigned": "2017-04-07T15:31:24.504328+03:00"
  }
}


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

{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7053e8cb8afa4c62a87c5c84ac055fd9?KeyID=df79319d&Signature=t3nd%2Fhc9%252BL9TrPBcZ0zgIizGWkEVVNFm%2FWf3IsNx4XSNu%252Bt4z1rxZWIuP9rza%252BLF6uOm0uKaEATw9kccNmajCg%253D%253D",
        "title": "contract_first_document.doc",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:23.985878+03:00",
        "dateModified": "2017-04-07T15:31:23.985905+03:00",
        "id": "ec3ae23e3aa64e0992d515a4a4dbeac6"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/818e582e80fa471492c14eaca586fe77?KeyID=df79319d&Signature=dKxYnVzqkVf1nkO%252BE8kI3XJIm6OEaIxENDJK%252BWm%252BGE0aKziPR9pMOZAVx8jK8Md4mubCK0kXJDuy0N96ST3XDQ%253D%253D",
        "title": "contract_second_document.doc",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:24.335889+03:00",
        "dateModified": "2017-04-07T15:31:24.335915+03:00",
        "id": "d263ad30762e4e958c0a0e0ea140a236"
      }
    ],
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "c910adfa79164d8d83b51c4bfcec1f59",
        "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": "2017-04-07T15:31:12.650307+03:00",
      "endDate": "2018-04-07T15:31:12.650307+03:00"
    },
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2017-04-07T15:31:24.504328+03:00",
    "date": "2017-04-07T15:31:24.611059+03:00",
    "awardID": "e5ff037d8e964151b6cb1d2a00a205e2",
    "id": "008bc018d2194ae5bfdcb1fee49b29ca",
    "contractID": "UA-EA-2017-04-07-000001-1"
  }
}

Cancelling auction

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

The following steps should be applied:

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

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

See Cancellation data structure for details.

Preparing the cancellation request

You should pass reason, status defaults to pending. id is autogenerated and passed in the Location header of response.

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/cancellations?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 43
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "date": "2017-04-07T15:31:24.827330+03:00",
    "status": "pending",
    "reason": "cancellation reason",
    "cancellationOf": "tender",
    "id": "66bdad0c606d4bb58c5c25fcaaf5c49f"
  }
}

Filling cancellation with protocol and supplementary documentation

Upload the file contents:

POST /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/cancellations/66bdad0c606d4bb58c5c25fcaaf5c49f/documents?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 335
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0d222ec492fd41ddacb1d366b39cc08d?KeyID=df79319d&Signature=V4b0jbu%2FzoFG%2FIlJPxTCsfnxJ4P5hCPx9rrBNrcuEUAsTRgcwKZ%2FdrRM94z%2FQB%2Fyjgbkf7vAsgGDHxHW19riAA%3D%3D",
    "title": "Notice.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/cancellations/66bdad0c606d4bb58c5c25fcaaf5c49f/documents/ba8dccc5269447d08eeeec1a8d4359cf

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0d222ec492fd41ddacb1d366b39cc08d?KeyID=df79319d&Signature=He9kySCJr2jjntXeB2pD%2F15GbFUJS1152B%2FDfPjH6Edxq80fTPejkCKiplSqQUo7cOiEo%2FXSaReylEBvf2agAQ%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:24.975763+03:00",
    "dateModified": "2017-04-07T15:31:24.975794+03:00",
    "id": "ba8dccc5269447d08eeeec1a8d4359cf"
  }
}

Change the document description and other properties:

PATCH /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/cancellations/66bdad0c606d4bb58c5c25fcaaf5c49f/documents/ba8dccc5269447d08eeeec1a8d4359cf?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 48
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "Changed description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0d222ec492fd41ddacb1d366b39cc08d?KeyID=df79319d&Signature=He9kySCJr2jjntXeB2pD%2F15GbFUJS1152B%2FDfPjH6Edxq80fTPejkCKiplSqQUo7cOiEo%2FXSaReylEBvf2agAQ%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:24.975763+03:00",
    "dateModified": "2017-04-07T15:31:24.975794+03:00",
    "id": "ba8dccc5269447d08eeeec1a8d4359cf"
  }
}

Upload new version of the document:

PUT /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/cancellations/66bdad0c606d4bb58c5c25fcaaf5c49f/documents/ba8dccc5269447d08eeeec1a8d4359cf?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 327
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/15058e0d737e4341b07ab2d8fbd2df6d?KeyID=df79319d&Signature=rTiI2m7KFtItqKmIQMGkB3I30GlQdJjRGAmCqRNWbcMxC6ikC2DAQY5KDqYrmwauZ7sciVAzFMKAw0Z3yIXECw%3D%3D",
    "title": "Notice-2.pdf",
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf"
  }
}


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

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "Changed description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/15058e0d737e4341b07ab2d8fbd2df6d?KeyID=df79319d&Signature=8ejAyTfQpk4NOHRxaWjIG4RDUtkMKzN9lJ7Okl%2F%2FDIpH2bgJNlsoz7x8Re6GLB6hT5YXon439b6k79E44B3MDQ%253D%253D",
    "title": "Notice-2.pdf",
    "documentOf": "tender",
    "datePublished": "2017-04-07T15:31:24.975763+03:00",
    "dateModified": "2017-04-07T15:31:25.295272+03:00",
    "id": "ba8dccc5269447d08eeeec1a8d4359cf"
  }
}

Activating the request and cancelling auction

PATCH /api/2.3/auctions/331e9ef3d78d46cfb3df35c17b0650c7/cancellations/66bdad0c606d4bb58c5c25fcaaf5c49f?acc_token=5303e3bebff44ed3a5a9f8f7db899743 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "active",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/0d222ec492fd41ddacb1d366b39cc08d?KeyID=df79319d&Signature=He9kySCJr2jjntXeB2pD%2F15GbFUJS1152B%2FDfPjH6Edxq80fTPejkCKiplSqQUo7cOiEo%2FXSaReylEBvf2agAQ%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:24.975763+03:00",
        "dateModified": "2017-04-07T15:31:24.975794+03:00",
        "id": "ba8dccc5269447d08eeeec1a8d4359cf"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/15058e0d737e4341b07ab2d8fbd2df6d?KeyID=df79319d&Signature=8ejAyTfQpk4NOHRxaWjIG4RDUtkMKzN9lJ7Okl%2F%2FDIpH2bgJNlsoz7x8Re6GLB6hT5YXon439b6k79E44B3MDQ%253D%253D",
        "title": "Notice-2.pdf",
        "documentOf": "tender",
        "datePublished": "2017-04-07T15:31:24.975763+03:00",
        "dateModified": "2017-04-07T15:31:25.295272+03:00",
        "id": "ba8dccc5269447d08eeeec1a8d4359cf"
      }
    ],
    "reason": "cancellation reason",
    "date": "2017-04-07T15:31:25.499755+03:00",
    "cancellationOf": "tender",
    "id": "66bdad0c606d4bb58c5c25fcaaf5c49f"
  }
}