timber-english 500 error when trying to change contract status in active_qualification state
Summary: 500 error
STR:
- Go to /api/procedures/ endpoint
- Create procedure with next body:
{
"sellingMethod": "timber-english-fast",
"auctionPeriod": {
"startDate": "2020-12-04T10:52:36.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": [
{
"id": "b75870ac-dad2-405a-9aae-ecea87cd38f7",
"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": "H87"
},
"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 finishes
- Go to /api/procedures/:procedure_id/contracts/:contract_id/status?acc_token= endpoint
- Try to make {"status": "active"}
Procedure example: id - 5fca13da34a5cb822aae37ee | acc_token - 5466e73e-bfad-476a-b175-26281ab38f2c
X-R: 25344652-ecdf-4ff4-917c-5568e2c16094
Actual result: 500 error
Expected result: shouldn't be 500