Skip to content

Merchant Card Funding Group Subscriptions

Receive notifications for card funding batch summaries, providing aggregated totals for groups of card transactions settled together.

Subscription Arguments

When creating a merchant card funding group subscription, you can specify filtering arguments to receive only the events you need.

Required Arguments

ArgumentTypeDescription
entity_ksuidstringRequired. Your 27-character merchant identifier

Optional Filter Arguments

ArgumentTypeDescription
roll_upbooleanWhen true, includes funding groups for child merchants in the hierarchy. Default: false
merchant_account_number_last_fourstringFilter by last 4 digits of account number (exactly 4 characters)
merchant_bank_numberstringFilter by bank routing number
net_transaction_total_amount_minintegerMinimum net total amount (in minor units)
net_transaction_total_amount_maxintegerMaximum net total amount (in minor units)

Webhook Payload

When a card funding group event matches your subscription criteria, your webhook receives a JSON payload with a wrapper containing metadata and a data array of events.

Wrapper Fields

FieldTypeDescription
idUUIDUnique identifier for this notification
typestringSubscription type (merchant_card_funding_group)
timestampstringWhen the notification was generated
attemptsarrayDelivery attempt history
dataarrayArray of card funding group event objects

Event Fields

FieldTypeDescription
funding_group_idstringUnique identifier for the funding group
acquiring_bank_idstringAcquiring bank identifier
merchant_idstringMerchant identifier
merchant_dba_namestringMerchant DBA (doing business as) name
transaction_countstringNumber of transactions in this group
transaction_total_amountstringTotal transaction amount in currency units
tip_total_amountstringTotal tips in currency units
surcharge_total_amountstringTotal surcharges in currency units
reserve_total_amountstringTotal reserves in currency units
debit_discount_rate_fee_total_amountstringTotal debit discount rate fees
flat_rate_fee_total_amountstringTotal flat rate fees
discount_rate_fee_total_amountstringTotal discount rate fees
authorization_fee_total_amountstringTotal authorization fees
grouped_fee_total_amountstringTotal grouped fees
withheld_total_amountstringTotal withheld amount
net_transaction_total_amountstringNet total amount after all fees
currency_codestringISO 4217 currency code
currency_exponentstringDecimal places for currency
merchant_bank_numberstringMerchant bank routing number
merchant_account_number_last_fourstringLast 4 digits of merchant account

Example Payload

json
{
  "id": "a905a6b0-4bca-4a62-89aa-447ea5ae4882",
  "type": "merchant_card_funding_group",
  "timestamp": "2024-01-15 14:28:29.598 -0800",
  "attempts": [],
  "data": [
    {
      "funding_group_id": "cf22cc8d-ee6d-4996-aa86-b9c092599054",
      "acquiring_bank_id": "38JJwFxz9LDBQl8tq04OnFlwi58",
      "merchant_id": "38JJwFFnZAwgL6tY2wlTYQtS019",
      "merchant_dba_name": "Example Merchant",
      "transaction_count": "1",
      "transaction_total_amount": "52.76",
      "tip_total_amount": "0.00",
      "surcharge_total_amount": "0.00",
      "reserve_total_amount": "2.64",
      "debit_discount_rate_fee_total_amount": "0.00",
      "flat_rate_fee_total_amount": "0.00",
      "discount_rate_fee_total_amount": "0.00",
      "authorization_fee_total_amount": "0.00",
      "grouped_fee_total_amount": "0.00",
      "withheld_total_amount": "2.64",
      "net_transaction_total_amount": "50.12",
      "currency_code": "840",
      "currency_exponent": "2",
      "merchant_bank_number": "123456789",
      "merchant_account_number_last_four": "9999"
    }
  ]
}

API Operations

List Subscriptions

Retrieve a paginated list of merchant card funding group subscriptions.

bash
curl -X GET "https://api.notifications.paynetworx.cloud/v1/subscriptions/merchant_card_funding_group?limit=10&offset=0" \
  -H "Authorization: YOUR_API_TOKEN"

Query Parameters

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

Create Subscription

Create a new merchant card funding group subscription with filtering arguments.

bash
curl -X POST "https://api.notifications.paynetworx.cloud/v1/subscriptions/merchant_card_funding_group" \
  -H "Authorization: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Large Settlement Batches",
    "description": "Notifications for settlement batches over $10,000",
    "arguments": {
      "entity_ksuid": "2MER123CHANT456KSUID789ABC",
      "net_transaction_total_amount_min": 1000000,
      "roll_up": false
    }
  }'

Request Body

FieldTypeRequiredDescription
namestringYesName for the subscription (1-64 characters)
descriptionstringNoDescription (1-256 characters)
argumentsobjectYesFilter arguments (see above)

Get Subscription

Retrieve details of a specific subscription.

bash
curl -X GET "https://api.notifications.paynetworx.cloud/v1/subscriptions/merchant_card_funding_group/{id}" \
  -H "Authorization: YOUR_API_TOKEN"

Update Subscription

Update an existing subscription.

bash
curl -X PUT "https://api.notifications.paynetworx.cloud/v1/subscriptions/merchant_card_funding_group/{id}" \
  -H "Authorization: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated Name",
    "description": "Updated description",
    "arguments": {
      "entity_ksuid": "2MER123CHANT456KSUID789ABC",
      "merchant_account_number_last_four": "4567"
    }
  }'

Delete Subscription

Delete a subscription. This also removes all destination mappings.

bash
curl -X DELETE "https://api.notifications.paynetworx.cloud/v1/subscriptions/merchant_card_funding_group/{id}" \
  -H "Authorization: YOUR_API_TOKEN"

List Subscription Destinations

List webhook destinations linked to this subscription.

bash
curl -X GET "https://api.notifications.paynetworx.cloud/v1/subscriptions/merchant_card_funding_group/{id}/destinations" \
  -H "Authorization: YOUR_API_TOKEN"

Add Destination to Subscription

Link a webhook destination to receive events from this subscription.

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

Remove Destination from Subscription

Unlink a webhook destination from this subscription.

bash
curl -X DELETE "https://api.notifications.paynetworx.cloud/v1/subscriptions/merchant_card_funding_group/{id}/destinations/{destination_id}" \
  -H "Authorization: YOUR_API_TOKEN"

Send Test Event

Send a test notification to verify your webhook integration.

bash
curl -X POST "https://api.notifications.paynetworx.cloud/v1/subscriptions/merchant_card_funding_group/{id}/test" \
  -H "Authorization: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Query Parameters

ParameterTypeDefaultDescription
dry_runbooleanfalseWhen true, returns the payload that would be sent without actually delivering it

Request Body (Optional)

FieldTypeDescription
overridesobjectOptional field overrides for the test payload

This sends a sample card funding group payload to all linked webhook destinations. Use dry_run=true to preview the payload without sending.


Error Responses

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