GET STARTED · V1.8

Quickstart: create a durable supplier review

Create one run for supplier sup_204, prepare a recommendation, wait for approval, and record an immutable receipt.

1. Create the run

Use a stable supplier identifier and give the operation an identity that survives retries.

TYPESCRIPT

const run = await avenrail.runs.create({ operationId: “supplier:review:sup_204”, input: { supplierId: “sup_204” } })

Operation identity is not optional.

When the payment network or downstream API fails, Avenrail retries using this same identity instead of repeating a side effect.

Create a free website with Framer, the website builder loved by startups, designers and agencies.