API
If you ever need to add registrations or serial numbers programatically, there is an API for it.
Generate Access Token
Access token can be obtain in the Shopify Admin > Apps > My Product Registration > Settings > Advance > Generate Token
Usage
Registrations - add new (POST)
Once the access token is generated, it can be use to register a new product
Make an HTTP POST request to the endpoint - https://product-reg.varify.xyz/api/registrations
The POST request should have the following JSON payload
It's possible to register multiple products in one call - simply add another registration object to the registrations array.
If there are extra fields - make sure the extra field name is used and it's in lowercase
Extra field name - this can be found in the webhook payload or admin extra fields (make sure its exact name in lowercase)
Registrations - Modify existing registration (PUT)
Once the access token is generated, it can be used to modify existing registration (the registration id can be found in the admin or via the webhook payload)
Make a HTTP PUT request to the endpoint - https://product-reg.varify.xyz/api/registration/:regId
The PUT request should have the following JSON payload
If there are extra fields - make sure the extra field name is used and it's in lowercase
Serial Numbers
Here is example the payload for adding serial numbers
The customerTags is a comma-separated of tags you want to tag the customer who register this serial number
Last updated