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.
  • 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).

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.

Change log

0.1

Released: not released

Next steps

You might find it helpful to look at the Tutorial.

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, required

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.

tenderAttempts:

integer

The number which represents what time (from 1 up to 8) tender is taking place.

value:

Value, required

Total available auction budget. Bids lower than value will be rejected.

OpenContracting Description: The total estimated value of the procurement.

guarantee:

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 procuringEntity and answers to them.

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.

minimalStep:

Value, required

The minimal step of auction. Validation rules:

  • amount should be greater than Auction.value.amount
  • currency should either be absent or match Auction.value.currency
  • valueAddedTaxIncluded should either be absent or match Auction.value.valueAddedTaxIncluded
awards:

List of Award objects

All qualifications (disqualifications and awards).

contracts:

List of Contract objects

enquiryPeriod:

Period

Period when questions are allowed.

OpenContracting Description: The period during which enquiries may be made and will be answered.

tenderPeriod:

Period

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

active.tendering:
 Tendering period (tendering)
active.auction:Auction period (auction)
active.qualification:
 Winner qualification (qualification)
active.awarded:Standstill period (standstill)
unsuccessful:Unsuccessful auction (unsuccessful)
complete:Complete auction (complete)
cancelled:Cancelled auction (cancelled)

Auction status.

eligibilityCriteria:
 

string, read-only

Required for dgfFinancialAssets procedure.

This field is multilingual:

  • Ukrainian by default - До участі допускаються лише ліцензовані фінансові установи.
  • eligibilityCriteria_ru (Russian) - К участию допускаются только лицензированные финансовые учреждения.
  • eligibilityCriteria_en (English) - Only licensed financial institutions are eligible to participate.
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:

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:

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:

Classification

OpenContracting Description: The primary classification for the item. See the itemClassificationScheme to identify preferred classification lists, including CAV and GSIN.

It is required for classification.scheme to be CAV. The classification.id should be valid CAV code.

schema_properties:
 

SchemaProperties

OpenContracting Description: A detailed specification of the fields and data structures to use when publishing contracting data.

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. This may also be used to present codes from an internal classification scheme.

It is required to have at least one item with ДКПП as scheme.

unit:

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

address:

Address

Address, where the item is located.

location:

dictionary

Geographical coordinates of the location. Element consists of the following items:

latitude:string, required
longitude:string, required
elevation:string, optional, usually not used

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

SchemaProperties

Schema

code:

string, required, should match classification.id

version:

string, optional, identifies the scheme version

If not specified, the latest version will be used.

properties:

dictionary, match the version and code used

The detailed description is given here: http://schemas.api-docs.ea.openprocurement.io/en/latest/

Document

Schema

id:

string, auto-generated

documentType:

string

Possible values for Auction

  • notice - Auction notice

    The formal notice that gives details of an auction. This may be a link to a downloadable document, to a web page, or to an official gazette in which the notice is contained.

  • technicalSpecifications - Technical Specifications

    Detailed technical information about goods or services to be provided.

  • evaluationCriteria - Evaluation Criteria

    Information about how bids will be evaluated.

  • clarifications - Clarifications to bidders questions

    Including replies to issues raised in pre-bid conferences.

  • bidders - Information on bidders

    Information on bidders or participants, their validation documents and any procedural exemptions for which they qualify.

  • virtualDataRoom - Virtual Data Room (available only for the dgfFinancialAssets procedure, see Fin. Tutorial)

  • illustration - Illustrations

Possible values for Award

  • winningBid - Winning Bid

Possible values for Contract

  • notice - Contract notice

    The formal notice that gives details of a contract being signed and valid to start implementation. This may be a link to a downloadable document, to a web page, or to an official gazette in which the notice is contained.

  • contractSigned - Signed Contract

  • contractAnnexe - Annexes to the Contract

Possible values for Bid

  • commercialProposal - Сommercial proposal

  • qualificationDocuments - Qualification documents

  • eligibilityDocuments - Eligibility documents

  • financialLicense - License (available only for the dgfFinancialAssets procedure, see Fin. Tutorial)

  • auctionProtocol - Auction protocol

    Auction protocol describes all participants and determines the candidate (participant that has submitted the highest bid proposal during the auction).

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:

  • auction
  • item
relatedItem:

string

ID of related Item.

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:

  • draft
  • active
value:

Value, required

Validation rules:

  • amount should be less than Auction.value.amout
  • currency should either be absent or match Auction.value.currency
  • valueAddedTaxIncluded should either be absent or match Auction.value.valueAddedTaxIncluded
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.

Parameter

Schema

code:

string, required

Feature code.

value:

float, required

Feature value.

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:

  • pending.verification - the procedure awaits the auction protocol to be uploaded
  • pending.payment - the procedure awaits the payment to be made
  • unsuccessful - the award has been rejected by the qualification committee (bank)
  • active - the auction is awarded to the bidder from the bid_id
  • pending.waiting - the second bidder awaits the first bidder to be disqualified
  • cancelled - the second bidder does not want to wait for the first bidder to be disqualified
verificationPeriod:
 

Period

The period of uploading (for the auction winner) and verification (for the bank) of the auction protocol

paymentPeriod:

Period

The period given to the winner of the auction to make a payment

signingPeriod:

Period

The period for the contract to be activated in the system (by the bank)

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:
 

Period

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:

  • auction
  • item
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:

  • draft
  • claim
  • answered
  • pending
  • invalid
  • declined
  • resolved
  • cancelled
type:

string

Possible values of type are:

  • claim
  • complaint
resolution:

string

Organizer’s resolution.

resolutionType:

string

Possible values of resolution type are:

  • invalid
  • declined
  • resolved
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:

  • pending - this contract has been proposed, but is not yet in force. It may be awaiting signature.
  • active - this contract has been signed by all the parties, and is now legally in force.
  • cancelled - this contract has been cancelled prior to being signed.
  • terminated - this contract was signed and in force, and has now come to a close. This may be due to a successful completion of the contract, or may be early termination due to some non-completion issue.
period:

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.

signingPeriod:

Period

OpenContracting Description: The start and end date for the contract signing.

datePaid:

string, Date

OpenContracting Description: The date the contract was paid.

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.

Prolongation

Schema

id:

UID, auto-generated

OpenContracting Description: The identifier for this prolongation.

dateCreated:

string, auto-generated, Date

OpenContracting Description: The date when Prolongation was created.

decisionID:

string, required

OpenContracting Description: Id of document, that allows prolongation.

status:

string, required

OpenContracting Description: The current status of prolongation.

Possible values are:

  • draft - this prolongation has been proposed, but is not yet in force. It may be awaiting activation.
  • applied - this prolongation has been applied, and is now legally in force.
description:

string, required

OpenContracting Description: Prolongation description. Minimal length - 10 letters.

datePublished:

string, required, Date

OpenContracting Description: Date, when document, that caused this prolongation, came in force.

documents:

List of Document objects

OpenContracting Description: All documents and attachments related to the prolongation, including any notices.

reason:

string, required

OpenContracting Description: Reason, that caused prolongation.

Possible values are:

  • dgfPaymentImpossibility - Prolongation was caused by payment impossibility of buyer.
  • dgfLackOfDocuments - Prolongation was caused by lack of documents.
  • dgfLegalObstacles - Prolongation was caused by some legal obstacles.
  • other - Some other causes.

Period

Schema

startDate:

string, Date

OpenContracting Description: The start date for the period.

endDate:

string, Date

OpenContracting Description: The end date for the period.

startDate should always precede endDate.

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

Revision

Schema

date:

string, Date

Date when changes were recorded.

changes:

List of Change objects

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

Possible values are:
pending:Default. The request is being prepared.
active:Cancellation activated.
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:

  • auction

ProcuringEntity (Organizer)

Schema

name:

string, multilingual

OpenContracting Description: The common name of the organization.

identifier:

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

Possible values:
  • general - Organizer (general)
  • special - Organizer that operates in certain spheres of economic activity
  • other - Legal persons that are not organizers in the sense of the Law, but are state, utility, public enterprises, economic partnerships or associations of enterprises in which state or public utility share is 50 percent or more

Documents Uploading

All of the document uploading API endpoints follow the same set of rules.

Upload document with registration

  1. Register document upload in document service.

  2. Add document in API:

    POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
    Authorization: Basic YnJva2VyOg==
    Content-Length: 417
    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/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=2U7BkGETwxwi6cI%2Bfkbt2odN3kGpCtGwsvO%2B5%2FFRa%2FV0umUBzBEz1DwnYwVKHixY4lc0myZ%2FY0mXRqWjsRAaAg%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/0bbf22e936f24d158f6d695b84b2de2f/documents/96d79d45b88240f49fd044b0a9127472
    
    {
      "data": {
        "hash": "md5:00000000000000000000000000000000",
        "description": "document description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.546774+02:00",
        "documentType": "technicalSpecifications",
        "dateModified": "2018-03-13T14:17:03.546793+02:00",
        "id": "96d79d45b88240f49fd044b0a9127472"
      }
    }
    
  3. Upload document in document service.

Upload document without registration

  1. Upload document without registration.

  2. Add document in API:

    POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
    Authorization: Basic YnJva2VyOg==
    Content-Length: 417
    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/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=2U7BkGETwxwi6cI%2Bfkbt2odN3kGpCtGwsvO%2B5%2FFRa%2FV0umUBzBEz1DwnYwVKHixY4lc0myZ%2FY0mXRqWjsRAaAg%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/0bbf22e936f24d158f6d695b84b2de2f/documents/96d79d45b88240f49fd044b0a9127472
    
    {
      "data": {
        "hash": "md5:00000000000000000000000000000000",
        "description": "document description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.546774+02:00",
        "documentType": "technicalSpecifications",
        "dateModified": "2018-03-13T14:17:03.546793+02:00",
        "id": "96d79d45b88240f49fd044b0a9127472"
      }
    }
    

Award Workflow

For a more detailed information see Award

digraph G {
    subgraph cluster_1 {
        node [style=filled, color=lightblue];
        edge[style=dotted];
        "pending.waiting" -> cancelled[label="2nd award only" fontcolor=blue];
        node [style=filled, color=lightgrey];
        edge[label="***" style=solid];
        "pending" -> unsuccessful;
        edge[label="**" style=dashed];
        "pending" -> "acive";
        edge[label="*" style=solid];
        "pending.waiting" -> "pending";
        label = "Awarding Process";
        color=blue
    }
}

Legend

Blue nodes represent statuses for the 2nd award ONLY

* award for winner is always formed in pending.

** protocol is downloaded and award is switched to active by the organizer.

*** auction protocol was not uploaded and award was not activated

Roles

Chronograph:solid
Organizer:dashed
Participant:dotted

digraph G {
    subgraph cluster_1 {
        node [style=filled, color=lightgrey];
        edge[label="**" style=solid];
        "pending" -> "cancelled";
        edge[label="*" style=dashed];
        "pending" -> "active"
        label = "Contract Workflow";
        color=blue
    }
}

Legend

