Create user
Creates a new user in Parchment
Overview
Creates a Parchment login for a user in your organization and assigns roles. Whenaccess_roles contains provider or rx_queue_manager, Parchment also verifies the HPI-I against the HI Service and creates a provider record.
A 201 is not always a complete success. Read code. Every USER_CREATED_PROVIDER_* code means the login and roles exist but there is no provider record, and the user cannot create prescriptions.
The response returns user_id only. There is no partner_user_id. Map user_id to your own record.
Request Example
Response Examples
Created (201)
Created, No Provider Record (201)
Email Already Registered (409)
Validation Error (422)
Unauthorized (401)
Result Codes
Response Fields
Request Fields
Status Codes
Notes
- The HI Service lookup sends
hpii_number,given_name,family_name,date_of_birthandsex. All five must match the record held by Services Australia. - Parchment never returns the HI Service reason or the HPI-I number. Quote the
requestIdto Parchment support. - Patient operations are not affected by a missing provider record. Patients belong to the organization.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Organization secret for authentication - provided by Parchment
Path Parameters
Organization ID
Body
User data to add to Parchment
User information to be created
User's given name
1"Darlene"
User's family name
1"Cameron"
User's email address
"darlene.cameron@example.com"
User's date of birth in YYYY-MM-DD format (required if role includes 'provider' or 'rx_queue_manager')
"1969-10-02"
User's sex — M (male), F (female), I (indeterminate), N (not stated). Required if access_roles includes 'provider' or 'rx_queue_manager'.
M, F, I, N "F"
Contact phone number. Not validated by the API — send an Australian number (04xxxxxxxx, 0[2378]xxxxxxxx, or +61 prefixed) so it prints correctly on prescriptions.
"0412345678"
Roles for the user. Omitted: the user gets member only. provider and rx_queue_manager require date_of_birth, sex, hpii_number and qualifications; provider also requires prescriber_type, and prescriber_number unless prescriber_type is T.
admin, provider, receptionist, rx_reader, rx_queue_manager Healthcare Provider Individual Identifier, 16 digits with a valid check digit. Required when access_roles includes provider or rx_queue_manager. Verified against the HI Service together with given_name, family_name, date_of_birth and sex.
"8003614900029560"
Prescriber type — M (medical practitioner), E (optometrist), U (nurse), F (midwife), D (dentist), V (veterinarian), T (podiatrist), C (pharmacist). Required if access_roles includes 'provider'.
M, E, U, F, D, V, T, C "M"
Prescriber number (required if role includes 'provider' and prescriber_type is not 'T')
10"1234567"
Professional qualifications. Required when access_roles includes provider or rx_queue_manager.
"MBBS, FRACGP"
Professional title
"Dr"
Medicare provider number
10"123456789"
AHPRA registration number: a 3-letter profession prefix followed by 10 digits (13 characters).
^[A-Z]{3}[0-9]{10}$"MED0000932846"
Hospital provider number
"H123456"
eRx Entity ID — exactly 5 alphanumeric characters.
5^[A-Za-z0-9]{5}$"AB12C"
Response
User created. Read the code field — a provider record may not have been created.
true
201
"User created successfully"
Result code. USER_CREATED means the provider record exists. Any USER_CREATED_PROVIDER_* code means there is no provider record and the user cannot prescribe.
USER_CREATED, USER_CREATED_PROVIDER_NOT_FOUND, USER_CREATED_PROVIDER_SEARCH_FAILED, USER_CREATED_PROVIDER_ALREADY_EXISTS, USER_CREATED_PROVIDER_INVALID_PARAMS, USER_CREATED_PROVIDER_RESOURCE_NOT_FOUND, USER_CREATED_PROVIDER_FAILED, USER_CREATED_ROLES_FAILED "USER_CREATED"
User creation/update response data
"2025-09-22T20:31:54.558Z"
"1-68d1b225-2a98752c7b2da3fa489267fc"

