Voltar para Payment Service
createSubscription
ENDPOINT
System
Payment Service
Type
ENDPOINT
Created
18/02/2026, 22:10
Updated
18/02/2026, 22:10
Config
{6}
path
:
"/v1/subscriptions"
method
:
"POST"
provider
:
"Stripe"
timeoutMs
:
20000
environment
:
"sandbox|production"
idempotencyKeyHeader
:
"Idempotency-Key"
Input Schema
{3}
type
:
"object"
required
:
[6]
0
"authStripeSecretKeyRef"
1
"userId"
2
"stripeCustomerId"
3
"planId"
4
"paymentMethodId"
5
"idempotencyKey"
properties
:
{7}
planId
:
{2}
userId
:
{2}
idempotencyKey
:
{2}
paymentMethodId
:
{1}
trialPeriodDays
:
{1}
stripeCustomerId
:
{1}
authStripeSecretKeyRef
:
{1}
Outputs (2)
error
ERROR
Resposta de erro
{2}
type
:
"object"
properties
:
{}
success
SUCCESS
Resposta de sucesso
{3}
type
:
"object"
required
:
[3]
0
"subscriptionId"
1
"status"
2
"currentPeriodEnd"
properties
:
{5}
status
:
{1}
subscriptionId
:
{2}
latestInvoiceId
:
{1}
currentPeriodEnd
:
{1}
hostedInvoiceUrl
:
{2}
Used in Flows (1)
Flow
Step Order
Cron: Subscription Renewal Check Flow
#1