* document was downloaded to contract. The contract itself was successfully activated by the organizer.

** there was no document uploaded. The organizer din not activate the contract.

Procedure Description

  1. The award with the highest qualifying bid initially receives a pending status. The procedure enters the verificationPeriod stage, which lasts 0-4 business days. Unless the protocol is uploaded and confirmed by the organizer in 4 business days, the award receives an unsuccessful status. Otherwise, the organizer manually switches the award status to active. Simultaneously, the contract is being created in pending status.
  2. It is then when the qualification procedure enters the signingPeriod stage, which lasts up to 20 business days from the beginning of the highest bidder qualification process. Within this time, the organizer can optionally set the day when the payment has been received. Also the organizer should upload and activate the contract in the system by the end of the signingPeriod in order to successfully finish the qualification procedure. Otherwise - the contract will become cancelled and the qualification of the second highest qualifying bidder will begin given that they have not disqualified themselves by this time.
  3. The second highest qualifying bidder, immediately after the auction ending receives the pending.waiting status, in which by default they agree to wait for the end of the qualification of the highest qualifying bidder to be eligible to go through the qualification process if the highest bidder is disqualified. The only action that they can make is to manually cancel the award decision - withdraw the security deposit and lose the chance to become a winner of the auction. If that is done and the first highest qualifying bidder becomes unsuccessful, the procedure receives the unsuccessful status. Provided that first award gets disqualified while the second has not disqualified themselves, the second award automatically changes its status from pending.waiting to pending, after which they undergo the same qualification procedure as outlined above for the first award.

Notes

  1. For the bidder to be qualified and not invalidated, the bid should be in the amount of more or equal to the starting price of the auction + the minimal step of the auction.

    1.1. In case the first two highest bids do not exceed the amount of starting price + the minimal step, the awards are not being formed at all, and the procedure automatically becomes “unsuccessful”

    1.2 In case the second highest bid is smaller than the starting price + the minimal step, two awards are formed with the smaller one becoming unsuccessful immediately. The first highest bid (if larger than the starting price + minimum step) undergoes the awarding procedure and can win the auction.

  2. The organizer can disqualify the award at any stage of the awarding process up to the moment, when the contract is created in the system.

  3. The second highest qualifying bidder can disqualify themselves at any point in time BEFORE the start of their qualification process.

Statuses

pending.waiting:
 

The second highest valid bidder awaits for the qualification of the first highest valid bidder. The former can choose to refuse to wait and withdraw his security deposit.

cancelled:

Terminal status.

pending:
Award:Awaiting protocol upload and confirmation by the organizer. The highest valid bidder is able to submit the protocol as well, although it is not sufficient to move to the next status.
Contract:Awaiting for the contract to be signed (uploaded and activated in the system by the organizer). After the end of the “signingPeriod”, the status becomes terminal.
active:
Award:Auction protocol was downloaded so that the award could be switched to active by the organizer.
Contract:The document was downloaded to contract so that the status of the object could be switched to active by the organizer.
unsuccessful:

Terminal status.

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: 2028
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

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

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

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

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


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

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

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

Let’s see what listing of auctions reveals us:

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


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

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

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

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

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

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


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

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

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

Let’s check what auction registry contains:

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


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=2018-03-13T14%3A17%3A03.356036%2B02%3A00",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2018-03-13T14%3A17%3A03.356036%2B02%3A00",
    "offset": "2018-03-13T14:17:03.356036+02:00"
  },
  "data": [
    {
      "id": "0bbf22e936f24d158f6d695b84b2de2f",
      "dateModified": "2018-03-13T14:17:03.356036+02:00"
    }
  ]
}

And indeed we have 2 auctions now.

Modifying auction

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

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

{
  "data": {
    "tenderPeriod": {
      "endDate": "2018-03-28T14:17:13.484651+02:00"
    }
  }
}


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

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

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

Checking the listing again reflects the new modification date:

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


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

{
  "next_page": {
    "path": "/api/2.3/auctions?offset=2018-03-13T14%3A17%3A03.462172%2B02%3A00",
    "uri": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions?offset=2018-03-13T14%3A17%3A03.462172%2B02%3A00",
    "offset": "2018-03-13T14:17:03.462172+02:00"
  },
  "data": [
    {
      "id": "0bbf22e936f24d158f6d695b84b2de2f",
      "dateModified": "2018-03-13T14:17:03.356036+02:00"
    },
    {
      "id": "40afbcdf2fa0418285fb46bc9313338a",
      "dateModified": "2018-03-13T14:17:03.422258+02:00"
    },
    {
      "id": "db317b228860465fb8a8d8efb173dddf",
      "dateModified": "2018-03-13T14:17:03.462172+02:00"
    }
  ]
}

Uploading documentation

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 417
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/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=2U7BkGETwxwi6cI%2Bfkbt2odN3kGpCtGwsvO%2B5%2FFRa%2FV0umUBzBEz1DwnYwVKHixY4lc0myZ%2FY0mXRqWjsRAaAg%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/0bbf22e936f24d158f6d695b84b2de2f/documents/96d79d45b88240f49fd044b0a9127472

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "document description",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.546774+02:00",
    "documentType": "technicalSpecifications",
    "dateModified": "2018-03-13T14:17:03.546793+02:00",
    "id": "96d79d45b88240f49fd044b0a9127472"
  }
}

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/0bbf22e936f24d158f6d695b84b2de2f/documents/96d79d45b88240f49fd044b0a9127472 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/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.546774+02:00",
    "previousVersions": [],
    "documentType": "technicalSpecifications",
    "dateModified": "2018-03-13T14:17:03.546793+02:00",
    "id": "96d79d45b88240f49fd044b0a9127472"
  }
}

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 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/c3c7b47f04ab4210b81f332355d0f809?KeyID=e578eecc&Signature=n%2F2QZcMYO5G3wxFGmdO%2B9NqjOG8Tln%2BFn0RCx3SVB8hxkndYkM5%2B1Gs1XXTjoOg3IlQ111RGZtA4GMytUEseDQ%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/0bbf22e936f24d158f6d695b84b2de2f/documents/c957cd4a71e04e20a88bade4ab8040ca

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c3c7b47f04ab4210b81f332355d0f809?KeyID=e578eecc&Signature=s%252BtHhw1Fcgy%2Fl%2FqvfZvW%252B7sAagthmXks6PL7PQjOZPuycttyL2cy6D61%2FA6DOlzotSEX8Th0N0s%2F7qONeuXpCQ%253D%253D",
    "title": "AwardCriteria.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.589862+02:00",
    "dateModified": "2018-03-13T14:17:03.589883+02:00",
    "id": "c957cd4a71e04e20a88bade4ab8040ca"
  }
}

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

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.353632+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T14:17:03.353673+02:00",
      "id": "33b3a7c855ec4b63bf221dc8bd4d3ec1"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.546774+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T14:17:03.546793+02:00",
      "id": "96d79d45b88240f49fd044b0a9127472"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c3c7b47f04ab4210b81f332355d0f809?KeyID=e578eecc&Signature=s%252BtHhw1Fcgy%2Fl%2FqvfZvW%252B7sAagthmXks6PL7PQjOZPuycttyL2cy6D61%2FA6DOlzotSEX8Th0N0s%2F7qONeuXpCQ%253D%253D",
      "title": "AwardCriteria.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.589862+02:00",
      "dateModified": "2018-03-13T14:17:03.589883+02:00",
      "id": "c957cd4a71e04e20a88bade4ab8040ca"
    }
  ]
}

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

PUT /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents/c957cd4a71e04e20a88bade4ab8040ca?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 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/cb9db16b829642f18d388d5176d5c8e2?KeyID=e578eecc&Signature=8MVaTsAIp4YhiggTp%2BQrXvcZKzHnzLTdQH72gOljZl5v7ngHGc0Ug%2FuIVrOxYCmCjKPycEXuMy6YV819jflQDg%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/cb9db16b829642f18d388d5176d5c8e2?KeyID=e578eecc&Signature=DFWXQjyz41gOggupdgTs7MuX6FD6YYMZvtKMjGGJMJHqlKYwZH0jNteL%2FQkPklEahzMrdSRHJpYPOMRH%252BZeQBA%253D%253D",
    "title": "AwardCriteria-2.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.589862+02:00",
    "dateModified": "2018-03-13T14:17:03.640224+02:00",
    "id": "c957cd4a71e04e20a88bade4ab8040ca"
  }
}

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

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.353632+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T14:17:03.353673+02:00",
      "id": "33b3a7c855ec4b63bf221dc8bd4d3ec1"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.546774+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T14:17:03.546793+02:00",
      "id": "96d79d45b88240f49fd044b0a9127472"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/cb9db16b829642f18d388d5176d5c8e2?KeyID=e578eecc&Signature=DFWXQjyz41gOggupdgTs7MuX6FD6YYMZvtKMjGGJMJHqlKYwZH0jNteL%2FQkPklEahzMrdSRHJpYPOMRH%252BZeQBA%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.589862+02:00",
      "dateModified": "2018-03-13T14:17:03.640224+02:00",
      "id": "c957cd4a71e04e20a88bade4ab8040ca"
    }
  ]
}

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/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 428
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/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=kHaVqwKfAY4OKhX5I4bgut2noUdDfJzdzmv0cj4hWTtu2fwCE7rpb8j9zPPd3t0K5BW8ElC4r2%2BJ5Mx1lwfEBQ%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/0bbf22e936f24d158f6d695b84b2de2f/documents/f8d934e325d444c79d69e5a312d6b44d

{
  "data": {
    "index": 1,
    "hash": "md5:00000000000000000000000000000000",
    "description": "First illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=dTDhv644zx0urZeFe8%2F5t7ZiJC3VcdFv8B%252Bf%2FLxyAK7liqrSmMNXMope3hrj9Hn4MJ%252BPmGUG65lNNUCBsBYhCA%253D%253D",
    "title": "first_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.689220+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T14:17:03.689239+02:00",
    "id": "f8d934e325d444c79d69e5a312d6b44d"
  }
}

