Create Movement
Deprecated
client.movement.createMovement(stringstoreNumber, MovementCreateMovementParams { AppUserName, body } params?, RequestOptionsoptions?): MovementCreateMovementResponse { success, data, message }
POST/api/v2/public/stores/{store_number}/storeproductlocation/movement
Deprecated. Moves product stock between two locations within a single store.
Create Movement
import Colleqtive from '@colleqtive/sdk';
const client = new Colleqtive({
bearerToken: process.env['COLLEQTIVE_BEARER_TOKEN'], // This is the default and can be omitted
});
const response = await client.movement.createMovement('store_number');
console.log(response.success);{
"success": true,
"data": "data",
"message": "message"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}Returns Examples
{
"success": true,
"data": "data",
"message": "message"
}{
"code": 401,
"status": "error",
"message": "Authentication failed.",
"error": "unauthorized",
"error_description": "Authentication failed."
}{
"code": 500,
"status": "fail",
"message": "The request could not be processed.",
"error": "internal_error",
"error_description": "The request could not be processed."
}