Skip to main content

Transfers API

The Transfers API provides endpoints for managing internal stock transfer recommendations, approval workflows, and execution.
Scope: Tenant-scoped; requires authenticated org context
Availability: Not available in SuperAdmin

Authentication

All requests require authentication. Include your API key in the Authorization header:
See Authentication for details.

Base URL

Headers

All requests must include:

Endpoints

Example Requests

List Transfer Recommendations

Response:

Generate Transfer Recommendations

Response:

Approve Transfer Recommendation

Response:

Common Errors

401 Unauthorized

Cause: Missing or invalid API key. Solution: Include a valid API key in the Authorization header.

403 Forbidden

Cause: Insufficient permissions. Generating recommendations requires ADMIN, MANAGER, or PLANNER role. Solution: Ensure your API key has the required permissions.

400 Bad Request

Cause: Invalid request parameters. Solution: Review the request body and ensure all parameters are valid.

404 Not Found

Cause: The requested recommendation doesn’t exist or isn’t accessible. Solution: Verify the recommendation ID and ensure you have access to it.

Query Parameters

List Recommendations

  • status: Filter by status (PENDING, APPROVED, EXECUTED, REJECTED, EXPIRED)
  • priority: Filter by priority (URGENT, HIGH, MEDIUM, LOW)
  • productMasterId: Filter by product
  • sourceLocationId: Filter by source location
  • destLocationId: Filter by destination location
  • validOnly: Return only valid recommendations (boolean)
  • limit: Page size (default: 50, max: 100)
  • offset: Offset for pagination (default: 0)

Generate Recommendations

  • locationId: Generate for specific location (optional)
  • productMasterId: Generate for specific product (optional)
  • minStockDifferencePct: Minimum stock difference percentage (0-1)
  • requirePositiveROI: Only generate recommendations with positive ROI (boolean)
  • unitMargin: Profit margin per unit for ROI calculation

Request/Response Schemas

Transfer Recommendation

Generate Recommendations Request

Approve/Reject Request



Permissions & Roles

Transfer API access requires appropriate permissions:
  • View: ADMIN, MANAGER, PLANNER, VIEWER roles
  • Generate: ADMIN, MANAGER, PLANNER roles
  • Approve/Execute: ADMIN, MANAGER roles