Voltar para Payment Service
Type
ENDPOINT
Created
18/02/2026, 22:10
Updated
18/02/2026, 22:10

Config

path: "/v1/subscriptions"
method: "POST"
provider: "Stripe"
timeoutMs: 20000
environment: "sandbox|production"
idempotencyKeyHeader: "Idempotency-Key"

Input Schema

type: "object"
required:
0"authStripeSecretKeyRef"
1"userId"
2"stripeCustomerId"
3"planId"
4"paymentMethodId"
5"idempotencyKey"
properties:
planId:
userId:
idempotencyKey:
paymentMethodId:
trialPeriodDays:
stripeCustomerId:
authStripeSecretKeyRef:

Outputs (2)

errorERROR

Resposta de erro

type: "object"
properties: {}
successSUCCESS

Resposta de sucesso

type: "object"
required:
0"subscriptionId"
1"status"
2"currentPeriodEnd"
properties:
status:
subscriptionId:
latestInvoiceId:
currentPeriodEnd:
hostedInvoiceUrl:

Used in Flows (1)