Skip to content

HeyDonto API Documentation (1.0)

API documentation for HeyDonto API

Overview
Languages
Servers
Mock server

https://docs.heydonto.com/_mock/apis/heydonto/openapi/

Sandbox

https://api-staging.heydonto.com/

Production

https://api.heydonto.com/

Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Get list of billing information filtered

Request

Security
bearer
Query
withPaymentMethodboolean

Pass true or false (1 or 0) to filter by whether the billing information has a payment method (credit card or bank account)

pagenumber>= 0

Page number (0-based)

Default 0
Example: page=0
pageSizenumber[ 1 .. 100 ]

Number of items per page

Default 10
Example: pageSize=10
sortBy[0][field]string

First sort field

Enum"id""clientAccountId""createdAt""updatedAt"
sortBy[0][dir]string

First sort direction

Enum"asc""desc"
sortBy[1][field]string

Second sort field

Enum"id""clientAccountId""createdAt""updatedAt"
sortBy[1][dir]string

Second sort direction

Enum"asc""desc"
curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/heydonto/openapi/billing-information?withPaymentMethod=true&page=0&pageSize=10&sortBy%5B0%5D%5Bfield%5D=id&sortBy%5B0%5D%5Bdir%5D=asc&sortBy%5B1%5D%5Bfield%5D=id&sortBy%5B1%5D%5Bdir%5D=asc' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

List of Billing Information filtered

Bodyapplication/json
dataArray of objects(BillingInformationWithManagerAndAccountDto)required

Array of billing information

data[].​idnumberrequired

ID of the billing information

Example: 1
data[].​clientAccountIdnumberrequired

ID of the client account

Example: 1
data[].​costPerLocationnumberrequired

Cost per location

Example: 100
data[].​minimumBillingLocationsnumberrequired

Minimum number of billing locations

Example: 5
data[].​isAutoRenewbooleanrequired

Whether auto-renewal is enabled

Example: true
data[].​billingStartDatestring(date-time)required

Start date for billing

Example: "2024-03-17T00:00:00Z"
data[].​billingFrequencystringrequired

Billing frequency

Enum"MONTHLY""QUARTERLY""ANNUALLY"
Example: "MONTHLY"
data[].​stripeCustomerIdstring or null

Stripe customer ID

Example: "cus_123456789"
data[].​createdAtstring(date-time)required

Creation date

Example: "2024-01-01T00:00:00Z"
data[].​stripeSubscriptionIdstring or null

Stripe subscription ID (once a subscription exists)

Example: "sub_1RFBYKHGcS3PmRZjUcjG4rYN"
data[].​updatedAtstring(date-time)required

Last update date

Example: "2024-01-01T00:00:00Z"
data[].​billingManagerUserobject(BillingManagerUserDto)required
data[].​billingManagerUser.​userobject(UserDto)required
data[].​billingManagerUser.​user.​idnumberrequired

Unique identifier for the user

Example: 1
data[].​billingManagerUser.​user.​emailstringrequired

Email address of the user

Example: "admin@admin.com"
data[].​billingManagerUser.​user.​firstNamestringrequired

First name of the user

Example: "John"
data[].​billingManagerUser.​user.​lastNamestringrequired

Last name of the user

Example: "Doe"
data[].​billingManagerUser.​user.​rolestringrequired

Role of the user

Enum"ADMIN""ORGANIZATION_USER""BRAND_USER""SITE_USER""CLIENT_ACCOUNT_USER""SITE_MANAGER_USER"
Example: "ADMIN"
data[].​billingManagerUser.​user.​isEnabledbooleanrequired

Is the user enabled

Example: true
data[].​billingManagerUser.​user.​createdAtstring(date-time)required

Creation date of the user

Example: "2024-01-01T00:00:00.000Z"
data[].​billingManagerUser.​user.​updatedAtstring(date-time)required

Last update date of the user

Example: "2024-01-02T00:00:00.000Z"
data[].​billingManagerUser.​user.​userOrganizationsArray of strings

Organizations associated with the user

data[].​billingManagerUser.​user.​userBrandsArray of strings

