Saaslogic
  1. Customers
Saaslogic
  • Introduction
  • Authentication
  • Enum Reference
  • 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
    • List all plans for a product
  • Subscriptions
    • Create a product subscription
    • Retrieve a subscription
    • Create Customer and Subscription
    • Subscription with details permissions, menus and features
    • The Saaslogic URL for creating subscription
  • 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
      POST
    • List all customers
      GET
    • Update a customer
      PUT
    • Retrieve a customer
      GET
    • Delete a customer
      DELETE
  • 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.
    • Dectivate a vendor.
  • Attributes
    • Create a organization attribute and set the value
    • Retrieve a organization attribute
    • Create a user attribute
    • Update a user attribute
    • Get a user attribute
  • Invoices
    • subscriptions
      • Get the invoices
      • Get the invoices by subscription
    • payments
      • Mark the invoice payment status
    • Get the invoice details .
    • cancel the invoices
    • Send invoice as pdf with payment link.
    • Create an on-demand invoice
  1. Customers

Create a customer

POST
/customers
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-sandbox.saaslogic.io/v1/customers' \
--header 'Authorization;' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
    "customerName": "Adroit Solutions",
    "customerType": "BUSINESS",
    "isTaxExempted": true,
    "contacts": [
        {
            "firstName": "Michael",
            "lastName": "Hensley",
            "email": "info@adroit.io",
            "contactNumber": "1234567890",
            "countryCode": "IND",
            "contactId": "54674d18-aa04-4650-baf2-36479dafdb22",
            "isDefault": true
        }
    ],
    "customerId": "4e27ea44-9be0-4661-a851-3c099d3a18a5",
    "exemptionReasonCode": "D",
    "exemptionNumber": "12345678",
    "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
        }
    ]
}'
Response Response Example
200 - Successfully Created!
{
  "customerId": "4e27ea44-9be0-4661-a851-3c099d3a18a5",
  "customerName": "Adroit Solutions",
  "customerType": "BUSINESS",
  "isTaxExempted": true,
  "exemptionReasonCode": "D",
  "exemptionNumber": "12345678",
  "isActive": true,
  "Status": "Ready",
  "contacts": [
    {
      "firstName": "Michael",
      "lastName": "Hensley",
      "email": "info@adroit.io",
      "contactNumber": "1234567890",
      "countryCode": "IND",
      "contactId": "54674d18-aa04-4650-baf2-36479dafdb22",
      "countryPrefix": "+91",
      "isDefault": true
    },
    {
      "firstName": "Michael",
      "lastName": "Hensley",
      "email": "info@adroit.io",
      "contactNumber": "1234567890",
      "countryCode": "IND",
      "contactId": "54674d18-aa04-4650-baf2-36479dafdb22",
      "countryPrefix": "+91",
      "isDefault": true
    }
  ],
  "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
    }
  ]
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Successfully Created!
application/json
Body

🔴500ErrorResponse
Previous
Delete a contact
Next
List all customers
Built with