Cropwise
powered by syngenta

Working with Products πŸ§ͺ

Overview

The Catalog API provides a comprehensive system for managing three types of agricultural product data: Products (crop protection products), Items (general agricultural items), and Fertilizers. Organizations can create, update, and manage custom entries for all three categories. These registered products will be used in ag operations as inputs in work orders and work records.

Important: This API focuses on Custom Entries - products, items, and fertilizers created and managed by individual organizations for their specific needs.

Cardinality summary

  • Product/Item/Fertilizer ➜ 1 Organization (each custom entry belongs to a specific organization)
  • Product ➜ 1 Indication (product type/category)
  • Item ➜ 1 Category (item classification)
  • Fertilizer ➜ 1 Form (SOLID or LIQUID)
Catalog Structure
β”œβ”€β”€ CP Products
β”‚   └── Organization (1) - Each product belongs to exactly one organization
β”œβ”€β”€ Items
β”‚   └── Organization (1) - Each item belongs to exactly one organization
└── Fertilizers
    └── Organization (1) - Each fertilizer belongs to exactly one organization

Key Concepts

ConceptDescription
CP ProductCrop protection product (herbicide, fungicide, insecticide, etc.)
ItemAgricultural item (supplies, equipment, etc.)
FertilizerFertilizer with nutrient composition
Organization IDUUID that identifies which organization owns the entry

API Documentation

For complete API reference including request/response schemas, authentication, and interactive testing, visit:

πŸ“š Catalog Cp Products API Documentation - Interactive API documentation with request/response examples

πŸ“š Catalog Items API Documentation - Interactive API documentation with request/response examples

πŸ“š Catalog Fertilizers API Documentation - Interactive API documentation with request/response examples

Available Endpoints

CP Products

Products CP represent crop protection products such as herbicides, fungicides, insecticides, and other agricultural chemicals.

MethodEndpointDescription
POST/v2/catalog/productsCreate a new custom product
GET/v2/catalog/products/{product_id}Get product by ID
PUT/v2/catalog/products/{product_id}Update product information
DELETE/v2/catalog/products/{product_id}Delete a custom product
POST/v2/catalog/products/idsBatch get products by IDs (up to 100)
GET/v2/catalog/orgs/{org_id}/productsList organization's products with filtering

Items

Items represent general agricultural items such as seeds, supplies, equipment, and other materials that aren't classified as products or fertilizers.

MethodEndpointDescription
POST/v2/catalog/itemsCreate a new custom item
GET/v2/catalog/items/{item_id}Get item by ID
PUT/v2/catalog/items/{item_id}Update item information
DELETE/v2/catalog/items/{item_id}Delete a custom item
POST/v2/catalog/items/idsBatch get items by IDs (up to 100)
GET/v2/catalog/orgs/{org_id}/itemsList organization's items with filtering

Fertilizers

Fertilizers represent nutrient products with specific chemical compositions used for plant nutrition.

MethodEndpointDescription
POST/v2/catalog/fertilizersCreate a new custom fertilizer
GET/v2/catalog/fertilizers/{fertilizer_id}Get fertilizer by ID
PUT/v2/catalog/fertilizers/{fertilizer_id}Update fertilizer information
DELETE/v2/catalog/fertilizers/{fertilizer_id}Delete a custom fertilizer
POST/v2/catalog/fertilizers/idsBatch get fertilizers by IDs (up to 100)
GET/v2/catalog/orgs/{org_id}/fertilizersList organization's fertilizers with filtering

Business Rules

Name Uniqueness

  • Products: Each organization can only have one custom product/item/fertilizer with a given name. Names must be unique within an organization.

Organization Ownership

  • All custom products, items, and fertilizers are permanently associated with a single organization via org_id
  • Each organization maintains its own isolated catalog

Error Codes

CodeMessageHTTP StatusWhen Triggered
ECPR001Product Duplicated Name/Org Error400 BAD_REQUESTA product with the same name already exists for the organization
ECPR002Product Not Found Error404 NOT_FOUNDThe requested product ID does not exist or has been deleted
ECPR003Invalid Attribute Error400 BAD_REQUESTOne or more product attributes contain invalid values
ECPR008Create Product ID Conflict409 CONFLICTProduct ID already exists in the system
ECIT001Item Not Found Error404 NOT_FOUNDThe requested item ID does not exist or has been deleted
ECIT002Item Repeated Name Error400 BAD_REQUESTAn item with the same name already exists
ECIT003Item ID Conflict Error409 CONFLICTItem ID already exists in the system
ECIT004Item Invalid Category Error400 BAD_REQUESTThe specified category is invalid or not supported
ECFR001Fertilizer Duplicated Name/Org Error409 CONFLICTA fertilizer with the same name already exists for the organization
ECFR002Fertilizer Not Found Error404 NOT_FOUNDThe requested fertilizer ID does not exist or has been deleted
ECFR003Invalid Attribute Error400 BAD_REQUESTOne or more fertilizer attributes contain invalid values
ECFR009Create Fertilizer ID Conflict409 CONFLICTFertilizer ID already exists in the system

Typical Workflows

Basic Management Workflow

  1. Create Entry - Add a new custom product, item, or fertilizer to your organization's catalog
  2. Update Entry - Modify properties such as the name, and other details.
  3. Retrieve Entry - Get details.
  4. Delete Entry - Soft delete entries no longer in use
  5. Batch Retrieve - Get multiple entries by ID in a single request

Next Steps