Skip to main content
Shop Categories
Important: Shop category records have dependencies on both shops and categories. The system validates both the shop_id and category_id fields against existing records in the database. You should upload shops and categories before uploading shop category mappings to ensure proper data validation.

Authentication Required

This endpoint requires API key authentication via Bearer token in the Authorization header.

About the Data API

This endpoint is part of the Cobi Data API (/v1/data/:type), which provides a consistent interface for uploading different types of structured data.

Request Body

array
required
An array of shop category mapping records (up to 5000)

Response

The API returns a JSON response with the following fields:

Error Codes

Example

Best Practices

  1. Upload Order: Upload shops and categories before shop-categories to ensure references exist
  2. Batch Size: Upload up to 5000 records at a time for optimal performance
  3. Data Validation: Ensure all required fields are present and properly formatted
  4. Error Handling: Implement proper error handling for failed requests
  5. Rate Limiting: Be mindful of API rate limits
Need help? Contact our support team at [email protected]