Open Plant Data Company internal data API

Company internal data

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

POST /api/plants/internal-data/batch Create, update or delete company plant product records #

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/open-plant-data:open-plant-data-company-internal-data-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

open-plant-data-company-internal-data-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Open Plant Data Company internal data API
  description: 'We deliver the highest-quality and most accurate plant information to your customers: fully automated and developed in collaboration with growers, wholesalers, and garden centres.


    For more information about Open Plant Data services, features, and pricing, please visit www.openplantdata.com.


    Our API is available to customers with a valid API key only. A fair use policy applies as outlined in our terms & conditions. For technical support or integration questions, please contact api@openplantdata.com.'
  version: 1.0.0
servers:
- url: https://portal.openplantdata.com
  description: Production
- url: http://localhost
  description: Local development
tags:
- name: Company internal data
  description: Company internal data
paths:
  /api/plants/internal-data/batch:
    post:
      tags:
      - Company internal data
      summary: Create, update or delete company plant product records
      description: 'Synchronously processes 1-100 records in input order. The Bearer token identifies the company; do not send a company ID. Each record is identified by (company, data_id, internal_id); multiple SKUs may link to one plant. Action defaults to upsert. Omitted optional fields are preserved; the JSON literal null (without quotes) clears them to database NULL. Delete removes only this company''s exact plant/SKU mapping; a missing mapping returns per-record status 404, outcome not_found, and counts in summary.failed. Each record commits independently: HTTP 200 may contain individual errors. Repeated and concurrent API writes are safe upserts. Existing ambiguous mappings return a per-record 409. The existing company API request rate limit applies across endpoints (one batch is one request). Companies linked to an integration partner can use the API without subscription API access. A valid company token and an open, unpaused account are required. On HTTP 429, wait for Retry-After seconds. Send batches sequentially per company; overlapping writes have no event-version ordering.'
      operationId: batchCompanyInternalData
      requestBody:
        required: true
        content:
          application/json:
            schema:
              required:
              - records
              properties:
                records:
                  type: array
                  items:
                    oneOf:
                    - $ref: '#/components/schemas/InternalDataUpsert'
                    - $ref: '#/components/schemas/InternalDataDelete'
                  maxItems: 100
                  minItems: 1
              type: object
              additionalProperties: false
            examples:
              upsert:
                summary: Create or update a product mapping
                value:
                  records:
                  - data_id: 66472
                    internal_id: '1'
                    price: '12.95'
                    product_url: https://shop.example.com/products/plant
              clearFields:
                summary: Set optional fields to database NULL; omitted fields stay unchanged
                value:
                  records:
                  - data_id: 66472
                    internal_id: '1'
                    internal_name: null
                    price: null
                    old_price: null
                    product_url: null
              delete:
                summary: Delete a product mapping
                value:
                  records:
                  - action: delete
                    data_id: 66472
                    internal_id: '1'
      responses:
        '200':
          description: Batch processed; inspect every result, including when all records failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalDataBatchResponse'
              examples:
                deleted:
                  summary: An existing mapping was deleted
                  value:
                    summary:
                      total: 1
                      succeeded: 1
                      failed: 0
                    results:
                    - index: 0
                      data_id: 66472
                      internal_id: '1'
                      action: delete
                      status: 200
                      outcome: deleted
                deleteNotFound:
                  summary: The delete target did not exist and is counted as failed
                  value:
                    summary:
                      total: 1
                      succeeded: 0
                      failed: 1
                    results:
                    - index: 0
                      data_id: 66472
                      internal_id: '1'
                      action: delete
                      status: 404
                      outcome: not_found
                      errors:
                        record:
                        - No mapping exists for this company, data_id and internal_id.
        '401':
          description: Missing or invalid company Bearer token
        '403':
          description: Closed/paused account or missing API entitlement
        '415':
          description: Content-Type must be application/json
        '422':
          description: 'Invalid JSON or envelope: records must be a list of 1-100 entries, no other top-level fields. Nothing is written.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalDataEnvelopeError'
        '429':
          description: Company API request limit exceeded; nothing is written
          headers:
            Retry-After:
              description: Seconds to wait before retrying
              schema:
                type: integer
      security:
      - ApiToken: []