Brands associated with the user

data[].​billingManagerUser.​user.​userSitesArray of strings

Sites associated with the user

data[].​billingManagerUser.​user.​userClientAccountsArray of strings

Client accounts associated with the user

data[].​billingManagerUser.​user.​clientAccountSiteManagersArray of strings

Client account site management permissions

data[].​billingManagerUser.​user.​tosAcceptedAtstring(date-time)required

Time stamp of the Terms of Services acceptance

Example: "2024-01-02T00:00:00.000Z"
data[].​clientAccountobject(ClientAccountDto)required
data[].​clientAccount.​idnumberrequired
Example: 1
data[].​clientAccount.​titlestringrequired
Example: "Downtown Clinic"
metaobjectrequired
meta.​pagenumberrequired

Current page number (0-based)

Example: 0
meta.​pageSizenumberrequired

Number of items per page

Example: 10
meta.​totalnumberrequired

Total number of items

Example: 150
meta.​totalPagesnumberrequired

Total number of pages

Example: 15
meta.​hasNextbooleanrequired

Whether there is a next page

Example: true
meta.​hasPreviousbooleanrequired

Whether there is a previous page

Example: false
Response
application/json
{ "data": [ { … } ], "meta": { "page": 0, "pageSize": 10, "total": 150, "totalPages": 15, "hasNext": true, "hasPrevious": false } }

Request

Security
bearer
Bodyapplication/jsonrequired
clientAccountIdnumberrequired

The client account ID

Example: 1
billingManagerUserIdnumberrequired

The billing manager user ID

Example: 1
costPerLocationnumberrequired

Cost per location

Example: 100
minimumBillingLocationsnumberrequired

Minimum number of billing locations

Example: 5
isAutoRenewbooleanrequired

Whether auto-renewal is enabled

Example: true
billingStartDatestring(date-time)required

Start date for billing

Example: "2024-03-17T00:00:00Z"
billingFrequencystringrequired

Billing frequency

Enum"MONTHLY""QUARTERLY""ANNUALLY"
Example: "MONTHLY"
curl -i -X POST \
  https://docs.heydonto.com/_mock/apis/heydonto/openapi/billing-information \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "clientAccountId": 1,
    "billingManagerUserId": 1,
    "costPerLocation": 100,
    "minimumBillingLocations": 5,
    "isAutoRenew": true,
    "billingStartDate": "2024-03-17T00:00:00Z",
    "billingFrequency": "MONTHLY"
  }'

Responses

Billing Information created successfully.

Bodyapplication/json
idnumberrequired

ID of the billing information

Example: 1
clientAccountIdnumberrequired

ID of the client account

Example: 1
costPerLocationnumberrequired

Cost per location

Example: 100
minimumBillingLocationsnumberrequired

Minimum number of billing locations

Example: 5
isAutoRenewbooleanrequired

Whether auto-renewal is enabled

Example: true
billingStartDatestring(date-time)required

Start date for billing

Example: "2024-03-17T00:00:00Z"
billingFrequencystringrequired

Billing frequency

Enum"MONTHLY""QUARTERLY""ANNUALLY"
Example: "MONTHLY"
stripeCustomerIdstring or null

Stripe customer ID

Example: "cus_123456789"
createdAtstring(date-time)required

Creation date

Example: "2024-01-01T00:00:00Z"
stripeSubscriptionIdstring or null

Stripe subscription ID (once a subscription exists)

Example: "sub_1RFBYKHGcS3PmRZjUcjG4rYN"
updatedAtstring(date-time)required

Last update date

Example: "2024-01-01T00:00:00Z"
Response
application/json
{ "id": 1, "clientAccountId": 1, "costPerLocation": 100, "minimumBillingLocations": 5, "isAutoRenew": true, "billingStartDate": "2024-03-17T00:00:00Z", "billingFrequency": "MONTHLY", "stripeCustomerId": "cus_123456789", "createdAt": "2024-01-01T00:00:00Z", "stripeSubscriptionId": "sub_1RFBYKHGcS3PmRZjUcjG4rYN", "updatedAt": "2024-01-01T00:00:00Z" }

