2 Phase Commit¶
Creating tender with 2 Phase Commit¶
Let’s create tender in draft status:
POST /api/2.3/tenders?opt_pretty=1 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 2366
Content-Type: application/json
Host: api-sandbox.openprocurement.org
{
"data": {
"status": "draft",
"tenderPeriod": {
"endDate": "2016-06-24T15:29:31.511759"
},
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35
},
"enquiryPeriod": {
"endDate": "2016-06-17T15:29:31.511759"
},
"procurementMethodType": "belowThreshold",
"value": {
"currency": "UAH",
"amount": 500
},
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
"telephone": "0440000000"
},
"identifier": {
"scheme": "UA-EDR",
"id": "00037256",
"uri": "http://www.dus.gov.ua/"
},
"name": "Державне управління справами",
"kind": "general",
"address": {
"countryName": "Україна",
"postalCode": "01220",
"region": "м. Київ",
"streetAddress": "вул. Банкова, 11, корпус 1",
"locality": "м. Київ"
}
},
"items": [
{
"description": "футляри до державних нагород",
"classification": {
"scheme": "CPV",
"id": "44617100-9",
"description": "Cartons"
},
"additionalClassifications": [
{
"scheme": "ДКПП",
"id": "17.21.1",
"description": "папір і картон гофровані, паперова й картонна тара"
}
],
"deliveryAddress": {
"countryName": "Україна",
"postalCode": "79000",
"region": "м. Київ",
"streetAddress": "вул. Банкова 1",
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-06-12T15:29:31.511759",
"endDate": "2016-06-15T15:29:31.511759"
},
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
]
}
}
201 Created
Content-Type: application/json; charset=UTF-8
Location: http://api-sandbox.openprocurement.org/api/2.3/tenders/7ecfcb02abc449dc9a1ce4fad94c2680
{
"access": {
"token": "12910aed63164388bfc74bcff26a8915"
},
"data": {
"procurementMethod": "open",
"status": "draft",
"tenderID": "UA-2016-06-10-000001",
"tenderPeriod": {
"startDate": "2016-06-17T15:29:31.511759+03:00",
"endDate": "2016-06-24T15:29:31.511759+03:00"
},
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "футляри до державних нагород",
"classification": {
"scheme": "CPV",
"description": "Cartons",
"id": "44617100-9"
},
"additionalClassifications": [
{
"scheme": "ДКПП",
"id": "17.21.1",
"description": "папір і картон гофровані, паперова й картонна тара"
}
],
"deliveryAddress": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-06-12T15:29:31.511759+03:00",
"endDate": "2016-06-15T15:29:31.511759+03:00"
},
"id": "7c48c1e4ae2446de920ad325d8d38e4f",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"procurementMethodType": "belowThreshold",
"value": {
"currency": "UAH",
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"submissionMethod": "electronicAuction",
"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": "м. Київ"
}
},
"enquiryPeriod": {
"startDate": "2016-06-10T15:29:32.543289+03:00",
"endDate": "2016-06-17T15:29:31.511759+03:00"
},
"owner": "broker",
"dateModified": "2016-06-10T15:29:32.550349+03:00",
"id": "7ecfcb02abc449dc9a1ce4fad94c2680",
"awardCriteria": "lowestCost"
}
}
And now switch to active.enquiries status:
PATCH /api/2.3/tenders/7ecfcb02abc449dc9a1ce4fad94c2680?acc_token=12910aed63164388bfc74bcff26a8915 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 40
Content-Type: application/json
Host: api-sandbox.openprocurement.org
{
"data": {
"status": "active.enquiries"
}
}
200 OK
Content-Type: application/json; charset=UTF-8
{
"data": {
"procurementMethod": "open",
"status": "active.enquiries",
"tenderID": "UA-2016-06-10-000001",
"tenderPeriod": {
"startDate": "2016-06-17T15:29:31.511759+03:00",
"endDate": "2016-06-24T15:29:31.511759+03:00"
},
"title": "футляри до державних нагород",
"minimalStep": {
"currency": "UAH",
"amount": 35.0,
"valueAddedTaxIncluded": true
},
"items": [
{
"description": "футляри до державних нагород",
"classification": {
"scheme": "CPV",
"description": "Cartons",
"id": "44617100-9"
},
"additionalClassifications": [
{
"scheme": "ДКПП",
"id": "17.21.1",
"description": "папір і картон гофровані, паперова й картонна тара"
}
],
"deliveryAddress": {
"postalCode": "79000",
"countryName": "Україна",
"streetAddress": "вул. Банкова 1",
"region": "м. Київ",
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-06-12T15:29:31.511759+03:00",
"endDate": "2016-06-15T15:29:31.511759+03:00"
},
"id": "7c48c1e4ae2446de920ad325d8d38e4f",
"unit": {
"code": "44617100-9",
"name": "item"
},
"quantity": 5
}
],
"procurementMethodType": "belowThreshold",
"value": {
"currency": "UAH",
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"submissionMethod": "electronicAuction",
"next_check": "2016-06-17T15:29:31.511759+03:00",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
"telephone": "0440000000"
},
"identifier": {
"scheme": "UA-EDR",
"id": "00037256",
"uri": "http://www.dus.gov.ua/"
},
"name": "Державне управління справами",
"kind": "general",
"address": {
"postalCode": "01220",
"countryName": "Україна",
"streetAddress": "вул. Банкова, 11, корпус 1",
"region": "м. Київ",
"locality": "м. Київ"
}
},
"enquiryPeriod": {
"startDate": "2016-06-10T15:29:32.543289+03:00",
"endDate": "2016-06-17T15:29:31.511759+03:00"
},
"owner": "broker",
"dateModified": "2016-06-10T15:29:32.690692+03:00",
"id": "7ecfcb02abc449dc9a1ce4fad94c2680",
"awardCriteria": "lowestCost"
}
}