API Documentation
Getting Started
Prerequisites
Create an API key per the documentation here.
Your API key is unique to the environment you use, see Selecting your environment below.
Selecting your environment
Subdomains are used to separate the production and sandbox environments. If you would like access to the sandbox, please contact jasanzitsupport@jasanz.org.
Examples in the documentation will always reference the production environment. Please ensure you connect using the correct endpoint for your use case.
Environment | Endpoint | Description |
|---|---|---|
Production | See Swagger document: | |
Sandbox | https://partnerapi-dev.jasanz.org/api/V1/Partner/BulkUploadAPI | See Swagger document: |
Authentication
To authenticate, add the jasanz_api_key header to your API request. Use the key generated from Prerequisites as the value.
Example header:
POST https://partnerapi.jasanz.org/api/V1/Partner/BulkUploadAPI
jasanz_api_key: *key.value.here*Requests
You must always provide an authentication header as described above.
Formatting your request
When submitting data the payload must always be formatted as JSON.
Simplified JSON example
{
"certifications": {
"certification": [
{
"id_number": "string",
"type": "string"
}
]
}
}Responses
Response types are outlined below, including a sampling of error types.
Status | Code | Body | Description |
|---|---|---|---|
Error | 500 | Key Expired | The API key used to authenticate the call has expired. Renew the key and try again. |
Error | 500 | Please add JASANZ_API_KEY header and value in request. | You have not included the authentication header in your request. |
Error | 500 | Please add audit details in JSON. | The audit details object is missing from the body of the request. |
Success | 200 | xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | A successful POST returns a GUID for the submitted data. This GUID can be referenced through the UI to assess the validation results. |
Examples
Field Name Glossary
Object | Array | Field Name | UI Equivalent | Value Required? | Comments |
|---|---|---|---|---|---|
certifications |
|
| N/A | Yes | All certifications to be processed |
| certification |
| N/A | Yes | Core details of the certification are captured here |
|
| id_number | Certificate ID | Yes | The unique ID for the certification |
|
| type | Type | Yes | The type of certification. Allowed values are:
|
|
| status | Certificate Status | Yes | The status of the certification. Allowed values are:
|
|
| description_of_scope | Description of Scope | Yes | A succinct factual description covering the scope of certification |
|
| original_issue_date | Original Issue Date | No | The earliest date known date of certification (with no breaks), expressed as YYYYMMDD |
|
| current_issue_date | Current Issue Date | Yes | The current date of certification, expressed as YYYYMMDD |
|
| expiry_date | Expiry Date | Yes | The expiry date for certification, expressed as YYYYMMDD |
|
| certificate_holder | Certificate Holder | Yes | The registered business name of the organisation, or the full name of the certified person |
|
| organisation_trading_as_name | Trading Name | No | The trading name of the organisation, if different to the registered business name |
|
| organisation_street_address | Street Address | Yes | The street address of the certificate holder |
|
| organisation_city | City | Yes | The city of the certificate holder |
|
| organisation_state | State | No | The state of the certificate holder |
|
| organisation_country | Country | Yes | The country of the certificate holder |
|
| organisation_postcode | Post Code | Yes | The postcode of the certificate holder |
|
| organisation_email | Email Address | No | A contact email for the certificate holder |
|
| product_total_no_of_licences_issued | Total No. of Licences Issued | No | The total number of licenses issued. Value can only be supplied if type = product, otherwise set to null |
|
| ghg_level_of_assurance | Level of Assurance | Yes | Compulsory if type = validation and verification, otherwise set to null |
|
| ghg_measurement_period | Measurement Period | Yes | Compulsory if type = validation and verification, otherwise set to null |
|
| isdelete | N/A | No | Pass in string with value "Yes" to delete the referenced certificate, otherwise set to null |
schemelist |
|
| N/A | Yes | All schemes to be processed for the parent certification record |
| scheme |
| N/A | Yes | The individual instance of a scheme |
|
| scheme_name | Scheme(s) | Yes | The name of the certification scheme |
standardlist |
|
| N/A | Yes | All standards to be processed for the parent scheme record |
| standard |
| N/A | Yes | The individual instance of a standard |
|
| standard_name | Certification Standard(s) | Yes | The name of the certification standard |
categorisationlist |
|
| Categories tab | No | All categories to be processed for the parent standard record |
| categorisation |
| Categories tab | No | The individual instance of a category. |
|
| category | Category | Yes | The name of the category |
|
| subcategory | Sub-Category | No | The name of the sub-category, if not available set to null. |
|
| technicalsector | Technical Sector | No | The name of the technical sector, if not available set to null. |
modellist |
|
| Models tab | No | All models to be processed for the parent certification record |
| model |
| Models tab | No | The individual instance of a model |
|
| model_name | Model Name | Yes | The name of the model |
|
| model_number | Model Number | Yes | The unique model number |
|
| model_description | Model Description | Yes | A description of the model |
|
| brand | Brand | Yes | The brand of the model |
manufacturelocationlist |
|
| Manufacturing Location blade | No | All manufacturing sites to be processed for the parent model record |
| manufacturelocation |
| Manufacturing Location blade | No | The individual instance of a manufacturing location |
|
| street_address | Street Address | Yes | The street address of the manufacturing location |
|
| city | City | Yes | The city of the manufacturing location |
|
| state | State | Yes | The state of the manufacturing location |
|
| postcode | Post Code | Yes | The postcode of the manufacturing location |
|
| country | Country | Yes | The country of the manufacturing location |
codelist |
|
| N/A | No | All ISIC codes to be processed for the parent certification record |
| code |
|