1. Subscriptions
Saaslogic
  • Enum Reference
  • Authentication
  • Introduction
  • Products
    • Resources
      • Create Product Resource
    • Coupons
      • Withdraw Coupon
      • Publish Coupon
      • Create Coupon
      • Update Coupon
      • Get Coupon
      • Get Coupons
    • Configurations
      • Update Product Configurations
    • Create Product
    • Get Product
    • List all products
    • Update Product
  • Authentication
    • saaslogic token
      • Get the saaslogic access token
    • login Url
      • Gives the login URL
    • logout Url
      • Gives the logout URL
  • Countries
    • Get list of countries
  • Plans
    • Create Plan
    • Update Plan
    • Publish Plan
    • Get Plan
    • Get Plans
    • List all plans for a product
  • Subscriptions
    • Get Subscriptions
      POST
    • Change subscription plan
      PUT
    • Cancel the subscription
      PUT
    • Refund amount calculation
      POST
    • Create a product subscription
      POST
    • Retrieve a subscription
      GET
    • Create Customer and Subscription
      POST
    • Subscription with details permissions, menus and features
      GET
    • The Saaslogic URL for creating subscription
      POST
  • Usage Reporting
    • Report the resource usages in subscription for invoicing
    • Retrieves the resource usages of a subscription in the current billing cycle
  • Customers
    • addresses
      • Create an address
      • List all addresses
      • Update an address
      • Retrieve an address
      • Delete an address
    • contacts
      • Create a contact
      • List all contacts
      • Update a contact
      • Retrieve a contact
      • Delete a contact
    • Create a customer
    • List all customers
    • Update a customer
    • Retrieve a customer
    • Delete a customer
  • Vendors
    • vendor addresses
      • Create a vendor address.
      • List all vendor addresses.
      • Update a vendor address.
      • Retrieve a vendor address..
      • Delete a vendor address.
    • vendor contacts
      • Create a vendor contact.
      • List all vendor contacts.
      • Update a vendor contact.
      • Retrieve a vendor contact.
      • Delete a vendor contact.
    • vendor bills
      • Create a vendor bill
      • Cancel a vendor bill.
    • vendor bills payout
      • Update payment details to vendor bills.
    • Create a vendor
    • Update a vendor.
    • Activate a vendor.
    • Deactivate a vendor
  • Invoices
    • subscriptions
      • Get the invoices
      • Get the invoices by subscription
    • payments
      • Mark the invoice payment status
    • Approve the invoice
    • Get Invoices
    • Refund amount calculation
    • Invoice Refund
    • Get the invoice details .
    • Cancel the invoice
    • Send invoice as pdf with payment link.
    • Create an on-demand invoice
  • States
    • Get list of states
  • Addons
    • List all addons for a product
  • Submerchant
    • Create a submerchant
  • UOM
    • Create UOM
    • Update UOM
    • List UOMs
    • Get UOM
  • HostedPages
    • Disable Hosted Page
    • Enable Hosted Page
  • Configurations
    • Update Configurations
  • Integrations
    • Get Integrations
    • Update SMTP Integration
    • Save SMTP integration
  • Schemas
    • Invoice
      • InvoiceSubscriptionDTO
      • InvoiceInfo
      • InvoiceDetail
      • InvoiceProduct
      • InvoiceLineItemDTO
      • InvoicePayment
      • InvoiceAttributeDTO
      • InvoiceRequestDTO
      • InvoiceRequestProduct
      • InvoiceRequestLineItem
      • InvoiceRequestLineItemTax
      • InvoiceRequestDiscount
      • InvoicePaginatedResponse
      • InvoiceRefundCalculationRequest
      • InvoiceRefundCalculationResponse
    • Vendor
      • Vendor
      • VendorContact
      • VendorAddress
      • VendorBill
    • Subscriptions
      • SubscritpionPaginatedResponse
      • Subscription
      • ResourceQuantities
      • ChangeSubscriptionRequest
    • Pagination
      • PageRequest
      • SortCriteria
      • FilterCriteria
      • Pagination
      • InvoiceList
      • PageResponse
    • Plan
      • Plan
      • PlanSearchRequest
    • UOM
      • UOM
    • Product
      • ProductResource
      • ProductFeature
      • Product
      • Coupon
      • ProductAttribute
      • CouponSearchRequest
    • Integrations
      • SmtpIntegrationRequest
    • AccessTokenResponse
    • ProductAPIKey
    • Country
    • CustomerAddress
    • PaymentInfo
    • CustomerWithSubscription
    • State
    • Addon
    • CustomerContact
    • Customer
    • Submerchant
    • ExternalCancelSubscriptionRequest
    • SubscriptionRefundCalculationRequest
    • SubscriptionRefundCalculationResponse
    • RefundBreakdownItem
    • HostedPageAccessRequest
    • ProratedRefundDetails
    • IntegationInfo
  1. Subscriptions

Create Customer and Subscription

POST
/customer-and-subscription

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Successfully Created!
text/plain
🔴500ErrorResponse
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api-sandbox.saaslogic.io/v1/customer-and-subscription' \
--header 'Authorization: Bearer ' \
--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",
        "billingFrequencyName": "Monthly",
        "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"
            }
        ],
        "isTrial": false,
        "couponCode": "SAVE20",
        "isGenerateInvoiceForCurrentCycle": true
    }
}'
Response Response Example
200 - Successfully Created!
CUSTOMER_CREATED_AND_SUBSCRIPTION_INITIATED_SUCCESSFULLY
Previous
Retrieve a subscription
Next
Subscription with details permissions, menus and features
Built with