Oneinfinite v1
  • API Integration
    • Getting started
      • Environments
      • Security
    • API reference
      • Payment Methods
      • Checkout Preferences
        • Create a one-time payment
        • Create a Subscription
        • Get a Checkout Preference
      • Payment Orders
        • Get a Payment Order
      • Recurrent Payments
        • Get a Recurrent Payment
    • Webhooks
      • Configure
      • Notifications
    • Supported entities
      • Currencies
  • WooCommerce
    • WooCommerce Plugin
Powered by GitBook
On this page
  • Notifications for Payment Orders
  • Notifications for Recurrent Payments
  1. API Integration
  2. Webhooks

Notifications

Notifications for Payment Orders

Each status change of the Payment Order is sent as a POST Request to the URL specified in status_changes_webhook with the following body:

{
  "id": "uCEarm1kXJsroMQ6dt",
  "event_type": "PAYMENT_ORDER.OPENED",
  "payment_order_id": "CFR4zo4p0BoOQqFWNI"
}

It is important that the service that consumes the webhook is idempotent. The id attribute is unique for each webhook.

Event types

PAYMENT_ORDER.OPENED PAYMENT_ORDER.EXPIRED PAYMENT_ORDER.CLOSED PAYMENT_ORDER.REJECTED PAYMENT_ORDER.REFUNDED

Notifications for Recurrent Payments

For Subscriptions, the notification will look like:

{
  "id": "uCEarm1kXJsroMQ6dt",
  "event_type": "RECURRENT_PAYMENT.UNPAID",
  "recurrent_payment_id": "CFR4zo4p0BoOQqFWNI"
}

Event types

RECURRENT_PAYMENT.CANCELED RECURRENT_PAYMENT.PENDING RECURRENT_PAYMENT.ACTIVE RECURRENT_PAYMENT.REJECTED RECURRENT_PAYMENT.UNPAID RECURRENT_PAYMENT.COMPLETE RECURRENT_PAYMENT.INCOMPLETE RECURRENT_PAYMENT.EXPIRED RECURRENT_PAYMENT.TRIALING

PreviousConfigureNextSupported entities

Last updated 25 days ago