Creates a new user in Parchment
| Field | Type | Description |
|---|---|---|
external_user_id | string | Your system’s user identifier (as provided in request) |
parchment_user_id | string | Parchment’s unique user identifier |
url | string | Direct link to user in Parchment portal |
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the request was successful |
statusCode | number | HTTP status code |
timestamp | string | ISO 8601 timestamp of the response |
requestId | string | Unique identifier for debugging |
| Code | Status | Description |
|---|---|---|
201 | Created | User successfully created |
202 | Accepted | User creation accepted (demographic conflicts found) |
400 | Bad Request | Invalid request format or missing required fields |
401 | Unauthorized | Authentication required or token invalid |
403 | Forbidden | Insufficient permissions (missing CREATE_USER scope) |
409 | Conflict | Partner user ID already exists |
422 | Unprocessable Entity | Request validation failed |
500 | Internal Server Error | Unexpected server error |
| Field | Type | Required When | Description |
|---|---|---|---|
given_name | string | Always | User’s given name |
family_name | string | Always | User’s family name |
email | string | Always | User’s email address |
date_of_birth | string | When access_roles includes “provider” | Date of birth in YYYY-MM-DD format |
sex | string | When access_roles includes “provider” | Sex (M/F/I/N) |
hpii_number | string | When access_roles includes “provider” | Healthcare Provider Individual Identifier |
prescriber_type | string | When access_roles includes “provider” | Prescriber type (M/N/D/P/T) |
prescriber_number | string | When role is “provider” and prescriber_type is not “T” | Prescriber number |
qualifications | string | When access_roles includes “provider” | Professional qualifications |
| Field | Type | Description |
|---|---|---|
access_roles | array | User roles |
title | string | Professional title |
provider_number | string | Medicare provider number |
ahpra_number | string | AHPRA registration number |
hospital_provider_number | string | Hospital provider number |
phone | string | Clinic’s Number |
phone field accepts Australian phone numbers in the following formats:
✅ Valid Examples:
0412345678 - Mobile number (domestic format)0312345678 - Melbourne landline (domestic format)0212345678 - Sydney landline (domestic format)0712345678 - Brisbane landline (domestic format)0812345678 - Adelaide landline (domestic format)61412345678 - International mobile (without + prefix)+61312345678 - International landline (with + prefix)0123456789 - Starts with 1 (invalid area code)04123456789 - Too many digits041234567 - Too few digits04-1234-5678 - Contains formatting characters+1234567890 - Non-Australian numberM (Male)F (Female)I (Indeterminate)N (Not-stated)access_roles array:
admin (Administrative access)provider (Healthcare provider access)receptionist (Can read patient demographics)rx_reader (Can reissue scripts)provider role is included, additional fields become required.
prescriber_type when role is “provider”:
M (Medical Practitioner)E (Eye/Optometrist)U (Nurse)F (Midwife)D (Dentist)V (Vetinarian)T (Podiatrist)C (Pharmacist)requestId for debugging support requestserror.validation array to display field-specific error messagesexternal_user_idurl provides direct access to the user in the Parchment portalBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Organization secret for authentication - provided by Parchment
Organization ID
User data to add to Parchment
User information to be created
User's given name
"Darlene"
User's family name
"Cameron"
User's email address
Partner's unique identifier for the user
"CLINIKO#USER_12345"
User's date of birth in YYYY-MM-DD format (required if role includes 'provider')
"1969-10-02"
User's sex (required if role includes 'provider')
M, F, I, O "F"
User's Australian phone number. Must be a valid Australian number with digits only. Supports mobile (04xxxxxxxx) and landline (0[2378]xxxxxxxx) formats. International format with +61 or 61 prefix is also accepted.
"0412345678"
List of access roles for the user
admin, provider ["admin", "provider"]Healthcare Provider Individual Identifier (required if role includes 'provider')
"8003614900029560"
Prescriber type (required if role includes 'provider')
M, N, D, P, T "M"
Prescriber number (required if role includes 'provider' and prescriber_type is not 'T')
"1234567"
Professional qualifications (required if role includes 'provider')
"LLB"
Professional title
"Dr"
Medicare provider number
"123456789"
AHPRA registration number
"1234567896321"
Hospital provider number
"H123456"
User created successfully
Indicates if the request was successful
true
HTTP status code
201
Human-readable success message
"User created successfully"
Response payload data User creation response data
ISO 8601 timestamp of the response
"2024-01-15T10:30:00.000Z"
Unique identifier for request tracing
"req_1705312200000_abc123"
Pagination information for list operations