Logo
Search
Docs

Stripe config

GET https://app.sulus.ai/api/stripe/config

Get the publishable payment key and currency for checkout

Authentication

Send a bearer token created on your dashboard's Developer page:

Authorization: Bearer <YOUR_API_KEY>

Errors

StatusMeaningBody
401 Missing or invalid bearer token

Notes

  • Public reseller-scoped route used by the payment form. Keys are top-level (not under data).
  • Values prefer reseller settings group stripe (stripe_publishable_key, stripe_test_mode, stripe_currency) then app defaults.
curl --request GET \
  --url https://app.sulus.ai/api/stripe/config \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
import requests

url = "https://app.sulus.ai/api/stripe/config"
headers = {"Authorization": "Bearer <YOUR_API_KEY>"}

response = requests.get(url, headers=headers)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	url := "https://app.sulus.ai/api/stripe/config"
	req, _ := http.NewRequest("GET", url, nil)
	req.Header.Add("Authorization", "Bearer <YOUR_API_KEY>")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
Response 200
{
    "success": true,
    "publishable_key": "pk_test_51ExamplePublishableKey",
    "test_mode": true,
    "currency": "usd"
}