Referral Web Form - API
The API specification can be downloaded as a yaml or json file via above link (Download OpenAPI Document), which can be imported into platforms like Postman or Swagger UI to explore, test, and integrate with the API.
The API enables our customers to post Self Referral form data or form data completed by a Health Professional to the ReferAll system.
Integration guides:
ReferAll provides two WebForm API account types. Use the integration guide that matches the account details supplied to you.
- Scheme-First WebForm API Integration Guide ‐ for accounts associated with a single Scheme Provider.
- Venue-First WebForm API Integration Guide ‐ for accounts associated with a Scheme Provider Group containing multiple Scheme Providers, where a venue is selected before a scheme.
Account Types and Integration Flow:
-
Scheme-First (Scheme Provider) account ‐ your WebForm API account is associated with a single Scheme Provider. Use the
schemeProviderIdsupplied with your account to retrieve the available schemes. -
Venue-First (Scheme Provider Group / Contract Area) account ‐ your WebForm API account is associated with a Scheme Provider Group containing multiple Scheme Providers. First retrieve the available venues using the
schemeProviderGroupIdsupplied with your account. Each venue is returned with its associatedschemeProviderId, which is then used to retrieve the available schemes.
After a scheme has been selected, both account types use the same Scheme-Configured List Retrieval and Web Form Submission flow.
Authentication:
- Authenticate user and issue a JWT token for secure interaction.
- POST
/v1/Authorization/Authenticate
Available Venues (Venue-First accounts only):
- List all venues across every Scheme Provider in your account's group, each with the
schemeProviderIdit belongs to. Use thisschemeProviderIdin the next step. Skip this step entirely if you have a Scheme-First account. - GET
/v1/Venues/GetAllVenues
Available Schemes:
- List all schemes available to the given scheme provider.
- GET
/v1/Schemes/GetAvailableSchemes
Scheme-Configured List Retrieval:
- List scheme specific values such as Genders, Ethnicities, Medical Conditions, and other data to populate dropdown menus, checkbox lists and radiobutton lists.
- GET
/v1/SchemeConfiguredListItems/GetSchemeConfiguredListItems
Web Form Submission:
- Post form data, such as patient details, referrer details, measurements and other relevant details.
- POST
/v1/WebFormSubmit/Submit
Production

