---
title: "Payment Completed Webhook"
source_url: https://docs.rapyd.net/en/payment-completed-webhook-365172.html
lang: en
---

# Payment Completed Webhook

The **PaymentCompleted** webhook is sent when the customer completes a payment at a Rapyd point-of-sale location.

> **Note:**
>
> The endpoint for webhooks is unique for each merchant. To set up a webhook endpoint for the POS API, contact **Rapyd Client Support**.

### Parameters

### Webhook Header Parameters

- - Content-Type
  - Indicates that the data appears in JSON format. Set to **application/json**.
- - salt
  - Random string.
- - signature
  - Signature calculated for each webhook individually.

    See [Webhook Authentication](https://docs.rapyd.net/en/webhook-authentication.md "Webhook Authentication").
- - timestamp
  - Timestamp for the webhook, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time") (seconds).

### Webhook Root Parameters

- - created_at
  - Time that the webhook was created, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time").

    > **Note:**
    >
    > Inside the `data` object, some webhooks have another `created_at` field that refers to a different event.
- - data
  - Contains the actual data of the webhook.

    For details, see below.
- - extended_timestamp
  - Time in milliseconds that the webhook was created, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time").
- - id
  - ID of the webhook. String starting with **wh_**.
- - status
  - Status of the webhook. One of the following:

    - **NEW**
    - **CLO** - Closed.
    - **ERR** - Error.
    - **RET** - Re-sent.

    > **Note:**
    >
    > Inside the `data` object, some webhooks have another `status` field that refers to a different event.
- - trigger_operation_id
  - ID of the operation that triggered the webhook. UUID.
- - type
  - Name of the webhook type.

    > **Note:**
    >
    > The name in the Client Portal is different.

### Webhook Data Parameters

- - amount
  - Amount of the payment. Decimal.
- - currency
  - Three-letter ISO 4217 code for the currency used in the `amount` field.
- - phone_number
  - Phone number of the Rapyd Wallet in E.164 format.
- - type
  - Type of webhook: **PaymentCompleted**

- PaymentCompleted Webhook
- ```json
  {
    "type": "PaymentCompleted",
    "id": "",
    "phone_number": "+442071838752",
    "amount": 50,
    "currency": "GBP",
    "pos_id": "36aecb46-e076-11e6-a158-0a8688a18afb",
    "timestamp": 0
  }
  ```