Request

Security
bearer
Path
idnumberrequired
Bodyapplication/jsonrequired
costPerLocationnumber

Cost per location

Example: 100
minimumBillingLocationsnumber

Minimum number of billing locations

Example: 5
isAutoRenewboolean

Whether auto-renewal is enabled

Example: true
billingStartDatestring(date-time)

Start date for billing

Example: "2024-03-17T00:00:00Z"
billingFrequencystring

Billing frequency

Enum"MONTHLY""QUARTERLY""ANNUALLY"
Example: "MONTHLY"
curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/heydonto/openapi/billing-information/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "costPerLocation": 100,
    "minimumBillingLocations": 5,
    "isAutoRenew": true,
    "billingStartDate": "2024-03-17T00:00:00Z",
    "billingFrequency": "MONTHLY"
  }'

Responses

Billing Information updated successfully.

Bodyapplication/json
idnumberrequired

ID of the billing information

Example: 1
clientAccountIdnumberrequired

ID of the client account

Example: 1
costPerLocationnumberrequired

Cost per location

Example: 100
minimumBillingLocationsnumberrequired

Minimum number of billing locations

Example: 5
isAutoRenewbooleanrequired

Whether auto-renewal is enabled

Example: true
billingStartDatestring(date-time)required

Start date for billing

Example: "2024-03-17T00:00:00Z"
billingFrequencystringrequired

Billing frequency

Enum"MONTHLY""QUARTERLY""ANNUALLY"
Example: "MONTHLY"
stripeCustomerIdstring or null

Stripe customer ID

Example: "cus_123456789"
createdAtstring(date-time)required

Creation date

Example: "2024-01-01T00:00:00Z"
stripeSubscriptionIdstring or null

Stripe subscription ID (once a subscription exists)

Example: "sub_1RFBYKHGcS3PmRZjUcjG4rYN"
updatedAtstring(date-time)required

Last update date

Example: "2024-01-01T00:00:00Z"
Response
application/json
{ "id": 1, "clientAccountId": 1, "costPerLocation": 100, "minimumBillingLocations": 5, "isAutoRenew": true, "billingStartDate": "2024-03-17T00:00:00Z", "billingFrequency": "MONTHLY", "stripeCustomerId": "cus_123456789", "createdAt": "2024-01-01T00:00:00Z", "stripeSubscriptionId": "sub_1RFBYKHGcS3PmRZjUcjG4rYN", "updatedAt": "2024-01-01T00:00:00Z" }

Request

Security
bearer
Path
idnumberrequired
curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/heydonto/openapi/billing-information/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Billing Information found.

Bodyapplication/json
idnumberrequired

ID of the billing information

Example: 1
clientAccountIdnumberrequired

ID of the client account

Example: 1
costPerLocationnumberrequired

Cost per location

Example: 100
minimumBillingLocationsnumberrequired

Minimum number of billing locations

Example: 5
isAutoRenewbooleanrequired

Whether auto-renewal is enabled

Example: true
billingStartDatestring(date-time)required

Start date for billing

Example: "2024-03-17T00:00:00Z"
billingFrequencystringrequired

Billing frequency

Enum"MONTHLY""QUARTERLY""ANNUALLY"
Example: "MONTHLY"
stripeCustomerIdstring or null

Stripe customer ID

Example: "cus_123456789"
createdAtstring(date-time)required

Creation date

Example: "2024-01-01T00:00:00Z"
stripeSubscriptionIdstring or null

Stripe subscription ID (once a subscription exists)

Example: "sub_1RFBYKHGcS3PmRZjUcjG4rYN"
updatedAtstring(date-time)required

Last update date

Example: "2024-01-01T00:00:00Z"
Response
application/json
{ "id": 1, "clientAccountId": 1, "costPerLocation": 100, "minimumBillingLocations": 5, "isAutoRenew": true, "billingStartDate": "2024-03-17T00:00:00Z", "billingFrequency": "MONTHLY", "stripeCustomerId": "cus_123456789", "createdAt": "2024-01-01T00:00:00Z", "stripeSubscriptionId": "sub_1RFBYKHGcS3PmRZjUcjG4rYN", "updatedAt": "2024-01-01T00:00:00Z" }