We can check whether illustration is uploaded.

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.353632+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T14:17:03.353673+02:00",
      "id": "33b3a7c855ec4b63bf221dc8bd4d3ec1"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.546774+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T14:17:03.546793+02:00",
      "id": "96d79d45b88240f49fd044b0a9127472"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/cb9db16b829642f18d388d5176d5c8e2?KeyID=e578eecc&Signature=DFWXQjyz41gOggupdgTs7MuX6FD6YYMZvtKMjGGJMJHqlKYwZH0jNteL%2FQkPklEahzMrdSRHJpYPOMRH%252BZeQBA%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.589862+02:00",
      "dateModified": "2018-03-13T14:17:03.640224+02:00",
      "id": "c957cd4a71e04e20a88bade4ab8040ca"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=dTDhv644zx0urZeFe8%2F5t7ZiJC3VcdFv8B%252Bf%2FLxyAK7liqrSmMNXMope3hrj9Hn4MJ%252BPmGUG65lNNUCBsBYhCA%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.689220+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T14:17:03.689239+02:00",
      "id": "f8d934e325d444c79d69e5a312d6b44d"
    }
  ]
}

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 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": "Second illustration description",
    "title": "second_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/173103c9c3bc4a25b2b6bacc9e865e2c?KeyID=e578eecc&Signature=X7qHlXnvUX7xYMaCXKhZTZoiExxclc5L6au70hd6tdMdWwrUs6lWJ8%2FLpH%2BJw0turFVn9tUhB1euDnDA98GeAQ%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/0bbf22e936f24d158f6d695b84b2de2f/documents/4de8c3f245db45bdb378b07749fd28c2

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Second illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/173103c9c3bc4a25b2b6bacc9e865e2c?KeyID=e578eecc&Signature=9%2Fe6BkwhMDS6bF4XIQhRDfuPoRXpKbJIFWixjkltzsi75o3G7CgvVUfcvM7K9G3xMwUSaUC5AbNqs35ZF68OCA%253D%253D",
    "title": "second_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.739578+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T14:17:03.739603+02:00",
    "id": "4de8c3f245db45bdb378b07749fd28c2"
  }
}

Add third illustration:

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 428
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/3f37699d5d5245b2a5bfdbd38ce8b6a4?KeyID=e578eecc&Signature=UIe1TJKWpjHXf5Cp72FbJ697vLlGgdWGikCGFsN58IgXOsmNRBjBOymQrKCGDypoOwjs6w5gWXK4dWRc%2Fb3hAg%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/0bbf22e936f24d158f6d695b84b2de2f/documents/049a1bd33dad4f0884051e12040987ed

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Third illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/3f37699d5d5245b2a5bfdbd38ce8b6a4?KeyID=e578eecc&Signature=HchmMKL9tE6GTUR9nX2kLsyElIEwKKK4DHFFTBD445eV0MmVlY6w3Hx2IF9N7loIZQwT9cBmQ4QKCVSMYqjtBw%253D%253D",
    "title": "third_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.782536+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T14:17:03.782568+02:00",
    "id": "049a1bd33dad4f0884051e12040987ed"
  }
}

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.353632+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T14:17:03.353673+02:00",
      "id": "33b3a7c855ec4b63bf221dc8bd4d3ec1"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.546774+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T14:17:03.546793+02:00",
      "id": "96d79d45b88240f49fd044b0a9127472"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/cb9db16b829642f18d388d5176d5c8e2?KeyID=e578eecc&Signature=DFWXQjyz41gOggupdgTs7MuX6FD6YYMZvtKMjGGJMJHqlKYwZH0jNteL%2FQkPklEahzMrdSRHJpYPOMRH%252BZeQBA%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.589862+02:00",
      "dateModified": "2018-03-13T14:17:03.640224+02:00",
      "id": "c957cd4a71e04e20a88bade4ab8040ca"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=dTDhv644zx0urZeFe8%2F5t7ZiJC3VcdFv8B%252Bf%2FLxyAK7liqrSmMNXMope3hrj9Hn4MJ%252BPmGUG65lNNUCBsBYhCA%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.689220+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T14:17:03.689239+02:00",
      "id": "f8d934e325d444c79d69e5a312d6b44d"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Second illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/173103c9c3bc4a25b2b6bacc9e865e2c?KeyID=e578eecc&Signature=9%2Fe6BkwhMDS6bF4XIQhRDfuPoRXpKbJIFWixjkltzsi75o3G7CgvVUfcvM7K9G3xMwUSaUC5AbNqs35ZF68OCA%253D%253D",
      "title": "second_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.739578+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T14:17:03.739603+02:00",
      "id": "4de8c3f245db45bdb378b07749fd28c2"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Third illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/3f37699d5d5245b2a5bfdbd38ce8b6a4?KeyID=e578eecc&Signature=HchmMKL9tE6GTUR9nX2kLsyElIEwKKK4DHFFTBD445eV0MmVlY6w3Hx2IF9N7loIZQwT9cBmQ4QKCVSMYqjtBw%253D%253D",
      "title": "third_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.782536+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T14:17:03.782568+02:00",
      "id": "049a1bd33dad4f0884051e12040987ed"
    }
  ]
}

Enquiries

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/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/0bbf22e936f24d158f6d695b84b2de2f/questions/3dcd13080c7b4143827630e2202ffb65

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

Organizer can answer them:

PATCH /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/questions/3dcd13080c7b4143827630e2202ffb65?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 162
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

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

And one can retrieve the question list:

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


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

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

Or an individual answer:

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


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

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

Registering bid

Bidder can register a bid in draft status:

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/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/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002

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

And activate a bid:

PATCH /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002?acc_token=3d81a5bab08b499fa57792f94a076401 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": "2018-03-13T14:17:04.076622+02:00",
    "qualified": true,
    "tenderers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137256",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "owner": "broker",
    "id": "be3bb6d966f34c7389a71bfdada36002"
  }
}

And upload proposal document:

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002/documents?acc_token=3d81a5bab08b499fa57792f94a076401 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/224ccae28f16433a88a2b8d0fa392677?KeyID=e578eecc&Signature=NhLhqV2okskImR4Sc0Ou9OPcfQknG%2BABwto8Xp1Egx0WoEeb6R4o7FvjlhZoNIloOEGQmgFQ09Ki4aE37PfZAw%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/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002/documents/2e23708cc8bd4139a76355a5243b887f

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002/documents/2e23708cc8bd4139a76355a5243b887f?download=224ccae28f16433a88a2b8d0fa392677",
    "title": "Proposal.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:04.200779+02:00",
    "dateModified": "2018-03-13T14:17:04.200804+02:00",
    "id": "2e23708cc8bd4139a76355a5243b887f"
  }
}

It is possible to check the uploaded documents:

GET /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002/documents?acc_token=3d81a5bab08b499fa57792f94a076401 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/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002/documents/2e23708cc8bd4139a76355a5243b887f?download=224ccae28f16433a88a2b8d0fa392677",
      "title": "Proposal.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:04.200779+02:00",
      "dateModified": "2018-03-13T14:17:04.200804+02:00",
      "id": "2e23708cc8bd4139a76355a5243b887f"
    }
  ]
}

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/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/0bbf22e936f24d158f6d695b84b2de2f/bids/6742acc9246c45059d4f46aad4c65f1c

{
  "access": {
    "token": "bf827cf4885e47f4a8dd584d33c7f06e"
  },
  "data": {
    "status": "active",
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T14:17:04.290704+02:00",
    "qualified": true,
    "tenderers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "owner": "broker",
    "id": "6742acc9246c45059d4f46aad4c65f1c"
  }
}

Auction

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

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


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

{
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2018-03-13-000001",
    "auctionUrl": "http://auction-sandbox.openprocurement.org/auctions/0bbf22e936f24d158f6d695b84b2de2f",
    "enquiryPeriod": {
      "startDate": "2018-03-06T14:16:54.773609+02:00",
      "endDate": "2018-03-13T14:16:54.773609+02:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2018-03-13T15:00:54.773609+02:00",
    "awardCriteria": "highestCost",
    "questions": [
      {
        "description": "Просимо додати таблицю потрібної калорійності харчування",
        "title": "Калорійність",
        "date": "2018-03-13T14:17:03.921741+02:00",
        "answer": "Таблицю додано в файлі \"Kalorijnist.xslx\"",
        "id": "3dcd13080c7b4143827630e2202ffb65",
        "questionOf": "tender"
      }
    ],
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "0bbf22e936f24d158f6d695b84b2de2f",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.353632+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T14:17:03.353673+02:00",
        "id": "33b3a7c855ec4b63bf221dc8bd4d3ec1"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "document description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.546774+02:00",
        "documentType": "technicalSpecifications",
        "dateModified": "2018-03-13T14:17:03.546793+02:00",
        "id": "96d79d45b88240f49fd044b0a9127472"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c3c7b47f04ab4210b81f332355d0f809?KeyID=e578eecc&Signature=s%252BtHhw1Fcgy%2Fl%2FqvfZvW%252B7sAagthmXks6PL7PQjOZPuycttyL2cy6D61%2FA6DOlzotSEX8Th0N0s%2F7qONeuXpCQ%253D%253D",
        "title": "AwardCriteria.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.589862+02:00",
        "dateModified": "2018-03-13T14:17:03.589883+02:00",
        "id": "c957cd4a71e04e20a88bade4ab8040ca"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/cb9db16b829642f18d388d5176d5c8e2?KeyID=e578eecc&Signature=DFWXQjyz41gOggupdgTs7MuX6FD6YYMZvtKMjGGJMJHqlKYwZH0jNteL%2FQkPklEahzMrdSRHJpYPOMRH%252BZeQBA%253D%253D",
        "title": "AwardCriteria-2.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.589862+02:00",
        "dateModified": "2018-03-13T14:17:03.640224+02:00",
        "id": "c957cd4a71e04e20a88bade4ab8040ca"
      },
      {
        "index": 1,
        "hash": "md5:00000000000000000000000000000000",
        "description": "First illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=dTDhv644zx0urZeFe8%2F5t7ZiJC3VcdFv8B%252Bf%2FLxyAK7liqrSmMNXMope3hrj9Hn4MJ%252BPmGUG65lNNUCBsBYhCA%253D%253D",
        "title": "first_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.689220+02:00",
        "documentType": "illustration",
        "dateModified": "2018-03-13T14:17:03.689239+02:00",
        "id": "f8d934e325d444c79d69e5a312d6b44d"
      },
      {
        "index": 2,
        "hash": "md5:00000000000000000000000000000000",
        "description": "Second illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/173103c9c3bc4a25b2b6bacc9e865e2c?KeyID=e578eecc&Signature=9%2Fe6BkwhMDS6bF4XIQhRDfuPoRXpKbJIFWixjkltzsi75o3G7CgvVUfcvM7K9G3xMwUSaUC5AbNqs35ZF68OCA%253D%253D",
        "title": "second_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.739578+02:00",
        "documentType": "illustration",
        "dateModified": "2018-03-13T14:17:03.739603+02:00",
        "id": "4de8c3f245db45bdb378b07749fd28c2"
      },
      {
        "index": 2,
        "hash": "md5:00000000000000000000000000000000",
        "description": "Third illustration description",
        "format": "image/jpeg",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/3f37699d5d5245b2a5bfdbd38ce8b6a4?KeyID=e578eecc&Signature=HchmMKL9tE6GTUR9nX2kLsyElIEwKKK4DHFFTBD445eV0MmVlY6w3Hx2IF9N7loIZQwT9cBmQ4QKCVSMYqjtBw%253D%253D",
        "title": "third_illustration.jpeg",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.782536+02:00",
        "documentType": "illustration",
        "dateModified": "2018-03-13T14:17:03.782568+02:00",
        "id": "049a1bd33dad4f0884051e12040987ed"
      },
      {
        "title": "Familiarization with bank asset",
        "format": "offline/on-site-examination",
        "accessDetails": "Familiar with asset: days, time, address",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:03.845246+02:00",
        "documentType": "x_dgfAssetFamiliarization",
        "dateModified": "2018-03-13T14:17:03.845265+02:00",
        "id": "4dcb4bee7c1345aa9577789ce354296d"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2018-03-13T14:17:04.474548+02:00",
    "status": "active.auction",
    "tenderPeriod": {
      "startDate": "2018-03-06T14:16:54.773609+02:00",
      "endDate": "2018-03-13T14:16:54.773609+02:00"
    },
    "auctionPeriod": {
      "startDate": "2018-03-13T14:16:54.773609+02:00",
      "shouldStartAfter": "2018-03-14T00:00:00+02:00"
    },
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2018-03-13T14:17:03.353285+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "0e9f197b5c394f2791241ec770c6bed3",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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

GET /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002?acc_token=3d81a5bab08b499fa57792f94a076401 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/0bbf22e936f24d158f6d695b84b2de2f/bids/be3bb6d966f34c7389a71bfdada36002/documents/2e23708cc8bd4139a76355a5243b887f?download=224ccae28f16433a88a2b8d0fa392677",
        "title": "Proposal.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:04.200779+02:00",
        "dateModified": "2018-03-13T14:17:04.200804+02:00",
        "id": "2e23708cc8bd4139a76355a5243b887f"
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T14:17:04.076622+02:00",
    "qualified": true,
    "tenderers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137256",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "owner": "broker",
    "id": "be3bb6d966f34c7389a71bfdada36002",
    "participationUrl": "http://auction-sandbox.openprocurement.org/auctions/0bbf22e936f24d158f6d695b84b2de2f?key_for_bid=be3bb6d966f34c7389a71bfdada36002"
  }
}

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

