Create a new Identity Document for a Patient
POST/patients/:patient_id/identity_documents
Create identity document for a patient
Request
Responses
- 201
- 404
- 422
Created
Response Headers
X-Request-Id
Unique ID generated to track each HTTP request sent
Example:
f4c93531-bf4f-438e-b2ce-1dcff5e7ad97X-Honeybee-Signature
Base64 encoded HMAC-SHA1 hash of method, url and body
Example:
Jzk2+9Pi6UIH/0PvGaq8CKZccwMKETag
Entity Tag used to verify cached response object
Example:
W/"4f53cda18c2baa0c0354bb5f9a3ecbe5"patient_id not found
#Invalid Request
Error Codes
| Status Code | Meaning | Description |
|---|---|---|
| 42216 | Invalid Document Type | The provided document type was invalid. Must be either 'DL', 'PP', 'MI', 'PR', 'SI', 'TI', 'OT'. |
| 42217 | Invalid Issuing Country | The provided issuing country was invalid. Must be 2-character country code. |
| 42218 | Invalid Issuing State | The provided state was invalid. Must be 2-character state code. |
| 42219 | Invalid Document Number | The provided document number was missing. |
| 42220 | Invalid Document Expiration Date | The provided expiration date was in the past or malformed. Must be formatted 'YYYY-MM-DD'. |
Response Headers
X-Request-Id
Unique ID generated to track each HTTP request sent
Example:
f4c93531-bf4f-438e-b2ce-1dcff5e7ad97X-Honeybee-Signature
Base64 encoded HMAC-SHA1 hash of method, url and body
Example:
Jzk2+9Pi6UIH/0PvGaq8CKZccwMK