payment.refund.created
Generated from COPE public event contracts. Do not edit this page by hand.Use this event to reconcile returned funds and update order or entitlement state.
Delivery Contract
| Field | Value |
|---|---|
| Encoding | CloudEvents 1.0 structured JSON |
| Delivery | At least once |
| Idempotency | Use the CloudEvents source + id tuple, or COPE idempotency_key when available. |
| Source | cope.payment |
| Subject pattern | refund:<identifier> |
| Category | Payments |
| Availability | Available in the public webhook reference. |
| Schema title | payment.refund.created v1 payload |
| Schema ID | https://schemas.cope.com/events/payment.refund.created/v1 |
Payload Fields
| Field | Required | Type | Allowed Values | Description | |
|---|---|---|---|---|---|
additional_recipients | no | array | - | Optional additional recipient email addresses configured for this notification category. Each recipient receives an individually addressed copy. The list is capped at 5 addresses. | |
affiliate_code | no | string | - | - | |
affiliate_id | no | string | - | - | |
business | yes | object | - | - | |
buyer | yes | object | - | - | |
commission_amount_cents | no | integer | - | - | |
commission_id | no | string | - | - | |
currency | no | string | - | - | |
event_type | yes | const | payment.refund.created | - | |
first_click_ref | no | `string | null` | - | Raw, unvalidated affiliate reference captured from the inbound ?aff= parameter. It is not a resolved or validated affiliate ID; COPE resolves and validates attribution downstream. |
line_items | yes | array | - | - | |
occurred_at | yes | string | - | - | |
order | yes | object | - | - | |
order_overview_url | no | string | - | - | |
original_observation_id | no | string | - | - | |
payment | no | object | - | - | |
payment_method | yes | `object | null` | - | - |
phone_offer_id | no | `string | null` | - | Phone offer identifier associated with the original sale, if any. Raw attribution signal only. |
promo | yes | `object | null` | - | - |
promo_code | no | `string | null` | - | Promo code applied to the original sale, if any. Raw attribution signal only. |
rail | no | string | - | - | |
reversal_observation_id | no | string | - | - | |
schema_version | yes | const | 1.4 | - | |
seller_vat_info | no | `object | null` | - | Seller identity used for invoicing when the creator is the VAT-liable party. Null when COPE is the VAT-liable party. |
source_event_id | no | string | - | - | |
source_event_type | no | const | payment.refund.created | - | |
totals | yes | object | - | - | |
vat_mode | no | string | cope_vat, creator_vat | Which party is liable for VAT on the original sale being refunded: COPE (cope_vat) or the creator (creator_vat). | |
vat_responsibility | no | string | cope, creator | Which party remits VAT to the tax authority. |