v1
latestOpenAPI 3.0.02026-07-24103118224.7 KBSubscription
Initiate subscription from offer in the server to server process
ℹ️ Note: To transmit card information directly through this API (server-to-server), replace the default base URL with https://api-card.inflowpay.com — contact support to get the required authorization.
If you are not transmitting card information directly (e.g. you're using our SDK to collect card details), keep the default base URL.
Initiates a new subscription from an existing offer
post/subscription/offer/{subscriptionOfferId}/initiate-server
Path parameters
subscriptionOfferIdstring required
Example:offer_1234567890abcdef
Unique identifier of the subscription offer
Request body
Example request
{
"card": {
"number": "4242424242424242",
"expiration_month": 12,
"expiration_year": 2025,
"cvc": "123"
},
"items": [
{
"priceId": "price_1234567890abcdef",
"productId": "pro_1234567890abcdef",
"quantity": 1
}
],
"customerEmail": "customer@example.com",
"billingCountry": "FR",
"postalCode": "75001",
"businessName": "Acme Corp",
"taxId": "FR12345678901",
"firstName": "John",
"lastName": "Doe",
"pricingMode": "TAX_EXCLUSIVE",
"threeDsSuccessUrl": "https://yourapp.com/payment/success?paymentId=pay_123",
"threeDsFailureUrl": "https://yourapp.com/payment/failure?paymentId=pay_123",
"marketplaceFeeInCents": 200,
"captureMode": "AUTOMATIC",
"statementDescriptor": "MY BRAND",
"label": "Premium plan - John Doe"
}Response
Initiate subscription from offer in the server to server process successful
Example response
{
"type": "payment",
"payment": {
"lastDepositAttempt": {
"status": "succeeded",
"amount": 10000,
"paymentMethod": "CARD",
"error": "card_declined",
"attemptedAt": "2025-10-24T14:35:00Z"
},
"taxRateInPercentage": 20,
"pricingMode": "TAX_EXCLUSIVE",
"lastThreeDsAttempt": {
"status": "succeeded",
"cardBrand": "Visa",
"createdDate": "2025-11-12T21:51:33.530Z"
},
"invoiceUrl": "https://api.inflowpay.com/invoice/download?token=abc123xyz",
"customerPaymentMethod": {
"id": "cpm_abc123",
"type": "card",
"cardBrand": "visa",
"cardLast4": "4242"
}
},
"paymentSetup": {
"id": "setup_pm_req_abc123",
"status": "completed",
"currency": "EUR",
"subscriptionId": "sub_1234567890abcdef"
},
"subscriptionId": "sub_1234567890abcdef",
"threeDsSessionUrl": "https://checkout.inflowpay.com/pay/pay_1234567890abcdef"
}