MyPet — site header
The Defra-compliant microchip database & the MyVet practice platform
Microchip Registration API Documentation

Microchip Registration API

API for registering pet microchips in the system

Table of Contents

Overview

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

Staging http://staging-myvet-api.mypethq.io/api/v1/register-microchip
Production http://myvet-api.mypethq.io/api/v1/register-microchip

Authentication

API requests must be authenticated using HTTP headers. Include the following headers with each request:

HeaderDescription
APIUSERYour API username
APIKEYYour 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.

Endpoints

POST /api/v1/register-microchip

Register a new microchip in the system.

Request Headers

HeaderRequiredDescription
Content-TypeRequiredMust be application/json
APIUSERRequiredYour API username
APIKEYRequiredYour API key

Response Headers

HeaderDescription
ResultcodeStatus code indicating the result of the operation
ResultdetailsAdditional information about the result

Response Codes

The API returns HTTP 200 responses with additional status information in the response headers.

ResultcodeResultdetailsDescription
54000URL 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/...
54100This microchip is already registered with <databasename>. Please contact them for more information. Error The microchip is already registered in another database.
54100This 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.
54102Registration rejected - Invalid chip number Error The provided microchip number is not valid.
54103Registration rejected - Invalid data Error The request contains invalid or malformed data.
54108This 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.

Data Model

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 Descriptions

FieldTypeRequiredDescription
ThirdPartyDisclosureStringRequiredWhether owner allows third-party disclosure ("Yes" or "No")
ReceiveEmailStringOptionalWhether owner wants to receive emails ("Yes" or "No")
AuthorisationStringRequiredOwner's authorization for registration (typically agreement text)
Identification.PracticeIDStringRequiredPractice identifier (UUID format)
Identification.SourceStringOptionalSource system identifier
OwnerDetails.SalutationStringOptionalOwner's title/salutation
OwnerDetails.ForenamesStringRequiredOwner's first name(s)
OwnerDetails.SurnameStringRequiredOwner's surname/last name
OwnerDetails.Address.Line1StringRequiredFirst line of address
OwnerDetails.Address.LineOtherStringOptionalAdditional address lines
OwnerDetails.Address.County_StateStringRequiredCounty or state
OwnerDetails.Address.PostalCodeStringRequiredPostal/ZIP code
OwnerDetails.DaytimePhoneStringOptionalDaytime contact number
OwnerDetails.EveningPhoneStringOptionalEvening contact number
OwnerDetails.MobilePhoneStringOptional*Mobile phone number (*Either EmailAddress or MobilePhone is required)
OwnerDetails.EmailAddressStringOptional*Email address (*Either EmailAddress or MobilePhone is required)
PetDetails.NameStringOptionalPet's name
PetDetails.SpeciesStringOptionalSpecies (e.g., "Feline", "Canine")
PetDetails.DateOfBirthStringOptionalDate of birth (YYYY-MM-DD)
PetDetails.GenderStringOptionalGender ("Male" or "Female")
PetDetails.NeuteredStringOptionalWhether pet is neutered ("Yes" or "No")
PetDetails.Breed.FreeTextStringOptionalBreed description
MicrochipDetails.MicrochipNumberStringRequiredMicrochip identifier number
MicrochipDetails.ImplantDateStringOptionalDate of implantation (YYYY-MM-DD)
MicrochipDetails.ImplanterNameStringRequiredName of the implanter

Examples

Example Request

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."
}

Example Response

Successful Registration

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
{}

Error: Already Registered

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.
{}

Error: Invalid Data

HTTP/1.1 200 OK
Content-Type: application/json
Resultcode: 54103
Resultdetails: Registration rejected - Invalid data
{}

Subscribe to our newsletter

Request more information and discount code