Payments
These API endpoints are related to payments on IBL
payments/paypalGet Paypal
Gets the required info needed for paypal payments.
Success
users/{id}/paypalCreate Paypal Order
Creates a paypal order returning the URL. Use this to initiate a new paypal order in your client.
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Request Body
application/jsonRequiredforstring
idstring
namestring
Path Parameters
idRequiredstring
User ID
Success
payments/paypal/capture/{ref_id}Capture Paypal Order
Captures a paypal order, giving any needed perks. This is an internal endpoint.
Path Parameters
ref_idRequiredstring
The reference ID of the order returned during paypals redirect back to us
Success
payments/stripeGet Stripe
Gets the required info needed for stripe payments.
Success
users/{id}/stripeCreate Stripe Checkout
Creates a stripe checkout session returning the URL. Use this to initiate a new stripe order in your client.
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Request Body
application/jsonRequiredforstring
idstring
namestring
Path Parameters
idRequiredstring
User ID
Success
payments/stripe/webhookHandle Stripe Webhook
Handles stripe payment webhooks. Not intended for public use and firewalled to only stripe IPs.
Success
payments/premium/plansGet Premium Plans
Gets the current set of premium plans available.
Success
users/{id}/redeem-payment-offerRedeem Payment Offer
Redeems a payment offer for a user given a redeem code
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Request Body
application/jsonRequiredforstring
idstring
namestring
Path Parameters
idRequiredstring
User ID
Query Parameters
codeRequiredstring
Redeem Code. Default codes: BOOSTPREMIUM -> special booster offer
Success