GET /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/bids/6742acc9246c45059d4f46aad4c65f1c?acc_token=bf827cf4885e47f4a8dd584d33c7f06e 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": "2018-03-13T14:17:04.290704+02:00",
    "qualified": true,
    "tenderers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "owner": "broker",
    "id": "6742acc9246c45059d4f46aad4c65f1c",
    "participationUrl": "http://auction-sandbox.openprocurement.org/auctions/0bbf22e936f24d158f6d695b84b2de2f?key_for_bid=6742acc9246c45059d4f46aad4c65f1c"
  }
}

Qualification

After the competitive auction two awards are created: * for the first candidate (a participant that has submitted the highest valid bid at the auction) - initially has a pending status and awaits auction protocol to be uploaded by the organizer; * for the second candidate (a participant that has submitted the second highest valid bid at the auction)- initially has a pending.waiting status.

There are two more scenarios that can happen after the competitive auction:
  • If the two highest bidders have invalid bids (lower than auction starting price + minimal step), the awards will not be created at all, and the qualification procedure will automatically receive the unsuccessful status.
  • If the second highest bidder has a bid that is less than the starting price + minimal step, two awards are created, with one of them receiving a pending.verification status and undergoing the qualification procedure, and the other (with an invalid bid) automatically becoming unsuccessful.
GET /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/awards HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.ea.openprocurement.org


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

{
  "data": [
    {
      "status": "pending",
      "paymentPeriod": {
        "startDate": "2018-03-13T14:17:04.704323+02:00"
      },
      "verificationPeriod": {
        "startDate": "2018-03-13T14:17:04.704323+02:00",
        "endDate": "2018-03-13T14:21:13.826545+02:00"
      },
      "signingPeriod": {
        "startDate": "2018-03-13T14:17:04.704323+02:00",
        "endDate": "2018-03-13T14:37:13.159878+02:00"
      },
      "suppliers": [
        {
          "contactPoint": {
            "email": "aagt@gmail.com",
            "telephone": "+380 (322) 91-69-30",
            "name": "Андрій Олексюк"
          },
          "identifier": {
            "scheme": "UA-EDR",
            "id": "00137226",
            "uri": "http://www.sc.gov.ua/"
          },
          "name": "ДКП «Книга»",
          "address": {
            "postalCode": "79013",
            "countryName": "Україна",
            "streetAddress": "вул. Островського, 34",
            "region": "м. Львів",
            "locality": "м. Львів"
          }
        }
      ],
      "complaintPeriod": {
        "startDate": "2018-03-13T14:17:04.704323+02:00"
      },
      "bid_id": "6742acc9246c45059d4f46aad4c65f1c",
      "value": {
        "currency": "UAH",
        "amount": 501.0,
        "valueAddedTaxIncluded": true
      },
      "date": "2018-03-13T14:17:04.704323+02:00",
      "id": "e2afb4cd836c44c8a2fc40b48ad81b19"
    },
    {
      "status": "pending.waiting",
      "complaintPeriod": {
        "startDate": "2018-03-13T14:17:04.704323+02:00"
      },
      "suppliers": [
        {
          "contactPoint": {
            "email": "soleksuk@gmail.com",
            "telephone": "+380 (432) 21-69-30",
            "name": "Сергій Олексюк"
          },
          "identifier": {
            "scheme": "UA-EDR",
            "id": "00137256",
            "uri": "http://www.sc.gov.ua/"
          },
          "name": "ДКП «Школяр»",
          "address": {
            "postalCode": "21100",
            "countryName": "Україна",
            "streetAddress": "вул. Островського, 33",
            "region": "м. Вінниця",
            "locality": "м. Вінниця"
          }
        }
      ],
      "bid_id": "be3bb6d966f34c7389a71bfdada36002",
      "value": {
        "currency": "UAH",
        "amount": 500.0,
        "valueAddedTaxIncluded": true
      },
      "date": "2018-03-13T14:17:04.704323+02:00",
      "id": "aa7678ac3df24b7f8d502e693633057e"
    }
  ]
}

Confirming qualification

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

It is the organizer’s duty to upload and confirm the protocol, as well as to switch the award to active status.

Otherwise, the award will automatically become unsuccessful”

Contract prolongation

Organizer can prolong contract signing period by creating a prolongation object:

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 172
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations

{
  "data": {
    "status": "draft",
    "decisionID": "ZM-937-99-92",
    "description": "Prolongation description",
    "dateCreated": "2018-03-13T14:16:54.838196+02:00",
    "reason": "other",
    "datePublished": "2018-03-13T14:16:55.353696+02:00",
    "id": "762193c7c2214c079849888f32cdc4dd"
  }
}

For the object to be prolonged the next data has to be included:

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations/762193c7c2214c079849888f32cdc4dd/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 226
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy846454802637$
Host: api-sandbox.ea.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations/762193c7c2214c079849888f32cdc4dd/documents/17ce25dd7add4ce8aa325d125d296edc

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/303f2bffebde4b318c95709af5ac50a4?KeyID=e578eecc&Signature=QKrRL7aJESdNsRJNQgZmyXMgetJvtlnW%2Ff5Xz%2F%252Bh75YDVcpOxtUW7eXgnOWeweFR5J2tS2x154vmPXahjZKGBg%253D%253D",
    "title": "ProlongationDocument.doc",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:06.009999+02:00",
    "documentType": "prolongationProtocol",
    "dateModified": "2018-03-13T14:17:06.010021+02:00",
    "id": "17ce25dd7add4ce8aa325d125d296edc"
  }
}

Created prolongation has status “draft” by default, so there is a need to active it:

PATCH /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations/762193c7c2214c079849888f32cdc4dd?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 31
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "applied",
    "decisionID": "ZM-937-99-92",
    "description": "Prolongation description",
    "datePublished": "2018-03-13T14:16:55.353696+02:00",
    "reason": "other",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/303f2bffebde4b318c95709af5ac50a4?KeyID=e578eecc&Signature=QKrRL7aJESdNsRJNQgZmyXMgetJvtlnW%2Ff5Xz%2F%252Bh75YDVcpOxtUW7eXgnOWeweFR5J2tS2x154vmPXahjZKGBg%253D%253D",
        "title": "ProlongationDocument.doc",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:06.009999+02:00",
        "documentType": "prolongationProtocol",
        "dateModified": "2018-03-13T14:17:06.010021+02:00",
        "id": "17ce25dd7add4ce8aa325d125d296edc"
      }
    ],
    "dateCreated": "2018-03-13T14:16:54.838196+02:00",
    "id": "762193c7c2214c079849888f32cdc4dd"
  }
}

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 179
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations

{
  "data": {
    "status": "draft",
    "decisionID": "ZM-937-99-92-2",
    "description": "Long prolongation description",
    "dateCreated": "2018-03-13T14:16:54.838196+02:00",
    "reason": "other",
    "datePublished": "2018-03-13T14:16:55.353712+02:00",
    "id": "9fc59363c1684e54adc3903653e55576"
  }
}
POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations/9fc59363c1684e54adc3903653e55576/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 230
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy150028169653$
Host: api-sandbox.ea.openprocurement.org


201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations/9fc59363c1684e54adc3903653e55576/documents/478a3018e2604cfd97e5aed4838acabe

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7c5487d24abd4216a191edd76a21dea1?KeyID=e578eecc&Signature=PjJcFbyN%252BDxH3wc%252BbQJe7Y9r6koLwEM5F1LrQf9w90X8oFZZJPxSnkqCn7NJaa8v3h6rcRbWGCUNyoy63AdVDQ%253D%253D",
    "title": "LongProlongationDocument.doc",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:06.368154+02:00",
    "documentType": "prolongationProtocol",
    "dateModified": "2018-03-13T14:17:06.368174+02:00",
    "id": "478a3018e2604cfd97e5aed4838acabe"
  }
}
PATCH /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/prolongations/9fc59363c1684e54adc3903653e55576?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 31
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "applied",
    "decisionID": "ZM-937-99-92-2",
    "description": "Long prolongation description",
    "datePublished": "2018-03-13T14:16:55.353712+02:00",
    "reason": "other",
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7c5487d24abd4216a191edd76a21dea1?KeyID=e578eecc&Signature=PjJcFbyN%252BDxH3wc%252BbQJe7Y9r6koLwEM5F1LrQf9w90X8oFZZJPxSnkqCn7NJaa8v3h6rcRbWGCUNyoy63AdVDQ%253D%253D",
        "title": "LongProlongationDocument.doc",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:06.368154+02:00",
        "documentType": "prolongationProtocol",
        "dateModified": "2018-03-13T14:17:06.368174+02:00",
        "id": "478a3018e2604cfd97e5aed4838acabe"
      }
    ],
    "dateCreated": "2018-03-13T14:16:54.838196+02:00",
    "id": "9fc59363c1684e54adc3903653e55576"
  }
}

Disqualification of a candidate

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

POST /api/2.3/auctions/259c7703ce68422e8c436195e56505bf/awards/7d925e654ad942bd865f4bac5c6e34d1/documents?acc_token=90b60080a3a045f2b487d17fbbccf77a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 382
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/67a0367308ce4269b22fa529bd772b79?KeyID=4a8daaf3&Signature=fl6vi6S9a5XBXhBXpljZdlUPpYcQoG01LzhyfOMWeIzySemTOo%2FibA62MLZYHJRh3AL3hsgu7ADOkl1tKe90DQ%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/259c7703ce68422e8c436195e56505bf/awards/7d925e654ad942bd865f4bac5c6e34d1/documents/a98b4c463580499bb1a47c92f918485c

