Stock Location Admin SDK (admin/stock-location.ts)

medusa · packages/core/js-sdk/src/admin/stock-location.ts · typescript · MIT
integration, pos, ui, tag:medusa

Provides administrative methods to create and manage stock locations via the Medusa API. Use this in client applications to interact with inventory warehouse data.

// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import { HttpTypes, SelectParams } from "@medusajs/types"
import { Client } from "../client.js"
import { ClientHeaders } from "../types.js"

export class StockLocation {
  /**
   * @ignore
   */
  private client: Client
  /**
   * @ignore
   */
  constructor(client: Client) {
    this.client = client
  }

  /**
   * This method creates a new stock location. It sends a request to the
   * [Create Stock Location](https://docs.medusajs.com/api/admin/stock-locations/create-stock-location)
   * API route.
   * 
   * @param body - The details of the stock location to create.
   * @param query - Configure the fields and relations to retrieve in th

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key