N8N Tools - Cash App icon

N8N Tools - Cash App

Accept payments and manage transactions through Cash App Pay with extensible Square API integration

Overview

The node integrates with the Cash App API to manage various resources such as payments, customers, products, inventory, subscriptions, invoices, loyalty accounts, gift cards, and reports. Specifically, for the Subscription resource and the Update Subscription operation, this node updates existing subscription information in Cash App.

This is useful in scenarios where you need to programmatically modify subscription details like plan changes, billing cycles, or customer information without manual intervention. For example, an e-commerce platform can automate subscription upgrades or changes based on user actions or external triggers.

Properties

Name Meaning
Subscription ID The unique identifier of the subscription to update (e.g., subscription_123456789).

Note: Although not explicitly listed in the provided properties JSON, the code expects a property named subscriptionData which contains the data fields to update the subscription with.

Output

The node outputs a JSON object containing:

  • resource: The resource type, here "subscription".
  • operation: The operation performed, here "updateSubscription".
  • success: Boolean indicating if the operation succeeded.
  • creditsUsed: Number of API credits used by the operation.
  • creditsRemaining: Remaining API credits after the operation.
  • subscription: The updated subscription object returned from the Cash App API.

Example output structure:

{
  "resource": "subscription",
  "operation": "updateSubscription",
  "success": true,
  "creditsUsed": 1,
  "creditsRemaining": 99,
  "subscription": {
    /* Updated subscription details */
  }
}

The node does not output binary data.

Dependencies

  • Requires an API key credential for authenticating with the Cash App API.
  • Needs configuration of the API base URL and API key in the node credentials.
  • Uses internal helper classes (CashAppApi) to interact with the Cash App endpoints.
  • The node performs a validation call to the external API before executing the main operation.

Troubleshooting

  • Validation Failure: If the initial API validation fails, the node throws an error with the message from the API response. Ensure the API key and URL are correct and that the API service is reachable.
  • Unknown Operation Error: If an unsupported operation is specified, the node throws an error indicating the unknown operation.
  • Missing Required Parameters: The subscriptionId and subscriptionData must be provided; otherwise, the API call will fail.
  • API Rate Limits: The node tracks API credits used and remaining. Exceeding limits may cause failures.
  • Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.

Links and References


This summary focuses on the Subscription - Update Subscription operation extracted from the bundled source code and provided input properties.

Discussion