---
search:
  tags:
    - Webhooks
    - POST
    - Webhook
seo:
  description: >-
    Sent when a payment fails or expires. Reference for the POST paymentFailed
    webhook in the Apipay API.
sidebar:
  label: payment.failed
  badge: POST
title: payment.failed
type: openapi-operation
---
Sent when a payment fails or expires.

`POST paymentFailed`

**Webhook.** The API sends this request to your endpoint.

**Payload** (`application/json`)

- `type` (string)
- `data` (Payment)

Payload example:

```json
{
  "type": "payment.failed",
  "data": {
    "id": "pay_6b2f9d4e",
    "amount": 150000,
    "currency": "IDR",
    "method": "qris",
    "status": "pending",
    "customer_id": "cus_8f3a2b1c",
    "description": "Order",
    "created_at": "2019-08-24T14:15:22Z"
  }
}
```

**Responses**

- `200` — Return a 200 to acknowledge the event.
