API for registering pet microchips in the system
This API allows developers to register pet microchips in our system. The API accepts microchip registration data in JSON format and returns status information in response headers.
Environment URLs
http://staging-myvet-api.mypethq.io/api/v1/register-microchiphttp://myvet-api.mypethq.io/api/v1/register-microchipAPI requests must be authenticated using HTTP headers. Include the following headers with each request:
| Header | Description |
|---|---|
APIUSER | Your API username |
APIKEY | Your API key |
Note: Contact support@mypethq.io to obtain your API credentials.
Important Note on Required Fields:
Either OwnerDetails.EmailAddress or OwnerDetails.MobilePhone must be provided. At least one of these two fields is required for the registration to be successful.
Register a new microchip in the system.
| Header | Required | Description |
|---|---|---|
Content-Type | Required | Must be application/json |
APIUSER | Required | Your API username |
APIKEY | Required | Your API key |
| Header | Description |
|---|---|
Resultcode | Status code indicating the result of the operation |
Resultdetails | Additional information about the result |
The API returns HTTP 200 responses with additional status information in the response headers.
| Resultcode | Resultdetails | Description |
|---|---|---|
54000 | URL to download confirmation PDF | Success Registration successful. Resultdetails contains a URL to download the confirmation PDF. Example: https://staging-myvet-file-upload.s3.eu-west-1.amazonaws.com/... |
54100 | This microchip is already registered with <databasename>. Please contact them for more information. | Error The microchip is already registered in another database. |
54100 | This pet is already registered to this pet owner. If they need help please email support@mypethq.io. | Error The pet is already registered to the specified owner. |
54102 | Registration rejected - Invalid chip number | Error The provided microchip number is not valid. |
54103 | Registration rejected - Invalid data | Error The request contains invalid or malformed data. |
54108 | This microchip is registered to another keeper. We have opened a support ticket and we will reach out to the pet owner in 24 hours. | Error The microchip is registered to a different owner. A support ticket has been automatically created. |
The API expects a JSON payload with the following structure:
{
"Identification": {
"PracticeID": string,
"Source": string
},
"OwnerDetails": {
"Salutation": string,
"Forenames": string,
"Surname": string,
"Address": {
"Line1": string,
"LineOther": string,
"County_State": string,
"PostalCode": string
},
"DaytimePhone": string,
"EveningPhone": string,
"MobilePhone": string,
"EmailAddress": string
},
"PetDetails": {
"Name": string,
"Species": string,
"DateOfBirth": string, // Format: YYYY-MM-DD
"Gender": string, // "Male" or "Female"
"Neutered": string, // "Yes" or "No"
"Breed": {
"FreeText": string
}
},
"MicrochipDetails": {
"MicrochipNumber": string,
"ImplantDate": string, // Format: YYYY-MM-DD
"ImplanterName": string
},
"ThirdPartyDisclosure": string, // "Yes" or "No"
"ReceiveEmail": string, // "Yes" or "No"
"Authorisation": string
}| Field | Type | Required | Description |
|---|---|---|---|
ThirdPartyDisclosure | String | Required | Whether owner allows third-party disclosure ("Yes" or "No") |
ReceiveEmail | String | Optional | Whether owner wants to receive emails ("Yes" or "No") |
Authorisation | String | Required | Owner's authorization for registration (typically agreement text) |
Identification.PracticeID | String | Required | Practice identifier (UUID format) |
Identification.Source | String | Optional | Source system identifier |
OwnerDetails.Salutation | String | Optional | Owner's title/salutation |
OwnerDetails.Forenames | String | Required | Owner's first name(s) |
OwnerDetails.Surname | String | Required | Owner's surname/last name |
OwnerDetails.Address.Line1 | String | Required | First line of address |
OwnerDetails.Address.LineOther | String | Optional | Additional address lines |
OwnerDetails.Address.County_State | String | Required | County or state |
OwnerDetails.Address.PostalCode | String | Required | Postal/ZIP code |
OwnerDetails.DaytimePhone | String | Optional | Daytime contact number |
OwnerDetails.EveningPhone | String | Optional | Evening contact number |
OwnerDetails.MobilePhone | String | Optional* | Mobile phone number (*Either EmailAddress or MobilePhone is required) |
OwnerDetails.EmailAddress | String | Optional* | Email address (*Either EmailAddress or MobilePhone is required) |
PetDetails.Name | String | Optional | Pet's name |
PetDetails.Species | String | Optional | Species (e.g., "Feline", "Canine") |
PetDetails.DateOfBirth | String | Optional | Date of birth (YYYY-MM-DD) |
PetDetails.Gender | String | Optional | Gender ("Male" or "Female") |
PetDetails.Neutered | String | Optional | Whether pet is neutered ("Yes" or "No") |
PetDetails.Breed.FreeText | String | Optional | Breed description |
MicrochipDetails.MicrochipNumber | String | Required | Microchip identifier number |
MicrochipDetails.ImplantDate | String | Optional | Date of implantation (YYYY-MM-DD) |
MicrochipDetails.ImplanterName | String | Required | Name of the implanter |
POST /api/v1/register-microchip HTTP/1.1
Host: staging-myvet-api.mypethq.io
Content-Type: application/json
APIUSER: your_api_username
APIKEY: your_api_key
{
"Identification": {
"PracticeID": "550e8400-e29b-41d4-a716-446655440000",
"Source": "OnlineForm"
},
"OwnerDetails": {
"Salutation": "Mr",
"Forenames": "John Michael",
"Surname": "Doe",
"Address": {
"Line1": "123 Main Street",
"LineOther": "Apt 4B",
"County_State": "Surrey",
"PostalCode": "GU1 1AA"
},
"DaytimePhone": "01234567890",
"EveningPhone": "09876543210",
"MobilePhone": "+44 7700 900123",
"EmailAddress": "john.doe@example.com"
},
"PetDetails": {
"Name": "Rex",
"Species": "Dog",
"DateOfBirth": "2020-06-15",
"Gender": "Male",
"Neutered": "Yes",
"Breed": {
"FreeText": "Labrador Retriever"
}
},
"MicrochipDetails": {
"MicrochipNumber": "123456369012345",
"ImplantDate": "2021-03-10",
"ImplanterName": "Dr. Smith"
},
"ThirdPartyDisclosure": "Yes",
"ReceiveEmail": "Yes",
"Authorisation": "I agree to the terms and conditions."
}HTTP/1.1 200 OK
Content-Type: application/json
Resultcode: 54000
Resultdetails: https://staging-myvet-file-upload.s3.eu-west-1.amazonaws.com/certificates/440575279249937_registration_certificate.pdf
{}HTTP/1.1 200 OK
Content-Type: application/json
Resultcode: 54100
Resultdetails: This microchip is already registered with Petlog. Please contact them for more information.
{}HTTP/1.1 200 OK
Content-Type: application/json
Resultcode: 54103
Resultdetails: Registration rejected - Invalid data
{}