timber/other 500 server error on contract change status endpoint
Summary:
STR:
- Go to /api/procedures/ endpoint
- Create procedure with next body:
{
"sellingMethod": "timber-english-fast",
"auctionPeriod": {
"startDate": "2020-12-22T15:49:00.975695+00:00"
},
"title": {
"uk_UA": "Аукціон з продажу необробленої деревини",
"en_US": "Timber english"
},
"description": {
"uk_UA": "Аукціон з продажу необробленої деревини",
"en_US": "Timber english"
},
"accessDetails": {
"uk_UA": "Порядок та можливий час ознайомлення з лотом",
"en_US": "Auction access details"
},
"sellingEntity": {
"identifier": {
"id": "12345678",
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "ЕДРПОУ",
"en_US": "EDRPOU"
}
},
"address": {
"streetAddress": {
"uk_UA": "Хрещатик, 45a",
"en_US": "Khreschatyk, 45a"
},
"locality": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"region": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"postalCode": "01002",
"countryName": {
"uk_UA": "Україна",
"en_US": "Ukraine"
}
},
"contactPoint": {
"name": {
"uk_UA": "Адміністратор",
"en_US": "Admin"
},
"telephone": "+380123456789",
"faxNumber": "+380123456789",
"email": "admin@example.com"
}
},
"previousAuctionId": "UA-PS-1122-33-44-000000-0",
"lotId": "UA-PS-19991212-00000",
"x_documentRequirements": {
"uk_UA": "Вимоги до оформлення документів",
"en_US": "Document requirements"
},
"value": {
"currency": "UAH",
"amount": 1000
},
"guarantee": {
"currency": "UAH",
"amount": 0
},
"tenderAttempts": 2,
"bankAccount": [],
"items": [
{
"description": {
"uk_UA": "сКруглі лісоматеріали",
"en_US": "sRound timber"
},
"classification": {
"scheme": "CAV",
"id": "03410000-7"
},
"additionalClassifications": [
{
"scheme": "timberProductionYear",
"id": "2020"
},
{
"scheme": "timberProductionQuarter",
"id": "2"
},
{
"scheme": "timberSortment",
"id": "sRound"
},
{
"scheme": "timberLength",
"id": "2,2 - 3,5"
},
{
"scheme": "timberStorage",
"id": "01"
},
{
"scheme": "timberDiameter",
"id": "D1a"
},
{
"scheme": "timberSpecies",
"id": "BEDA"
},
{
"scheme": "CPVS",
"id": "QB49-3"
},
{
"scheme": "timberClass",
"id": "b"
}
],
"unit": {
"code": "MTQ"
},
"unitValue": {
"currency": "UAH",
"amount": 10
},
"quantity": 900,
"address": {
"streetAddress": {
"uk_UA": "Хрещатик, 43a",
"en_US": "Khreschatyk, 43a"
},
"locality": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"region": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"postalCode": "01001",
"countryName": {
"uk_UA": "Україна",
"en_US": "Ukraine"
}
}
}
],
"minimalStep": {
"currency": "UAH",
"amount": 10
},
"discount": {
"discount": false
}
}
- Make 2 bids, make active
- Wait until auction finished
- Upload doc for award:
{
"token": "",
"title": {
"uk_UA": "Назва",
"en_US": "Title"
},
"description": {
"uk_UA": "Опис",
"en_US": "Description"
},
"documentOf": "award",
"documentType": "rejectionProtocol",
"index": 33,
"format": "string",
"language": 0
}
- Change it status to active
- Go to /api/procedures/:procedure_id/contracts/:contract_id/status?acc_token= endpoint
- Use next body:
{
"status": []
}
(X-R:)
Actual result: 500 error
Expected result: should have validation