Skip to main content
POST
/
api
/
v1
/
stripe
/
connect
Add Stripe API key
curl --request POST \
  --url https://demo.api.loopcrypto.xyz/api/v1/stripe/connect \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --header 'entity-id: <api-key>' \
  --data '{
  "stripeApiKey": "sk_test_51O5555555555555555555555555555555"
}'
{
  "successful": true,
  "plans": [
    {
      "name": "Monthly Subscription",
      "externalId": "price_12345"
    }
  ],
  "webhookEndpoints": [
    {
      "connectedSiteWebhook": true,
      "url": "https://example.com/webhook",
      "siteId": "12345"
    }
  ]
}

Authorizations

api-key
string
header
required
entity-id
string
header
required

Body

application/json
stripeApiKey
string
required

The Stripe API key used to authenticate and integrate with the Stripe API.

Example:

"sk_test_51O5555555555555555555555555555555"

Response

Ok

successful
boolean
required

Whether the Stripe connection was successful

Example:

true

webhookEndpoints
object[]
required

The webhook endpoints that were created in Stripe to process the various events that Stripe can send to the Loop platform

plans
object[]

The prices that were imported from Stripe as part of the connection

I