Overview
The Commerce & Licensing API handles the complete purchase lifecycle — from pricing calculation through Stripe payment to license certificate generation. It also covers exclusive license preset management and Stripe Connect onboarding for producers.Base URL:
https://open.beatpass.ca/api/v1Authentication: All endpoints require a valid Bearer token unless noted otherwise.Track Purchases
Calculate Price
Get pricing details for a track before initiating purchase.Track ID to get pricing for.
Initiate Purchase
Start the purchase flow by creating a Stripe .Track ID to purchase.
| Error | Code | Cause |
|---|---|---|
| Track purchases not enabled | 403 | Feature disabled in config |
| Cannot purchase own track | 422 | Buyer is the track artist |
| Already purchased | 422 | User already owns license |
| Artist not set up for payments | 422 | Artist lacks active Stripe Connect |
Check Purchase Status
Check whether the authenticated user has purchased a specific track.User Purchases
Get the authenticated user’s purchase history.Results per page. Default:
15.Artist Sales
Get sales data for the authenticated artist, including Stripe Connect balance.Purchase Flow
Webhook Confirmation
Stripe sends a
payment_intent.succeeded webhook to BeatPass. The platform activates the license and generates a certificate.License Certificates
Generate License
Generate a for a purchased track.Check License
Check if a license exists for a track.Batch Check Licenses
Check licenses for multiple tracks at once.View License Certificate
Retrieve the license certificate data for a purchased track.Track ID to retrieve the license certificate for.
Download License PDF
Download the license certificate as a PDF document.Verify License (Public)
Verify a license certificate by its UUID. This endpoint does not require authentication.License certificate UUID.
Revoke License
Revoke a previously issued license.User Licenses
Get all license certificates for the authenticated user.Exclusive License Presets
Manage reusable pricing presets — — for exclusive license sales.List Presets
Get Default Config
Retrieve the default exclusive license configuration.Get Preset
Create Preset
Update Preset
Delete Preset
Set Default Preset
Artist Exclusive License Default
Manage the artist’s default exclusive license configuration, auto-applied to new tracks.Get Default
Set Default
Coupon Validation
Validate a discount code during checkout. This is the only user-facing coupon endpoint — coupon creation and management require administrative access.Validate Coupon Code
Check if a coupon code is valid and calculate the discount amount.Coupon code to validate.
Product/plan ID the coupon will be applied to.
Price ID the coupon will be applied to.
Original amount (before discount) for calculating savings.
| Error | Code | Cause |
|---|---|---|
| Invalid or expired coupon code | 422 | Code not found or expired |
| You cannot use this coupon | 422 | User-specific restriction |
| Cannot be applied to selected plan | 422 | Coupon not valid for this product |