Follow Field Names and Data Types Exactly
Field names and data types matter. A string isn’t the same as an integer, and neither is the same as a boolean.
Use field names exactly as they appear in Swagger. Request bodies use PascalCase (
PolicyNumber,ServiceLocationId), and query parameters use camelCase (pageSize,includeArchived).Request models don’t accept undefined fields. A misspelled or extra field can cause the request to be rejected.
Match each field’s type. For example,
PatientDocumentIdis a number when you attach documents to an order, but most other IDs are strings.
Populate Required Fields
Required fields must be present and can’t be null. In Swagger, required fields are marked with an asterisk (*). Expand the Schema tab under the request body to see them.
Some fields are conditionally required, depending on what else you send. For example, an insurance holder’s address is required when the relationship isn’t Self, and a prescription is required when an order includes a referring provider.
Use Existing Reference IDs
Many requests need IDs for records that must already exist in NikoHealth. For example, before you can create a patient, a service location must exist so you can pass its ID.
Get reference IDs from the GET lookup endpoints, such as
GET /v1/organization/locations,GET /v1/payers/dictionaryandGET /v1/products.Reference IDs in your sandbox are different from the ones in production. Don’t hard-code sandbox IDs; look them up or map them for each environment.
Follow the HTTP and JSON Specifications
Data Format
NikoHealth APIs use JSON over HTTPS. Your JSON handling should fully comply with the JSON specification (ECMA-404):
Use
trueorfalsefor boolean fields, not"true"or1.Use
.as the decimal separator.You can leave optional fields out entirely; you don’t need to send
null.Escape string values properly.
Use ISO 8601 for dates (
2026-11-10) and date-times (2026-11-10T14:30:00Z).
Headers and Encoding
Request type | Content-Type |
Most requests with a body |
|
File uploads (patient documents, Document Management) |
|
Token requests |
|
Use UTF-8 for both requests and responses.
JSON responses come back as
application/json, sometimes with extra parameters (for exampleapplication/json; charset=utf-8; v=1). Check forapplication/jsonrather than an exact match.URL-encode query string values.
Expect New Fields in Responses
We add fields to responses from time to time. Your code should handle new fields without breaking.
Use Secure Endpoints
Always connect over HTTPS/TLS; never use a plaintext endpoint. Don’t ignore or disable security warnings from your browser or code libraries. Warnings can point to TLS version or cipher problems that need to be fixed.
Use the Documented HTTP Methods
Use the HTTP method each endpoint specifies in Swagger. For example, if an endpoint is documented as PUT, don’t send POST. Don’t send a request body with a GET request.
Status Codes
For the status codes the API returns and how to handle each one, see HTTP Status Codes.