components:
  schemas:
    InternalDataUpsert:
      description: Identity is (authenticated company, data_id, internal_id). Omit optional fields to preserve existing values; send the JSON literal null (without quotes) to clear internal_name, price, old_price or product_url to database NULL. New records default omitted fields to null. Unknown fields are rejected. Strings are trimmed and empty strings become null. To change either identity field, delete the old pair and upsert the new pair. SKU comparisons follow the database collation; use consistent casing.
      required:
      - data_id
      - internal_id
      properties:
        action:
          type: string
          default: upsert
          enum:
          - upsert
        data_id:
          description: Existing OPD plant ID, as returned by GET /api/plants (id). Must be accessible to the company.
          type: integer
          maximum: 2147483647
          minimum: 1
          example: 26994
        internal_id:
          description: Customer SKU or EAN. Always send as a string to preserve leading zeroes.
          type: string
          maxLength: 100
          minLength: 1
          example: SKU-001
        internal_name:
          type:
          - string
          - 'null'
          maxLength: 200
          example: Night phlox, 2L
        price:
          description: Non-negative decimal number or numeric string, up to 11 integer digits and 4 decimal places. Use a decimal point, no currency symbol, comma or exponent. Returned as a string with 4 decimal places. No currency conversion or tax calculation.
          oneOf:
          - type:
            - number
            - 'null'
            maximum: 99999999999.9999
            minimum: 0
          - type: string
            pattern: ^\d{1,11}(\.\d{1,4})?$
            example: '12.9500'
        old_price:
          description: Previous price; same format as price. Send null when a discount expires. It is not cleared automatically.
          oneOf:
          - type:
            - number
            - 'null'
            maximum: 99999999999.9999
            minimum: 0
          - type: string
            pattern: ^\d{1,11}(\.\d{1,4})?$
            example: '15.9500'
        product_url:
          description: Absolute HTTP(S) URL. Send null to unpublish the link while retaining the mapping.
          type:
          - string
          - 'null'
          format: uri
          maxLength: 200
          example: https://shop.example.com/products/night-phlox
      type: object
      additionalProperties: false
    InternalDataBatchResult:
      required:
      - index
      - status
      - outcome
      properties:
        index:
          description: Zero-based position in the submitted records array; always present, even for malformed records.
          type: integer
          minimum: 0
          example: 0
        data_id:
          description: Echoed input ID, or null when its type is invalid; omitted for non-object records.
          type:
          - integer
          - 'null'
        internal_id:
          type:
          - string
          - 'null'
          example: SKU-001
        action:
          type:
          - string
          - 'null'
          example: upsert
        status:
          description: 'Per-record status: 200 updated/unchanged/deleted, 201 created, 404 delete target not found (counted as failed), 409 ambiguous existing mappings, 422 invalid record or unavailable plant, 500 failed write (retry).'
          type: integer
          enum:
          - 200
          - 201
          - 404
          - 409
          - 422
          - 500
          example: 201
        outcome:
          type: string
          enum:
          - created
          - updated
          - unchanged
          - deleted
          - not_found
          - error
          example: created
        record:
          $ref: '#/components/schemas/InternalDataRecord'
        errors:
          $ref: '#/components/schemas/InternalDataErrors'
      type: object
    InternalDataEnvelopeError:
      required:
      - message
      - errors
      properties:
        message:
          type: string
          example: The given data was invalid.
        errors:
          $ref: '#/components/schemas/InternalDataErrors'
      type: object
    InternalDataDelete:
      description: Remove the exact company/plant/SKU mapping including its optional data. Does not delete the OPD plant or other SKUs/companies. A missing mapping returns per-record status 404, outcome not_found and field errors, and is counted in summary.failed. Repeating a successful deletion therefore returns 404. Optional product fields are not allowed. Plant existence/access is not required for deletion.
      required:
      - action
      - data_id
      - internal_id
      properties:
        action:
          type: string
          enum:
          - delete
        data_id:
          type: integer
          maximum: 2147483647
          minimum: 1
          example: 26994
        internal_id:
          type: string
          maxLength: 100
          minLength: 1
          example: SKU-001
      type: object
      additionalProperties: false
    InternalDataBatchResponse:
      required:
      - summary
      - results
      properties:
        summary:
          required:
          - total
          - succeeded
          - failed
          properties:
            total:
              type: integer
              example: 2
            succeeded:
              type: integer
              example: 1
            failed:
              type: integer
              example: 1
          type: object
        results:
          type: array
          items:
            $ref: '#/components/schemas/InternalDataBatchResult'
      type: object
    InternalDataErrors:
      description: Field names mapped to arrays of error messages.
      type: object
      example:
        data_id:
        - The plant does not exist or is not accessible to this company.
      additionalProperties:
        type: array
        items:
          type: string
    InternalDataRecord:
      required:
      - data_id
      - internal_id
      - internal_name
      - price
      - old_price
      - product_url
      properties:
        data_id:
          type: integer
          example: 26994
        internal_id:
          type: string
          example: SKU-001
        internal_name:
          type:
          - string
          - 'null'
          example: Night phlox, 2L
        price:
          type:
          - string
          - 'null'
          example: '12.9500'
        old_price:
          type:
          - string
          - 'null'
          example: '15.9500'
        product_url:
          type:
          - string
          - 'null'
          example: https://shop.example.com/products/night-phlox
      type: object
  securitySchemes:
    ApiToken:
      type: http
      description: 'Use a valid API key in the Authorization header with the Bearer scheme (for example: `Bearer {token}`).'
      bearerFormat: Token
      scheme: bearer