Skip to content
Docs
Get started

API reference

Built-in templates

Ready-made Verilo verification templates for damage claims, rental return condition, warranty claims with serial capture, resale listing possession and condition, and condition at delivery or return.

Five templates are built in. Each is made only of steps whose checks Verilo's engines make, and each has a light-response step, so each can issue Verified. Use one by its key in POST /v1/verifications; read its steps with GET /v1/templates/{key}. To change one, copy it into your own template on the dashboard's Templates page or with POST /v1/templates: built-in templates themselves never change under you.

In every template the first step runs first and the server draws the order of the rest for each Session. Each template below is shown as the person's phone shows it, in the capture client's own words.

Damage claim

damage_claim. A customer reports that an item arrived damaged. The shipping label is matched to the order's tracking numbers, the item to the order line's product image, the damage is captured close up and the scene is checked against the phone's light. Its references come from the order, so it takes the order instead of references, and its Result carries the seven Sub-scores. See Damage claims.

  • shipping_label (scan_code): the shipping label, matched to the order's tracking numbers. The customer may say they no longer have it.
  • packaging (photos): the box: the outside with the label, a damaged side, the packing inside. Evidence only, for a carrier claim. Runs when the account's packaging photos are on.
  • item (show_item): the whole item, matched to the order line's image.
  • damage (capture_detail): the damage, close up.
  • move_around (move_around): around the item, for depth.
  • touch (touch_item): a finger beside the damage.
  • light (light_response): the scene against the phone's light.

Damage claim on the person's phone: the first page ("Help us verify the issue") with Start, then 7 steps: 1, "Point your camera at the shipping label"; 2, "Point your camera at the box it came in"; 3, "Point your camera at the whole item"; 4, "Point your camera at the damage, close up"; 5, "Keep the camera on the item and move around it"; 6, "Point at the damage with a finger beside it"; 7, "Point your camera at the item and hold still".

damage_claim on the customer's phone: the claim's own pages, then each step. The label always comes first; the server draws the order of the rest for each Session.

Rental return condition

rental_return. A renter shows the item they are returning. The asset tag's code is matched to the unit you rented out, the item to your image of it, any marks are captured close up, every side is photographed and the scene is checked against the phone's light.

  • asset_tag (scan_code): the asset tag's barcode or QR code. Checked against asset_tag.
  • item (show_item): the whole item. Checked against item.
  • sides (photos): the front, the back, the underside. Evidence only.
  • marks (capture_detail): any marks or damage close up, or the corner most likely to be knocked. Checked against item.
  • move_around (move_around): around the item, for depth.
  • light (light_response): the scene against the phone's light. Checked against item.
JSON
{ "template": "rental_return", "reference": "RENT-55120",
  "subject": { "name": "Sony A7 IV camera body" },
  "references": { "asset_tag": ["LR-00412"], "item": "https://cdn.example.com/catalogue/a7iv.jpg" } }

Rental return condition on the person's phone: the first page ("A quick camera check") with Start, then 6 steps: 1, "Point your camera at the asset tag"; 2, "Point your camera at the whole item"; 3, "Show every side of the item"; 4, "Point your camera at any marks or damage, close up"; 5, "Keep the camera on the item and move around it"; 6, "Point your camera at the item and hold still".

rental_return on the renter's phone, in the order the template lists its steps. After the first step, the server draws the order for each Session.

Warranty claim with serial capture

warranty_serial. A customer makes a warranty claim. The serial number's barcode is read and matched to the serial you registered, the product to your image of it, the fault is captured close up with a finger pointing at it, and the scene is checked against the phone's light. The serial is what ties the claim to one unit: the image tells only the model.

  • serial (scan_code): the serial number barcode, usually on the back or underside. Checked against serial.
  • item (show_item): the whole product. Checked against item.
  • fault (capture_detail): the fault, close up. Checked against item.
  • point (touch_item): a finger pointing at the fault.
  • light (light_response): the scene against the phone's light. Checked against item.
JSON
{ "template": "warranty_serial", "reference": "WAR-20931",
  "subject": { "name": "KX-200 electric kettle" },
  "references": { "serial": ["SN-KX200-778812"], "item": "https://cdn.example.com/products/kx200.jpg" } }

Leave serial out when you do not know it in advance: the step then reads and returns the serial (outcome: "read") for you to check against your records.

Warranty claim with serial capture on the person's phone: the first page ("A quick camera check") with Start, then 5 steps: 1, "Point your camera at the serial number barcode"; 2, "Point your camera at the whole item"; 3, "Point your camera at the fault, close up"; 4, "Point at the fault with a finger"; 5, "Point your camera at the item and hold still".

warranty_serial on the customer's phone. The serial comes first; the server draws the order of the rest.

Possession and condition for resale listings

resale_listing. A seller shows the item they are listing, live. The item is matched to the listing's image, its serial or model code is read when it has one, its depth is measured as the phone moves around it, its condition is photographed and the scene is checked against the phone's light.

  • item (show_item): the whole item. Checked against item, the listing's main image.
  • code (scan_code): the serial or model barcode. Checked against serial. The seller may say the item has none.
  • move_around (move_around): around the item, for depth.
  • condition (photos): the front, the back, any marks or wear. Evidence only.
  • light (light_response): the scene against the phone's light. Checked against item.
JSON
{ "template": "resale_listing", "reference": "listing-88213",
  "subject": { "name": "Nintendo Switch OLED, white" },
  "references": { "item": "https://cdn.example-market.com/listings/88213/1.jpg" } }

Possession and condition for resale listings on the person's phone: the first page ("A quick camera check") with Start, then 5 steps: 1, "Point your camera at the whole item"; 2, "Point your camera at the serial or model barcode"; 3, "Keep the camera on the item and move around it"; 4, "Show the item's condition"; 5, "Point your camera at the item and hold still".

resale_listing on the seller's phone. The seller may say the item has no code; that is recorded as declared, never as read.

Condition at delivery or return

delivery_condition. Someone records the condition of a parcel and its item when it is delivered, or when a return arrives at your warehouse. The parcel's label is matched to its tracking number, the parcel is photographed outside and in, the item is matched to your image of it, any damage is captured close up and the scene is checked against the phone's light.

  • parcel_label (scan_code): the parcel's shipping label. Checked against tracking. The person may say it has no label.
  • parcel (photos): the outside of the parcel, the packing inside. Evidence only.
  • item (show_item): the whole item. Checked against item.
  • damage (capture_detail): any damage close up, or the item's most exposed corner. Checked against item.
  • light (light_response): the scene against the phone's light. Checked against item.
JSON
{ "template": "delivery_condition", "reference": "RET-3307",
  "references": { "tracking": ["1Z999AA10123456784"], "item": "https://cdn.example.com/products/lamp-oat.jpg" } }

Condition at delivery or return on the person's phone: the first page ("A quick camera check") with Start, then 5 steps: 1, "Point your camera at the parcel's shipping label"; 2, "Show the parcel"; 3, "Point your camera at the whole item"; 4, "Point your camera at any damage, close up"; 5, "Point your camera at the item and hold still".

delivery_condition on the phone of whoever receives the parcel, at the door or at your returns desk.

Choosing between them

  • A customer says an order arrived damaged and you have the order: damage_claim, or Claims directly.
  • An item comes back from a rental and you have its asset tag: rental_return.
  • A product develops a fault and you know, or want, its serial: warranty_serial.
  • A seller lists an item and buyers need to know it exists and what it looks like: resale_listing.
  • A parcel arrives, at a customer's door or at your returns desk: delivery_condition.

None of them fits? Make your own from the same seven step kinds.