Create Customer and Subscription
POST
/customer-and-subscription
Subscriptions
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-sandbox.saaslogic.io/v1/customer-and-subscription' \
--header 'Authorization;' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"customerName": "Irma Medhurst II",
"customerType": "BUSINESS",
"isTaxExempted": false,
"contacts": [
{
"firstName": "Michael",
"lastName": "Hensley",
"email": "info@adroit.io",
"contactNumber": "1234567890",
"countryCode": "IND",
"contactId": "54674d18-aa04-4650-baf2-36479dafdb22",
"isDefault": false
},
{
"firstName": "Michael",
"lastName": "Hensley",
"email": "info@adroit.io",
"contactNumber": "1234567890",
"countryCode": "IND",
"contactId": "54674d18-aa04-4650-baf2-36479dafdb22",
"isDefault": false
},
{
"firstName": "Michael",
"lastName": "Hensley",
"email": "info@adroit.io",
"contactNumber": "1234567890",
"countryCode": "IND",
"contactId": "54674d18-aa04-4650-baf2-36479dafdb22",
"isDefault": true
}
],
"customerId": "78674d19-bb04-4650-vff2-56478dafdb24",
"exemptionReasonCode": "69",
"exemptionNumber": "60",
"addresses": [
{
"addressName": "Adroit Solutions",
"address": "Akshya Nagar 1st Block 1st Cross, Rammurthy nagar, Bangalore",
"countryCode": "IND",
"stateCode": "KA",
"city": "Bangalore",
"zip": "560016",
"addressId": "6c54f68f-1de4-4d72-b532-ae45658e4a15",
"isDefault": true
},
{
"addressName": "Adroit Solutions",
"address": "Akshya Nagar 1st Block 1st Cross, Rammurthy nagar, Bangalore",
"countryCode": "IND",
"stateCode": "KA",
"city": "Bangalore",
"zip": "560016",
"addressId": "6c54f68f-1de4-4d72-b532-ae45658e4a15",
"isDefault": true
},
{
"addressName": "Adroit Solutions",
"address": "Akshya Nagar 1st Block 1st Cross, Rammurthy nagar, Bangalore",
"countryCode": "IND",
"stateCode": "KA",
"city": "Bangalore",
"zip": "560016",
"addressId": "6c54f68f-1de4-4d72-b532-ae45658e4a15",
"isDefault": true
}
],
"subscription": {
"productId": "2a9d72c5-1c78-4b1b-bd12-4f4d76e9c2b7",
"planId": "d6f7e5a1-3c47-4a78-9b23-67f3e2d5a4b8",
"billingFrequencyId": "9f8b7a6c-5d4e-4c3b-8a2b-1f0d9e7c6a5b",
"subscriptionId": "7a3e2b1c-8d4f-5a6b-9f0e-2c7d1a4b3c8d",
"subscriptionStartDate": "2025-03-18T00:00:00",
"billingCycleStartDate": "2025-03-01T00:00:00",
"isAutoRenewEnabled": false,
"subscriptionAttributes": [
{
"attributeName": "Contract Type",
"attributeValue": "Annual"
}
],
"resourceQuantities": [
{
"resourceId": "5d2b3a1e-8c4f-6b7a-9f0e-2c1d4a3b8c7d",
"quantity": "200"
}
],
"addons": [
{
"addonId": "3e7a2b1c-9d4f-5a6b-0f1e-2c7d8a4b3c8d",
"addonName": "Raymond Weber",
"billingFrequencyId": "f7a6b5c4-d3e2-1f0e-9b8d-2c7a4b3c8d5e",
"billingFrequencyName": "Monthly",
"resourceName": "Backup Storage",
"quantity": "50",
"resourceUOMId": "cupidatat in esse officia",
"resourceUOMName": "GB"
},
{
"addonId": "3e7a2b1c-9d4f-5a6b-0f1e-2c7d8a4b3c8d",
"addonName": "Peggy Hintz",
"billingFrequencyId": "f7a6b5c4-d3e2-1f0e-9b8d-2c7a4b3c8d5e",
"billingFrequencyName": "Monthly",
"resourceName": "Backup Storage",
"quantity": "50",
"resourceUOMId": "aliquip",
"resourceUOMName": "GB"
}
],
"isTrail": false,
"couponCode": "SAVE20",
"isGenerateInvoiceForCurrentCycle": true
}
}'
Response Response Example
200 - Successfully Created!
CUSTOMER_CREATED_AND_SUBSCRIPTION_INITIATED_SUCCESSFULLY
Request
Header Params
Authorization
string
required
Default:
Bearer {{bearerToken}}
Content-Type
string
optional
Default:
application/json
Accept
string
optional
Default:
application/json
Body Params application/json