Delete stripe customer & local billing information

Request

Security
bearer
Path
idnumberrequired
curl -i -X DELETE \
  'https://docs.heydonto.com/_mock/apis/heydonto/openapi/billing-information/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Stripe customer and Billing Information deleted successfully.

Response
No content

Get billing information by client account ID

Request

Security
bearer
Path
clientAccountIdnumberrequired
curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/heydonto/openapi/billing-information/client-account/{clientAccountId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Billing Information found.

Bodyapplication/json
idnumberrequired

ID of the billing information

Example: 1
clientAccountIdnumberrequired

ID of the client account

Example: 1
costPerLocationnumberrequired

Cost per location

Example: 100
minimumBillingLocationsnumberrequired

Minimum number of billing locations

Example: 5
isAutoRenewbooleanrequired

Whether auto-renewal is enabled

Example: true
billingStartDatestring(date-time)required

Start date for billing

Example: "2024-03-17T00:00:00Z"
billingFrequencystringrequired

Billing frequency

Enum"MONTHLY""QUARTERLY""ANNUALLY"
Example: "MONTHLY"
stripeCustomerIdstring or null

Stripe customer ID

Example: "cus_123456789"
createdAtstring(date-time)required

Creation date

Example: "2024-01-01T00:00:00Z"
stripeSubscriptionIdstring or null

Stripe subscription ID (once a subscription exists)

Example: "sub_1RFBYKHGcS3PmRZjUcjG4rYN"
updatedAtstring(date-time)required

Last update date

Example: "2024-01-01T00:00:00Z"
Response
application/json
{ "id": 1, "clientAccountId": 1, "costPerLocation": 100, "minimumBillingLocations": 5, "isAutoRenew": true, "billingStartDate": "2024-03-17T00:00:00Z", "billingFrequency": "MONTHLY", "stripeCustomerId": "cus_123456789", "createdAt": "2024-01-01T00:00:00Z", "stripeSubscriptionId": "sub_1RFBYKHGcS3PmRZjUcjG4rYN", "updatedAt": "2024-01-01T00:00:00Z" }

Get billing information by client account ID

Request

Security
bearer
Path
clientAccountIdnumberrequired
curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/heydonto/openapi/billing-information/me/client-account/{clientAccountId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Billing Information found.

Bodyapplication/json
idnumberrequired

ID of the billing information

Example: 1
clientAccountIdnumberrequired

ID of the client account

Example: 1
costPerLocationnumberrequired

Cost per location

Example: 100
minimumBillingLocationsnumberrequired

Minimum number of billing locations

Example: 5
isAutoRenewbooleanrequired

Whether auto-renewal is enabled

Example: true
billingStartDatestring(date-time)required

Start date for billing

Example: "2024-03-17T00:00:00Z"
billingFrequencystringrequired

Billing frequency

Enum"MONTHLY""QUARTERLY""ANNUALLY"
Example: "MONTHLY"
stripeCustomerIdstring or null

Stripe customer ID

Example: "cus_123456789"
createdAtstring(date-time)required

Creation date

Example: "2024-01-01T00:00:00Z"
stripeSubscriptionIdstring or null

Stripe subscription ID (once a subscription exists)

Example: "sub_1RFBYKHGcS3PmRZjUcjG4rYN"
updatedAtstring(date-time)required

Last update date

Example: "2024-01-01T00:00:00Z"
Response
application/json
{ "id": 1, "clientAccountId": 1, "costPerLocation": 100, "minimumBillingLocations": 5, "isAutoRenew": true, "billingStartDate": "2024-03-17T00:00:00Z", "billingFrequency": "MONTHLY", "stripeCustomerId": "cus_123456789", "createdAt": "2024-01-01T00:00:00Z", "stripeSubscriptionId": "sub_1RFBYKHGcS3PmRZjUcjG4rYN", "updatedAt": "2024-01-01T00:00:00Z" }