Skip to main content

Get User Templates

Description: To get a list of user templates, a HTTP GET request is made to the URL. By default, the results of this end point are paged, refer to page paramater for additional information.

Method: GET

URI: /user-templates/

Parameters:

  • page

    • Can be used to return additional pages of user templates, an empty array will be returned when there are no more records.
    • Optionally you can pass 'all' to return all active user templates.
    • Default value is 1, if not passed.
  • query

    • Can be used to filter user templates by name based on passed query value.
  • template_id

    • Can be used to filter user templates by a specific template ID.

Headers: Authorization: Third party based authorization header

Returns

FieldTypeDescription
idIntegerUnique ID of the user template.
template_version_idIntegerUnique ID representing the user template version.
agency_idIntegerUnique ID of the user template.
user_idIntegerUnique ID of the user that created the user template.
nameStringName of the user template.
templateBooleanReturns true if user template is a template.
finalisedBooleanReturns true if the user template is finalised.
privateBooleanReturns true if the user template is private.
createdTimestampReturns Unix timestamp of when user template was created.
updatedTimestampReturns Unix timestamp of when user template was updated.
given_nameStringFirst name of the transaction's creator.
surnameStringLast name of the transaction's creator.
template_costIntegerMonetary value of user template specified in cents.
template_idIntegerUnique ID representing the user template's template.
template_nameStringName of the template the user template is made from.
template_codeStringTemplate code of the template the user template is made from.

Example

Request
curl https://app-api.reiformslive.com.au/user-templates \
--request GET \
--header "Authorization: Basic YTlkOWIwYItNGY4Yi1hYTQxLTI5NzZmMTcyZmEyMQ=="
Response
[
{
"id": 1,
"template_version_id": 2,
"agency_id": 1,
"user_id": 1,
"name": "A user template",
"template": true,
"finalised": false,
"private": false,
"created": 1348728696,
"updated": 1349143614,
"given_name": "John",
"surname": "Doe",
"template_cost": 110,
"template_id": 138,
"template_name": "Original Template",
"template_code": "T1000"
}, ...
]