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

Once the access token is generated, it can be use to register new product

  1. Make a HTTP POST request to the endpoint - https://product-reg.varify.xyz/api/registrations
  2. The POST request should have the following JSON payload
{
    "accessToken": "12323213123",
    "registrations": [
        {
            "productName": "MacBook 2018",
            "customerEmail": "tom@example.com",
            "customerName": "Tom Delong",
            "serialNumbers": [
                "123",
                "321"
            ],
            "purchaseDate": "2019-01-01",
        }
    }

Its possible to register multiple products in one call - simply add another registration object to the registrations array.

Serial Numbers

Here is example the payload for adding serial numbers

{
    "accessToken": "12323213123",
    "serialNumbers": [
        {
            "serialNumber": "22018",
            "sku": "mac123",
            "customerTags": "VIP,mac",
        }
    }

The customerTags is comma separated of tags you want to tag the customer who register this serial number

results matching ""

    No results matching ""