microsoft-partnercenter
TypeScript icon, indicating that this package has built-in type declarations

4.3.1 • Public • Published

Microsoft PartnerCenter RestAPI SDK for NodeJS

Getting Started

You can install the package with the following command:

npm install microsoft-partnercenter
yarn add microsoft-partnercenter

Import the package

import { MicrosoftPartnerCenter } from 'microsoft-partnercenter'

Initialize with Client ID and Client Secret Auth & Partner Domain:

  const msPartnerCenter = new MicrosoftPartnerCenter ({
        partnerDomain: 'partner.onmicrosoft.com',
        authentication: {
            clientId: '1',
            clientSecret: '1',
        },
    })

Example Usage

Get all Customers

await msPartnerCenter.getAllCustomers()

Create Order

const customerId = '123'
const billingCycle = 'monthly'

const lineItems = [
  {
    offerId: '1',
    quantity: 16,
    termDuration: 'P1M',
},
]

await msPartnerCenter.createOrder(customerId, billingCycle, lineItems)

Package Sidebar

Install

npm i microsoft-partnercenter

Weekly Downloads

36

Version

4.3.1

License

MIT

Unpacked Size

44.1 kB

Total Files

31

Last publish

Collaborators

  • santese
  • pliancy-bot