API reference
Damage claims
Damage claim verification on Verilo's verification primitive: the damage_claim template, the Claims resource, order context, carrier claim packs and Outcomes.
A damage claim is the first complete template on the verification primitive, and the one the Verilo apps for Shopify, WooCommerce, Gorgias, Zendesk, Richpanel and Intercom use. A customer reports that an order item arrived damaged; they film the shipping label, the item and the damage; Verilo matches the label to the order's tracking number and the item to the order line's image, and checks 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".
Two ways in, one Claim
The damage claim has its own resource, Claims, because a claim carries more than a Verification: the order, the item and its value, an Outcome, the carrier claim pack. It is also a Verification made from the damage_claim template. Both of these make the same Claim:
curl https://api.verilo.app/v1/claims \
-H "Authorization: Bearer $VERILO_API_KEY" -H "Content-Type: application/json" \
-d '{ "reference": "RMA-1042", "order": { "id": "1042", "...": "..." } }'
curl https://api.verilo.app/v1/verifications \
-H "Authorization: Bearer $VERILO_API_KEY" -H "Content-Type: application/json" \
-d '{ "template": "damage_claim", "reference": "RMA-1042", "order": { "id": "1042", "...": "..." } }'The first answers the Claim (clm_...); the second answers its Verification (ver_...), whose claimId names the Claim. The Claims rules apply either way: one open Claim per item, and the same reference on the same item returns the same Claim.
Everything published for Claims keeps working exactly as before: the endpoints, the Claim object, the claim.* events, the Result with its seven Sub-scores, the evidence and both packs.
What differs from other templates
- References come from the order. The label is checked against every tracking number on the order's shipments, the item and the damage against the order line's
imageUrl. You send the order, notreferences. - The step order is the Claim Service's. The label always comes first. The packaging photos follow it when your account's packaging photos are on. The rest are drawn by the server for each Session.
- The rule is v1.1. Unable to Verify when the label cannot be read or the light step does not finish; Verified when the label matches, the scene follows the light, the item matches and every step is completed; otherwise Needs Review. Its Result carries the seven Sub-scores (
captureIntegrity,orderMatch,shipmentMatch,productMatch,physicalInteraction,damageVisibility,sessionAnomalyRisk) as well as each step, when read as a Verification. - Its events are
claim.*. A damage claim never emitsverification.*events, so an integration built on Claims sees no change. - It has an Outcome. Record what you did with
POST /v1/claims/{id}/outcome; the Verification's status then readsoutcome_recorded. - It has a carrier claim pack on a Verified Result with a tracking number:
GET /v1/claims/{id}/carrier_pack.
When to use another template
If you do not have an order, or the item did not arrive by carrier, use delivery_condition with the tracking number and your image as references, or build your own. If the claim is about a fault rather than damage in transit, use warranty_serial.
Next: the Claims reference and the Quickstart.