{
  "data": {
    "dateModified": "2018-03-13T14:17:00.666701+02:00",
    "hash": "md5:00000000000000000000000000000000",
    "description": "Disqualification reason",
    "author": "auction_owner",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/67a0367308ce4269b22fa529bd772b79?KeyID=4a8daaf3&Signature=8uduzwaCrRZAEQLjv9b3qK3M9PjBGb%2FKnbQR8bXUueGXAQGFHV50QRRPNAuhjXS6%2F1eJ6JA5EqxFaCH6VQ4GBg%253D%253D",
    "format": "application/pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:00.666680+02:00",
    "title": "Disqualified_reason.pdf",
    "id": "a98b4c463580499bb1a47c92f918485c"
  }
}

And disqualify candidate:

PATCH /api/2.3/auctions/259c7703ce68422e8c436195e56505bf/awards/7d925e654ad942bd865f4bac5c6e34d1?acc_token=90b60080a3a045f2b487d17fbbccf77a HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 146
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "unsuccessful",
    "paymentPeriod": {
      "startDate": "2018-03-13T14:17:00.465960+02:00"
    },
    "documents": [
      {
        "dateModified": "2018-03-13T14:17:00.574662+02:00",
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/27e90f8b3a4a44548f39c9f566a24c6f?KeyID=4a8daaf3&Signature=rQY4T5kNmZAb4sUTXeBO%252BORoWHwlrqNbV7%2FSlGprf8VdusX4zTcBDBFuWcQvGzLbiwut7lhCSQ2ZfxFZiu3lCQ%253D%253D",
        "author": "bid_owner",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:00.574642+02:00",
        "documentType": "auctionProtocol",
        "title": "auction_protocol.pdf",
        "id": "034c7a0a36aa453d8e12bf2d352b73f7"
      },
      {
        "dateModified": "2018-03-13T14:17:00.666701+02:00",
        "hash": "md5:00000000000000000000000000000000",
        "description": "Disqualification reason",
        "author": "auction_owner",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/67a0367308ce4269b22fa529bd772b79?KeyID=4a8daaf3&Signature=8uduzwaCrRZAEQLjv9b3qK3M9PjBGb%2FKnbQR8bXUueGXAQGFHV50QRRPNAuhjXS6%2F1eJ6JA5EqxFaCH6VQ4GBg%253D%253D",
        "format": "application/pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:00.666680+02:00",
        "title": "Disqualified_reason.pdf",
        "id": "a98b4c463580499bb1a47c92f918485c"
      }
    ],
    "verificationPeriod": {
      "startDate": "2018-03-13T14:17:00.465960+02:00",
      "endDate": "2018-03-13T14:17:00.769362+02:00"
    },
    "description": "Candidate didn’t sign the auction protocol in 3 business days",
    "title": "Disqualified",
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137256",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "complaintPeriod": {
      "startDate": "2018-03-13T14:17:00.204168+02:00",
      "endDate": "2018-03-13T14:17:00.769362+02:00"
    },
    "bid_id": "a4f299a1dcd54224bb9821e58e8d6675",
    "value": {
      "currency": "UAH",
      "amount": 475.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T14:17:00.780676+02:00",
    "id": "7d925e654ad942bd865f4bac5c6e34d1",
    "signingPeriod": {
      "startDate": "2018-03-13T14:17:00.465960+02:00",
      "endDate": "2018-03-13T14:37:08.924293+02:00"
    }
  }
}

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

Refusal of waiting by another participant

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

PATCH /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/awards/aa7678ac3df24b7f8d502e693633057e?acc_token=3d81a5bab08b499fa57792f94a076401 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 33
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "data": {
    "status": "cancelled",
    "complaintPeriod": {
      "startDate": "2018-03-13T14:17:04.704323+02:00",
      "endDate": "2018-03-13T14:17:04.876235+02:00"
    },
    "suppliers": [
      {
        "contactPoint": {
          "email": "soleksuk@gmail.com",
          "telephone": "+380 (432) 21-69-30",
          "name": "Сергій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137256",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Школяр»",
        "address": {
          "postalCode": "21100",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 33",
          "region": "м. Вінниця",
          "locality": "м. Вінниця"
        }
      }
    ],
    "bid_id": "be3bb6d966f34c7389a71bfdada36002",
    "value": {
      "currency": "UAH",
      "amount": 500.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T14:17:04.883288+02:00",
    "id": "aa7678ac3df24b7f8d502e693633057e"
  }
}

Signing contract

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

Uploading contract documentation

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 349
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/22d3b8cc510d4be880b1e16cea384c31?KeyID=e578eecc&Signature=hKyJvWtGfWuhZeEv%2Fwv9dO3Pa9VuTrwCI2jByDFaMQhQoMxMa8Ki7x2DmVvO22iCBQ81IcSAiw6yB1zBtf%2FJCw%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/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/documents/8e9699adc2ca412eb7c9ea74a65d3ed9

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/22d3b8cc510d4be880b1e16cea384c31?KeyID=e578eecc&Signature=y%252BF%252BUGdh%2FLEYDdSri%2FDCYRIxHp8gf%252BpAewKgGvNuw%252BxkBdBRauis3I8G9a%2FkV0h9TjRM1IOvFMiLlyB1uvH9AQ%253D%253D",
    "title": "contract_first_document.doc",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:05.462936+02:00",
    "documentType": "prolongationProtocol",
    "dateModified": "2018-03-13T14:17:05.462956+02:00",
    "id": "8e9699adc2ca412eb7c9ea74a65d3ed9"
  }
}

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/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/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/22d3b8cc510d4be880b1e16cea384c31?KeyID=e578eecc&Signature=y%252BF%252BUGdh%2FLEYDdSri%2FDCYRIxHp8gf%252BpAewKgGvNuw%252BxkBdBRauis3I8G9a%2FkV0h9TjRM1IOvFMiLlyB1uvH9AQ%253D%253D",
      "title": "contract_first_document.doc",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:05.462936+02:00",
      "documentType": "prolongationProtocol",
      "dateModified": "2018-03-13T14:17:05.462956+02:00",
      "id": "8e9699adc2ca412eb7c9ea74a65d3ed9"
    }
  ]
}

We can add another contract document:

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 350
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8106c4b78aed461cbb0e7ebe76e7a655?KeyID=e578eecc&Signature=JxZqaBUWaFihBBte1%2BetJd8EYlgPLMHYB2pYSZbv7RDHmzqgwrerbOl6qTawDS%2B9GmeJudxy2Ib021NL8aKcDw%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/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/documents/1a9b1f726af546c0a56b867fa98370df

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/msword",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8106c4b78aed461cbb0e7ebe76e7a655?KeyID=e578eecc&Signature=kVWCHjZFpGIzqNMQSz6XeC8rB24UnK3Ur9RsFx38Hs5coEn3ekJMC31APBRo2fzQIoB2F0bV3XweXi4dwqe%2FBQ%253D%253D",
    "title": "contract_second_document.doc",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:05.600939+02:00",
    "documentType": "prolongationProtocol",
    "dateModified": "2018-03-13T14:17:05.600959+02:00",
    "id": "1a9b1f726af546c0a56b867fa98370df"
  }
}

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/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73/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/22d3b8cc510d4be880b1e16cea384c31?KeyID=e578eecc&Signature=y%252BF%252BUGdh%2FLEYDdSri%2FDCYRIxHp8gf%252BpAewKgGvNuw%252BxkBdBRauis3I8G9a%2FkV0h9TjRM1IOvFMiLlyB1uvH9AQ%253D%253D",
      "title": "contract_first_document.doc",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:05.462936+02:00",
      "documentType": "prolongationProtocol",
      "dateModified": "2018-03-13T14:17:05.462956+02:00",
      "id": "8e9699adc2ca412eb7c9ea74a65d3ed9"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/msword",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8106c4b78aed461cbb0e7ebe76e7a655?KeyID=e578eecc&Signature=kVWCHjZFpGIzqNMQSz6XeC8rB24UnK3Ur9RsFx38Hs5coEn3ekJMC31APBRo2fzQIoB2F0bV3XweXi4dwqe%2FBQ%253D%253D",
      "title": "contract_second_document.doc",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:05.600939+02:00",
      "documentType": "prolongationProtocol",
      "dateModified": "2018-03-13T14:17:05.600959+02:00",
      "id": "1a9b1f726af546c0a56b867fa98370df"
    }
  ]
}

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/0bbf22e936f24d158f6d695b84b2de2f/contracts/167820e4b4ce4684944cf83b16deaf73?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 80
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "status": "active",
    "dateSigned": "2018-03-13T14:17:06.573611+02:00"
  }
}


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

