Welcome to openprocurement.auctions.dgf’s documentation!¶
Please report any problems or suggestions for improvement either via the mailing list or the issue tracker.
Contents:
Overview¶
openprocurement.auctions.dgf contains documentaion for Deposit Guarantee Fund auctions.
There are two procedures:
- dgfOtherAssets - sale of the insolvent bank property.
- dgfFinancialAssets - sale of the creditor claim right.
Features¶
- No need to specify enquiries period (there is no active.enquiries status), since it overlaps with active.tendering period.
- tenderPeriod must be at least 7 calendar days.
- Procedure can be switched from draft status to active.tendering.
- During active.tendering period participants can ask questions, submit proposals, and upload documents.
- The only date Organizer has to provide is Tender.auctionPeriod.startDate, the rest will be calculated automatically.
- Organizer can’t edit procedure’s significant properties (Auction.value, etc.).
- There is obligatory participant qualification (Bid.selfQualified) via guarantee payment.
- The only currency (Value.currency) for this procedure is hryvnia (UAH).
- The items within an auction are allowed to be from different CAV groups.
Conventions¶
API accepts JSON or form-encoded content in requests. It returns JSON content in all of its responses, including errors. Only the UTF-8 character encoding is supported for both requests and responses.
All API POST and PUT requests expect a top-level object with a single element in it named data. Successful responses will mirror this format. The data element should itself be an object, containing the parameters for the request. In the case of creating a new auction, these are the fields we want to set on the auction itself.
If the request was successful, we will get a response code of 201 indicating the object was created. That response will have a data field at its top level, which will contain complete information on the new auction, including its ID.
If something went wrong during the request, we’ll get a different status code and the JSON returned will have an errors field at the top level containing a list of problems. We look at the first one and print out its message.
Main responsibilities¶
Business logic¶
Project status¶
The project has pre alpha status.
The source repository for this project is on GitHub: https://github.com/openprocurement/openprocurement.auctions.dgf
You can leave feedback by raising a new issue on the issue tracker (GitHub registration necessary).
API stability¶
API is highly unstable, and while API endpoints are expected to remain relatively stable the data exchange formats are expected to be changed a lot. The changes in the API are communicated via Open Procurement API maillist.
Data Standard¶
Data standard is modelled along the Open Contracting Standard with extensions in areas that were not covered by it.
Auction¶
Schema¶
title: | string, multilingual, read-only Auction number in the Deposit Guarantee Fund. |
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
description: | string, multilingual Detailed auction description. |
||||||||||||||||||
auctionID: | string, auto-generated, read-only The auction identifier to refer auction to in “paper” documentation. OpenContracting Description: AuctionID should always be the same as the OCID. It is included to make the flattened data structure more convenient. |
||||||||||||||||||
dgfID: | string Identification number of the auction (also referred to as lot) in the XLS of Deposit Guarantee Fund. |
||||||||||||||||||
procuringEntity: | |||||||||||||||||||
ProcuringEntity (Organizer), required Organization conducting the auction. OpenContracting Description: The entity managing the procurement, which may be different from the buyer who is paying / using the items being procured. |
|||||||||||||||||||
value: | Value, required Total available auction budget. Bids lower than OpenContracting Description: The total estimated value of the procurement. |
||||||||||||||||||
guarantee: |
Bid guarantee |
||||||||||||||||||
items: | list of Item objects, required List that contains single item being sold. OpenContracting Description: The goods and services to be purchased, broken into line items wherever possible. Items should not be duplicated, but a quantity of 2 specified instead. |
||||||||||||||||||
features: | list of Feature objects Features of auction. |
||||||||||||||||||
documents: | List of Document objects OpenContracting Description: All documents and attachments related to the auction. |
||||||||||||||||||
questions: | List of Question objects Questions to |
||||||||||||||||||
complaints: | List of Complaint objects Complaints to auction conditions and their resolutions. |
||||||||||||||||||
bids: | List of Bid objects A list of all bids placed in the auction with information about participants, their proposals and other qualification documentation. OpenContracting Description: A list of all the companies who entered submissions for the auction. |
||||||||||||||||||
minNumberOfQualifiedBids: | |||||||||||||||||||
integer, optional The field that indicates the minimal number of qualified bids. The possible values for the field are 1 or 2. In case of the field has been remained blank, the workflow will be similar to the auction with 2 bids. You can also fill in the field, assigning the value “1”. This will show that the only one bidder is needed for the procedure to be successful. Therewith the auction is omitted and that bid turns to a qualified award. |
|||||||||||||||||||
minimalStep: | Value, required The minimal step of auction. Validation rules:
|
||||||||||||||||||
awards: | List of Award objects All qualifications (disqualifications and awards). |
||||||||||||||||||
contracts: | List of Contract objects |
||||||||||||||||||
enquiryPeriod: |
Period when questions are allowed. OpenContracting Description: The period during which enquiries may be made and will be answered. |
||||||||||||||||||
tenderPeriod: |
Period when bids can be submitted. OpenContracting Description: The period when the auction is open for submissions. The end date is the closing date for auction submissions. |
||||||||||||||||||
auctionPeriod: | Period, required Period when Auction is conducted. startDate should be provided. |
||||||||||||||||||
auctionUrl: | url A web address where auction is accessible for view. |
||||||||||||||||||
awardPeriod: | Period, read-only Awarding process period. OpenContracting Description: The date or period on which an award is anticipated to be made. |
||||||||||||||||||
status: | string
Auction status. |
||||||||||||||||||
eligibilityCriteria: | |||||||||||||||||||
string, read-only Required for dgfFinancialAssets procedure. This field is multilingual:
|
cancellations: | List of Cancellation objects. Contains 1 object with active status in case of cancelled Auction. The Cancellation object describes the reason of auction cancellation and contains accompanying documents if there are any. |
---|---|
revisions: | List of Revision objects, auto-generated Historical changes to Auction object properties. |
Organization¶
Schema¶
name: | string, multilingual Name of the organization. |
---|---|
identifier: |
The primary identifier for this organization. |
additionalIdentifiers: | |
List of Identifier objects |
|
address: | Address, required |
contactPoint: | ContactPoint, required |
Identifier¶
Schema¶
scheme: | string OpenContracting Description: Organization identifiers be drawn from an existing identification scheme. This field is used to indicate the scheme or codelist in which the identifier will be found. This value should be drawn from the Organization Identifier Scheme. |
---|---|
id: | string, required OpenContracting Description: The identifier of the organization in the selected scheme. The allowed codes are the ones found in “Organisation Registration Agency” codelist of IATI Standard with addition of UA-EDR code for organizations registered in Ukraine (EDRPOU and IPN). |
legalName: | string, multilingual OpenContracting Description: The legally registered name of the organization. Full legal name (e.g. Nadra Bank). |
uri: | uri OpenContracting Description: A URI to identify the organization, such as those provided by Open Corporates or some other relevant URI provider. This is not for listing the website of the organization: that can be done through the url field of the Organization contact point. |
Address¶
Schema¶
streetAddress: | string OpenContracting Description: The street address. For example, 1600 Amphitheatre Pkwy. |
---|---|
locality: | string OpenContracting Description: The locality. For example, Mountain View. |
region: | string OpenContracting Description: The region. For example, CA. |
postalCode: | string OpenContracting Description: The postal code. For example, 94043. |
countryName: | string, multilingual, required OpenContracting Description: The country name. For example, United States. |
ContactPoint¶
Schema¶
name: | string, multilingual, required OpenContracting Description: The name of the contact person, department, or contact point, for correspondence relating to this contracting process. |
---|---|
email: | OpenContracting Description: The e-mail address of the contact point/person. |
telephone: | string OpenContracting Description: The telephone number of the contact point/person. This should include the international dialling code. |
faxNumber: | string OpenContracting Description: The fax number of the contact point/person. This should include the international dialling code. |
url: | URL OpenContracting Description: A web address for the contact point/person. |
Either email or telephone field has to be provided.
Item¶
Schema¶
id: | string, auto-generated |
||||||
---|---|---|---|---|---|---|---|
description: | string, multilingual, required OpenContracting Description: A description of the goods, services to be provided. Auction subject / asset description. |
||||||
classification: |
OpenContracting Description: The primary classification for the item. See the itemClassificationScheme to identify preferred classification lists. Possible variants of available primary classifiers are CPV and CAV-PS. Additionally, there is a validation for the input of these classifiers due to which the accuracy of at least a class has to be used. |
||||||
additionalClassifications: | |||||||
List of Classification objects OpenContracting Description: An array of additional classifications for the item. See the itemClassificationScheme codelist for common options to use in OCDS. |
|||||||
unit: |
OpenContracting Description: Description of the unit which the good comes in e.g. hours, kilograms. Made up of a unit name, and the value of a single unit. |
||||||
quantity: | integer OpenContracting Description: The number of units required |
||||||
contractPeriod: |
The period which is used to indicate the duration of a contract within which it is valid. Contract period represents the start and end date for the contract signed after the property or asset has been sold. It is also can be used to specify the timeframe of a contact for a lease. |
||||||
address: |
Address, where the item is located. |
||||||
location: | dictionary Geographical coordinates of the location. Element consists of the following items:
location usually takes precedence over address if both are present. |
Classification¶
Schema¶
scheme: | string OpenContracting Description: A classification should be drawn from an existing scheme or list of codes. This field is used to indicate the scheme/codelist from which the classification is drawn. For line item classifications, this value should represent a known Item Classification Scheme wherever possible. |
---|---|
id: | string OpenContracting Description: The classification code drawn from the selected scheme. |
description: | string OpenContracting Description: A textual description or title for the code. |
uri: | uri OpenContracting Description: A URI to identify the code. In the event individual URIs are not available for items in the identifier scheme this value should be left blank. |
Unit¶
Schema¶
code: | string, required UN/CEFACT Recommendation 20 unit code. |
---|---|
name: | string OpenContracting Description: Name of the unit |
Document¶
Schema¶
id: | string, auto-generated |
---|---|
documentType: | string Possible values for Auction
Possible values for Award
Possible values for Contract
Possible values for Bid
|
title: | string, multilingual OpenContracting Description: The document title. |
description: | string, multilingual OpenContracting Description: A short description of the document. In the event the document is not accessible online, the description field can be used to describe arrangements for obtaining a copy of the document. |
index: | integer Sorting (display order) parameter used for illustrations. The smaller number is, the higher illustration is in the sorting. If index is not specified, illustration will be displayed the last. If two illustrations have the same index, they will be sorted depending on their publishing date. |
format: | string OpenContracting Description: The format of the document taken from the IANA Media Types code list, with the addition of one extra value for ‘offline/print’, used when this document entry is being used to describe the offline publication of a document. |
url: | string, auto-generated OpenContracting Description: Direct link to the document or attachment. |
datePublished: | string, Date OpenContracting Description: The date on which the document was first published. |
dateModified: | string, Date OpenContracting Description: Date that the document was last modified |
language: | string OpenContracting Description: Specifies the language of the linked document using either two-digit ISO 639-1, or extended BCP47 language tags. |
documentOf: | string Possible values are:
|
relatedItem: | string ID of related Item. |
---|
accessDetails: | string Required for x_dgfAssetFamiliarization document. |
---|
Bid¶
Schema¶
tenderers: | List of Organization objects |
---|---|
date: | string, Date, auto-generated Date when bid has been submitted. |
id: | UID, auto-generated |
status: | string Possible values are:
|
value: | Value, required Validation rules:
|
documents: | List of Document objects |
parameters: | List of Parameter objects |
participationUrl: | |
---|---|
URL A web address for participation in auction. |
|
qualified: | bool, required |
eligible: | bool Required for dgfFinancialAssets procedure. |
Award¶
Schema¶
id: | string, auto-generated, read-only OpenContracting Description: Identifier for this award. |
---|---|
bid_id: | string, auto-generated, read-only The ID of a bid that the award relates to. |
title: | string, multilingual OpenContracting Description: Award title. |
description: | string, multilingual OpenContracting Description: Award description. |
status: | string OpenContracting Description: The current status of the award drawn from the awardStatus codelist. Possible values are:
|
date: | string, Date, auto-generated, read-only OpenContracting Description: The date of the contract award. |
value: | Value object, auto-generated, read-only OpenContracting Description: The total value of this award. |
suppliers: | List of Organization objects, auto-generated, read-only OpenContracting Description: The suppliers awarded with this award. |
items: | List of Item objects, auto-generated, read-only OpenContracting Description: The goods and services awarded in this award, broken into line items wherever possible. Items should not be duplicated, but the quantity should be specified instead. |
documents: | List of Document objects OpenContracting Description: All documents and attachments related to the award, including any notices. |
complaints: | List of Complaint objects |
complaintPeriod: | |
The time frame when complaints can be submitted. |
Question¶
Schema¶
id: | UID, auto-generated |
---|---|
author: | Organization, required Who is asking a question (contactPoint - person, identification - organization that person represents). |
title: | string, required Title of the question. |
description: | string Description of the question. |
date: | string, Date, auto-generated Date of posting. |
answer: | string Answer for the question. |
questionOf: | string Possible values are:
|
relatedItem: | string ID of related Item. |
---|
Complaint¶
Schema¶
id: | UID, auto-generated |
---|---|
author: | Organization, required Organization filing a complaint (contactPoint - person, identification - organization that person represents). |
title: | string, required Title of the complaint. |
description: | Description of the issue. |
date: | string, Date, auto-generated Date of posting. |
dateSubmitted: | string, Date, auto-generated Date when claim was submitted. |
dateAnswered: | string, Date, auto-generated Date when Organizer answered the claim. |
dateEscalated: | string, Date, auto-generated Date of claim to complaint escalation. |
dateDecision: | string, Date, auto-generated Date of complaint decision. |
dateCanceled: | string, Date, auto-generated Date of cancelling. |
status: | string Possible values are:
|
type: | string Possible values of type are:
|
resolution: | string Organizer’s resolution. |
resolutionType: | string Possible values of resolution type are:
|
satisfied: | bool Claim is satisfied? |
decision: | string Reviewer’s decision. |
cancellationReason: | |
string Cancellation reason. |
|
documents: | List of Document objects |
auctionerAction: | |
---|---|
string Participants’s action. |
|
auctionerActionDate: | |
string, Date, auto-generated Date of participant’s action. |
Contract¶
Schema¶
id: | UID, auto-generated OpenContracting Description: The identifier for this contract. |
---|---|
awardID: | string, required OpenContracting Description: The Award.id against which this contract is being issued. |
contractID: | string, auto-generated, read-only |
contractNumber: | string |
title: | string, required OpenContracting Description: Contract title |
description: | string OpenContracting Description: Contract description |
value: | Value object, auto-generated, read-only OpenContracting Description: The total value of this contract. |
items: | List of Item objects, auto-generated, read-only OpenContracting Description: The goods, services, and any intangible outcomes in this contract. Note: If the items are the same as the award, do not repeat. |
suppliers: | List of Organization objects, auto-generated, read-only |
status: | string, required OpenContracting Description: The current status of the contract. Possible values are:
|
period: |
OpenContracting Description: The start and end date for the contract. |
dateSigned: | string, Date OpenContracting Description: The date the contract was signed. In the case of multiple signatures, the date of the last signature. |
date: | string, Date The date when the contract was changed or activated. |
documents: | List of Document objects OpenContracting Description: All documents and attachments related to the contract, including any notices. |
Period¶
Date¶
Date/time in Date Format: ISO 8601.
Value¶
Schema¶
amount: | float, required OpenContracting Description: Amount as a number. Should be positive. |
---|---|
currency: | string, required OpenContracting Description: The currency in 3-letter ISO 4217 format. |
valueAddedTaxIncluded: | |
bool, required |
Guarantee¶
Schema¶
amount: | float, required OpenContracting Description: Amount as a number. Should be positive. |
---|---|
currency: | string, required, default = UAH OpenContracting Description: The currency in 3-letter ISO 4217 format. |
Cancellation¶
Schema¶
id: | UID, auto-generated |
||||
---|---|---|---|---|---|
reason: | string, multilingual, required The reason, why auction is being cancelled. |
||||
status: | string
|
||||
documents: | List of Document objects Documents accompanying the Cancellation: Protocol of Auction Committee with decision to cancel the Auction. |
||||
date: | string, Date Cancellation date. |
||||
cancellationOf: | string Possible values are:
|
ProcuringEntity (Organizer)¶
Schema¶
name: | string, multilingual OpenContracting Description: The common name of the organization. |
---|---|
identifier: |
OpenContracting Description: The primary identifier for this organization. |
additionalIdentifiers: | |
List of Identifier objects |
|
address: | Address, required |
contactPoint: | ContactPoint, required |
kind: | string Type of organizer
|
Documents Uploading¶
All of the document uploading API endpoints follow the same set of rules.
Upload document with registration¶
Add document in API:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 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/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=EI3h6z2srrKfB3oKk6GCDmuT%2BIsNpz1VxprMTQalWzXlnkQeKgbp0A9RRUEoW1dRBfUduSUxAa5AUQQNvqgsAQ%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/a3fe480fc194429db59b3517ac2becff/documents/2a0f652e19154a218c608f42a5c448e0 { "data": { "hash": "md5:00000000000000000000000000000000", "description": "document description", "format": "application/pdf", "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D", "title": "Notice.pdf", "documentOf": "tender", "datePublished": "2017-03-29T15:47:34.401607+03:00", "documentType": "technicalSpecifications", "dateModified": "2017-03-29T15:47:34.401638+03:00", "id": "2a0f652e19154a218c608f42a5c448e0" } }
Upload document without registration¶
Add document in API:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 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/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=EI3h6z2srrKfB3oKk6GCDmuT%2BIsNpz1VxprMTQalWzXlnkQeKgbp0A9RRUEoW1dRBfUduSUxAa5AUQQNvqgsAQ%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/a3fe480fc194429db59b3517ac2becff/documents/2a0f652e19154a218c608f42a5c448e0 { "data": { "hash": "md5:00000000000000000000000000000000", "description": "document description", "format": "application/pdf", "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D", "title": "Notice.pdf", "documentOf": "tender", "datePublished": "2017-03-29T15:47:34.401607+03:00", "documentType": "technicalSpecifications", "dateModified": "2017-03-29T15:47:34.401638+03:00", "id": "2a0f652e19154a218c608f42a5c448e0" } }
Tutorial¶
Exploring basic rules¶
Let’s try exploring the /auctions endpoint:
GET /api/2.3/auctions HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org
200 OK
Content-Type: application/json; charset=UTF-8
{
"next_page": {
"path": "/api/2.3/auctions?offset=",
"uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=",
"offset": ""
},
"data": []
}
Just invoking it reveals empty set.
Now let’s attempt creating some auction:
POST /api/2.3/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 4
Content-Type: application/x-www-form-urlencoded
Host: api-sandbox.ea.openprocurement.org
415 Unsupported Media Type
Content-Type: application/json; charset=UTF-8
{
"status": "error",
"errors": [
{
"description": "Content-Type header should be one of ['application/json']",
"location": "header",
"name": "Content-Type"
}
]
}
Error states that the only accepted Content-Type is application/json.
Let’s satisfy the Content-type requirement:
POST /api/2.3/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 4
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
422 Unprocessable Entity
Content-Type: application/json; charset=UTF-8
{
"status": "error",
"errors": [
{
"description": "Expecting value: line 1 column 1 (char 0)",
"location": "body",
"name": "data"
}
]
}
Error states that no data has been found in JSON body.
Creating auction¶
Let’s create auction with the minimal data set (only required properties):
POST /api/2.3/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1968
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35
},
"procurementMethodDetails": "quick, accelerator=1440",
"tenderAttempts": 1,
"procurementMethodType": "dgfOtherAssets",
"value": {
"currency": "UAH",
"amount": 100
},
"dgfID": "219560",
"auctionPeriod": {
"startDate": "2017-04-12"
},
"items": [
{
"classification": {
"scheme": "CPV",
"id": "66113000-5",
"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/a3fe480fc194429db59b3517ac2becff
{
"access": {
"token": "149ad798bd474ec4af76cd8e6756b307"
},
"data": {
"procurementMethod": "open",
"auctionID": "UA-PS-2017-03-29-000001",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:33.994721+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-04-11T23:59:50+03:00",
"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": "м. Київ"
}
},
"owner": "broker",
"id": "a3fe480fc194429db59b3517ac2becff",
"title": "футляри до державних нагород",
"tenderAttempts": 1,
"procurementMethodDetails": "quick, accelerator=1440",
"dateModified": "2017-03-29T15:47:33.997773+03:00",
"status": "active.tendering",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:33.994721+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"auctionPeriod": {
"shouldStartAfter": "2017-04-12T00:00:00+03:00"
},
"procurementMethodType": "dgfOtherAssets",
"dgfID": "219560",
"date": "2017-03-29T15:47:33.994721+03:00",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "d3a6b745e6ec4a3fabba32445167d78c",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"awardCriteria": "highestCost"
}
}
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.
Keep in mind that tenderPeriod must be at least 7 calendar days.
When auctionPeriod.startDate has an incorrect date, 422 Unprocessable Entity error is raised and “tenderPeriod should be greater than 6 days” message is returned in JSON response.
Let’s set auctionPeriod.startDate to now + timedelta(days=6) and ValidationError will be returned:
POST /api/2.3/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 2037
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35
},
"auctionPeriod": {
"startDate": "2017-09-02T15:56:30.045984"
},
"tenderAttempts": 1,
"procurementMethodType": "dgfOtherAssets",
"value": {
"currency": "UAH",
"amount": 100
},
"dgfID": "219560",
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"id": "66113000-5",
"description": "Земельні ділянки"
},
"address": {
"countryName": "Україна",
"postalCode": "79000",
"region": "м. Київ",
"streetAddress": "вул. Банкова 1",
"locality": "м. Київ"
},
"contractPeriod": {
"startDate": "2017-08-30T15:56:30.043635",
"endDate": "2017-09-02T15:56:30.043635"
},
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5.001
}
],
"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": "м. Київ"
}
}
}
}
422 Unprocessable Entity
Content-Type: application/json; charset=UTF-8
{
"status": "error",
"errors": [
{
"description": [
"tenderPeriod should be greater than 6 days"
],
"location": "body",
"name": "tenderPeriod"
}
]
}
Let’s access the URL of the created object (the Location header of the response):
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff 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-PS-2017-03-29-000001",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:33.994721+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-04-11T23:59:50+03:00",
"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": "м. Київ"
}
},
"owner": "broker",
"id": "a3fe480fc194429db59b3517ac2becff",
"title": "футляри до державних нагород",
"tenderAttempts": 1,
"procurementMethodDetails": "quick, accelerator=1440",
"dateModified": "2017-03-29T15:47:33.997773+03:00",
"status": "active.tendering",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:33.994721+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"auctionPeriod": {
"shouldStartAfter": "2017-04-12T00:00:00+03:00"
},
"procurementMethodType": "dgfOtherAssets",
"dgfID": "219560",
"date": "2017-03-29T15:47:33.994721+03:00",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "d3a6b745e6ec4a3fabba32445167d78c",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"awardCriteria": "highestCost"
}
}
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-03-29T15%3A47%3A33.997773%2B03%3A00",
"uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2017-03-29T15%3A47%3A33.997773%2B03%3A00",
"offset": "2017-03-29T15:47:33.997773+03:00"
},
"data": [
{
"id": "a3fe480fc194429db59b3517ac2becff",
"dateModified": "2017-03-29T15:47:33.997773+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: 1949
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35
},
"auctionPeriod": {
"startDate": "2017-04-12T15:47:26.507025"
},
"title_en": "Cases with state awards",
"value": {
"currency": "UAH",
"amount": 500
},
"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": "м. Київ"
}
},
"procurementMethodType": "dgfOtherAssets",
"dgfID": "ID",
"title_ru": "футляры к государственным наградам",
"items": [
{
"classification": {
"scheme": "CPV",
"id": "66113000-5",
"description": "Земельні ділянки"
},
"description": "Земля для військовослужбовців",
"id": "3df25a294eb340cbbb2b621784a1d664",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"mode": "test"
}
}
201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/a3c07dbe0907424fb2796afcd8e7d870
{
"access": {
"token": "4b4dc549169c4efa9a7d26444e6593c1"
},
"data": {
"procurementMethod": "open",
"auctionID": "UA-PS-2017-03-29-000002",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:34.155349+03:00",
"endDate": "2017-04-11T20:00:00+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-04-11T20:00:00+03:00",
"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": "м. Київ"
}
},
"owner": "broker",
"title_en": "[TESTING] Cases with state awards",
"id": "a3c07dbe0907424fb2796afcd8e7d870",
"title": "[ТЕСТУВАННЯ] футляри до державних нагород",
"dateModified": "2017-03-29T15:47:34.157915+03:00",
"status": "active.tendering",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:34.155349+03:00",
"endDate": "2017-04-11T20:00:00+03:00"
},
"auctionPeriod": {
"shouldStartAfter": "2017-04-12T00:00:00+03:00"
},
"procurementMethodType": "dgfOtherAssets",
"dgfID": "ID",
"date": "2017-03-29T15:47:34.155349+03:00",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"description": "Земля для військовослужбовців",
"id": "3df25a294eb340cbbb2b621784a1d664",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"mode": "test",
"title_ru": "[ТЕСТИРОВАНИЕ] футляры к государственным наградам",
"awardCriteria": "highestCost"
}
}
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-03-29T15%3A47%3A33.997773%2B03%3A00",
"uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2017-03-29T15%3A47%3A33.997773%2B03%3A00",
"offset": "2017-03-29T15:47:33.997773+03:00"
},
"data": [
{
"id": "a3fe480fc194429db59b3517ac2becff",
"dateModified": "2017-03-29T15:47:33.997773+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/a3fe480fc194429db59b3517ac2becff?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 75
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"tenderPeriod": {
"endDate": "2017-04-13T15:47:44.279764+03:00"
}
}
}
200 OK
Content-Type: application/json; charset=UTF-8
{
"data": {
"procurementMethod": "open",
"auctionID": "UA-PS-2017-03-29-000001",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:33.994721+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-04-11T23:59:50+03:00",
"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": "м. Київ"
}
},
"owner": "broker",
"id": "a3fe480fc194429db59b3517ac2becff",
"title": "футляри до державних нагород",
"tenderAttempts": 1,
"procurementMethodDetails": "quick, accelerator=1440",
"dateModified": "2017-03-29T15:47:33.997773+03:00",
"status": "active.tendering",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:33.994721+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"auctionPeriod": {
"shouldStartAfter": "2017-04-12T00:00:00+03:00"
},
"procurementMethodType": "dgfOtherAssets",
"dgfID": "219560",
"date": "2017-03-29T15:47:33.994721+03:00",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "d3a6b745e6ec4a3fabba32445167d78c",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"awardCriteria": "highestCost"
}
}
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-03-29T15%3A47%3A34.214233%2B03%3A00",
"uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2017-03-29T15%3A47%3A34.214233%2B03%3A00",
"offset": "2017-03-29T15:47:34.214233+03:00"
},
"data": [
{
"id": "a3fe480fc194429db59b3517ac2becff",
"dateModified": "2017-03-29T15:47:33.997773+03:00"
},
{
"id": "77500c519c3447869e827d598b3460db",
"dateModified": "2017-03-29T15:47:34.214233+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/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 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/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=EI3h6z2srrKfB3oKk6GCDmuT%2BIsNpz1VxprMTQalWzXlnkQeKgbp0A9RRUEoW1dRBfUduSUxAa5AUQQNvqgsAQ%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/a3fe480fc194429db59b3517ac2becff/documents/2a0f652e19154a218c608f42a5c448e0
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
}
}
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/a3fe480fc194429db59b3517ac2becff/documents/2a0f652e19154a218c608f42a5c448e0 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/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"previousVersions": [],
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
}
}
The single array element describes the uploaded document. We can upload more documents:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 338
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/25ff4fb78e0247c1ba9d86dfe133e8f2?KeyID=8f2f71ed&Signature=RsoR%2BvEI1uiT2wE%2FxHEena5fSTtCIcpL7I5XSdzXwlZcZBwOlzXwyHWjxy7wq%2BY3sVGWFxKq8sE4V469r5KfCg%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/a3fe480fc194429db59b3517ac2becff/documents/18fb51d188ce405e875dfb37f1baf161
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/25ff4fb78e0247c1ba9d86dfe133e8f2?KeyID=8f2f71ed&Signature=zvXLkJyiCc6psFjTxZ0D%2FQLdBfZcvHph5gX1092UY1rharY6SgOr379PFead3dzGytmiIC%252BdtyIReRug7BUZDw%253D%253D",
"title": "AwardCriteria.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.472306+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
}
}
And again we can confirm that there are two documents uploaded.
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/25ff4fb78e0247c1ba9d86dfe133e8f2?KeyID=8f2f71ed&Signature=zvXLkJyiCc6psFjTxZ0D%2FQLdBfZcvHph5gX1092UY1rharY6SgOr379PFead3dzGytmiIC%252BdtyIReRug7BUZDw%253D%253D",
"title": "AwardCriteria.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.472306+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
}
]
}
In case we made an error, we can reupload the document over the older version:
PUT /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents/18fb51d188ce405e875dfb37f1baf161?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 340
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=IMzdEyOYw%2Byham%2FrseCgPNXdokwAdatWh6xVr6tWjlV9hN%2BPksLKl9vrSc5rFyBXmEOVInmLehkrk5WVlBQdAQ%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/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=PSvGpJaKdUzNhQ5doYcyhvffRxRvLNo2w3YI5U9fSNzR5%2FOp2TZCDDj6Ebre6Wfc7zgLutisTUqCzBy7X4fBBg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.531556+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
}
}
And we can see that it is overriding the original version:
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=PSvGpJaKdUzNhQ5doYcyhvffRxRvLNo2w3YI5U9fSNzR5%2FOp2TZCDDj6Ebre6Wfc7zgLutisTUqCzBy7X4fBBg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.531556+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
}
]
}
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/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 434
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"title": "first_illustration.jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=wS%2FmiBBJEqZCTAq0CIEW4aewOl%2FoUx7Mj1%2BenK45Es5IQr%2FLQJZge6nWYKZdghzGM1RxI9oXRRXNVdarlWRtAA%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/a3fe480fc194429db59b3517ac2becff/documents/8c81536a6660418483282224f74adfec
{
"data": {
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=ILUThMRo0qZCi8tZWpKJU3823B3hGbztKBm7Xm25aJXdqBbYELIZDig2uPsixRPRueqmQBR7imEfx3lJrAv1CQ%253D%253D",
"title": "first_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.591738+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.591779+03:00",
"id": "8c81536a6660418483282224f74adfec"
}
}
We can check whether illustration is uploaded.
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=PSvGpJaKdUzNhQ5doYcyhvffRxRvLNo2w3YI5U9fSNzR5%2FOp2TZCDDj6Ebre6Wfc7zgLutisTUqCzBy7X4fBBg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.531556+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
},
{
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=ILUThMRo0qZCi8tZWpKJU3823B3hGbztKBm7Xm25aJXdqBbYELIZDig2uPsixRPRueqmQBR7imEfx3lJrAv1CQ%253D%253D",
"title": "first_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.591738+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.591779+03:00",
"id": "8c81536a6660418483282224f74adfec"
}
]
}
Organizer can upload second illustration. This illustration should be displayed second, so it has "index": 2
.
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 434
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Second illustration description",
"title": "second_illustration.jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4729e391cb144b07991bac85f9c818c5?KeyID=8f2f71ed&Signature=Xlo5ij2%2B1fp6uSrjWWXPx20mbvT8yz5gXkwFaiYF69dndSlu7mZb3Ma54S0zCIA%2BFlplkw%2F9eYWm7veVGB32Cg%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/a3fe480fc194429db59b3517ac2becff/documents/6e61fb44da8145ed89b3762be3ef21f6
{
"data": {
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Second illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4729e391cb144b07991bac85f9c818c5?KeyID=8f2f71ed&Signature=jFB8Hk2RJDmeK6F%2Flwn7VOnF4YACkiKim38m19aiGbnpwg0HB%2FOHxh0jBicpQblc7FuPXhMJpU%2FEDgElJoNBDw%253D%253D",
"title": "second_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.656709+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.656745+03:00",
"id": "6e61fb44da8145ed89b3762be3ef21f6"
}
}
Add third illustration:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 432
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/7085d82dbfc4481fadf1ea3398627992?KeyID=8f2f71ed&Signature=z2GeUFtWFsNOaIWydSv%2BVzw0dmtZBNDct1Th0%2BJAK1u7OYmzXR8Scjg%2BAiqfhOfVxKGYtUg624fvsjbwPki8Aw%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/a3fe480fc194429db59b3517ac2becff/documents/72ae2b129ab4497ea20f48fea7d518be
{
"data": {
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Third illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7085d82dbfc4481fadf1ea3398627992?KeyID=8f2f71ed&Signature=90AdYhugdyIJ8Na8%2FJBokHs%252BOUpjxiUfBhXvINxrzqd0rvQOwHap64cd1qvN4uqEUZipHq%2FHxfvi%252BHWHGRwqDA%253D%253D",
"title": "third_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.713380+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.713406+03:00",
"id": "72ae2b129ab4497ea20f48fea7d518be"
}
}
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/a3fe480fc194429db59b3517ac2becff/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",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=PSvGpJaKdUzNhQ5doYcyhvffRxRvLNo2w3YI5U9fSNzR5%2FOp2TZCDDj6Ebre6Wfc7zgLutisTUqCzBy7X4fBBg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.531556+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
},
{
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=ILUThMRo0qZCi8tZWpKJU3823B3hGbztKBm7Xm25aJXdqBbYELIZDig2uPsixRPRueqmQBR7imEfx3lJrAv1CQ%253D%253D",
"title": "first_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.591738+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.591779+03:00",
"id": "8c81536a6660418483282224f74adfec"
},
{
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Second illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4729e391cb144b07991bac85f9c818c5?KeyID=8f2f71ed&Signature=jFB8Hk2RJDmeK6F%2Flwn7VOnF4YACkiKim38m19aiGbnpwg0HB%2FOHxh0jBicpQblc7FuPXhMJpU%2FEDgElJoNBDw%253D%253D",
"title": "second_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.656709+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.656745+03:00",
"id": "6e61fb44da8145ed89b3762be3ef21f6"
},
{
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Third illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7085d82dbfc4481fadf1ea3398627992?KeyID=8f2f71ed&Signature=90AdYhugdyIJ8Na8%2FJBokHs%252BOUpjxiUfBhXvINxrzqd0rvQOwHap64cd1qvN4uqEUZipHq%2FHxfvi%252BHWHGRwqDA%253D%253D",
"title": "third_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.713380+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.713406+03:00",
"id": "72ae2b129ab4497ea20f48fea7d518be"
}
]
}
Add Asset Familiarization¶
Organizer can upload asset familiarization document into the created auction.
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 160
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"title": "Familiarization with bank asset",
"accessDetails": "Familiar with asset: days, time, address",
"documentType": "x_dgfAssetFamiliarization"
}
}
201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents/dec6a7e47b7f46928bfaf397365e0d5e
{
"data": {
"title": "Familiarization with bank asset",
"format": "offline/on-site-examination",
"accessDetails": "Familiar with asset: days, time, address",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.786322+03:00",
"documentType": "x_dgfAssetFamiliarization",
"dateModified": "2017-03-29T15:47:34.786347+03:00",
"id": "dec6a7e47b7f46928bfaf397365e0d5e"
}
}
We can check whether asset familiarization document is added.
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=PSvGpJaKdUzNhQ5doYcyhvffRxRvLNo2w3YI5U9fSNzR5%2FOp2TZCDDj6Ebre6Wfc7zgLutisTUqCzBy7X4fBBg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.531556+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
},
{
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=ILUThMRo0qZCi8tZWpKJU3823B3hGbztKBm7Xm25aJXdqBbYELIZDig2uPsixRPRueqmQBR7imEfx3lJrAv1CQ%253D%253D",
"title": "first_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.591738+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.591779+03:00",
"id": "8c81536a6660418483282224f74adfec"
},
{
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Second illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4729e391cb144b07991bac85f9c818c5?KeyID=8f2f71ed&Signature=jFB8Hk2RJDmeK6F%2Flwn7VOnF4YACkiKim38m19aiGbnpwg0HB%2FOHxh0jBicpQblc7FuPXhMJpU%2FEDgElJoNBDw%253D%253D",
"title": "second_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.656709+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.656745+03:00",
"id": "6e61fb44da8145ed89b3762be3ef21f6"
},
{
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Third illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7085d82dbfc4481fadf1ea3398627992?KeyID=8f2f71ed&Signature=90AdYhugdyIJ8Na8%2FJBokHs%252BOUpjxiUfBhXvINxrzqd0rvQOwHap64cd1qvN4uqEUZipHq%2FHxfvi%252BHWHGRwqDA%253D%253D",
"title": "third_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.713380+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.713406+03:00",
"id": "72ae2b129ab4497ea20f48fea7d518be"
},
{
"title": "Familiarization with bank asset",
"format": "offline/on-site-examination",
"accessDetails": "Familiar with asset: days, time, address",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.786322+03:00",
"documentType": "x_dgfAssetFamiliarization",
"dateModified": "2017-03-29T15:47:34.786347+03:00",
"id": "dec6a7e47b7f46928bfaf397365e0d5e"
}
]
}
Enquiries¶
When auction is in active.tendering status, interested parties can ask questions:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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/a3fe480fc194429db59b3517ac2becff/questions/c6c6259846504cfbb4e38d9c5d543958
{
"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-03-29T15:47:34.865633+03:00",
"id": "c6c6259846504cfbb4e38d9c5d543958",
"questionOf": "tender"
}
}
Organizer can answer them:
PATCH /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/questions/c6c6259846504cfbb4e38d9c5d543958?acc_token=149ad798bd474ec4af76cd8e6756b307 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-03-29T15:47:34.865633+03:00",
"answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
"id": "c6c6259846504cfbb4e38d9c5d543958",
"questionOf": "tender"
}
}
And one can retrieve the question list:
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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-03-29T15:47:34.865633+03:00",
"answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
"id": "c6c6259846504cfbb4e38d9c5d543958",
"questionOf": "tender"
}
]
}
Or an individual answer:
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/questions/c6c6259846504cfbb4e38d9c5d543958 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-03-29T15:47:34.865633+03:00",
"answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
"id": "c6c6259846504cfbb4e38d9c5d543958",
"questionOf": "tender"
}
}
Registering bid¶
Bidder can register a bid in draft status:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b
{
"access": {
"token": "c14b366894104efbb9312582ee888de4"
},
"data": {
"status": "draft",
"value": {
"currency": "UAH",
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"date": "2017-03-29T15:47:35.051579+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": "faca2e5833964b7e986173496944953b"
}
}
And activate a bid:
PATCH /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b?acc_token=c14b366894104efbb9312582ee888de4 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-03-29T15:47:35.051579+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": "faca2e5833964b7e986173496944953b"
}
}
And upload proposal document:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b/documents?acc_token=c14b366894104efbb9312582ee888de4 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/0737dc4824ee4dfd85ed722315e3ca70?KeyID=8f2f71ed&Signature=EgyBklOWZSCy5MdZtDCvAAY%2BZqMRHeaGXcR5seWtjHa0W3%2B709qUU2GJPxgqptZ39r5iPyWyl8bLmebYgEm4Bw%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/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b/documents/169b0174c740424f897e9f8cc065cdf6
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b/documents/169b0174c740424f897e9f8cc065cdf6?download=0737dc4824ee4dfd85ed722315e3ca70",
"title": "Proposal.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:35.204251+03:00",
"dateModified": "2017-03-29T15:47:35.204282+03:00",
"id": "169b0174c740424f897e9f8cc065cdf6"
}
}
It is possible to check the uploaded documents:
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b/documents?acc_token=c14b366894104efbb9312582ee888de4 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/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b/documents/169b0174c740424f897e9f8cc065cdf6?download=0737dc4824ee4dfd85ed722315e3ca70",
"title": "Proposal.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:35.204251+03:00",
"dateModified": "2017-03-29T15:47:35.204282+03:00",
"id": "169b0174c740424f897e9f8cc065cdf6"
}
]
}
For the best effect (biggest economy) auction should have multiple bidders registered:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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/a3fe480fc194429db59b3517ac2becff/bids/9d70ecc3909742bc852c682dcf0267d2
{
"access": {
"token": "6fbbe4276515406aae44ac74ec882414"
},
"data": {
"status": "active",
"value": {
"currency": "UAH",
"amount": 501.0,
"valueAddedTaxIncluded": true
},
"date": "2017-03-29T15:47:35.312509+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": "9d70ecc3909742bc852c682dcf0267d2"
}
}
Auction¶
After auction is scheduled anybody can visit it to watch. The auction can be reached at Auction.auctionUrl:
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff 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-PS-2017-03-29-000001",
"auctionUrl": "http://auction-sandbox.openprocurement.org/auctions/a3fe480fc194429db59b3517ac2becff",
"enquiryPeriod": {
"startDate": "2017-03-22T15:47:26.505267+02:00",
"endDate": "2017-03-29T15:47:26.505267+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-03-29T16:31:26.505267+03:00",
"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": "м. Київ"
}
},
"questions": [
{
"description": "Просимо додати таблицю потрібної калорійності харчування",
"title": "Калорійність",
"date": "2017-03-29T15:47:34.865633+03:00",
"answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
"id": "c6c6259846504cfbb4e38d9c5d543958",
"questionOf": "tender"
}
],
"owner": "broker",
"id": "a3fe480fc194429db59b3517ac2becff",
"documents": [
{
"hash": "md5:00000000000000000000000000000000",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/25ff4fb78e0247c1ba9d86dfe133e8f2?KeyID=8f2f71ed&Signature=zvXLkJyiCc6psFjTxZ0D%2FQLdBfZcvHph5gX1092UY1rharY6SgOr379PFead3dzGytmiIC%252BdtyIReRug7BUZDw%253D%253D",
"title": "AwardCriteria.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.472306+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=PSvGpJaKdUzNhQ5doYcyhvffRxRvLNo2w3YI5U9fSNzR5%2FOp2TZCDDj6Ebre6Wfc7zgLutisTUqCzBy7X4fBBg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.531556+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
},
{
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=ILUThMRo0qZCi8tZWpKJU3823B3hGbztKBm7Xm25aJXdqBbYELIZDig2uPsixRPRueqmQBR7imEfx3lJrAv1CQ%253D%253D",
"title": "first_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.591738+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.591779+03:00",
"id": "8c81536a6660418483282224f74adfec"
},
{
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Second illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4729e391cb144b07991bac85f9c818c5?KeyID=8f2f71ed&Signature=jFB8Hk2RJDmeK6F%2Flwn7VOnF4YACkiKim38m19aiGbnpwg0HB%2FOHxh0jBicpQblc7FuPXhMJpU%2FEDgElJoNBDw%253D%253D",
"title": "second_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.656709+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.656745+03:00",
"id": "6e61fb44da8145ed89b3762be3ef21f6"
},
{
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Third illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7085d82dbfc4481fadf1ea3398627992?KeyID=8f2f71ed&Signature=90AdYhugdyIJ8Na8%2FJBokHs%252BOUpjxiUfBhXvINxrzqd0rvQOwHap64cd1qvN4uqEUZipHq%2FHxfvi%252BHWHGRwqDA%253D%253D",
"title": "third_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.713380+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.713406+03:00",
"id": "72ae2b129ab4497ea20f48fea7d518be"
},
{
"title": "Familiarization with bank asset",
"format": "offline/on-site-examination",
"accessDetails": "Familiar with asset: days, time, address",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.786322+03:00",
"documentType": "x_dgfAssetFamiliarization",
"dateModified": "2017-03-29T15:47:34.786347+03:00",
"id": "dec6a7e47b7f46928bfaf397365e0d5e"
}
],
"title": "футляри до державних нагород",
"tenderAttempts": 1,
"procurementMethodDetails": "quick, accelerator=1440",
"dateModified": "2017-03-29T15:47:35.557500+03:00",
"status": "active.auction",
"tenderPeriod": {
"startDate": "2017-03-22T15:47:26.505267+02:00",
"endDate": "2017-03-29T15:47:26.505267+03:00"
},
"auctionPeriod": {
"startDate": "2017-03-29T15:47:26.505267+03:00",
"shouldStartAfter": "2017-03-30T00:00:00+03:00"
},
"procurementMethodType": "dgfOtherAssets",
"dgfID": "219560",
"date": "2017-03-29T15:47:33.994721+03:00",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "d3a6b745e6ec4a3fabba32445167d78c",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"awardCriteria": "highestCost"
}
}
And bidders can find out their participation URLs via their bids:
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b?acc_token=c14b366894104efbb9312582ee888de4 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/a3fe480fc194429db59b3517ac2becff/bids/faca2e5833964b7e986173496944953b/documents/169b0174c740424f897e9f8cc065cdf6?download=0737dc4824ee4dfd85ed722315e3ca70",
"title": "Proposal.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:35.204251+03:00",
"dateModified": "2017-03-29T15:47:35.204282+03:00",
"id": "169b0174c740424f897e9f8cc065cdf6"
}
],
"value": {
"currency": "UAH",
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"date": "2017-03-29T15:47:35.051579+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": "faca2e5833964b7e986173496944953b",
"participationUrl": "http://auction-sandbox.openprocurement.org/auctions/a3fe480fc194429db59b3517ac2becff?key_for_bid=faca2e5833964b7e986173496944953b"
}
}
See the Bid.participationUrl in the response. Similar, but different, URL can be retrieved for other participants:
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/bids/9d70ecc3909742bc852c682dcf0267d2?acc_token=6fbbe4276515406aae44ac74ec882414 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-03-29T15:47:35.312509+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": "9d70ecc3909742bc852c682dcf0267d2",
"participationUrl": "http://auction-sandbox.openprocurement.org/auctions/a3fe480fc194429db59b3517ac2becff?key_for_bid=9d70ecc3909742bc852c682dcf0267d2"
}
}
Qualification¶
Confirming qualification¶
Candidate (participant that has submitted the highest bid at the auction) must sign the auction protocol auctionProtocol and add it to the bid within 3 business days after becoming candidate.
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/bids/9d70ecc3909742bc852c682dcf0267d2/documents?acc_token=6fbbe4276515406aae44ac74ec882414 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 379
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/0e473f2b76fb4bd186e97fe4c0403472?KeyID=8f2f71ed&Signature=46YiWmQ3Ml4vX82z13cvUx7uVQKV6ZWSq4KQ4eRk8tfLQRcjgB9w0ic%2BVJZwUxymExr6xGIsF%2F5eDvaHe9flDg%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/a3fe480fc194429db59b3517ac2becff/bids/9d70ecc3909742bc852c682dcf0267d2/documents/4a9411429d794c7caa2f01d21c99ab69
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/0e473f2b76fb4bd186e97fe4c0403472?KeyID=8f2f71ed&Signature=TqoJeZbaLR8tww8NYYBeL5om94kBf4%252B1ALreYniWv83Ad9wWvfKNqaodK7EflUGS7JipLXjYxeMGdvtMJT%252BXDg%253D%253D",
"title": "SignedAuctionProtocol.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:35.954491+03:00",
"documentType": "auctionProtocol",
"dateModified": "2017-03-29T15:47:35.954521+03:00",
"id": "4a9411429d794c7caa2f01d21c99ab69"
}
}
Within 10 business days after becoming candidate this candidate must provide payment and organizer must confirm this payment:
PATCH /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/awards/a3d2d0c829fb45c9b73a75e7d1978991?acc_token=149ad798bd474ec4af76cd8e6756b307 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",
"complaintPeriod": {
"startDate": "2017-03-29T15:47:35.848771+03:00",
"endDate": "2017-03-29T15:47:36.096312+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": "м. Львів"
}
}
],
"bid_id": "9d70ecc3909742bc852c682dcf0267d2",
"value": {
"currency": "UAH",
"amount": 501.0,
"valueAddedTaxIncluded": true
},
"date": "2017-03-29T15:47:36.103216+03:00",
"id": "a3d2d0c829fb45c9b73a75e7d1978991"
}
}
Disqualification of candidate¶
If the candidate didn’t sign the auction protocol in 3 business days after becoming candidate, or didn’t provide payment in 10 business days since becoming candidate, or didn’t conclude contract based on the electronic auction results within 15 business days since becoming candidate, then organizer disqualifies the first candidate and awards participant with the next largest bid.
PATCH /api/2.3/auctions/e697023cacc24697a8d03c234753bbd0/awards/2361d4a5feeb4b51b401ed0941d79d2b?acc_token=9575071a6c92489782d67ec29cbcc30f 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
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/e697023cacc24697a8d03c234753bbd0/awards/ad468ef737c34ac2b2ae65a80b2ca8e1
{
"data": {
"status": "cancelled",
"complaintPeriod": {
"startDate": "2017-03-29T15:47:30.888919+03:00",
"endDate": "2017-03-29T15:47:31.021223+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": "9dba89da1a4b4a179940243cda57bb7a",
"value": {
"currency": "UAH",
"amount": 475.0,
"valueAddedTaxIncluded": true
},
"date": "2017-03-29T15:47:31.142649+03:00",
"id": "2361d4a5feeb4b51b401ed0941d79d2b"
}
}
Organizer has to upload file with cancellation reason:
POST /api/2.3/auctions/e697023cacc24697a8d03c234753bbd0/awards/ad468ef737c34ac2b2ae65a80b2ca8e1/documents?acc_token=9575071a6c92489782d67ec29cbcc30f HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 384
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/eebd2b6d4c7b4e1497dcbf6b1791585a?KeyID=18f3f87d&Signature=z7WjUFfhIWueIQVv9vBzcE%2FX2HlEAnfPwVEGhASkoPMb2F8ddBmupq9UeDjJaA3Mufs%2FwW23te0ROWICx53tCg%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/e697023cacc24697a8d03c234753bbd0/awards/ad468ef737c34ac2b2ae65a80b2ca8e1/documents/76a5b88495ea4ee6a777c5ce9d9d2d37
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"description": "Disqualification reason",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/eebd2b6d4c7b4e1497dcbf6b1791585a?KeyID=18f3f87d&Signature=NH89p3ErX15HXsSQldd2va7q1Qz6coZnuMgw5tpE7dWXLoXh5M5oEAGNTMRXS%252B9uzvEEMPI1Tv%2FZTMg6YhRBDQ%253D%253D",
"title": "Disqualified_reason.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:31.285744+03:00",
"dateModified": "2017-03-29T15:47:31.285770+03:00",
"id": "76a5b88495ea4ee6a777c5ce9d9d2d37"
}
}
And disqualify candidate:
PATCH /api/2.3/auctions/e697023cacc24697a8d03c234753bbd0/awards/ad468ef737c34ac2b2ae65a80b2ca8e1?acc_token=9575071a6c92489782d67ec29cbcc30f 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
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/e697023cacc24697a8d03c234753bbd0/awards/9d25afbaccdb43b7b0de63e172fa9437
{
"data": {
"status": "unsuccessful",
"documents": [
{
"hash": "md5:00000000000000000000000000000000",
"description": "Disqualification reason",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/eebd2b6d4c7b4e1497dcbf6b1791585a?KeyID=18f3f87d&Signature=NH89p3ErX15HXsSQldd2va7q1Qz6coZnuMgw5tpE7dWXLoXh5M5oEAGNTMRXS%252B9uzvEEMPI1Tv%2FZTMg6YhRBDQ%253D%253D",
"title": "Disqualified_reason.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:31.285744+03:00",
"dateModified": "2017-03-29T15:47:31.285770+03:00",
"id": "76a5b88495ea4ee6a777c5ce9d9d2d37"
}
],
"description": "Candidate didn’t sign the auction protocol in 3 business days",
"complaintPeriod": {
"startDate": "2017-03-29T15:47:31.134325+03:00",
"endDate": "2017-03-29T15:47:31.417212+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": "м. Вінниця"
}
}
],
"title": "Disqualified",
"bid_id": "9dba89da1a4b4a179940243cda57bb7a",
"value": {
"currency": "UAH",
"amount": 475.0,
"valueAddedTaxIncluded": true
},
"date": "2017-03-29T15:47:31.432934+03:00",
"id": "ad468ef737c34ac2b2ae65a80b2ca8e1"
}
}
Within 15 business days since becoming candidate a new candidate must confirm qualification with steps described above (Qualification).
Signing contract¶
The candidate has 15 business days after becoming 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/a3fe480fc194429db59b3517ac2becff/contracts/46acb818c454494fb3ea95be84b530f7/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 351
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/faeb5c861bc44c298b554f48d99b2241?KeyID=8f2f71ed&Signature=HFtmu79CrUkyaE7jRPTH6OlUIwy4xhnsCQyRLAtj17z5UGUVdsgjer1EJ5%2BJKj%2FlctcXTf%2BtYBHiOXUbTgR9Ag%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/a3fe480fc194429db59b3517ac2becff/contracts/46acb818c454494fb3ea95be84b530f7/documents/8be61adfb48f4fdb8f904d31f3752503
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"format": "application/msword",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/faeb5c861bc44c298b554f48d99b2241?KeyID=8f2f71ed&Signature=txDsfHH5fx69yaYLizGYkvhwT2Am2z14Zs8EsWtmIQbYObK43l3wljIBr5b3acG%2F%2FqSHrpRgCn%252B2xPXj03qpDA%253D%253D",
"title": "contract_first_document.doc",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:36.395141+03:00",
"dateModified": "2017-03-29T15:47:36.395171+03:00",
"id": "8be61adfb48f4fdb8f904d31f3752503"
}
}
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/a3fe480fc194429db59b3517ac2becff/contracts/46acb818c454494fb3ea95be84b530f7/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/faeb5c861bc44c298b554f48d99b2241?KeyID=8f2f71ed&Signature=txDsfHH5fx69yaYLizGYkvhwT2Am2z14Zs8EsWtmIQbYObK43l3wljIBr5b3acG%2F%2FqSHrpRgCn%252B2xPXj03qpDA%253D%253D",
"title": "contract_first_document.doc",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:36.395141+03:00",
"dateModified": "2017-03-29T15:47:36.395171+03:00",
"id": "8be61adfb48f4fdb8f904d31f3752503"
}
]
}
We can add another contract document:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/contracts/46acb818c454494fb3ea95be84b530f7/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 348
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4a36a987d33846ce873195d6b53fbcdc?KeyID=8f2f71ed&Signature=wAD1TVl5Jq2Kx35yWFoc5FceK1WIs895vyy6OveYwELP9M0FSSvrwbJFkFEG%2FnaAgzUWKVb6S6JKGGNO6dVZAQ%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/a3fe480fc194429db59b3517ac2becff/contracts/46acb818c454494fb3ea95be84b530f7/documents/0c9d642e2a29402591bd60c0d9de16f3
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"format": "application/msword",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4a36a987d33846ce873195d6b53fbcdc?KeyID=8f2f71ed&Signature=TJHSDvK%252B25lwWqrTpCHw%2FxFajvBCLFy424jp%252BNekwCwclJp7a7xDVthyjFFK0GWry3%2F82FeruAcw0qBP67nKDQ%253D%253D",
"title": "contract_second_document.doc",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:36.562256+03:00",
"dateModified": "2017-03-29T15:47:36.562283+03:00",
"id": "0c9d642e2a29402591bd60c0d9de16f3"
}
}
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/a3fe480fc194429db59b3517ac2becff/contracts/46acb818c454494fb3ea95be84b530f7/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/faeb5c861bc44c298b554f48d99b2241?KeyID=8f2f71ed&Signature=txDsfHH5fx69yaYLizGYkvhwT2Am2z14Zs8EsWtmIQbYObK43l3wljIBr5b3acG%2F%2FqSHrpRgCn%252B2xPXj03qpDA%253D%253D",
"title": "contract_first_document.doc",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:36.395141+03:00",
"dateModified": "2017-03-29T15:47:36.395171+03:00",
"id": "8be61adfb48f4fdb8f904d31f3752503"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/msword",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4a36a987d33846ce873195d6b53fbcdc?KeyID=8f2f71ed&Signature=TJHSDvK%252B25lwWqrTpCHw%2FxFajvBCLFy424jp%252BNekwCwclJp7a7xDVthyjFFK0GWry3%2F82FeruAcw0qBP67nKDQ%253D%253D",
"title": "contract_second_document.doc",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:36.562256+03:00",
"dateModified": "2017-03-29T15:47:36.562283+03:00",
"id": "0c9d642e2a29402591bd60c0d9de16f3"
}
]
}
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/a3fe480fc194429db59b3517ac2becff/contracts/46acb818c454494fb3ea95be84b530f7?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 80
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"status": "active",
"dateSigned": "2017-03-29T15:47:36.691689+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/faeb5c861bc44c298b554f48d99b2241?KeyID=8f2f71ed&Signature=txDsfHH5fx69yaYLizGYkvhwT2Am2z14Zs8EsWtmIQbYObK43l3wljIBr5b3acG%2F%2FqSHrpRgCn%252B2xPXj03qpDA%253D%253D",
"title": "contract_first_document.doc",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:36.395141+03:00",
"dateModified": "2017-03-29T15:47:36.395171+03:00",
"id": "8be61adfb48f4fdb8f904d31f3752503"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/msword",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4a36a987d33846ce873195d6b53fbcdc?KeyID=8f2f71ed&Signature=TJHSDvK%252B25lwWqrTpCHw%2FxFajvBCLFy424jp%252BNekwCwclJp7a7xDVthyjFFK0GWry3%2F82FeruAcw0qBP67nKDQ%253D%253D",
"title": "contract_second_document.doc",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:36.562256+03:00",
"dateModified": "2017-03-29T15:47:36.562283+03:00",
"id": "0c9d642e2a29402591bd60c0d9de16f3"
}
],
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "d3a6b745e6ec4a3fabba32445167d78c",
"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-03-29T15:47:26.507025+03:00",
"endDate": "2018-03-29T15:47:26.507025+03:00"
},
"value": {
"currency": "UAH",
"amount": 501.0,
"valueAddedTaxIncluded": true
},
"dateSigned": "2017-03-29T15:47:36.691689+03:00",
"date": "2017-03-29T15:47:36.775524+03:00",
"awardID": "a3d2d0c829fb45c9b73a75e7d1978991",
"id": "46acb818c454494fb3ea95be84b530f7",
"contractID": "UA-PS-2017-03-29-000001-1"
}
}
Cancelling auction¶
Organizer can cancel auction anytime (except when auction has terminal status e.g. usuccesfull, canceled, complete).
The following steps should be applied:
- Prepare cancellation request.
- Fill it with the protocol describing the cancellation reasons.
- 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/a3fe480fc194429db59b3517ac2becff/cancellations?acc_token=149ad798bd474ec4af76cd8e6756b307 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/a3fe480fc194429db59b3517ac2becff/cancellations/a167f5e9c4df43cf802e8ebebe1380c7
{
"data": {
"date": "2017-03-29T15:47:36.955094+03:00",
"status": "pending",
"reason": "cancellation reason",
"cancellationOf": "tender",
"id": "a167f5e9c4df43cf802e8ebebe1380c7"
}
}
Filling cancellation with protocol and supplementary documentation¶
Upload the file contents:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/cancellations/a167f5e9c4df43cf802e8ebebe1380c7/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 329
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/29adbb9dc3f648a6aa4839f553b63cd6?KeyID=8f2f71ed&Signature=3jZ5CQ6kdakgJDOQxJ5z2KQ4KGwL1IgWzr8gdQpO%2F3BLsbvwTVaCUG%2BFpo7zo90HD2qrydJQTpgcrcxry2pVDA%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/a3fe480fc194429db59b3517ac2becff/cancellations/a167f5e9c4df43cf802e8ebebe1380c7/documents/2a5e5d1b56604d5fba0c342cb8eda4ee
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/29adbb9dc3f648a6aa4839f553b63cd6?KeyID=8f2f71ed&Signature=yNCxpNRyKhm0gJl9Pv26P5tPHMdippd5vmXIig3FTdAwdwP8TTjNkobkrgSMrW8i7%2FelyneDx%252BnzPJqAO2EVBQ%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:37.082686+03:00",
"dateModified": "2017-03-29T15:47:37.082713+03:00",
"id": "2a5e5d1b56604d5fba0c342cb8eda4ee"
}
}
Change the document description and other properties:
PATCH /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/cancellations/a167f5e9c4df43cf802e8ebebe1380c7/documents/2a5e5d1b56604d5fba0c342cb8eda4ee?acc_token=149ad798bd474ec4af76cd8e6756b307 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/29adbb9dc3f648a6aa4839f553b63cd6?KeyID=8f2f71ed&Signature=yNCxpNRyKhm0gJl9Pv26P5tPHMdippd5vmXIig3FTdAwdwP8TTjNkobkrgSMrW8i7%2FelyneDx%252BnzPJqAO2EVBQ%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:37.082686+03:00",
"dateModified": "2017-03-29T15:47:37.082713+03:00",
"id": "2a5e5d1b56604d5fba0c342cb8eda4ee"
}
}
Upload new version of the document:
PUT /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/cancellations/a167f5e9c4df43cf802e8ebebe1380c7/documents/2a5e5d1b56604d5fba0c342cb8eda4ee?acc_token=149ad798bd474ec4af76cd8e6756b307 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/567cea176e2f481998021c9888ed89b6?KeyID=8f2f71ed&Signature=KW%2BVTP79GDkFECSWkFTpJ1LleKLmUIxsLPbHh3VhDZGTFhNqhHF3EeViMhAT25%2FbBqpvLNJMFPiAlQrH8jXPAA%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/567cea176e2f481998021c9888ed89b6?KeyID=8f2f71ed&Signature=C1%2FxvEXZhLEq%2FdL5Gp6lLLv4KX1NSTOVdFNKvju29Y8mDhNcQFC%252BIrsPad7CjPKhjxOk%252BgerDzI6SG9P%252BS6LAg%253D%253D",
"title": "Notice-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:37.082686+03:00",
"dateModified": "2017-03-29T15:47:37.353763+03:00",
"id": "2a5e5d1b56604d5fba0c342cb8eda4ee"
}
}
Activating the request and cancelling auction¶
PATCH /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/cancellations/a167f5e9c4df43cf802e8ebebe1380c7?acc_token=149ad798bd474ec4af76cd8e6756b307 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/29adbb9dc3f648a6aa4839f553b63cd6?KeyID=8f2f71ed&Signature=yNCxpNRyKhm0gJl9Pv26P5tPHMdippd5vmXIig3FTdAwdwP8TTjNkobkrgSMrW8i7%2FelyneDx%252BnzPJqAO2EVBQ%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:37.082686+03:00",
"dateModified": "2017-03-29T15:47:37.082713+03:00",
"id": "2a5e5d1b56604d5fba0c342cb8eda4ee"
},
{
"hash": "md5:00000000000000000000000000000000",
"description": "Changed description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/567cea176e2f481998021c9888ed89b6?KeyID=8f2f71ed&Signature=C1%2FxvEXZhLEq%2FdL5Gp6lLLv4KX1NSTOVdFNKvju29Y8mDhNcQFC%252BIrsPad7CjPKhjxOk%252BgerDzI6SG9P%252BS6LAg%253D%253D",
"title": "Notice-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:37.082686+03:00",
"dateModified": "2017-03-29T15:47:37.353763+03:00",
"id": "2a5e5d1b56604d5fba0c342cb8eda4ee"
}
],
"reason": "cancellation reason",
"date": "2017-03-29T15:47:37.514549+03:00",
"cancellationOf": "tender",
"id": "a167f5e9c4df43cf802e8ebebe1380c7"
}
}
Fin. Tutorial¶
Tutorial for the dgfFinancialAssets procedure.
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: 1972
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35
},
"procurementMethodDetails": "quick, accelerator=1440",
"tenderAttempts": 1,
"procurementMethodType": "dgfFinancialAssets",
"value": {
"currency": "UAH",
"amount": 100
},
"dgfID": "219560",
"auctionPeriod": {
"startDate": "2017-04-12"
},
"items": [
{
"classification": {
"scheme": "CPV",
"id": "66113000-5",
"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/a66af4ecf50e4a9ba3c0a287b0c13de1
{
"access": {
"token": "55adce4ad40548ec879f68439cae2a70"
},
"data": {
"procurementMethod": "open",
"auctionID": "UA-PS-2017-03-29-000001",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:32.460753+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-04-11T23:59:50+03:00",
"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": "м. Київ"
}
},
"owner": "broker",
"id": "a66af4ecf50e4a9ba3c0a287b0c13de1",
"eligibilityCriteria_ru": "К участию допускаются только лицензированные финансовые учреждения.",
"title": "футляри до державних нагород",
"tenderAttempts": 1,
"eligibilityCriteria_en": "Only licensed financial institutions are eligible to participate.",
"procurementMethodDetails": "quick, accelerator=1440",
"dateModified": "2017-03-29T15:47:32.463700+03:00",
"status": "active.tendering",
"eligibilityCriteria": "До участі допускаються лише ліцензовані фінансові установи.",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:32.460753+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"auctionPeriod": {
"shouldStartAfter": "2017-04-12T00:00:00+03:00"
},
"procurementMethodType": "dgfFinancialAssets",
"dgfID": "219560",
"date": "2017-03-29T15:47:32.460753+03:00",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "2d869cd128564dd188b763524a4143cc",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"awardCriteria": "highestCost"
}
}
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/a66af4ecf50e4a9ba3c0a287b0c13de1 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-PS-2017-03-29-000001",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:32.460753+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-04-11T23:59:50+03:00",
"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": "м. Київ"
}
},
"owner": "broker",
"id": "a66af4ecf50e4a9ba3c0a287b0c13de1",
"eligibilityCriteria_ru": "К участию допускаются только лицензированные финансовые учреждения.",
"title": "футляри до державних нагород",
"tenderAttempts": 1,
"eligibilityCriteria_en": "Only licensed financial institutions are eligible to participate.",
"procurementMethodDetails": "quick, accelerator=1440",
"dateModified": "2017-03-29T15:47:32.463700+03:00",
"status": "active.tendering",
"eligibilityCriteria": "До участі допускаються лише ліцензовані фінансові установи.",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:32.460753+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"auctionPeriod": {
"shouldStartAfter": "2017-04-12T00:00:00+03:00"
},
"procurementMethodType": "dgfFinancialAssets",
"dgfID": "219560",
"date": "2017-03-29T15:47:32.460753+03:00",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "2d869cd128564dd188b763524a4143cc",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"awardCriteria": "highestCost"
}
}
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-03-29T15%3A47%3A32.463700%2B03%3A00",
"uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2017-03-29T15%3A47%3A32.463700%2B03%3A00",
"offset": "2017-03-29T15:47:32.463700+03:00"
},
"data": [
{
"id": "a66af4ecf50e4a9ba3c0a287b0c13de1",
"dateModified": "2017-03-29T15:47:32.463700+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.
Uploading documentation¶
Organizer can upload PDF files into the created auction. Uploading should follow the Documents Uploading rules.
POST /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/documents?acc_token=55adce4ad40548ec879f68439cae2a70 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 410
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"description": "technical specification",
"title": "Notice.pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/59e07eacaac5460ebb1e9e2fa16c3776?KeyID=8e787cc1&Signature=9XJisfG0euF5y41iUZBzT5fYRzgBmaMrlXoGOGyl9BObmFw10KLPwEPIClVUJnnZZk7OssKaSzIOJB6ijnBTCw%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/a66af4ecf50e4a9ba3c0a287b0c13de1/documents/7b58a8734f3841868d167fa0f34324ef
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"description": "technical specification",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/59e07eacaac5460ebb1e9e2fa16c3776?KeyID=8e787cc1&Signature=UliwRYrzr2iL4DXd1GJE%2FVvXNRJpQXshXcWcB52gQkqEfqB51VC4e%2Frg20%252B5eckaOvVEcgjJ4wfr877TuCC%2FDQ%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.613197+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:32.613225+03:00",
"id": "7b58a8734f3841868d167fa0f34324ef"
}
}
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/a66af4ecf50e4a9ba3c0a287b0c13de1/documents/7b58a8734f3841868d167fa0f34324ef 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": "technical specification",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/59e07eacaac5460ebb1e9e2fa16c3776?KeyID=8e787cc1&Signature=UliwRYrzr2iL4DXd1GJE%2FVvXNRJpQXshXcWcB52gQkqEfqB51VC4e%2Frg20%252B5eckaOvVEcgjJ4wfr877TuCC%2FDQ%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.613197+03:00",
"previousVersions": [],
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:32.613225+03:00",
"id": "7b58a8734f3841868d167fa0f34324ef"
}
}
The single array element describes the uploaded document. We can upload more documents:
POST /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/documents?acc_token=55adce4ad40548ec879f68439cae2a70 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 340
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/bb5bc26b5b224ec1b0bb166798f840ce?KeyID=8e787cc1&Signature=GGxo%2BkvQWf%2BRaYmsJ3HQlBlzcCToHNTKIaKR3V%2BVmRkh57i6ir52sQrZjoRf0hRFfH8ihD015dsAd%2FVx9H2IDw%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/a66af4ecf50e4a9ba3c0a287b0c13de1/documents/a4a5eb45f2c1457d8b1daa1256842b38
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/bb5bc26b5b224ec1b0bb166798f840ce?KeyID=8e787cc1&Signature=Fi%2FmhACH1ZjyaLMyySG8r8NPaJ%252BFqkQ8VBj7nm8brELNrz6jM0LAo7b307ANpV%252B5Tlj5H5o8pH2xazNP2krfBg%253D%253D",
"title": "AwardCriteria.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.670097+03:00",
"dateModified": "2017-03-29T15:47:32.670134+03:00",
"id": "a4a5eb45f2c1457d8b1daa1256842b38"
}
}
And again we can confirm that there are two documents uploaded.
GET /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/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",
"description": "technical specification",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/59e07eacaac5460ebb1e9e2fa16c3776?KeyID=8e787cc1&Signature=UliwRYrzr2iL4DXd1GJE%2FVvXNRJpQXshXcWcB52gQkqEfqB51VC4e%2Frg20%252B5eckaOvVEcgjJ4wfr877TuCC%2FDQ%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.613197+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:32.613225+03:00",
"id": "7b58a8734f3841868d167fa0f34324ef"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/bb5bc26b5b224ec1b0bb166798f840ce?KeyID=8e787cc1&Signature=Fi%2FmhACH1ZjyaLMyySG8r8NPaJ%252BFqkQ8VBj7nm8brELNrz6jM0LAo7b307ANpV%252B5Tlj5H5o8pH2xazNP2krfBg%253D%253D",
"title": "AwardCriteria.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.670097+03:00",
"dateModified": "2017-03-29T15:47:32.670134+03:00",
"id": "a4a5eb45f2c1457d8b1daa1256842b38"
}
]
}
In case we made an error, we can reupload the document over the older version:
PUT /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/documents/a4a5eb45f2c1457d8b1daa1256842b38?acc_token=55adce4ad40548ec879f68439cae2a70 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 340
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/6f5c759f19264080bf7601a9499f0244?KeyID=8e787cc1&Signature=FcppEwGtSMHHZ7%2FLf7FDnMNzrDaLOE3AoeG4P8FPZ3GMC6KgTcoGhlR%2BZZZKv3Gk4IeITQuu%2FTVZEvEqyTw0BQ%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/6f5c759f19264080bf7601a9499f0244?KeyID=8e787cc1&Signature=9V%2FRnSXWH6L5JWR2nXFyEIS2QfcGVCJnZvvH%252B1hMiLVi6ZdUmAQrXELTocMSgGy1PcCa9uK7N5KBqXQtvo37Cg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.670097+03:00",
"dateModified": "2017-03-29T15:47:32.732183+03:00",
"id": "a4a5eb45f2c1457d8b1daa1256842b38"
}
}
And we can see that it is overriding the original version:
GET /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/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",
"description": "technical specification",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/59e07eacaac5460ebb1e9e2fa16c3776?KeyID=8e787cc1&Signature=UliwRYrzr2iL4DXd1GJE%2FVvXNRJpQXshXcWcB52gQkqEfqB51VC4e%2Frg20%252B5eckaOvVEcgjJ4wfr877TuCC%2FDQ%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.613197+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:32.613225+03:00",
"id": "7b58a8734f3841868d167fa0f34324ef"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/6f5c759f19264080bf7601a9499f0244?KeyID=8e787cc1&Signature=9V%2FRnSXWH6L5JWR2nXFyEIS2QfcGVCJnZvvH%252B1hMiLVi6ZdUmAQrXELTocMSgGy1PcCa9uK7N5KBqXQtvo37Cg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.670097+03:00",
"dateModified": "2017-03-29T15:47:32.732183+03:00",
"id": "a4a5eb45f2c1457d8b1daa1256842b38"
}
]
}
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/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 434
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"title": "first_illustration.jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=wS%2FmiBBJEqZCTAq0CIEW4aewOl%2FoUx7Mj1%2BenK45Es5IQr%2FLQJZge6nWYKZdghzGM1RxI9oXRRXNVdarlWRtAA%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/a3fe480fc194429db59b3517ac2becff/documents/8c81536a6660418483282224f74adfec
{
"data": {
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=ILUThMRo0qZCi8tZWpKJU3823B3hGbztKBm7Xm25aJXdqBbYELIZDig2uPsixRPRueqmQBR7imEfx3lJrAv1CQ%253D%253D",
"title": "first_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.591738+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.591779+03:00",
"id": "8c81536a6660418483282224f74adfec"
}
}
We can check whether illustration is uploaded.
GET /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/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",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=PSvGpJaKdUzNhQ5doYcyhvffRxRvLNo2w3YI5U9fSNzR5%2FOp2TZCDDj6Ebre6Wfc7zgLutisTUqCzBy7X4fBBg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.531556+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
},
{
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=ILUThMRo0qZCi8tZWpKJU3823B3hGbztKBm7Xm25aJXdqBbYELIZDig2uPsixRPRueqmQBR7imEfx3lJrAv1CQ%253D%253D",
"title": "first_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.591738+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.591779+03:00",
"id": "8c81536a6660418483282224f74adfec"
}
]
}
Organizer can upload second illustration. This illustration should be displayed second, so it has "index": 2
.
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 434
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Second illustration description",
"title": "second_illustration.jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4729e391cb144b07991bac85f9c818c5?KeyID=8f2f71ed&Signature=Xlo5ij2%2B1fp6uSrjWWXPx20mbvT8yz5gXkwFaiYF69dndSlu7mZb3Ma54S0zCIA%2BFlplkw%2F9eYWm7veVGB32Cg%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/a3fe480fc194429db59b3517ac2becff/documents/6e61fb44da8145ed89b3762be3ef21f6
{
"data": {
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Second illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4729e391cb144b07991bac85f9c818c5?KeyID=8f2f71ed&Signature=jFB8Hk2RJDmeK6F%2Flwn7VOnF4YACkiKim38m19aiGbnpwg0HB%2FOHxh0jBicpQblc7FuPXhMJpU%2FEDgElJoNBDw%253D%253D",
"title": "second_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.656709+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.656745+03:00",
"id": "6e61fb44da8145ed89b3762be3ef21f6"
}
}
Add third illustration:
POST /api/2.3/auctions/a3fe480fc194429db59b3517ac2becff/documents?acc_token=149ad798bd474ec4af76cd8e6756b307 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 432
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/7085d82dbfc4481fadf1ea3398627992?KeyID=8f2f71ed&Signature=z2GeUFtWFsNOaIWydSv%2BVzw0dmtZBNDct1Th0%2BJAK1u7OYmzXR8Scjg%2BAiqfhOfVxKGYtUg624fvsjbwPki8Aw%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/a3fe480fc194429db59b3517ac2becff/documents/72ae2b129ab4497ea20f48fea7d518be
{
"data": {
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Third illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7085d82dbfc4481fadf1ea3398627992?KeyID=8f2f71ed&Signature=90AdYhugdyIJ8Na8%2FJBokHs%252BOUpjxiUfBhXvINxrzqd0rvQOwHap64cd1qvN4uqEUZipHq%2FHxfvi%252BHWHGRwqDA%253D%253D",
"title": "third_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.713380+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.713406+03:00",
"id": "72ae2b129ab4497ea20f48fea7d518be"
}
}
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/a3fe480fc194429db59b3517ac2becff/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",
"description": "document description",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/c683de25eb294b5fa8cc8294ec9fe908?KeyID=8f2f71ed&Signature=b1At6NDAC3JTU6fDd9uTHG1sI%2FzioJcoVHbxqTzZAELtHr3FwOjQ9yMpVBRf%2FFrizC84qhF2xqlfr51ifFqoBg%253D%253D",
"title": "Notice.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.401607+03:00",
"documentType": "technicalSpecifications",
"dateModified": "2017-03-29T15:47:34.401638+03:00",
"id": "2a0f652e19154a218c608f42a5c448e0"
},
{
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/a70797d6dbde47c897ae6a0dfe2af58e?KeyID=8f2f71ed&Signature=PSvGpJaKdUzNhQ5doYcyhvffRxRvLNo2w3YI5U9fSNzR5%2FOp2TZCDDj6Ebre6Wfc7zgLutisTUqCzBy7X4fBBg%253D%253D",
"title": "AwardCriteria-2.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.472264+03:00",
"dateModified": "2017-03-29T15:47:34.531556+03:00",
"id": "18fb51d188ce405e875dfb37f1baf161"
},
{
"index": 1,
"hash": "md5:00000000000000000000000000000000",
"description": "First illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7775106db07c466c9750e75e3a1b1d6b?KeyID=8f2f71ed&Signature=ILUThMRo0qZCi8tZWpKJU3823B3hGbztKBm7Xm25aJXdqBbYELIZDig2uPsixRPRueqmQBR7imEfx3lJrAv1CQ%253D%253D",
"title": "first_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.591738+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.591779+03:00",
"id": "8c81536a6660418483282224f74adfec"
},
{
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Second illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/4729e391cb144b07991bac85f9c818c5?KeyID=8f2f71ed&Signature=jFB8Hk2RJDmeK6F%2Flwn7VOnF4YACkiKim38m19aiGbnpwg0HB%2FOHxh0jBicpQblc7FuPXhMJpU%2FEDgElJoNBDw%253D%253D",
"title": "second_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.656709+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.656745+03:00",
"id": "6e61fb44da8145ed89b3762be3ef21f6"
},
{
"index": 2,
"hash": "md5:00000000000000000000000000000000",
"description": "Third illustration description",
"format": "image/jpeg",
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/7085d82dbfc4481fadf1ea3398627992?KeyID=8f2f71ed&Signature=90AdYhugdyIJ8Na8%2FJBokHs%252BOUpjxiUfBhXvINxrzqd0rvQOwHap64cd1qvN4uqEUZipHq%2FHxfvi%252BHWHGRwqDA%253D%253D",
"title": "third_illustration.jpeg",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:34.713380+03:00",
"documentType": "illustration",
"dateModified": "2017-03-29T15:47:34.713406+03:00",
"id": "72ae2b129ab4497ea20f48fea7d518be"
}
]
}
Adding virtual data room¶
Organizer can add URL for virtual data room:
POST /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/documents?acc_token=55adce4ad40548ec879f68439cae2a70 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 127
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://virtial-data-room.com/id_of_room",
"title": "VDR for auction lot",
"documentType": "virtualDataRoom"
}
}
201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/documents/ec9229c09053434a8035d1cc92b4d3eb
{
"data": {
"title": "VDR for auction lot",
"url": "http://virtial-data-room.com/id_of_room",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.790398+03:00",
"documentType": "virtualDataRoom",
"dateModified": "2017-03-29T15:47:32.790425+03:00",
"id": "ec9229c09053434a8035d1cc92b4d3eb"
}
}
Registering bid¶
Bidder can register a bid in draft status. Bidder must specify UA-FIN
value for the additionalIdentifiers parameter.
POST /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1004
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"qualified": true,
"tenderers": [
{
"additionalIdentifiers": [
{
"scheme": "UA-FIN",
"id": "А01 457213"
}
],
"contactPoint": {
"name": "Державне управління справами",
"telephone": "0440000000"
},
"identifier": {
"scheme": "UA-EDR",
"id": "00037256",
"uri": "http://www.dus.gov.ua/"
},
"name": "Державне управління справами",
"address": {
"countryName": "Україна",
"postalCode": "01220",
"region": "м. Київ",
"streetAddress": "вул. Банкова, 11, корпус 1",
"locality": "м. Київ"
}
}
],
"value": {
"currency": "UAH",
"amount": 469,
"valueAddedTaxIncluded": true
},
"eligible": true
}
}
201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids/cbaa01edfc704658b0f98486ba015ad0
{
"access": {
"token": "5c483486da504fc992e559535052e741"
},
"data": {
"status": "active",
"eligible": true,
"value": {
"currency": "UAH",
"amount": 469.0,
"valueAddedTaxIncluded": true
},
"date": "2017-03-29T15:47:32.842983+03:00",
"qualified": true,
"tenderers": [
{
"additionalIdentifiers": [
{
"scheme": "UA-FIN",
"id": "А01 457213"
}
],
"contactPoint": {
"name": "Державне управління справами",
"telephone": "0440000000"
},
"identifier": {
"scheme": "UA-EDR",
"id": "00037256",
"uri": "http://www.dus.gov.ua/"
},
"name": "Державне управління справами",
"address": {
"postalCode": "01220",
"countryName": "Україна",
"streetAddress": "вул. Банкова, 11, корпус 1",
"region": "м. Київ",
"locality": "м. Київ"
}
}
],
"owner": "broker",
"id": "cbaa01edfc704658b0f98486ba015ad0"
}
}
And activate a bid:
PATCH /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids/cbaa01edfc704658b0f98486ba015ad0?acc_token=5c483486da504fc992e559535052e741 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
null
And upload license (with documentType: financialLicense
):
POST /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids/cbaa01edfc704658b0f98486ba015ad0/documents?acc_token=5c483486da504fc992e559535052e741 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 373
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"url": "http://public.docs-sandbox.ea.openprocurement.org/get/959b330f5d874413b105116355c48dc1?KeyID=8e787cc1&Signature=Wav8Wdyk7xRdBjqck1A0GxLxsHBp1isZH9e6BxyfTvdfLNKddK9QPO5q4yxfqo6ctqNEDea%2BJrJxItFrQxbKAA%3D%3D",
"title": "FinancialLicense.pdf",
"format": "application/pdf",
"hash": "md5:00000000000000000000000000000000",
"documentType": "financialLicense"
}
}
201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids/cbaa01edfc704658b0f98486ba015ad0/documents/f7e3f3aa30a148e6b71152f0276fc2a7
{
"data": {
"hash": "md5:00000000000000000000000000000000",
"format": "application/pdf",
"url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids/cbaa01edfc704658b0f98486ba015ad0/documents/f7e3f3aa30a148e6b71152f0276fc2a7?download=959b330f5d874413b105116355c48dc1",
"title": "FinancialLicense.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.934963+03:00",
"documentType": "financialLicense",
"dateModified": "2017-03-29T15:47:32.934993+03:00",
"id": "f7e3f3aa30a148e6b71152f0276fc2a7"
}
}
It is possible to check the uploaded documents:
GET /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids/cbaa01edfc704658b0f98486ba015ad0/documents?acc_token=5c483486da504fc992e559535052e741 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/a66af4ecf50e4a9ba3c0a287b0c13de1/bids/cbaa01edfc704658b0f98486ba015ad0/documents/f7e3f3aa30a148e6b71152f0276fc2a7?download=959b330f5d874413b105116355c48dc1",
"title": "FinancialLicense.pdf",
"documentOf": "tender",
"datePublished": "2017-03-29T15:47:32.934963+03:00",
"documentType": "financialLicense",
"dateModified": "2017-03-29T15:47:32.934993+03:00",
"id": "f7e3f3aa30a148e6b71152f0276fc2a7"
}
]
}
For the best effect (biggest economy) auction should have multiple bidders registered:
POST /api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1004
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"qualified": true,
"tenderers": [
{
"additionalIdentifiers": [
{
"scheme": "UA-FIN",
"id": "А01 457213"
}
],
"contactPoint": {
"name": "Державне управління справами",
"telephone": "0440000000"
},
"identifier": {
"scheme": "UA-EDR",
"id": "00037256",
"uri": "http://www.dus.gov.ua/"
},
"name": "Державне управління справами",
"address": {
"countryName": "Україна",
"postalCode": "01220",
"region": "м. Київ",
"streetAddress": "вул. Банкова, 11, корпус 1",
"locality": "м. Київ"
}
}
],
"value": {
"currency": "UAH",
"amount": 479,
"valueAddedTaxIncluded": true
},
"eligible": true
}
}
201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/a66af4ecf50e4a9ba3c0a287b0c13de1/bids/fb88698e775146959983b862e0822e40
{
"access": {
"token": "fcf859715f234d02bfd3ea38288c6c7d"
},
"data": {
"status": "active",
"eligible": true,
"value": {
"currency": "UAH",
"amount": 479.0,
"valueAddedTaxIncluded": true
},
"date": "2017-03-29T15:47:33.022660+03:00",
"qualified": true,
"tenderers": [
{
"additionalIdentifiers": [
{
"scheme": "UA-FIN",
"id": "А01 457213"
}
],
"contactPoint": {
"name": "Державне управління справами",
"telephone": "0440000000"
},
"identifier": {
"scheme": "UA-EDR",
"id": "00037256",
"uri": "http://www.dus.gov.ua/"
},
"name": "Державне управління справами",
"address": {
"postalCode": "01220",
"countryName": "Україна",
"streetAddress": "вул. Банкова, 11, корпус 1",
"region": "м. Київ",
"locality": "м. Київ"
}
}
],
"owner": "broker",
"id": "fb88698e775146959983b862e0822e40"
}
}
2 Phase Commit¶
Creating auction with 2 Phase Commit¶
Let’s create auction in draft status:
POST /api/2.3/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1987
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"status": "draft",
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35
},
"procurementMethodDetails": "quick, accelerator=1440",
"tenderAttempts": 1,
"procurementMethodType": "dgfOtherAssets",
"value": {
"currency": "UAH",
"amount": 100
},
"dgfID": "219560",
"auctionPeriod": {
"startDate": "2017-04-12"
},
"items": [
{
"classification": {
"scheme": "CPV",
"id": "66113000-5",
"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/72737375d94941d0be9101e03ad1f2ea
{
"access": {
"token": "0a361047084244efa11702da631adc67"
},
"data": {
"procurementMethod": "open",
"auctionID": "UA-PS-2017-03-29-000001",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:28.230957+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"procurementMethodDetails": "quick, accelerator=1440",
"tenderAttempts": 1,
"procurementMethodType": "dgfOtherAssets",
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"submissionMethod": "electronicAuction",
"date": "2017-03-29T15:47:28.230957+03:00",
"status": "draft",
"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": "м. Київ"
}
},
"dgfID": "219560",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:28.230957+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"owner": "broker",
"dateModified": "2017-03-29T15:47:28.233931+03:00",
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "06b4a0e8017347de80a227fec7fdc098",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"id": "72737375d94941d0be9101e03ad1f2ea",
"awardCriteria": "highestCost"
}
}
And now let’s switch to active.tendering status:
PATCH /api/2.3/auctions/72737375d94941d0be9101e03ad1f2ea?acc_token=0a361047084244efa11702da631adc67 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 40
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"status": "active.tendering"
}
}
200 OK
Content-Type: application/json; charset=UTF-8
{
"data": {
"procurementMethod": "open",
"auctionID": "UA-PS-2017-03-29-000001",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:28.230957+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-04-11T23:59:50+03:00",
"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": "м. Київ"
}
},
"owner": "broker",
"id": "72737375d94941d0be9101e03ad1f2ea",
"title": "футляри до державних нагород",
"tenderAttempts": 1,
"procurementMethodDetails": "quick, accelerator=1440",
"dateModified": "2017-03-29T15:47:28.275761+03:00",
"status": "active.tendering",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:28.230957+03:00",
"endDate": "2017-04-11T23:59:50+03:00"
},
"auctionPeriod": {
"shouldStartAfter": "2017-04-12T00:00:00+03:00"
},
"procurementMethodType": "dgfOtherAssets",
"dgfID": "219560",
"date": "2017-03-29T15:47:28.275761+03:00",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "06b4a0e8017347de80a227fec7fdc098",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"awardCriteria": "highestCost"
}
}
Acceleration mode for sandbox¶
If you want to experiment with auctions, you can use acceleration mode and start your auction name with “TESTING”.
Acceleration mode was developed to enable dgfOtherAssets procedure testing in the sandbox and to reduce time frames of this procedure.
- To enable acceleration mode you will need to:
- add additional parameter mode with a value
test
; - set
quick, accelerator=1440
as text value for procurementMethodDetails. This parameter will accelerate auction periods. The number 1440 shows that restrictions and time frames will be reduced in 1440 times. - set
quick
as a value for submissionMethodDetails. This parameter works only withmode = "test"
and will speed up auction start date.
- add additional parameter mode with a value
This mode will work only in the sandbox.
POST /api/2.3/auctions?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 2036
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org
{
"data": {
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35
},
"procurementMethodDetails": "quick, accelerator=1440",
"tenderAttempts": 1,
"procurementMethodType": "dgfOtherAssets",
"value": {
"currency": "UAH",
"amount": 100
},
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
"telephone": "0440000000"
},
"identifier": {
"scheme": "UA-EDR",
"id": "00037256",
"uri": "http://www.dus.gov.ua/"
},
"name": "Державне управління справами",
"address": {
"countryName": "Україна",
"postalCode": "01220",
"region": "м. Київ",
"streetAddress": "вул. Банкова, 11, корпус 1",
"locality": "м. Київ"
}
},
"submissionMethodDetails": "quick",
"mode": "test",
"auctionPeriod": {
"startDate": "2017-03-29T15:52:26.507025"
},
"items": [
{
"classification": {
"scheme": "CPV",
"id": "66113000-5",
"description": "Земельні ділянки"
},
"quantity": 5,
"description": "Земля для військовослужбовців",
"unit": {
"code": "44617100-9",
"name": "item"
},
"address": {
"countryName": "Україна",
"postalCode": "79000",
"region": "м. Київ",
"streetAddress": "вул. Банкова 1",
"locality": "м. Київ"
}
}
],
"dgfID": "219560"
}
}
201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/4c9a3e70b85847e58639e469e3708443
{
"access": {
"token": "32aa7a2aa7ed47dcbd37d7f7d84a26ef"
},
"data": {
"procurementMethod": "open",
"auctionID": "UA-PS-2017-03-29-000001",
"enquiryPeriod": {
"startDate": "2017-03-29T15:47:29.135030+03:00",
"endDate": "2017-03-29T15:51:36.821950+03:00"
},
"submissionMethod": "electronicAuction",
"next_check": "2017-03-29T15:51:36.821950+03:00",
"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": "м. Київ"
}
},
"owner": "broker",
"title_en": "[TESTING] ",
"id": "4c9a3e70b85847e58639e469e3708443",
"title": "[ТЕСТУВАННЯ] футляри до державних нагород",
"tenderAttempts": 1,
"procurementMethodDetails": "quick, accelerator=1440",
"dateModified": "2017-03-29T15:47:29.137781+03:00",
"status": "active.tendering",
"tenderPeriod": {
"startDate": "2017-03-29T15:47:29.135030+03:00",
"endDate": "2017-03-29T15:51:36.821950+03:00"
},
"auctionPeriod": {
"shouldStartAfter": "2017-03-29T15:51:36.821950+03:00"
},
"procurementMethodType": "dgfOtherAssets",
"dgfID": "219560",
"date": "2017-03-29T15:47:29.135030+03:00",
"submissionMethodDetails": "quick",
"items": [
{
"description": "Земля для військовослужбовців",
"classification": {
"scheme": "CPV",
"description": "Земельні ділянки",
"id": "66113000-5"
},
"address": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"id": "71f3612361194ca483bdcad685332064",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"value": {
"currency": "UAH",
"amount": 100.0,
"valueAddedTaxIncluded": true
},
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"mode": "test",
"title_ru": "[ТЕСТИРОВАНИЕ] ",
"awardCriteria": "highestCost"
}
}
Synchronization¶
- During normal auction synchronization via
/auctions
test auctions are not visible. - To get test auctions synchronize via
/auctions?mode=test
. - If you synchronize via
/auctions?mode=all
, then you will get all auctions. - Auction mode can be set only on auction creation, it can not be set later.