solidus-sdk

solidus-sdk

  • Docs
  • GitLab
  • Solidus

›API

Getting Started

  • Basic Usage
  • Configuration
  • Plugins
  • Customizations

API

  • checkout
  • classification
  • config
  • country
  • creditCard
  • inventoryUnit
  • optionType
  • optionValue
  • order
  • Products
  • Promotions
  • property
  • shipment
  • stockItem
  • stockLocation
  • store
  • storeCreditEvent
  • taxon
  • taxonomy
  • user
  • variant
  • zone

Other

  • Contributing
Edit

Promotions

Allows you to interact with promotions and related endpoints.

For more information on how promotions work, see the Solidus Developer's Guide

Get Promotion

[GET] /api/promotions/:id

admin

Retrieves a promotion by its id.

Usage

import { Solidus } from 'solidus-sdk'

const instance = new Solidus({ href: 'https://mysolidus.app' })

instance.promotion().get({ id })

Helpful Links

  • Source
  • Solidus API Docs
← Productsproperty →
  • Get Promotion
    • Usage
    • Helpful Links
solidus-sdk
Docs
Getting Started
More
GitLabSolidus.io