{
  "data": {
    "status": "active",
    "prolongations": [
      {
        "status": "applied",
        "decisionID": "ZM-937-99-92",
        "description": "Prolongation description",
        "datePublished": "2018-03-13T14:16:55.353696+02:00",
        "reason": "other",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "format": "application/msword",
            "url": "http://public.docs-sandbox.ea.openprocurement.org/get/303f2bffebde4b318c95709af5ac50a4?KeyID=e578eecc&Signature=QKrRL7aJESdNsRJNQgZmyXMgetJvtlnW%2Ff5Xz%2F%252Bh75YDVcpOxtUW7eXgnOWeweFR5J2tS2x154vmPXahjZKGBg%253D%253D",
            "title": "ProlongationDocument.doc",
            "documentOf": "tender",
            "datePublished": "2018-03-13T14:17:06.009999+02:00",
            "documentType": "prolongationProtocol",
            "dateModified": "2018-03-13T14:17:06.010021+02:00",
            "id": "17ce25dd7add4ce8aa325d125d296edc"
          }
        ],
        "dateCreated": "2018-03-13T14:16:54.838196+02:00",
        "id": "762193c7c2214c079849888f32cdc4dd"
      },
      {
        "status": "applied",
        "decisionID": "ZM-937-99-92-2",
        "description": "Long prolongation description",
        "datePublished": "2018-03-13T14:16:55.353712+02:00",
        "reason": "other",
        "documents": [
          {
            "hash": "md5:00000000000000000000000000000000",
            "format": "application/msword",
            "url": "http://public.docs-sandbox.ea.openprocurement.org/get/7c5487d24abd4216a191edd76a21dea1?KeyID=e578eecc&Signature=PjJcFbyN%252BDxH3wc%252BbQJe7Y9r6koLwEM5F1LrQf9w90X8oFZZJPxSnkqCn7NJaa8v3h6rcRbWGCUNyoy63AdVDQ%253D%253D",
            "title": "LongProlongationDocument.doc",
            "documentOf": "tender",
            "datePublished": "2018-03-13T14:17:06.368154+02:00",
            "documentType": "prolongationProtocol",
            "dateModified": "2018-03-13T14:17:06.368174+02:00",
            "id": "478a3018e2604cfd97e5aed4838acabe"
          }
        ],
        "dateCreated": "2018-03-13T14:16:54.838196+02:00",
        "id": "9fc59363c1684e54adc3903653e55576"
      }
    ],
    "documents": [
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/22d3b8cc510d4be880b1e16cea384c31?KeyID=e578eecc&Signature=y%252BF%252BUGdh%2FLEYDdSri%2FDCYRIxHp8gf%252BpAewKgGvNuw%252BxkBdBRauis3I8G9a%2FkV0h9TjRM1IOvFMiLlyB1uvH9AQ%253D%253D",
        "title": "contract_first_document.doc",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:05.462936+02:00",
        "documentType": "prolongationProtocol",
        "dateModified": "2018-03-13T14:17:05.462956+02:00",
        "id": "8e9699adc2ca412eb7c9ea74a65d3ed9"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "format": "application/msword",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/8106c4b78aed461cbb0e7ebe76e7a655?KeyID=e578eecc&Signature=kVWCHjZFpGIzqNMQSz6XeC8rB24UnK3Ur9RsFx38Hs5coEn3ekJMC31APBRo2fzQIoB2F0bV3XweXi4dwqe%2FBQ%253D%253D",
        "title": "contract_second_document.doc",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:05.600939+02:00",
        "documentType": "prolongationProtocol",
        "dateModified": "2018-03-13T14:17:05.600959+02:00",
        "id": "1a9b1f726af546c0a56b867fa98370df"
      }
    ],
    "signingPeriod": {
      "startDate": "2018-03-13T14:17:04.704323+02:00",
      "endDate": "2018-07-23T14:17:04.704323+02:00"
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "0e9f197b5c394f2791241ec770c6bed3",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "suppliers": [
      {
        "contactPoint": {
          "email": "aagt@gmail.com",
          "telephone": "+380 (322) 91-69-30",
          "name": "Андрій Олексюк"
        },
        "identifier": {
          "scheme": "UA-EDR",
          "id": "00137226",
          "uri": "http://www.sc.gov.ua/"
        },
        "name": "ДКП «Книга»",
        "address": {
          "postalCode": "79013",
          "countryName": "Україна",
          "streetAddress": "вул. Островського, 34",
          "region": "м. Львів",
          "locality": "м. Львів"
        }
      }
    ],
    "period": {
      "startDate": "2018-03-13T14:16:55.353656+02:00",
      "endDate": "2019-03-13T14:16:55.353656+02:00"
    },
    "value": {
      "currency": "UAH",
      "amount": 501.0,
      "valueAddedTaxIncluded": true
    },
    "dateSigned": "2018-03-13T14:17:06.573611+02:00",
    "date": "2018-03-13T14:17:06.669066+02:00",
    "awardID": "e2afb4cd836c44c8a2fc40b48ad81b19",
    "id": "167820e4b4ce4684944cf83b16deaf73",
    "contractID": "UA-EA-2018-03-13-000001-1"
  }
}

Cancelling auction

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

The following steps should be applied:

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

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

See Cancellation data structure for details.

Preparing the cancellation request

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/cancellations?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 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/0bbf22e936f24d158f6d695b84b2de2f/cancellations/14534f1920c646acab0b813e53bd8fe5

{
  "data": {
    "date": "2018-03-13T14:17:06.853496+02:00",
    "status": "pending",
    "reason": "cancellation reason",
    "cancellationOf": "tender",
    "id": "14534f1920c646acab0b813e53bd8fe5"
  }
}

Filling cancellation with protocol and supplementary documentation

Upload the file contents:

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/cancellations/14534f1920c646acab0b813e53bd8fe5/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 337
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/ba138367e8b745f096041938f8e0f020?KeyID=e578eecc&Signature=uZylRgS7UKYjQhwdl1dHSTfw%2FDnUsnKohO%2FR3cghfAq1%2FmnRhLE%2B4Hb6NpKH50zoFfLs4bklnGoYRQ%2FX%2FW3XAA%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/0bbf22e936f24d158f6d695b84b2de2f/cancellations/14534f1920c646acab0b813e53bd8fe5/documents/b3f9a0ddd3e34c248b50d41a828602b0

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/ba138367e8b745f096041938f8e0f020?KeyID=e578eecc&Signature=NAW6Asnjm60tb7LiArAOMCaPogr3hITURkZBIgkNFtLxhkeyMI6gEDzh7mvA%2FiCGiru2bb1pjKRnh1BVok6%252BDQ%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:06.996665+02:00",
    "dateModified": "2018-03-13T14:17:06.996685+02:00",
    "id": "b3f9a0ddd3e34c248b50d41a828602b0"
  }
}

Change the document description and other properties:

PATCH /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/cancellations/14534f1920c646acab0b813e53bd8fe5/documents/b3f9a0ddd3e34c248b50d41a828602b0?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 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/ba138367e8b745f096041938f8e0f020?KeyID=e578eecc&Signature=NAW6Asnjm60tb7LiArAOMCaPogr3hITURkZBIgkNFtLxhkeyMI6gEDzh7mvA%2FiCGiru2bb1pjKRnh1BVok6%252BDQ%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:06.996665+02:00",
    "dateModified": "2018-03-13T14:17:06.996685+02:00",
    "id": "b3f9a0ddd3e34c248b50d41a828602b0"
  }
}

Upload new version of the document:

PUT /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/cancellations/14534f1920c646acab0b813e53bd8fe5/documents/b3f9a0ddd3e34c248b50d41a828602b0?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 327
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/ad1f1684fa854403b1f9dfbfdcea4eb7?KeyID=e578eecc&Signature=Fz9woHYcycMQWb89lRUaZLczO63wFKkz9gUhHAUksVOUrmslbtYzxISgE9V5M9cGRiNZIlEhmuJcdpYHoVH4Ag%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/ad1f1684fa854403b1f9dfbfdcea4eb7?KeyID=e578eecc&Signature=EDQyvjV%2F1RoOiOImyISp%252BsQxf%2FbV%2FNrWLRQYWmvfutFUqYTe0z%2FkJsIFeXrmq3jXUtl%2FfP3cEaoBBTfJQ6MZBA%253D%253D",
    "title": "Notice-2.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:06.996665+02:00",
    "dateModified": "2018-03-13T14:17:07.262241+02:00",
    "id": "b3f9a0ddd3e34c248b50d41a828602b0"
  }
}

Activating the request and cancelling auction

PATCH /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/cancellations/14534f1920c646acab0b813e53bd8fe5?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 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/ba138367e8b745f096041938f8e0f020?KeyID=e578eecc&Signature=NAW6Asnjm60tb7LiArAOMCaPogr3hITURkZBIgkNFtLxhkeyMI6gEDzh7mvA%2FiCGiru2bb1pjKRnh1BVok6%252BDQ%253D%253D",
        "title": "Notice.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:06.996665+02:00",
        "dateModified": "2018-03-13T14:17:06.996685+02:00",
        "id": "b3f9a0ddd3e34c248b50d41a828602b0"
      },
      {
        "hash": "md5:00000000000000000000000000000000",
        "description": "Changed description",
        "format": "application/pdf",
        "url": "http://public.docs-sandbox.ea.openprocurement.org/get/ad1f1684fa854403b1f9dfbfdcea4eb7?KeyID=e578eecc&Signature=EDQyvjV%2F1RoOiOImyISp%252BsQxf%2FbV%2FNrWLRQYWmvfutFUqYTe0z%2FkJsIFeXrmq3jXUtl%2FfP3cEaoBBTfJQ6MZBA%253D%253D",
        "title": "Notice-2.pdf",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:17:06.996665+02:00",
        "dateModified": "2018-03-13T14:17:07.262241+02:00",
        "id": "b3f9a0ddd3e34c248b50d41a828602b0"
      }
    ],
    "reason": "cancellation reason",
    "date": "2018-03-13T14:17:07.409449+02:00",
    "cancellationOf": "tender",
    "id": "14534f1920c646acab0b813e53bd8fe5"
  }
}

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: 2032
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

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

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

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

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


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

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

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

Let’s see what listing of auctions reveals us:

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


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

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

We do see the auction’s internal id (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/72f943f337ff4470acaa2e958316ecc3/documents?acc_token=58a3a8eb4997408aa23bfbd8c0828132 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 416
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/82b5347cbcd8420da4fa8155f52d8c33?KeyID=f56b2602&Signature=DI78x3wZ%2FeEltUnqei140K%2FZ6DUYE8Eshz6N8CUYZwt3TIdxRWXZSI%2Bu5DskuppwTDtuP4Hv1ZqtkmBCHHDGCQ%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/72f943f337ff4470acaa2e958316ecc3/documents/a3ff83aabb11426cb625ba1fc789f9da

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "description": "technical specification",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/82b5347cbcd8420da4fa8155f52d8c33?KeyID=f56b2602&Signature=6jXdDumL0qh7xmraaAwMMXwmOu%252BSQhNLFrESI73hrXlW71WZFCRiByzNcgzxVZoO34Pv5hZUouojXq2BTujHDw%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:01.840534+02:00",
    "documentType": "technicalSpecifications",
    "dateModified": "2018-03-13T14:17:01.840556+02:00",
    "id": "a3ff83aabb11426cb625ba1fc789f9da"
  }
}

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/72f943f337ff4470acaa2e958316ecc3/documents/a3ff83aabb11426cb625ba1fc789f9da 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/82b5347cbcd8420da4fa8155f52d8c33?KeyID=f56b2602&Signature=6jXdDumL0qh7xmraaAwMMXwmOu%252BSQhNLFrESI73hrXlW71WZFCRiByzNcgzxVZoO34Pv5hZUouojXq2BTujHDw%253D%253D",
    "title": "Notice.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:01.840534+02:00",
    "previousVersions": [],
    "documentType": "technicalSpecifications",
    "dateModified": "2018-03-13T14:17:01.840556+02:00",
    "id": "a3ff83aabb11426cb625ba1fc789f9da"
  }
}

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

