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

NameTypeDescription

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

NameTypeDescription

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
}

Last updated