Ankorstore Stock Management API

The Stock Management API from Ankorstore — 1 operation(s) for stock management.

Operations 1

POST /api/v1/operations Bulk Operations #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ankorstore-stock-management-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ankorstore-stock-management-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 1.0.0
  title: Ankorstore Public Stock Management API
  description: 'The Ankorstore API enables brands and their partners to programmatically manage their presence on the

    Ankorstore wholesale marketplace. Through the API you can manage your product catalog and stock, process

    orders, handle shipping and fulfillment, and receive real-time event notifications via webhooks.


    ### Quick Links


    - **[Getting Started](#section/Getting-Started)** — Register an application, authenticate, and make your first API call

    - **[Available APIs](#section/Available-APIs)** — Overview of all API capabilities

    - **[Authentication](#section/Authentication)** — OAuth2 setup and rate limits

    - **[How to work with API](#section/How-to-work-with-API)** — JSON:API conventions, pagination, filters, and includes

    - **[Testing API](#section/Testing-API)** — Sandbox environment and test data

    - **[Webhook Subscription](#section/Webhook-Subscription)** — Real-time event notifications


    ### Support


    For API support, contact us at [api@ankorstore.com](mailto:api@ankorstore.com).

    '
  contact:
    name: Ankorstore Support
    email: api@ankorstore.com
    url: https://www.ankorstore.com
  license:
    name: CC0 1.0 Universal
    url: https://creativecommons.org/publicdomain/zero/1.0/
  x-prefix: Ankorstore
  x-logo:
    url: https://cdn.ankorstore.com/images/logo/logo-black.svg
    altText: Ankorstore
    href: /
servers:
- url: https://www.public.ankorstore-sandbox.com
  description: Staging Environment
- url: https://www.ankorstore.com
  description: Production Environment
security:
- ProductionOAuth2ClientCredentials: []
tags:
- name: Stock Management
paths:
  /api/v1/operations:
    post:
      summary: Bulk Operations
      operationId: post-api-v1-operations
      responses:
        '200':
          description: Example response
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  atomic:results:
                    type: array
                    items:
                      title: BulkOperationResult
                      type: object
                      properties:
                        data:
                          type: object
                          required:
                          - type
                          - id
                          properties:
                            type:
                              type: string
                              default: product-variants
                            id:
                              type: string
                              description: '[resource object identifier (uuid)](https://jsonapi.org/format/#document-resource-object-identification)'
                              format: uuid
                            attributes:
                              type: object
                      required:
                      - data
                      description: Single operation result in the list of results in the bulk operation response
                      examples:
                      - data:
                          type: product-variants
                          id: 6b1a9a20-297c-4f26-8f00-70ece7c37ecd
                          attributes:
                            foo: bar
        '401':
          description: Unauthorized
          content:
            application/vnd.api+json:
              schema:
                type: object
                additionalProperties: false
                properties:
                  errors:
                    type: array
                    uniqueItems: true
                    items:
                      type: object
                      properties:
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the problem.
                          type: string
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a string value.
                          type: string
                        title:
                          description: The HTTP status code description applicable to this problem
                          type: string
                        source:
                          type: object
                          description: Optional object pointing towards the problematic field
                          properties:
                            pointer:
                              type: string
                              description: The field key
                        meta:
                          description: Non-standard meta-information that can not be represented as an attribute or relationship.
                          type: object
                          additionalProperties: true
                      additionalProperties: false
                  jsonapi:
                    description: An object describing the server's implementation
                    type: object
                    properties:
                      version:
                        type: string
                      meta:
                        description: Non-standard meta-information that can not be represented as an attribute or relationship.
                        type: object
                        additionalProperties: true
                    additionalProperties: false
                required:
                - errors
              example:
                jsonapi:
                  version: '1.0'
                errors:
                - detail: Unauthorized
                  status: '401'
        '404':
          description: '[Not found](https://jsonapi.org/format/#fetching-resources-responses-404)'
          content:
            application/vnd.api+json:
              schema:
                type: object
                additionalProperties: false
                properties:
                  errors:
                    type: array
                    uniqueItems: true
                    items:
                      type: object
                      properties:
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the problem.
                          type: string
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a string value.
                          type: string
                        title:
                          description: The HTTP status code description applicable to this problem
                          type: string
                        source:
                          type: object
                          description: Optional object pointing towards the problematic field
                          properties:
                            pointer:
                              type: string
                              description: The field key
                        meta:
                          description: Non-standard meta-information that can not be represented as an attribute or relationship.
                          type: object
                          additionalProperties: true
                      additionalProperties: false
                  jsonapi:
                    description: An object describing the server's implementation
                    type: object
                    properties:
                      version:
                        type: string
                      meta:
                        description: Non-standard meta-information that can not be represented as an attribute or relationship.
                        type: object
                        additionalProperties: true
                    additionalProperties: false
                required:
                - errors
              example:
                jsonapi:
                  version: '1.0'
                errors:
                - detail: Not found
                  status: '404'
        '406':
          description: Not Acceptable
          content:
            application/vnd.api+json:
              schema:
                type: object
                additionalProperties: false
                properties:
                  errors:
                    type: array
                    uniqueItems: true
                    items:
                      type: object
                      properties:
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the problem.
                          type: string
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a string value.
                          type: string
                        title:
                          description: The HTTP status code description applicable to this problem
                          type: string
                        source:
                          type: object
                          description: Optional object pointing towards the problematic field
                          properties:
                            pointer:
                              type: string
                              description: The field key
                        meta:
                          description: Non-standard meta-information that can not be represented as an attribute or relationship.
                          type: object
                          additionalProperties: true
                      additionalProperties: false
                  jsonapi:
                    description: An object describing the server's implementation
                    type: object
                    properties:
                      version:
                        type: string
                      meta:
                        description: Non-standard meta-information that can not be represented as an attribute or relationship.
                        type: object
                        additionalProperties: true
                    additionalProperties: false
                required:
                - errors
              example:
                jsonapi:
                  version: '1.0'
                errors:
                - detail: Not Acceptable
                  status: '406'
        '415':
          description: Unsupported Media Type
          content:
            application/vnd.api+json:
              schema:
                type: object
                additionalProperties: false
                properties:
                  errors:
                    type: array
                    uniqueItems: true
                    items:
                      type: object
                      properties:
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the problem.
                          type: string
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a string value.
                          type: string
                        title:
                          description: The HTTP status code description applicable to this problem
                          type: string
                        source:
                          type: object
                          description: Optional object pointing towards the problematic field
                          properties:
                            pointer:
                              type: string
                              description: The field key
                        meta:
                          description: Non-standard meta-information that can not be represented as an attribute or relationship.
                          type: object
                          additionalProperties: true
                      additionalProperties: false
                  jsonapi:
                    description: An object describing the server's implementation
                    type: object
                    properties:
                      version:
                        type: string
                      meta:
                        description: Non-standard meta-information that can not be represented as an attribute or relationship.
                        type: object
                        additionalProperties: true
                    additionalProperties: false
                required:
                - errors
              example:
                jsonapi:
                  version: '1.0'
                errors:
                - detail: Unsupported Media Type
                  status: '415'
        '422':
          description: 'Unprocessable Entity : Data provided are invalid'
          content:
            application/vnd.api+json:
              schema:
                type: object
                additionalProperties: false
                properties:
                  errors:
                    type: array
                    uniqueItems: true
                    items:
                      type: object
                      properties:
                        code:
                          description: An application-specific error code, expressed as a string value.
                          type: string
                        detail:
                          description: A human-readable explanation specific to this occurrence of the problem.
                          type: string
                        status:
                          description: The HTTP status code applicable to this problem, expressed as a string value.
                          type: string
                        title:
                          description: The HTTP status code description applicable to this problem
                          type: string
                        source:
                          type: object
                          description: Optional object pointing towards the problematic field
                          properties:
                            pointer:
                              type: string
                              description: The field key
                        meta:
                          description: Non-standard meta-information that can not be represented as an attribute or relationship.
                          type: object
                          additionalProperties: true
                      additionalProperties: false
                  jsonapi:
                    description: An object describing the server's implementation
                    type: object
                    properties:
                      version:
                        type: string
                      meta:
                        description: Non-standard meta-information that can not be represented as an attribute or relationship.
                        type: object
                        additionalProperties: true
                    additionalProperties: false
                required:
                - errors
              example:
                jsonapi:
                  version: string
                errors:
                - detail: The field is required.
                  source:
                    pointer: data.attributes.field
                  status: '422'
                  title: Unprocessable Content
      tags:
      - Stock Management
      description: Multiple operations on different resources by a single request
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              type: object
              properties:
                atomic:operations:
                  type: array
                  maxItems: 50
                  minItems: 1
                  items:
                    type: object
                    properties:
                      op:
                        type: string
                        enum:
                        - update
                      data:
                        anyOf:
                        - title: ProductVariantStockUpdateSetIsAlwaysInStockRequest
                          type: object
                          examples:
                          - type: product-variants
                            id: ec5d2b52-4911-4eff-9846-71787f9f02df
                            attributes:
                              isAlwaysInStock: true
                          properties:
                            id:
                              type: string
                              description: '[resource object identifier (uuid)](https://jsonapi.org/format/#document-resource-object-identification)'
                              format: uuid
                            type:
                              type: string
                              default: product-variants
                            attributes:
                              type: object
                              required:
                              - isAlwaysInStock
                              properties:
                                isAlwaysInStock:
                                  type: boolean
                                  description: Whether the current product variant is always in stock
                                inventoryPolicy:
                                  type: string
                                  enum:
                                  - deny
                                  default: deny
                                  description: 'Sell-when-out-of-stock policy. Only `deny` is accepted in

                                    combination with `isAlwaysInStock=true`; an always-in-stock

                                    variant cannot opt into `continue` because continue-selling

                                    requires tracked stock. Use the `stockQuantity` form of this

                                    endpoint to set `continue`.

                                    '
                          required:
                          - id
                          - type
                          - attributes
                          description: A request schema to update product variant stock value by setting option "always in stock" to true. It will also reset any possibly previously existed explicit stock quantities.
                        - title: ProductVariantStockUpdateSetStockQuantity
                          type: object
                          description: A request schema to update product variant stock value by setting explicit stock quantity.
                          properties:
                            id:
                              type: string
                              description: '[resource object identifier (uuid)](https://jsonapi.org/format/#document-resource-object-identification)'
                              format: uuid
                            type:
                              type: string
                              default: product-variants
                            attributes:
                              type: object
                              required:
                              - stockQuantity
                              properties:
                                stockQuantity:
                                  description: Total number of units in stock (available + reserved)
                                  type: integer
                                  minimum: 0
                                  example: 100
                                inventoryPolicy:
                                  type: string
                                  enum:
                                  - deny
                                  - continue
                                  default: deny
                                  description: 'Sell-when-out-of-stock policy. `continue` lets the variant

                                    accept orders even when available stock reaches zero or

                                    goes negative; only valid alongside a tracked stock update

                                    (this schema). Omit to preserve the variant''s current

                                    policy.

                                    '
                          required:
                          - id
                          - type
                          - attributes
                          examples:
                          - type: product-variants
                            id: 1e7b432b-50d4-4495-b032-6cbbc5f6f023
                            attributes:
                              stockQuantity: 100
                              inventoryPolicy: continue
                    required:
                    - op
                    - data
              required:
              - atomic:operations
            examples: {}
components:
  securitySchemes:
    ProductionOAuth2ClientCredentials:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://www.ankorstore.com/oauth/token
          refreshUrl: https://www.ankorstore.com/oauth/token
          scopes: {}
    TestOauth2ClientCredentials:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://www.public.ankorstore-sandbox.com/oauth/token
          refreshUrl: https://www.public.ankorstore-sandbox.com/oauth/token
          scopes: {}
externalDocs:
  description: Ankorstore API Specification
  url: https://api-spec.ankorstore.com
x-tagGroups:
- name: Main
  tags:
  - Getting Started
  - How to work with API
  - Authentication
  - Available APIs
  - Integration Scenarios
  - Webhook Subscription
  - Error Handling
  - Changelog
  - Testing API
  - Fair Use Statement
- name: API Resource Endpoints
  tags:
  - Applications
  - Brands
  - General
  - User
  - Catalog
  - Catalog Integrations
  - Integration
  - Ordering
  - Shipping
  - Fulfillment
  - OrderPay
  - Webhooks
  - Testing
  - Deprecated