LogoLogo
  • Piriod API
  • Getting started
  • Integrations flows
  • Authentication
  • Error Handling
  • Pagination and Filtering
  • Core Resources
    • Customers
      • Create a customer
      • List customers
    • Contacts
    • Reminders
  • Billing
    • Products
    • Plans
    • Addons
    • Coupons
    • Subscriptions
    • Usages
    • Invoices
    • Credit Notes
    • Orders
  • Payments
    • Sources
    • Payments
  • Apps
    • Customer Base
      • Sessions
  • Collections
    • Documents
    • Currencies
    • Countries
    • States
Powered by GitBook
On this page
  • Create a session
  • Retrieve a session

Was this helpful?

  1. Apps
  2. Customer Base

Sessions

Create a session

POST https://api.piriod.com/customer_base/sessions/

Creates a new Session object.

Request Body

Name
Type
Description

customer

string

ID of related Customer object.

return_url

string

URL to return on session expiration.

{
    "id": "ses_DyHrsrQjkUSSqYuosg",
    "key": "1d4e158b-1bc3-4a17-896e-be180b8299b4",
    "return_url": "https://dashboard.myproduct.com/",
    "created": "2020-09-01T14:48:30.116162-04:00",
    "customer": "cus_18NSMz56sIVMsXo6Fy",
    "settings": {
        "business_name": "Flintstone App",
        "color_background": "#0066FF",
        "color_asset": "#57698B",
        "display_invoices": true,
        "terms_of_service_url": "",
        "privacy_policy_url": "",
        "return_url": "https://dashboard.myproduct.com/"
    }
}

Retrieve a session

GET https://api.piriod.com/customer_base/sessions/{{key}}/

Retrieves a Session object.

Path Parameters

Name
Type
Description

key

string

key attribute of the Session object.

{
    "id": "ses_DyHrsrQjkUSSqYuosg",
    "key": "1d4e158b-1bc3-4a17-896e-be180b8299b4",
    "return_url": "https://dashboard.myproduct.com/",
    "created": "2020-09-01T14:48:30.116162-04:00",
    "customer": "cus_18NSMz56sIVMsXo6Fy",
    "settings": {
        "business_name": "Flintstone App",
        "color_background": "#0066FF",
        "color_asset": "#57698B",
        "display_invoices": true,
        "terms_of_service_url": "",
        "privacy_policy_url": "",
        "return_url": "https://dashboard.myproduct.com/"
    }
}

PreviousCustomer BaseNextDocuments

Last updated 11 months ago

Was this helpful?