POST /api/2.3/auctions/72f943f337ff4470acaa2e958316ecc3/documents?acc_token=58a3a8eb4997408aa23bfbd8c0828132 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 336
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/fe95cac4fb9245ca94952cd6dab9c1dd?KeyID=f56b2602&Signature=nL%2BRDl8iuZdIkQiUrxm1biuIC6IZJvaH20wzrV1NC9hUj%2BgG21iOcLoVooBnnQn1YI1u2FSDGshpXfEPj7PtBw%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/72f943f337ff4470acaa2e958316ecc3/documents/0bec9452f8f94abdb7858106369b08ff

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/fe95cac4fb9245ca94952cd6dab9c1dd?KeyID=f56b2602&Signature=4EDae%2FYL5XeuhCjRAxWxhR7OpWNcE5eo9tD4GrdzssL3%252BT2OIJHf6gcYdVg%252Bm3R2VOsDvztgBEUL2h9VrKAXBg%253D%253D",
    "title": "AwardCriteria.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:01.893597+02:00",
    "dateModified": "2018-03-13T14:17:01.893617+02:00",
    "id": "0bec9452f8f94abdb7858106369b08ff"
  }
}

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

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:01.779958+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T14:17:01.780009+02:00",
      "id": "1fb6399b2dcb41cfaac9635a155aa3eb"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "technical specification",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/82b5347cbcd8420da4fa8155f52d8c33?KeyID=f56b2602&Signature=6jXdDumL0qh7xmraaAwMMXwmOu%252BSQhNLFrESI73hrXlW71WZFCRiByzNcgzxVZoO34Pv5hZUouojXq2BTujHDw%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:01.840534+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T14:17:01.840556+02:00",
      "id": "a3ff83aabb11426cb625ba1fc789f9da"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/fe95cac4fb9245ca94952cd6dab9c1dd?KeyID=f56b2602&Signature=4EDae%2FYL5XeuhCjRAxWxhR7OpWNcE5eo9tD4GrdzssL3%252BT2OIJHf6gcYdVg%252Bm3R2VOsDvztgBEUL2h9VrKAXBg%253D%253D",
      "title": "AwardCriteria.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:01.893597+02:00",
      "dateModified": "2018-03-13T14:17:01.893617+02:00",
      "id": "0bec9452f8f94abdb7858106369b08ff"
    }
  ]
}

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

PUT /api/2.3/auctions/72f943f337ff4470acaa2e958316ecc3/documents/0bec9452f8f94abdb7858106369b08ff?acc_token=58a3a8eb4997408aa23bfbd8c0828132 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 336
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c52728980a45403990aef5364bb470c2?KeyID=f56b2602&Signature=HoKuGygM5xK2YBOMhrTnJfaeiEOSBj90R1JdRIgA3ETNbMjyNmXY9RrafyGyo3ECSjf%2FKtO4RCTud1Ni3SQxDA%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/c52728980a45403990aef5364bb470c2?KeyID=f56b2602&Signature=4bHQVlGZpSbCWdHMlGxiJIoIdtV9gT6s2h45MMC83X4ZBc%2FPx8Kov7brp4yaZdsagUwsdwOVxboiaLlBJ9kPBw%253D%253D",
    "title": "AwardCriteria-2.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:01.893597+02:00",
    "dateModified": "2018-03-13T14:17:01.945397+02:00",
    "id": "0bec9452f8f94abdb7858106369b08ff"
  }
}

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

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:01.779958+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T14:17:01.780009+02:00",
      "id": "1fb6399b2dcb41cfaac9635a155aa3eb"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "technical specification",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/82b5347cbcd8420da4fa8155f52d8c33?KeyID=f56b2602&Signature=6jXdDumL0qh7xmraaAwMMXwmOu%252BSQhNLFrESI73hrXlW71WZFCRiByzNcgzxVZoO34Pv5hZUouojXq2BTujHDw%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:01.840534+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T14:17:01.840556+02:00",
      "id": "a3ff83aabb11426cb625ba1fc789f9da"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/c52728980a45403990aef5364bb470c2?KeyID=f56b2602&Signature=4bHQVlGZpSbCWdHMlGxiJIoIdtV9gT6s2h45MMC83X4ZBc%2FPx8Kov7brp4yaZdsagUwsdwOVxboiaLlBJ9kPBw%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:01.893597+02:00",
      "dateModified": "2018-03-13T14:17:01.945397+02:00",
      "id": "0bec9452f8f94abdb7858106369b08ff"
    }
  ]
}

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/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 428
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/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=kHaVqwKfAY4OKhX5I4bgut2noUdDfJzdzmv0cj4hWTtu2fwCE7rpb8j9zPPd3t0K5BW8ElC4r2%2BJ5Mx1lwfEBQ%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/0bbf22e936f24d158f6d695b84b2de2f/documents/f8d934e325d444c79d69e5a312d6b44d

{
  "data": {
    "index": 1,
    "hash": "md5:00000000000000000000000000000000",
    "description": "First illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=dTDhv644zx0urZeFe8%2F5t7ZiJC3VcdFv8B%252Bf%2FLxyAK7liqrSmMNXMope3hrj9Hn4MJ%252BPmGUG65lNNUCBsBYhCA%253D%253D",
    "title": "first_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.689220+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T14:17:03.689239+02:00",
    "id": "f8d934e325d444c79d69e5a312d6b44d"
  }
}

We can check whether illustration is uploaded.

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.353632+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T14:17:03.353673+02:00",
      "id": "33b3a7c855ec4b63bf221dc8bd4d3ec1"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.546774+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T14:17:03.546793+02:00",
      "id": "96d79d45b88240f49fd044b0a9127472"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/cb9db16b829642f18d388d5176d5c8e2?KeyID=e578eecc&Signature=DFWXQjyz41gOggupdgTs7MuX6FD6YYMZvtKMjGGJMJHqlKYwZH0jNteL%2FQkPklEahzMrdSRHJpYPOMRH%252BZeQBA%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.589862+02:00",
      "dateModified": "2018-03-13T14:17:03.640224+02:00",
      "id": "c957cd4a71e04e20a88bade4ab8040ca"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=dTDhv644zx0urZeFe8%2F5t7ZiJC3VcdFv8B%252Bf%2FLxyAK7liqrSmMNXMope3hrj9Hn4MJ%252BPmGUG65lNNUCBsBYhCA%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.689220+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T14:17:03.689239+02:00",
      "id": "f8d934e325d444c79d69e5a312d6b44d"
    }
  ]
}

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

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 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": "Second illustration description",
    "title": "second_illustration.jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/173103c9c3bc4a25b2b6bacc9e865e2c?KeyID=e578eecc&Signature=X7qHlXnvUX7xYMaCXKhZTZoiExxclc5L6au70hd6tdMdWwrUs6lWJ8%2FLpH%2BJw0turFVn9tUhB1euDnDA98GeAQ%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/0bbf22e936f24d158f6d695b84b2de2f/documents/4de8c3f245db45bdb378b07749fd28c2

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Second illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/173103c9c3bc4a25b2b6bacc9e865e2c?KeyID=e578eecc&Signature=9%2Fe6BkwhMDS6bF4XIQhRDfuPoRXpKbJIFWixjkltzsi75o3G7CgvVUfcvM7K9G3xMwUSaUC5AbNqs35ZF68OCA%253D%253D",
    "title": "second_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.739578+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T14:17:03.739603+02:00",
    "id": "4de8c3f245db45bdb378b07749fd28c2"
  }
}

Add third illustration:

POST /api/2.3/auctions/0bbf22e936f24d158f6d695b84b2de2f/documents?acc_token=2b1b3d8fd6be4827908b19fdf46323d7 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 428
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/3f37699d5d5245b2a5bfdbd38ce8b6a4?KeyID=e578eecc&Signature=UIe1TJKWpjHXf5Cp72FbJ697vLlGgdWGikCGFsN58IgXOsmNRBjBOymQrKCGDypoOwjs6w5gWXK4dWRc%2Fb3hAg%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/0bbf22e936f24d158f6d695b84b2de2f/documents/049a1bd33dad4f0884051e12040987ed

{
  "data": {
    "index": 2,
    "hash": "md5:00000000000000000000000000000000",
    "description": "Third illustration description",
    "format": "image/jpeg",
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/3f37699d5d5245b2a5bfdbd38ce8b6a4?KeyID=e578eecc&Signature=HchmMKL9tE6GTUR9nX2kLsyElIEwKKK4DHFFTBD445eV0MmVlY6w3Hx2IF9N7loIZQwT9cBmQ4QKCVSMYqjtBw%253D%253D",
    "title": "third_illustration.jpeg",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:03.782536+02:00",
    "documentType": "illustration",
    "dateModified": "2018-03-13T14:17:03.782568+02:00",
    "id": "049a1bd33dad4f0884051e12040987ed"
  }
}

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


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

{
  "data": [
    {
      "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
      "url": "http://torgi.fg.gov.ua/prozorrosale",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.353632+02:00",
      "documentType": "x_dgfPlatformLegalDetails",
      "dateModified": "2018-03-13T14:17:03.353673+02:00",
      "id": "33b3a7c855ec4b63bf221dc8bd4d3ec1"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "description": "document description",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/4af34c520df44c7781f6a526fdc2adb7?KeyID=e578eecc&Signature=YUkX7eiSr%252B2Z84m9kFFgCBr%2Fhyf10dc80HRbjQEhACK8Deh%2Fptc828AUsGttsQf7XPWYrRLUl9C7KdxS2r2QBg%253D%253D",
      "title": "Notice.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.546774+02:00",
      "documentType": "technicalSpecifications",
      "dateModified": "2018-03-13T14:17:03.546793+02:00",
      "id": "96d79d45b88240f49fd044b0a9127472"
    },
    {
      "hash": "md5:00000000000000000000000000000000",
      "format": "application/pdf",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/cb9db16b829642f18d388d5176d5c8e2?KeyID=e578eecc&Signature=DFWXQjyz41gOggupdgTs7MuX6FD6YYMZvtKMjGGJMJHqlKYwZH0jNteL%2FQkPklEahzMrdSRHJpYPOMRH%252BZeQBA%253D%253D",
      "title": "AwardCriteria-2.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.589862+02:00",
      "dateModified": "2018-03-13T14:17:03.640224+02:00",
      "id": "c957cd4a71e04e20a88bade4ab8040ca"
    },
    {
      "index": 1,
      "hash": "md5:00000000000000000000000000000000",
      "description": "First illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/f71e2ae36b204213be734207038be98f?KeyID=e578eecc&Signature=dTDhv644zx0urZeFe8%2F5t7ZiJC3VcdFv8B%252Bf%2FLxyAK7liqrSmMNXMope3hrj9Hn4MJ%252BPmGUG65lNNUCBsBYhCA%253D%253D",
      "title": "first_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.689220+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T14:17:03.689239+02:00",
      "id": "f8d934e325d444c79d69e5a312d6b44d"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Second illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/173103c9c3bc4a25b2b6bacc9e865e2c?KeyID=e578eecc&Signature=9%2Fe6BkwhMDS6bF4XIQhRDfuPoRXpKbJIFWixjkltzsi75o3G7CgvVUfcvM7K9G3xMwUSaUC5AbNqs35ZF68OCA%253D%253D",
      "title": "second_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.739578+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T14:17:03.739603+02:00",
      "id": "4de8c3f245db45bdb378b07749fd28c2"
    },
    {
      "index": 2,
      "hash": "md5:00000000000000000000000000000000",
      "description": "Third illustration description",
      "format": "image/jpeg",
      "url": "http://public.docs-sandbox.ea.openprocurement.org/get/3f37699d5d5245b2a5bfdbd38ce8b6a4?KeyID=e578eecc&Signature=HchmMKL9tE6GTUR9nX2kLsyElIEwKKK4DHFFTBD445eV0MmVlY6w3Hx2IF9N7loIZQwT9cBmQ4QKCVSMYqjtBw%253D%253D",
      "title": "third_illustration.jpeg",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:03.782536+02:00",
      "documentType": "illustration",
      "dateModified": "2018-03-13T14:17:03.782568+02:00",
      "id": "049a1bd33dad4f0884051e12040987ed"
    }
  ]
}

