POST
/
user
/
charge
Manually charge a user for a specific amount
curl --request POST \
  --url https://api.paywalls.ai/v1/user/charge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": "<string>",
  "user": "<string>"
}'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Paywall-User
string

Optional user identifier provided by the developer. Can be used instead of the user property in the request body to associate the API call with a specific end user.

Body

application/json
amount
string

The amount to charge the user, in usdc.

user
string

The unique identifier of the user to charge.

Response

200 - application/json

successful operation

success
boolean

Indicates whether the charge was successful.

message
string

A message indicating the result of the charge operation.