Stripe Connect
Stripe Connect is scoped to an artist_profile post (artist site). These endpoints support checking account status and generating onboarding/dashboard links.
Routes
GET /wp-json/extrachill/v1/shop/stripe-connect/status?artist_id=123POST /wp-json/extrachill/v1/shop/stripe-connect/onboarding-linkPOST /wp-json/extrachill/v1/shop/stripe-connect/dashboard-link
Permission
- User must be logged in.
artist_idis required.- User must be able to manage the artist:
ec_can_manage_artist( get_current_user_id(), artist_id ).
GET status
Returns the current Stripe connection status and account capabilities.
Request
curl -X GET "http://site.local/wp-json/extrachill/v1/shop/stripe-connect/status?artist_id=123"
-H "X-WP-Nonce: nonce_value"
Response
{
"connected": true,
"account_id": "acct_123",
"status": "active",
"can_receive_payments": true,
"charges_enabled": true,
"payouts_enabled": true,
"details_submitted": true
}
If the artist has no connected account:
{
"connected": false,
"account_id": null,
"status": null,
"can_receive_payments": false
}
POST onboarding link
Creates a Stripe Express account for the artist if one doesn’t exist and returns an onboarding URL.
Request
curl -X POST "http://site.local/wp-json/extrachill/v1/shop/stripe-connect/onboarding-link"
-H "Content-Type: application/json"
-H "X-WP-Nonce: nonce_value"
-d '{
"artist_id": 123
}'
Response
{
"success": true,
"url": "https://connect.stripe.com/setup/s/..."
}
POST dashboard link
Generates a single-use login link for the artist’s Stripe Express dashboard.
Request
curl -X POST "http://site.local/wp-json/extrachill/v1/shop/stripe-connect/dashboard-link"
-H "Content-Type: application/json"
-H "X-WP-Nonce: nonce_value"
-d '{
"artist_id": 123
}'
Response
{
"success": true,
"url": "https://connect.stripe.com/express_login/..."
}
Notes
- Account creation uses the artist owner’s email (
artist_profile.post_author). - Account data is stored on the
artist_profilepost meta, not user meta:_stripe_connect_account_id_stripe_connect_status_stripe_connect_onboarding_complete