Adding virtual data room

Organizer can add URL for virtual data room:

POST /api/2.3/auctions/72f943f337ff4470acaa2e958316ecc3/documents?acc_token=58a3a8eb4997408aa23bfbd8c0828132 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/72f943f337ff4470acaa2e958316ecc3/documents/a88aed3db33e4c6c9e8596671f09f8f8

{
  "data": {
    "title": "VDR for auction lot",
    "url": "http://virtial-data-room.com/id_of_room",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:02.002138+02:00",
    "documentType": "virtualDataRoom",
    "dateModified": "2018-03-13T14:17:02.002164+02:00",
    "id": "a88aed3db33e4c6c9e8596671f09f8f8"
  }
}

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/72f943f337ff4470acaa2e958316ecc3/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/72f943f337ff4470acaa2e958316ecc3/bids/75657b393358497898e6a1e531b7362e

{
  "access": {
    "token": "f1eb099213b94ce086c3241560a4fb67"
  },
  "data": {
    "status": "active",
    "eligible": true,
    "value": {
      "currency": "UAH",
      "amount": 469.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T14:17:02.052381+02: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": "75657b393358497898e6a1e531b7362e"
  }
}

And activate a bid:

PATCH /api/2.3/auctions/72f943f337ff4470acaa2e958316ecc3/bids/75657b393358497898e6a1e531b7362e?acc_token=f1eb099213b94ce086c3241560a4fb67 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/72f943f337ff4470acaa2e958316ecc3/bids/75657b393358497898e6a1e531b7362e/documents?acc_token=f1eb099213b94ce086c3241560a4fb67 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 377
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

{
  "data": {
    "url": "http://public.docs-sandbox.ea.openprocurement.org/get/83c521a325054f42a43df4954ba6d0f4?KeyID=f56b2602&Signature=78Nugq9jue%2Bceo%2FNL6brlw9vYBAJIqn04piZcS77010xKTmMNFo4%2BBMPa6MiwTUuHNusvQckyHoY8vs4l0rPAQ%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/72f943f337ff4470acaa2e958316ecc3/bids/75657b393358497898e6a1e531b7362e/documents/43ef1e0dea7f4cfb9109c02810a55a1e

{
  "data": {
    "hash": "md5:00000000000000000000000000000000",
    "format": "application/pdf",
    "url": "http://api-sandbox.ea.openprocurement.org/api/2.3/auctions/72f943f337ff4470acaa2e958316ecc3/bids/75657b393358497898e6a1e531b7362e/documents/43ef1e0dea7f4cfb9109c02810a55a1e?download=83c521a325054f42a43df4954ba6d0f4",
    "title": "FinancialLicense.pdf",
    "documentOf": "tender",
    "datePublished": "2018-03-13T14:17:02.131195+02:00",
    "documentType": "financialLicense",
    "dateModified": "2018-03-13T14:17:02.131215+02:00",
    "id": "43ef1e0dea7f4cfb9109c02810a55a1e"
  }
}

It is possible to check the uploaded documents:

GET /api/2.3/auctions/72f943f337ff4470acaa2e958316ecc3/bids/75657b393358497898e6a1e531b7362e/documents?acc_token=f1eb099213b94ce086c3241560a4fb67 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/72f943f337ff4470acaa2e958316ecc3/bids/75657b393358497898e6a1e531b7362e/documents/43ef1e0dea7f4cfb9109c02810a55a1e?download=83c521a325054f42a43df4954ba6d0f4",
      "title": "FinancialLicense.pdf",
      "documentOf": "tender",
      "datePublished": "2018-03-13T14:17:02.131195+02:00",
      "documentType": "financialLicense",
      "dateModified": "2018-03-13T14:17:02.131215+02:00",
      "id": "43ef1e0dea7f4cfb9109c02810a55a1e"
    }
  ]
}

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

POST /api/2.3/auctions/72f943f337ff4470acaa2e958316ecc3/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/72f943f337ff4470acaa2e958316ecc3/bids/6fa00c038beb4a1a91680b6d48cb0211

{
  "access": {
    "token": "259f1262f16c4899b9d6862743424f63"
  },
  "data": {
    "status": "active",
    "eligible": true,
    "value": {
      "currency": "UAH",
      "amount": 479.0,
      "valueAddedTaxIncluded": true
    },
    "date": "2018-03-13T14:17:02.201488+02: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": "6fa00c038beb4a1a91680b6d48cb0211"
  }
}

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: 2047
Content-Type: application/json
Host: api-sandbox.ea.openprocurement.org

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


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

{
  "access": {
    "token": "8ce904ff276848009376e2a2346fe747"
  },
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2018-03-13-000001",
    "enquiryPeriod": {
      "startDate": "2018-03-13T14:16:57.516157+02:00",
      "endDate": "2018-03-26T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "3a65f2a2814047f698731e25fbbfbfca",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:16:57.516442+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T14:16:57.516464+02:00",
        "id": "e00ca1789e994e7a81fc1264c1ff7040"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "dateModified": "2018-03-13T14:16:57.518532+02:00",
    "status": "draft",
    "tenderPeriod": {
      "startDate": "2018-03-13T14:16:57.516157+02:00",
      "endDate": "2018-03-26T23:59:50+03:00"
    },
    "procurementMethodDetails": "quick, accelerator=1440",
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2018-03-13T14:16:57.516157+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "85ffe420bb304faeb1406cc6f0be5871",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

And now let’s switch to active.tendering status:

PATCH /api/2.3/auctions/3a65f2a2814047f698731e25fbbfbfca?acc_token=8ce904ff276848009376e2a2346fe747 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-EA-2018-03-13-000001",
    "enquiryPeriod": {
      "startDate": "2018-03-13T14:16:57.516157+02:00",
      "endDate": "2018-03-26T23:59:50+03:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2018-03-26T23:59:50+03:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "id": "3a65f2a2814047f698731e25fbbfbfca",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:16:57.516442+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T14:16:57.516464+02:00",
        "id": "e00ca1789e994e7a81fc1264c1ff7040"
      }
    ],
    "title": "футляри до державних нагород",
    "tenderAttempts": 1,
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2018-03-13T14:16:57.551805+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2018-03-13T14:16:57.516157+02:00",
      "endDate": "2018-03-26T23:59:50+03:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2018-03-27T00:00:00+03:00"
    },
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2018-03-13T14:16:57.551805+02:00",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35.0,
      "valueAddedTaxIncluded": true
    },
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "85ffe420bb304faeb1406cc6f0be5871",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "quantity": 5
      }
    ],
    "value": {
      "currency": "UAH",
      "amount": 100.0,
      "valueAddedTaxIncluded": true
    },
    "procuringEntity": {
      "contactPoint": {
        "name": "Державне управління справами",
        "telephone": "0440000000"
      },
      "identifier": {
        "scheme": "UA-EDR",
        "id": "00037256",
        "uri": "http://www.dus.gov.ua/"
      },
      "name": "Державне управління справами",
      "address": {
        "postalCode": "01220",
        "countryName": "Україна",
        "streetAddress": "вул. Банкова, 11, корпус 1",
        "region": "м. Київ",
        "locality": "м. Київ"
      }
    }
  }
}

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 with mode = "test" and will speed up auction start date.

This mode will work only in the sandbox.

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

{
  "data": {
    "title": "футляри до державних нагород",
    "minimalStep": {
      "currency": "UAH",
      "amount": 35
    },
    "auctionPeriod": {
      "startDate": "2018-03-13T14:21:55.353656"
    },
    "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",
    "dgfDecisionDate": "2016-11-17",
    "mode": "test",
    "dgfDecisionID": "219560",
    "procurementMethodDetails": "quick, accelerator=1440",
    "items": [
      {
        "classification": {
          "scheme": "CAV",
          "id": "06000000-2",
          "description": "Земельні ділянки"
        },
        "quantity": 5,
        "description": "Земля для військовослужбовців",
        "unit": {
          "code": "44617100-9",
          "name": "item"
        },
        "address": {
          "countryName": "Україна",
          "postalCode": "79000",
          "region": "м. Київ",
          "streetAddress": "вул. Банкова 1",
          "locality": "м. Київ"
        }
      }
    ],
    "dgfID": "219560"
  }
}


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

{
  "access": {
    "token": "f7818a6260c0432b9d32e72c4ea64321"
  },
  "data": {
    "procurementMethod": "open",
    "auctionID": "UA-EA-2018-03-13-000001",
    "enquiryPeriod": {
      "startDate": "2018-03-13T14:16:58.605630+02:00",
      "endDate": "2018-03-13T14:21:09.440215+02:00"
    },
    "submissionMethod": "electronicAuction",
    "dgfDecisionDate": "2016-11-17",
    "next_check": "2018-03-13T14:21:09.440215+02:00",
    "awardCriteria": "highestCost",
    "dgfDecisionID": "219560",
    "owner": "broker",
    "title_en": "[TESTING] ",
    "id": "4f9887c6fe924721826c64bb3c0b866c",
    "documents": [
      {
        "title": "Місце та форма прийому заяв на участь в аукціоні та банківські реквізити для зарахування гарантійних внесків",
        "url": "http://torgi.fg.gov.ua/prozorrosale",
        "documentOf": "tender",
        "datePublished": "2018-03-13T14:16:58.605929+02:00",
        "documentType": "x_dgfPlatformLegalDetails",
        "dateModified": "2018-03-13T14:16:58.605952+02:00",
        "id": "443a7869393d422e8eaa9dd618394390"
      }
    ],
    "title": "[ТЕСТУВАННЯ] футляри до державних нагород",
    "tenderAttempts": 1,
    "procurementMethodDetails": "quick, accelerator=1440",
    "dateModified": "2018-03-13T14:16:58.608226+02:00",
    "status": "active.tendering",
    "tenderPeriod": {
      "startDate": "2018-03-13T14:16:58.605630+02:00",
      "endDate": "2018-03-13T14:21:09.440215+02:00"
    },
    "auctionPeriod": {
      "shouldStartAfter": "2018-03-13T14:21:09.440215+02:00"
    },
    "procurementMethodType": "dgfOtherAssets",
    "dgfID": "219560",
    "date": "2018-03-13T14:16:58.605630+02:00",
    "submissionMethodDetails": "quick",
    "items": [
      {
        "description": "Земля для військовослужбовців",
        "classification": {
          "scheme": "CAV",
          "description": "Земельні ділянки",
          "id": "06000000-2"
        },
        "address": {
          "postalCode": "79000",
          "countryName": "Україна",
          "streetAddress": "вул. Банкова 1",
          "region": "м. Київ",
          "locality": "м. Київ"
        },
        "id": "6ebf38a1c35f4bfc8c9d8b983ad0e294",
        "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": "[ТЕСТИРОВАНИЕ] ",
    "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": "м. Київ"
      }
    }
  }
}

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.

Indices and tables