Comments (5)
Когда ждать ответ?
from api-spec.
З токеном все гаразд, він діє до Tuesday, August 28, 2018 10:38:55 AM. Така помилка також може бути коли не передавався api-key. Можете перевірити чи в api call передавався api-key.
from api-spec.
Дякую за відповідь.
api-key дійсно в заголовку не передавали. Передали - все працює.
from api-spec.
Тільки тепер не створюються devisions:
Request Headers:
Authorization: Bearer amg2OXlTbVNoZEo2SEk3dU1VVFBpUT09
Content-Type: application/json
api-key: 9cea483e5eb8af18a598
Request Body:
{
"name": "Бориспільське відділення Клініки Ноунейм",
"addresses": [
{
"type": "RESIDENCE",
"country": "UA",
"area": "Житомирська",
"region": "Бердичівський",
"settlement": "Київ",
"settlement_type": "CITY",
"settlement_id": "43432432",
"street_type": "STREET",
"street": "вул. Ніжинська",
"building": "15",
"apartment": "23",
"zip": "02090"
}
],
"phones": [
{
"type": "MOBILE",
"number": "+380503410870"
}
],
"email": "[email protected]",
"working_hours": {
"mon": [
[
"08.00",
"12.00"
],
[
"14.00",
"18.00"
]
],
"tue": [
[
"08.00",
"12.00"
]
],
"wed": [
[
"08.00",
"12.00"
]
],
"thu": [
[
"08.00",
"12.00"
]
],
"fri": [
[
"08.00",
"12.00"
]
],
"sat": [
[
"08.00",
"12.00"
]
],
"sun": [
[
"08.00",
"12.00"
]
]
},
"type": "CLINIC",
"external_id": "3213213",
"location": {
"latitude": 30.1233,
"longitude": 50.32423
}
}
Response:
{"meta":{"url":"http://api-svc.il/api/divisions","type":"object","request_id":"783dfcf0-c0a1-46f2-80c8-5b90efbb9b1e#54013","code":500},"error":{"errors":{"detail":"Internal server error"}}}
from api-spec.
проблема в "settlement_id": "43432432" - значення не є валідним, settlement_id - це uuid, який має бути отриманий викликом /api/uaddresses/settlements?
. Також валідується ієрархія - область та район.
Для прикладу:
"addresses": [
{
"type": "RESIDENCE",
"country": "UA",
"area": "ВОЛИНСЬКА",
"settlement": "ЛУЦЬК",
"settlement_type": "CITY",
"settlement_id": "2029f5e9-0682-4ecf-b4c3-605a9ef800ca",
"street_type": "STREET",
"street": "Олицька",
"building": "2",
"apartment": "23",
"zip": "43000"
}
]
from api-spec.
Related Issues (20)
- ДЕМО Update Contract Employees. HOT 2
- При обновлении контракта возникает ошибка 409 request_conflict HOT 3
- Не валидируется причина удаления заявки на договор
- Scope issue for nhs_verify and divisions methods HOT 1
- PROD Великі затримкі із доставкою СМС HOT 1
- 500 Create/Update Legal Entity
- DEMO Не отправляется смс с кодом верификации HOT 4
- GET employee_request by id
- DEMO: Не удаётся подписать Declaration Request HOT 3
- Замінити інформацію МІС "Health24" в розділі providers | Портал
- Не вдається авторизуватися на демо
- Не работают PreProd NHS tokens for contract testing
- Замінити інформацію МІС "Облік медичних кадрів України та пацієнтів" в розділі providers | Портал HOT 1
- Переведення існуючих декларацій на нове місце роботи. HOT 2
- Create/Update Legal Entity
- Ошибка авторизации десктопного приложения в демо среде
- Api free account
- Помилка авторизації в систему E-Health HOT 1
- GET Permission on scope in EHealth
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-spec.