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/05c8521747ee4ed096200197b78b5990/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
Set-Cookie: SESSION=eyJvcGVyYXRpb25fdGltZSI6IHsiJHRpbWVzdGFtcCI6IHsidCI6IDE3NjIyNTM5ODcsICJpIjogMTR9fSwgImNsdXN0ZXJfdGltZSI6IHsiY2x1c3RlclRpbWUiOiB7IiR0aW1lc3RhbXAiOiB7InQiOiAxNzYyMjUzOTg3LCAiaSI6IDE0fX0sICJzaWduYXR1cmUiOiB7Imhhc2giOiB7IiRiaW5hcnkiOiB7ImJhc2U2NCI6ICJTV2dpYitGSWxxVHkweGNxemN0KzVlMEJIakU9IiwgInN1YlR5cGUiOiAiMDAifX0sICJrZXlJZCI6IDc1NjY2Mjk2Njg0Njg1NTU3ODN9fX0=; Path=/
X-Content-Type-Options: nosniff
{
"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": "7b0c23a76c924d579cffc8fe5da4ee26",
"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",
"dateCreated": "2018-01-01T02:00:00+02:00",
"owner": "test_sas",
"tender_owner": "broker",
"restricted": false,
"id": "05c8521747ee4ed096200197b78b5990",
"decision": {
"description": "text",
"documents": [
{
"id": "58c252b9d9a6495bb16db82e9f4490a2",
"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": "84d97a7d6e9a400da49ef2079d2d2bd9",
"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": "7b0c23a76c924d579cffc8fe5da4ee26"
}
},
"access": {
"token": "7df700c867f34f4babc8f5cacfad1d5a"
}
}

