Page cover

Endpoints

Get User Subscription Details

post

Retrieve the subscription details of a user based on provided email, npub, or external UUID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
emailstringOptional

Email of the user

npubstringOptional

Nostr npub identifier of the user

external_uuidstringOptional

External UUID for identifying the user

flash_idstringOptional

Unique Flash ID associated with the user

Responses
chevron-right
200

Successfully retrieved user subscription details

application/json
membershipobjectOptional

Membership details of the user

transactionsobject[]Optional

List of transactions related to the user's subscription

post
/get_user_subscription_details

Cancel User Subscription

post

Cancel an active subscription for a user based on email, npub, or external UUID.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
emailstringOptional

Email of the user

npubstringOptional

Nostr npub identifier of the user

external_uuidstringOptional

External UUID for identifying the user

flash_idstringOptional

Unique Flash ID associated with the user

Responses
chevron-right
200

Subscription successfully canceled

application/json
successbooleanOptional

Indicates whether the cancellation was successful

post
/cancel_user_subscription

Last updated