v1
latestOpenAPI 3.1.02026-07-263436159.3 KBSubscription
Create a new subscription
Creates a new subscription for recurring payments. Supports two authorization journeys: BACKGROUND (push notification) and USER_INTERACTION (QR code scan).
post/v1/subscriptions
Request body
Example request
{
"customer": {
"customerUniqueIdentifier": "customer-123",
"authorizationDetails": {
"bankAccount": "12345",
"bankCode": "001",
"accountType": "CHECKING"
}
},
"channel": "PIX",
"authorizationType": "BACKGROUND",
"frequency": "MONTHLY",
"retryPolicy": {
"type": "PIX_SPECIFIC",
"maxRetries": 5,
"retryIntervalDays": 2
},
"initialPayment": {
"description": "Initial payment description.",
"amount": 10000,
"expiration": 86400
},
"startDate": "2025-02-01T00:00:00Z",
"expirationDate": "2025-12-31T23:59:59Z",
"amount": {
"type": "FIXED",
"fixedValue": 10000,
"minValue": 5000,
"maxValue": 50000,
"currency": "BRL"
},
"notificationUrl": "https://your-domain.com/webhooks/subscriptions",
"country": "BR",
"language": "pt"
}Response
Subscription created successfully
Example response
{
"subscriptionId": "660e8400-e29b-41d4-a716-446655440001",
"subscriptionPaymentId": "770e8400-e29b-41d4-a716-446655440002",
"status": "PENDING_USER_AUTH",
"checkout": {
"payload": {
"code": "00020126580014br.gov.bcb.pix...",
"image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
}
}
}