Cropwise
powered by syngenta

CROPWISE SERVICES

Working with Organizations 🏒

Overview

Organizations represent the entity in the Cropwise Core Services with a set of properties. This entity groups and controls all the resources involved in agriculture, including different farming operations.

Core Concepts

What is an Organization?

An organization in the Cropwise Core Services represents:

  • Represents the company, also defined as the business unit
  • This entity groups and controls all the resources involved in the culture, for instance, different crops, seasons
  • Multiple organizations can exist within a workspace

Organization Structure

Workspace
└── Organization ← You are here
    └── Properties
        └── Fields

API Endpoints

All organization endpoints are fully documented in our OpenAPI specification. For detailed information about request/response formats, authentication requirements, and interactive examples, please visit:

View Interactive Organizations API Documentation β†’

Available Endpoints

  • POST /v2/orgs - Create a new organization
  • GET /v2/orgs/{id} - Retrieve organization details
  • PUT /v2/orgs/{id} - Update an existing organization
  • DELETE /v2/orgs/{id} - Delete an organization
  • GET /v2/orgs/{org_id}/properties - List properties for an organization

Best Practices

Naming Conventions

  • Use descriptive, unique names for organizations
  • Avoid special characters except hyphens and spaces
  • Keep names under 100 characters

Data Management

  • Always include contact information for support purposes
  • Set appropriate timezone for accurate data handling
  • Use consistent address formats within your region

Performance Tips

  • Use pagination for large organization lists
  • Cache organization data when possible
  • Use search filters to reduce API calls

Error Handling

Specific Error Codes

In addition to the standard error codes, the API returns the following specific codes for organization operations:

CodeMessageWhen Triggered
EORG001Invalid currencycurrency is invalid
EORG002Invalid System of unitssystem_of_units is invalid
EORG003Invalid Picture URIpicture_uri is not a valid URI
EORG004Picture must be image/jpeg or image/png formatpicture_uri does not point to a JPEG/PNG image
EORG005Invalid org emailemail is invalid
EORG006Invalid org phonephone is invalid
EORG007Invalid org Zip Codezip_code is invalid
EORG008Invalid org Country, inform a country code valid.country_code is invalid
EORG009Invalid org Statestate is invalid
EORG010Invalid org Citycity is invalid
EORG011Organization does not existOrganization not found
EORG012Managed users cannot create organizationManaged user attempted to create an organization
EORG013User doesn't have permission to perform the requested actionPermission denied
EORG015Reference Point Geometry Should be of type Pointreference_point is not of type Point
EORG016New company must not have an IDAttempt to create with an existing ID
EORG017Invalid Workspace idworkspace_id is invalid
EORG018Invalid business line value. It should be one of the following: ...business_line value is invalid
EORG020An Organization can not be created without a Workspace IDMissing workspace_id
EORG023Organization already existsDuplicate organization
EORG025The country code is required for organization creationMissing country_code
EORG026Workspace not foundWorkspace does not exist

Error Responses

All error responses follow a standard format defined in the OpenAPI specification. For detailed information about error response formats, status codes, and examples, please refer to:

View Error Response Documentation β†’

Next Steps

After creating your organization, you can:

  1. Managing Properties β†’