1. Webhook
Casharc
Merchant
  • Merchant
  • Getting Started
    • Introduction
    • Authentication
    • Quickstart
  • Core Concepts
    • Statuses
    • Status Codes
  • Guides
    • Idempotency
    • Metadata
  • Payments
    • Create Payment
      POST
    • List Payments
      GET
    • Retrieve Payment
      GET
    • Confirm Payment
      POST
    • Cancel Payment
      POST
    • Refund Payment
      POST
  • Payouts
    • Create Payout
      POST
    • List Payouts
      GET
    • Retrieve Payout
      GET
    • Cancel Payout
      POST
  • Appeals
    • Create Appeal
      POST
    • List Appeals
      GET
    • Retrieve Appeal
      GET
    • Cancel Appeal
      POST
  • Balance
    • Retrieve Balance
  • Files
    • Upload File
  • Webhook
    • Overview
    • Event Types
    • Verifying
    • Payment Event
    • Payout Event
    • Appeal Event
  1. Webhook

Event Types

Every event type has the form {object}.{state}. data always holds the full object; read its status and status_code for the exact state. See the event object for the shape of data.

Payments#

TypeSent when the payment becomes
payment.completedpartially_paid, paid or overpaid — any successful payment, including a later correction of the paid amount.
payment.declineddeclined. The reason is in data.status_code.
payment.canceledcanceled. Who canceled it is in data.status_code.
payment.expiredexpired: the payment was not paid in time.
payment.refundedpartially_refunded or refunded. The refunded total is in data.refunded.
A payment can move from a success to declined if the payment is revoked after review. You receive payment.declined with the newer created_at in that case.

Payouts#

TypeSent when the payout becomes
payout.completedpartially_paid, paid or overpaid.
payout.declineddeclined. The reason is in data.status_code.
payout.canceledcanceled. Who canceled it is in data.status_code.
payout.expiredexpired.

Appeals#

TypeSent when the appeal becomes
appeal.approvedapproved. The confirmed amount is in data.resolved.
appeal.rejectedrejected. The reason is in data.status_code.
appeal.canceledcanceled. The reason is in data.status_code.
Previous
Overview
Next
Verifying
Built with