> For the complete documentation index, see [llms.txt](https://docs.mspp.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mspp.io/ninjaone-billing-scripts/pax8-to-ninjaone-license-sync.md).

# Pax8 to NinjaOne License Sync

This script allows you to bring your Pax8 subscription information into NinjaOne license management. With the release of NinjaOne 13.0 this license information can be used by NinjaOne Billing as a quantity source to automatically invoice customers.

<figure><img src="/files/aCIY9Gv4XL9ZkHJ4nWHc" alt=""><figcaption></figcaption></figure>

## **Requirements**

Make sure the [Getting Started](/ninjaone-auto-documentation/getting-started.md) guide has been followed

### **NinjaOne Products**

Core RMM

NinjaOne IT Asset Management (included in NinjaOne PSA)

### **Recommended Schedule**

Once per day

### **Role Setting Custom Fields**

<table data-full-width="true"><thead><tr><th>Display Name</th><th width="254.8">Name</th><th>Type</th><th>Permissions</th><th>Description</th></tr></thead><tbody><tr><td>Pax8 Client ID</td><td>pax8ClientID</td><td>Secure</td><td><p>Technician: Editable<br>Automations: Read/Write</p><p>API: None</p></td><td>Your Pax8 API Client ID</td></tr><tr><td>Pax8 Client Secret</td><td>pax8ClientSecret</td><td>Secure</td><td><p>Technician: Editable<br>Automations: Read/Write</p><p>API: None</p></td><td>Your Pax8 API Client Secret</td></tr></tbody></table>

### **Global Custom Fields**

None

## Setup

To run this script first obtain a Pax8 API Client ID and Secret from <https://app.pax8.com/integrations/credentials>

Add in the Client ID and Client Secret that will be generated to the custom fields on your automation device.

Follow the details in the getting started guide for instructions on how to schedule this script.

There is a setting at the top of the script to let you choose to include the organization name in the license name or not.

## Matching

Organizations are matched based on the company name in Pax8 to the Organization name in NinjaOne. If your names do not match you can edit the name override section at the top of the script to map the Pax8 names to NinjaOne names.

## The Script

{% @github-files/github-code-block url="<https://github.com/lwhitelock/NinjaOneAutomation/blob/main/Billing_Scripts/Pax8_NinjaOne_Sync.ps1>" %}
