Refund completed
your notification URLBuild with AI 2 packages
A build package is every page for one task, with the API operations they use. Copy the prompt into a coding assistant, or hand it the package itself: slim links to each page, full inlines all of them in one document.
- Refund a paymentEverything needed to refund a completed payment through One API, in full or in part, and to handle the statuses a refund moves through.
- Migrate refunds from the Payments API to One APIEverything needed to move an existing refunds integration onto One API, with the legacy guide and its One API counterpart side by side.
Raised when a refund reaches a final state.
status is Pending, Failed, Complete, Submitted, Cancelled, Returned or Invalid. Pending covers a refund under investigation, and Failed covers both a failure and an error.
A subscription registered as full receives RefundCompleteFullData in data instead, and its Status is the refund's own, unmapped: PendingInvestigation and Error arrive as themselves rather than as Pending and Failed.
Delivered by Svix, with svix-id, svix-timestamp and svix-signature headers. Verify the signature with the webhookWebhook A URL of yours that Ozow calls when something happens, rather than you polling to find out. The call carries no credential of yours and arrives at a public URL, so authenticate it before acting on it: a hash field on the Payments API, a Svix signature on One API.'s secret before acting on the contents.
Authentication
Ozow sends no credential with this call, so this check is the only thing standing between a real delivery and a stranger’s. Verify the delivery signature before acting on the contents: your notification URL is public, and anyone can post to it.
Payload
application/json
typestring requiredThe event type the subscription was created for.
timestampstring date-time requiredWhen the event was raised.
dataany of requiredWhat the subscription's message type decides. A
thinsubscription receivesWebhookEventData, which is every event's default and the only form the subscription events support. Afullsubscription totransaction.completereceivesTransactionCompleteFullData, and torefund.complete,RefundCompleteFullData. Afullsubscription to any of the subscription events receives nothing at all.
Your response
No body.