Skip to main content
The Vending Club

Developers

A REST API and outbound webhooks for your own business data. Create a key or register a webhook from Business → Developer in your dashboard.

Authentication

Send Authorization: Bearer <your key> with every request. A key is scoped: it can only do what it was granted.

Rate limit

120 requests per key every 15 minutes. A call over the limit gets HTTP 429.

Endpoints

MethodPathScopeWhat it returns
GET/api/v1/listingread:listingYour organization's own profile
GET/api/v1/attributesread:listingEvery attribute with provenance
PATCH/api/v1/attributeswrite:listingUpdate attributes (partial; a key you don't send is untouched)
GET/api/v1/service-areasread:service_areasYour declared service areas
GET/api/v1/requestsread:requestsOpen Service Requests routed to you
GET/api/v1/reviewsread:reviewsYour published reviews
GET/api/v1/subscriptionread:subscriptionYour plans and their status
GET /api/v1/listing
Authorization: Bearer tvc_...

200 OK
{ "listing": { "id": "...", "name": "...", "slug": "...", "city": "...", "stateCode": "GA", "published": true } }

Webhooks

Register an HTTPS endpoint and choose which events to receive. Every delivery is a signed POST with a JSON body { "event": "<key>", "payload": { ... } }. A failed delivery retries with backoff and is marked failed after six attempts spread over roughly a day; the deliveries log in your dashboard has a Retry action for any of them.

Verifying a delivery

Every request carries X-TVC-Signature: t=<unix seconds>,v1=<hex>. The hex value is HMAC-SHA256, keyed by your endpoint's secret, over the string ${t}.${raw request body}. Recompute it and compare. Reject anything that doesn't match, and reject a timestamp too far in the past.

Supported events

KeyLabelDescription
billing.createdSubscription createdA subscription was created. One event per transition (0056): this is the creation, not the activation.
billing.trial_startedTrial startedA D21 operator trial began: the subscription became trialing with trial_ends_at set, in the transaction that set organizations.trial_used_at.
billing.trial_reminder_sentTrial reminder sentA trial conversion reminder was sent: day 23, day 29 or the lead-cap reminder, named in after.reminder. One of each per subscription, ever (unique index).
billing.trial_lead_cap_reachedTrial lead cap reachedA trialling organization received trial_lead_cap routed leads and left the rotation until it converts.
billing.trial_convertedTrial convertedA trial ended and the subscription converted to the paid term of the same tier. Written instead of activated: exactly one event per transition.
billing.trial_cancelledTrial cancelledA trial ended by cancellation before it converted. Written instead of cancelled: exactly one event per transition.
billing.activatedSubscription activatedA subscription became active on payment. A trial conversion is trial_converted, never this.
billing.upgradedSubscription upgradedA subscription moved to a higher tier immediately. consequence_shown holds the notice the member saw (required, non-empty).
billing.downgradedSubscription downgradedA downgrade took effect, at the end of the period or of the trial.
billing.downgrade_scheduledDowngrade scheduledA downgrade was scheduled (a scheduled_plan_changes row) to take effect at the end of the current period or of the trial.
billing.downgrade_withdrawnDowngrade withdrawnA scheduled downgrade was withdrawn before it took effect, by the member or because a cancellation was requested (cancel wins).
billing.cancel_requestedCancellation requestedThe member, or staff for them, pressed cancel: the platform recorded its intent (access_ends_at), on any tier, a trialling subscription included. A pending scheduled plan change is withdrawn in the same transaction (after.withdrew_plan_change_id).
billing.cancelledSubscription cancelledThe cancellation took effect, as the billing provider confirmed it.
billing.renewedSubscription renewedA paid period renewed.
billing.expiredSubscription expiredThe subscription reached the expired status (subscription_status), which had no event before 0056.
billing.payment_failedPayment failedA payment attempt failed. The payload never carries card, payment-method or invoice-line detail.
billing.payment_recoveredPayment recoveredA failed payment was recovered and the subscription returned to good standing.
billing.refundedPayment refundedA payment was refunded. The payload never carries card, payment-method or invoice-line detail.
billing.chargeback_openedChargeback openedA chargeback was opened against a payment. The link to its support case is after.ticket_id, not a column.
billing.chargeback_resolvedChargeback resolvedA chargeback was resolved. The link to its support case is after.ticket_id.
billing.reactivatedSubscription reactivatedA withdrawn cancellation, or a resubscription: told apart in after. One event covers both.
billing.term_changedSubscription term changedA subscription's billing term changed while its tier stayed the same, at once or when a scheduled term change took effect (billing post-sandbox decision 4). One event per transition: a change of tier and term together is upgraded or downgraded, not this. The subscription_event_type value was added by 0069. The payload never carries card, payment-method or invoice-line detail.
demand.service_request.routedService Request routed to a batchPLACEHOLDER for the routing job (a later brief step; nothing in this brief emits it). One event per organization a batch reaches.
verification.requestedVerification requestedA Verified Provider or Verified Locator request was opened (by a subscription, the member or an admin).
verification.approvedVerification approvedA request was approved; the badge shows and the stratum applies.
verification.declinedVerification declinedA request was declined with a reason the member sees.
verification.expiredVerification expiredAn approval expired or was superseded, or a request closed because its subscription lapsed.
verification.revokedVerification revokedAn approval was revoked.
verification.sla_breachedVerification SLA breachedA request was not decided within the published verification_7d promise.
verification.sla_warningVerification decision due soonAn undecided verification request is inside verification_sla_warning_hours of its published decision deadline. Once per request.
verification.recheck_dueVerification re-check dueAn approval reaches its re-check notice (30 days before expiry).
demand.post.openedLocations Wanted post openedA demand_posts row was published or renewed (LW lane, migration 0095). Triggers the routing job (Inngest, on this event): the locator window, or immediate open-pool if no eligible locator. Emitted by src/lib/demand/lw-write.ts in the same transaction as the insert/renewal.
demand.post.routedLocator notified in a post's locator windowA verified, in-coverage locator was routed a demand_post_routings row (routing_kind locator_window). Drives the locator email (automation_rule lw_locator_window_email, seeded DISABLED). Emitted by src/lib/demand/lw-routing.ts.
demand.post.responseA locator responded to a Locations Wanted postA locator used Respond on a routed post (its own demand_post_routings.responded_at set). Drives the operator email naming the locator (automation_rule lw_locator_response_email, seeded DISABLED). Emitted by the locator surface's server action.
demand.post.acceptedAn operator accepted a locator's responseThe post's own organization accepted one locator's response (outcome = accepted); the operator's contact is revealed to that locator. Drives the locator email (automation_rule lw_locator_accepted_email, seeded DISABLED). Emitted by the operator's accept server action.
claim.grantedClaim grantedA claim completed; the claimant is an Owner.
claim.invite_requestedClaim invite requestedThe bulk invite asked for a this-listing-is-yours email to the address on record.
organization.claimedOrganization claimedAn organization became claimed through the claim flow. Session D's onboarding consumes this.
review.heldReview waiting for a reviewerA review was written (reason new) or edited (reason edited) and is waiting for a reviewer: it landed pending, or an author who has not yet earned auto-publish edited a published one. One event per hold; the reviewer works it in the verification review queue (vetting.review). Ids only.
review.disputedReview disputed by the businessThe reviewed business flagged a published review: it stays visible, labelled as disputed, until a reviewer decides. Ids and the dispute reason key only.