Saaslogic
  1. Subscriptions
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
      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.
    • 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. Subscriptions

The Saaslogic URL for creating subscription

POST
/subscriptions/url
Subscriptions
Retrieves the URL to create the subscription with the given details. From the merchant website or application they can redirect to this URL and create subscription.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-sandbox.saaslogic.io/v1/subscriptions/url' \
--header 'Accept: application/json' \
--header 'Accept;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "planId": "550e8400-e29b-41d4-a716-446655440000",
  "frequencyName": "Monthly",
  "countryISOCode": "USA",
  "customerId": "550e8400-e29b-41d4-a716-446655440001"
}'
Response Response Example
200 - Subscription URL generated successfully
{
  "url": "https://example.saaslogic.io/anonymous/#id_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Request

Header Params
Content-Type
string 
required
Example:
application/json
Accept
string 
required
Example:
application/json
Authorization
string 
required
Saaslogic authorization token
Default:
Bearer {{bearerToken}}
Body Params application/json
planId
string 
required
frequencyName
string 
required
countryISOCode
string 
required
customerId
string 
required
Examples

Responses

🟢200Subscription URL generated successfully
application/json
Body
url
string 
required
🔴500ErrorResponse
Previous
Subscription with details permissions, menus and features
Next
Report the resource usages in subscription for invoicing
Built with