Skip to content

A video API webhook arrived before our job record showed completed. Should our app bill immediately?

Match provider and task identity before treating a notification as settlement evidence. Some integrations use webhooks while others only poll. Follow the exact provider's documented signature and billing model, and separate “completion reported” from “charge verified.”

SHIP A RELIABLE INTEGRATIONAISwapLab team · Editorial methodPublished 2 min read
Open API documentationExplore 67 Image SkillsPrivate keys · Explicit credit approval

Correlate the event first

Match the provider's task identifier to the recorded approval. Preserve the delivery event ID so a resent notification is recognizable. Do not expose credentials in the event log.

Confirm the required evidence

Where your application must reconcile a charge, read the documented authoritative job or ledger state. If the current app shows inconclusive data, keep the reconciliation pending.

Example

A webhook says the output exists just before the provider's status list reflects it. The app can show a pending reconciliation note while still reserving the original cost once.

Pass condition

A repeated or early notification neither bills twice nor fabricates a finalized charge unsupported by the provider record.

Sources

One task. A recoverable workflow.

Check the contract, approve the quote and retain the job.

Open API documentation