Skip to main content
POST
/
tracks
/
{id}
/
purchase
/
initiate
Initiate a track purchase via Stripe
curl --request POST \
  --url https://open.beatpass.ca/api/v1/tracks/{id}/purchase/initiate \
  --header 'Authorization: Bearer <token>'
{
  "client_secret": "<string>",
  "purchase_id": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Track ID

Example:

1

Response

Stripe PaymentIntent created

client_secret
string

Stripe PaymentIntent client secret

purchase_id
integer
Last modified on November 29, 2025