---
title: "payment.created"
method: POST
path: "/webhook-events/payment.created"
tags: ["Webhook Events"]
---

# payment.created

`POST /webhook-events/payment.created`

Fired when a new payment is created. Doc-only for parsing.

## Response `200`

Webhook payload

- WebhookDtoPaymentWebhookPayload
  - `event_type` 'subscription.created' | 'subscription.draft.created' | 'subscription.activated' | 'subscription.updated' | 'subscription.paused' | 'subscription.cancelled' | 'subscription.resumed' | 'subscription.phase.created' | 'subscription.phase.updated' | 'subscription.phase.deleted' | 'feature.created' | 'feature.updated' | 'feature.deleted' | 'feature.wallet_balance.alert' | 'entitlement.created' | 'entitlement.updated' | 'entitlement.deleted' | 'wallet.created' | 'wallet.updated' | 'wallet.terminated' | 'wallet.transaction.created' | 'wallet.transaction.updated' | 'payment.created' | 'payment.updated' | 'payment.failed' | 'payment.success' | 'payment.pending' | 'customer.created' | 'customer.updated' | 'customer.deleted' | 'invoice.update.finalized' | 'invoice.update.payment' | 'invoice.update.voided' | 'invoice.update' | 'invoice.payment.overdue' | 'wallet.credit_balance.dropped' | 'wallet.credit_balance.recovered' | 'wallet.ongoing_balance.dropped' | 'wallet.ongoing_balance.recovered' | 'wallet.ongoing_balance.updated' | 'subscription.spend.threshold_reached' | 'subscription.spend.threshold_recovered' | 'subscription.line_item_spend.threshold_reached' | 'subscription.line_item_spend.threshold_recovered' | 'subscription.group_spend.threshold_reached' | 'subscription.group_spend.threshold_recovered' | 'entitlement.grant.exhausted' | 'subscription.renewal.due' | 'invoice.communication.triggered' | 'credit_note.created' | 'credit_note.updated' | 'checkout.session.initiated' | 'checkout.session.completed' | 'checkout.session.failed' | 'checkout.session.expired' | 'event.rejected'
  - `payment` PaymentResponse
    - `amount` string
    - `attempts` PaymentAttemptResponse[]
      - `attempt_number` integer
      - `created_at` string, date-time
      - `created_by` string
      - `error_message` string
      - `id` string
      - `metadata` TypesMetadata
      - `payment_id` string
      - `tenant_id` string
      - `updated_at` string, date-time
      - `updated_by` string
    - `created_at` string, date-time
    - `created_by` string
    - `currency` string
    - `destination_id` string
    - `destination_type` 'INVOICE' | 'CUSTOMER'
    - `environment_id` string
    - `error_message` string
    - `failed_at` string, date-time
    - `gateway_metadata` TypesMetadata
    - `gateway_payment_id` string
    - `gateway_tracking_id` string
    - `id` string
    - `idempotency_key` string
    - `invoice_number` string
    - `metadata` TypesMetadata
    - `payment_gateway` string
    - `payment_method_id` string
    - `payment_method_type` 'CARD' | 'ACH' | 'OFFLINE' | 'CREDITS' | 'PAYMENT_LINK' | 'UPI'
    - `payment_status` 'INITIATED' | 'PENDING' | 'PROCESSING' | 'SUCCEEDED' | 'OVERPAID' | 'FAILED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'VOIDED'
    - `payment_url` string
    - `refunded_at` string, date-time
    - `save_card_and_make_default` boolean
    - `succeeded_at` string, date-time
    - `tenant_id` string
    - `track_attempts` boolean
    - `updated_at` string, date-time
    - `updated_by` string
    - `voided_at` string, date-time

---

[API](https://skmtc.net/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.net/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/versions/f0601ed97bd3/schema)
