Enable SaaS for Sub-Account (Formerly Location)
POST/saas-api/public-api/enable-saas/:locationId
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Enable SaaS for Sub-Account (Formerly Location) based on the data provided
This feature is only available on Agency Pro ($497) plan.
Request
API Version
2021-04-15Location ID to enable SaaS for
- application/json
- Body
- Example (auto)
Bodyrequired
Stripe account id(Required only for SaaS V1)
Name of the stripe customer(Required only for SaaS V1)
Email of the stripe customer(Required only for SaaS V1)
Stripe customer id if exists(Required only for SaaS V1)
Denotes if it is a saas v2 or v1 sub-account
Agency subaccount used for payment provider integration(Required Only for SaaS V2)
Agency Subaccount ID
Description
Required only while pre-configuring saas subscription
Required only while pre-configuring saas subscription
{
"stripeAccountId": "acct_1QDPY5FpU9DlKp7RQ8BXfywx",
"name": "John Doe",
"stripeCustomerId": "cus_1QDPY5FpU9DlKp7RQ8BXfywx",
"companyId": "string",
"isSaaSV2": true,
"contactId": "1QDPY5FpU9DlKp7RQ8BXfywx",
"providerLocationId": "r06mdj4OrrERzYDvsOdh",
"description": "Description",
"saasPlanId": "1QDPY5FpU9DlKp7RQ8BXfywx",
"priceId": "price_1QDPY5FpU9DlKp7RQ8BXfywx"
}
SaaS enabled successfully for location
- application/json
- Schema
- Example (auto)
Schema
Response data from the enable SaaS operation
{
"data": {
"customer_id": "cus_1QDPY5FpU9DlKp7RQ8BXfywx",
"ok": true,
"paymentMethodAdded": true
}
}