Skip to content

Subscriptions Overview

Subscriptions define which events trigger notifications to your webhook destinations. Each subscription type corresponds to a category of events in the PayNetWorx platform.

List Subscription Types

Returns the available subscription types.

Request

GET /v1/subscriptions

Response

json
{
  "urls": [
    "/v1/subscriptions/merchant_ach_funding_item",
    "/v1/subscriptions/merchant_card_funding_group",
    "/v1/subscriptions/merchant_card_funding_item",
    "/v1/subscriptions/transaction"
  ]
}

Available Subscription Types

Subscription TypePathDescription
Transaction/v1/subscriptions/transactionReal-time notifications for payment transactions (authorizations, captures, refunds, voids)
Merchant ACH Funding Item/v1/subscriptions/merchant_ach_funding_itemIndividual ACH transaction funding details
Merchant Card Funding Group/v1/subscriptions/merchant_card_funding_groupCard funding batch summaries with aggregated totals
Merchant Card Funding Item/v1/subscriptions/merchant_card_funding_itemIndividual card transaction funding details

Common Subscription Operations

All subscription types support the same set of operations:

OperationMethodPath
List subscriptionsGET/v1/subscriptions/{type}
Create subscriptionPOST/v1/subscriptions/{type}
Get subscriptionGET/v1/subscriptions/{type}/{id}
Update subscriptionPUT/v1/subscriptions/{type}/{id}
Delete subscriptionDELETE/v1/subscriptions/{type}/{id}
List destinationsGET/v1/subscriptions/{type}/{id}/destinations
Add destinationPOST/v1/subscriptions/{type}/{id}/destinations
Remove destinationDELETE/v1/subscriptions/{type}/{id}/destinations/{destination}
Send test eventPOST/v1/subscriptions/{type}/{id}/test

Subscription Arguments

Each subscription type accepts filtering arguments that determine which events trigger notifications. All subscriptions require:

ArgumentTypeRequiredDescription
entity_ksuidstringYesYour 27-character merchant identifier
roll_upbooleanNoWhen true, includes events for child merchants in the hierarchy

Additional type-specific filters (amount ranges, transaction types, statuses) are documented on each subscription type's page.

Subscription Workflow

1. Create a Subscription

Create a subscription for the event type you want to receive. Include your merchant identifier and any filtering arguments:

bash
curl -X POST "https://api.notifications.paynetworx.cloud/v1/subscriptions/transaction" \
  -H "Authorization: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Transaction Subscription",
    "description": "Receive all transaction events",
    "arguments": {
      "entity_ksuid": "YOUR_MERCHANT_KSUID_27_CHARS",
      "roll_up": false
    }
  }'

Connect one or more webhook destinations to receive events:

bash
curl -X POST "https://api.notifications.paynetworx.cloud/v1/subscriptions/transaction/{subscription_id}/destinations" \
  -H "Authorization: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "destination_id": "9603F4B2-1874-42FE-A2BC-F7B45C45A9D6"
  }'

3. Test Your Integration

Send a test event to verify your webhook receives and processes notifications correctly:

bash
curl -X POST "https://api.notifications.paynetworx.cloud/v1/subscriptions/transaction/{subscription_id}/test" \
  -H "Authorization: YOUR_API_TOKEN"

4. Receive Events

Once linked, confirmed webhook destinations will receive events matching the subscription type and filter criteria.

Common Query Parameters

All list endpoints support pagination:

ParameterTypeDefaultDescription
limitinteger10Maximum number of results (0-1000)
offsetinteger0Number of results to skip

Error Responses

All subscription endpoints may return these error responses:

StatusDescription
400Bad Request - Invalid input parameters
403Forbidden - Insufficient permissions
500Internal Server Error