Skip to main content
Version: Node SDK

Get One Plan

Returns the details of a single plan.

Code Sample

import { Salable } from '@salable/node-sdk';

const salable = new Salable('{{API_KEY}}', 'v2');

const plan = await salable.plans.getOne('f965551b-5070-48df-b3aa-944c7ff876e0', { expand: ['product'] });

Parameters

planUuid (required)

Type: string

The uuid of the Plan to be returned


options

Type: { expand: string[] }

OptionTypeDescriptionRequired
expandstringSpecify which properties to expand. e.g. { expand: ['product'] }

Return Type

For more information about this request see our API documentation on plan object