Entity Credit Tier
Last updated
Last updated
This endpoint allows to make payment.
/payment/pay
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
stripe-payment-method-id
This endpoint allows users to create a payment intent for an entity.
/entities/{entityId}/users/{userId}/create-payment-intent
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
This endpoint allows users to approve a payment for an entity.
/entities/{entityId}/approve-payment
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
The ID of the payment intent to approve.
pi_123456789
This endpoint allows users to retrieve the credit tiers for a specific entity.
/entities/{entityId}/credits-tiers
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
This endpoint allows the entity owner to add a new credit tier.
/entities/{entityId}/credits-tiers
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
The amount of credits in the tier.
The amount of extra bonus credits.
The price of the credit tier.
The ID of the credit tier.
The name of the credit tier.
The recurring time period for the credit tier.
MONTHLY
, YEARLY
, ONETIME
This endpoint allows the entity owner to update an existing credit tier.
/entities/{entityId}/credits-tiers
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
The updated amount of credits in the tier.
The updated amount of extra bonus credits.
The updated price of the credit tier.
The ID of the credit tier to update.
The updated name of the credit tier.
The updated recurring time period for the credit tier.
MONTHLY
, YEARLY
, ONETIME
This endpoint retrieves credit tiers of an entity.
/entities/{entityId}/credits
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
Retrieve the credit information for a user.
/users/{userId}/credits
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
Purchase credits for a user in a specific entity.
/users/{userId}/buy-credits
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
Decrement credits for a user in a specific entity.
/users/{userId}/decrement-credits
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
This endpoint retrieves credit tiers for user of an entity.
/entities/{entityId}/user-credits
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
Buy credits for a user in a specific entity.
/entities/{entityId}/buy-credits
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
Decrement credits for a user in a specific entity.
/entities/{entityId}/decrement-credits
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token