---
search:
  tags:
    - Webhooks
    - POST
    - Webhook
seo:
  description: >-
    Sent when a payment completes successfully. Verify the X-Apipay-Signature
    header before… Reference for the POST paymentSucceeded webhook in the Apipay
    API.
sidebar:
  label: payment.succeeded
  badge: POST
title: payment.succeeded
type: openapi-operation
---
Sent when a payment completes successfully. Verify the `X-Apipay-Signature` header before trusting the payload.

`POST paymentSucceeded`

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

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

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

Payload example:

```json
{
  "type": "payment.succeeded",
  "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.
