HRMLESS API
string · required
string · requiredstring · minLength: 1 · maxLength: 200 · requiredstring · email · minLength: 1 · maxLength: 200 · requiredstring · minLength: 1 · maxLength: 200 · requiredstring · uuidstring | nullbooleanstring · minLength: 1 · maxLength: 200string · minLength: 1 · maxLength: 200string · minLength: 1 · maxLength: 200 · requiredstring · email · minLength: 1 · maxLength: 200 · requiredstring · minLength: 1 · maxLength: 200 · requiredstring · uuidstring | nullbooleanstring · minLength: 1 · maxLength: 200string · minLength: 1 · maxLength: 200
stringstringstringstring
string · requiredstring · minLength: 1 · requiredstring · minLength: 1 · requiredboolean · requiredstring · minLength: 1 · required
string · requiredstring · minLength: 1 · requiredstring · minLength: 1 · requiredstring · minLength: 1 · requiredstring · minLength: 1 · requiredstring · minLength: 1 · requiredstring · minLength: 1 · requiredstring | null · minLength: 1 · requiredinteger · requiredinteger · requiredinteger · requiredinteger · requiredinteger · requiredstring | null · minLength: 1 · requiredinteger · requiredboolean · requiredboolean · requiredstring | null · minLength: 1 · requiredstring · minLength: 1 · requiredstring · minLength: 1 · requiredinteger · requiredstring · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring · email · minLength: 1 · requiredstring · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring · minLength: 1 · required(string | null)[] · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · required(string | null)[] · requiredstring | null · minLength: 1 · required(string | null)[] · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredinteger · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredboolean · requiredobject · requiredinteger · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredinteger · requiredinteger · requiredinteger · requiredinteger · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredstring | null · minLength: 1 · requiredinteger · requiredstring | null · minLength: 1 · requiredstring · minLength: 1 · requiredinteger · requiredinteger · requiredstring | null · minLength: 1 · requiredinteger · required(string | null)[] · requiredinteger · required(string | null)[] · required(string | null)[] · requiredstring | null · minLength: 1 · required
Organization
Get org settings
GET
https://nervai.hrmless.com/api/v1
/org/{org_id}/settings/
Get organization settings
path Parameters
org_idGet org settings › Responses
Organization · required
Update org settings
PUT
https://nervai.hrmless.com/api/v1
/org/{org_id}/settings/
Update organization settings
path Parameters
org_idUpdate org settings › Request Body
Users[] · required
namecontact_emailcontact_phoneidaddressis_activecontact_namecalendar_linkUpdate org settings › Responses
Users[] · required
namecontact_emailcontact_phoneidaddressis_activecontact_namecalendar_linkGet subscription status
GET
https://nervai.hrmless.com/api/v1
/auth/validate_subscription
This method is used to validate your subscription status. It checks if your subscription is active, past due, canceled, or unpaid. It is also useful to get the required details for other subscription API calls.
Get subscription status › Responses
Successful response
subscription_idprice_idcustomer_idstatusGet subscription details
GET
https://nervai.hrmless.com/api/v1
/org/{org_id}/get_subscription
This method is used to get your subscription details by your Stripe customer ID. Your Stripe customer ID can be found using the Get Subscription Status endpoint.
path Parameters
org_idquery Parameters
customer_idGet subscription details › Responses
objectSubscriptionResponse[] · required
has_moreurlPreview invoice
POST
https://nervai.hrmless.com/api/v1
/org/{org_id}/preview_invoice
This method is used to preview the next invoice for your organization based on your current usage.
path Parameters
org_idPreview invoice › Request Body
customer_idsubscription_idPreview invoice › Responses
idobjectaccount_countryaccount_nameaccount_tax_idsamount_dueamount_overpaidamount_paidamount_remainingamount_shippingapplicationattempt_countattemptedauto_advanceAutomaticTax · required
automatically_finalizes_atbilling_reasoncollection_methodcreatedcurrencycustom_fieldscustomercustomer_addresscustomer_emailcustomer_namecustomer_phonecustomer_shippingcustomer_tax_exemptcustomer_tax_idsdefault_payment_methoddefault_sourcedefault_tax_ratesdescriptiondiscountsdue_dateeffective_atending_balancefooterfrom_invoicehosted_invoice_urlinvoice_pdfIssuer · required
last_finalization_errorlatest_revisionLines · required
livemodemetadatanext_payment_attemptnumberon_behalf_ofInvoiceParent · required
NewPaymentSettings · required
period_endperiod_startpost_payment_credit_notes_amountpre_payment_credit_notes_amountreceipt_numberrenderingshipping_costshipping_detailsstarting_balancestatement_descriptorstatusStatusTransitions · required
subtotalsubtotal_excluding_taxtest_clocktotaltotal_discount_amountstotal_excluding_taxtotal_pretax_credit_amountstotal_taxeswebhooks_delivered_at