CrowdPower
  • 👋Introduction
  • ✅Getting Started
    • The Basics
    • JavaScript Tag
      • Identify Customer
      • Create Customer Event
      • Create Customer Charge
      • Create Customer Tag
      • Create Page View
      • Prompt for Push
    • Beacon API
      • Identify Customer
      • Create Customer Event
      • Create Customer Charge
      • Create Customer Tag
      • Track
    • Importing Customers
    • Basic Email Setup
    • Advanced Email Setup
  • 📚Resources
    • Smart Sending
    • Working with Sessions
    • Working with Traits
    • Working with Phone Numbers
    • Personalizing Messages
    • Push Notifications
    • Unsubscribe Groups
  • 🔌Integrations
    • Discord
    • Slack
    • Stripe
    • Zapier
  • REST API
  • Console
Powered by GitBook
On this page
  • Create Customer Charge
  • Create Multiple Customer Charges

Was this helpful?

  1. Getting Started
  2. Beacon API

Create Customer Charge

Creates a new charge for the customer and updates their charge summary.

Create Customer Charge

POST https://beacon.crowdpower.io/charges

Request Body

Name
Type
Description

user_id*

string

The unique ID for the user.

amount*

integer

The amount charged in the smallest currency unit.

created_at

integer

When the charge happened. Automatically set, if not provided. UNIX timestamp in seconds.

email

string

The user’s email address. Required if user_id is not present.

update_session

boolean

Whether or not to update the user’s session. Defaults to true.

{
  "success": true,
  "code": 200,
  "data": null
}

Create Multiple Customer Charges

POST https://beacon.crowdpower.io/charges/bulk

Request Body

Name
Type
Description

user_id*

string

The unique ID for the user.

charges*

array

An array of charge objects.

email

string

The user’s email address. Required if user_id is not present.

{
  "success": true,
  "code": 200,
  "data": null
}
PreviousCreate Customer EventNextCreate Customer Tag

Last updated 3 years ago

Was this helpful?

✅