Credentials¶
In order to get rights for future monitoring editing as a broker, we need to use this view PATCH: /monitorings/{id}/credentials with the API key of the eMall (broker), where tender was generated.
You can pass access token in the following ways:
acc_tokenURL query string parameterX-Access-TokenHTTP request headeraccess.tokenin the body of request
In the PATCH: /monitorings/{id}/credentials?acc_token={tender_token}:
idstands for monitoring id,tender_tokenis tender’s token (is used for monitoring token generation).
Response will contain access.token for the contract that can be used for further monitoring modification.
PATCH /api/2.5/monitorings/c715421038304838a046654fa8c1e9aa/credentials?acc_token=c849deea74e1d58f305dc743c8b95348 HTTP/1.0
Authorization: Basic YnJva2VyOmJyb2tlcg==
Content-Length: 0
Content-Type: application/json
Host: audit-api-sandbox.prozorro.gov.ua
Response: 200 OK
Content-Type: application/json
{
"data": {
"tender_id": "f71067ac30733261df884de0391debf6",
"monitoring_id": "UA-M-2018-01-01-000001",
"status": "active",
"reasons": [
"public",
"fiscal"
],
"procuringStages": [
"awarding",
"contracting"
],
"monitoringPeriod": {
"startDate": "2018-01-02T03:15:00+02:00",
"endDate": "2018-01-25T00:00:00+02:00"
},
"parties": [
{
"id": "f745206183964f70a17622acdead1015",
"name": "The State Audit Service of Ukraine",
"datePublished": "2018-01-01T02:00:00+02:00",
"identifier": {
"scheme": "UA-EDR",
"id": "40165856",
"uri": "http://www.dkrs.gov.ua"
},
"address": {
"streetAddress": "Petra Sahaidachnoho St, 4",
"locality": "Kyiv",
"region": "Kyiv",
"postalCode": "04070",
"countryName": "Ukraine"
},
"contactPoint": {
"telephone": "0440000000",
"name": "Oleksii Kovalenko"
},
"roles": [
"sas"
]
}
],
"dateModified": "2018-01-04T02:00:00+02:00",
"endDate": "2018-01-25T00:00:00+02:00",
"dateCreated": "2018-01-01T02:00:00+02:00",
"tender_owner": "broker",
"id": "c715421038304838a046654fa8c1e9aa",
"decision": {
"description": "text",
"documents": [
{
"id": "98bc0622515644cab1364b94516a560d",
"hash": "md5:00000000000000000000000000000000",
"title": "lorem.doc",
"format": "application/msword",
"url": "http://public-docs-sandbox.prozorro.gov.ua/get/7e583b38af244dd6a004ebcd88004caf?Signature=oYbDaU7J2132KqM%252BG5mEpVMdEQlMlc28ZCuTCvI17LE8G7ikN0ZgDT50VTIU6vBkMrUYSSO%252BgHVIbQO3Xr79CQ%253D%253D&KeyID=a8968c46",
"datePublished": "2018-01-02T03:05:00+02:00",
"dateModified": "2018-01-02T03:05:00+02:00",
"author": "monitoring_owner"
},
{
"id": "6eb0b671cbe641bbb97ecef5a87d6ce6",
"hash": "md5:00000000000000000000000000000000",
"title": "dolor.doc",
"format": "application/msword",
"url": "http://public-docs-sandbox.prozorro.gov.ua/get/b6e25be2b0b24fe7a614a8a8f7bc7120?Signature=4rxzAuYPqxTCts%252BkCZMPkm3P15TXJStZ6KdUNc9y%2FCxX8Jc4DAC4nq3bCk7mIaHE7piVcD%2FlxVcCVTXPkEqRBg%253D%253D&KeyID=a8968c46",
"datePublished": "2018-01-02T03:10:00+02:00",
"dateModified": "2018-01-02T03:10:00+02:00",
"author": "monitoring_owner"
}
],
"dateCreated": "2018-01-02T03:05:00+02:00",
"datePublished": "2018-01-02T03:15:00+02:00",
"date": "2018-01-02T01:05:00+02:00",
"relatedParty": "f745206183964f70a17622acdead1015"
}
},
"access": {
"token": "ab906ad83e9c4acd9b9c06215f87bfe6"
}
}

