POST warehouse_transactions/stock_in

This method is creating a new stock in warehouse transaction

Resource URL

http://host_name/crmapi/rest/$version/warehouse_transactions/stock_in

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

warehouse_identifier

(mandatory)

Warehouse identifier

The warehouse in which the items will be added into. The allowed warehouse identifier fields are the following:

life_cycle_state

(mandatory)

String

 The stated of the transaction which can be DRAFT or POSTED

batch_number

(optional)

StringA reference number which is entered to keep track of the warehouse transaction source

supplier_identifier

(optional)

Contact information identifierThe supplier of the items to be added. Suppliers refer to contact information. The allowed contact information identifier fields are the following:

description

(optional)

StringA description for the warehouse transaction to be created

udf_string_1

(optional)

String

User Defined Field of type String

udf_string_2

(optional)

String

User Defined Field of type String

udf_string_3

(optional)

String

User Defined Field of type String

udf_string_4

(optional)

String

User Defined Field of type String

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_float_5

(optional)

Float

User Defined Field of type Float

udf_float_6

(optional)

Float

User Defined Field of type Float

udf_float_7

(optional)

Float

User Defined Field of type Float

udf_float_8

(optional)

Float

User Defined Field of type Float

udf_date_1

(optional)

Date

User Defined Field of type Date

udf_date_2

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

items_setA set of stock in items objectsThe items that should be added in the warehouse through this stock in transaction.

Referred Parameter Objects

Restrictions

Response Data

Name

Type

Description

idString

The ID of the stock in warehouse transaction that was created

number

String

The number of the stock in warehouse transaction that was created

 

batch_number

StringThe batch_number of the stock in warehouse transaction that was created

life_cycle_state

String

 The stated of the transaction which can be DRAFT or POSTED

Examples

Example 1

HTTP Method: POST

 

Request:

 http://localhost:9080/crmapi/rest/v2/warehouse_transactions/stock_in

Body:

 {
    "token":"255F3C9CEE07BD2E4B1261EDF345D636",
    "warehouse_identifier":{"name":"Apothiki"},
    "life_cycle_state":"DRAFT",
    "batch_number":"0100-2",
    "supplier_identifier":{"id":"1"},
    "description":"stock in",
    "items_set": 
    [
        {
            "installed_item_identifier":{"serial_number":"9100-0852-9632"},
            "unit_cost":20
        },
        {
            "installed_item":
                {
                        "serial_number":"80002",
                        "alternative_code":"80002",
                        "product_identifier":{"id":"F43EBDCE48CAADEC32CB26F59904ECCD"},
                        "category_identifier":{"name":"Category 1"}
                    },
            "unit_cost":50
        } 
    ]    
}


Response:

 {
    "status":{
        "message":null,
        "description":null,
        "code":"OK"
    },
    "data":{
        "life_cycle_state":"DRAFT",
        "number":"21",
        "id":"E1848D3DEE07B122782D4ADDB4A64388",
        "batch_number":"0100-2"
    }
}

POST warehouse_transactions/stock_out

This method is creating a new stock out warehouse transaction

Resource URL

http://host_name/crmapi/rest/$version/warehouse_transactions/stock_out

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

warehouse_identifier

(mandatory)

Warehouse identifier

The warehouse from which the items will be removed from. The allowed warehouse identifier fields are the following:

life_cycle_state

(mandatory)

String

 The stated of the transaction which can be DRAFT or POSTED

batch_number

(optional)

StringA reference number which is entered to keep track of the warehouse transaction source

description

(optional)

StringA description for the warehouse transaction to be created

udf_string_1

(optional)

String

User Defined Field of type String

udf_string_2

(optional)

String

User Defined Field of type String

udf_string_3

(optional)

String

User Defined Field of type String

udf_string_4

(optional)

String

User Defined Field of type String

udf_float_5

(optional)

Float

User Defined Field of type Float

udf_float_6

(optional)

Float

User Defined Field of type Float

udf_float_7

(optional)

Float

User Defined Field of type Float

udf_float_8

(optional)

Float

User Defined Field of type Float

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_date_1

(optional)

Date

User Defined Field of type Date

udf_date_2

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

items_setA set of stock out items objectsThe items that should be removed from the warehouse through this stock out transaction.

Referred Parameter Objects

Restrictions

Response Data

Name

Type

Description

idString

The ID of the stock out warehouse transaction that was created

number

String

The number of the stock out warehouse transaction that was created

 

batch_number

StringThe batch_number of the stock out warehouse transaction that was created

life_cycle_state

String

 The stated of the transaction which can be DRAFT or POSTED

Examples

Example 1

HTTP Method: POST

 

Request:

 

Body:

 


Response:

 

POST warehouse_transactions/stock_movement

This method is creating a new stock movement warehouse transaction

Resource URL

http://host_name/crmapi/rest/$version/warehouse_transactions/stock_movement

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

from_warehouse_identifier

(mandatory)

Warehouse identifier

The warehouse from which the items will be removed from. The allowed warehouse identifier fields are the following:

to_warehouse_identifier

(mandatory)

Warehouse identifier

The warehouse in which the items will be added into. The allowed warehouse identifier fields are the following:

life_cycle_state

(mandatory)

String

 The stated of the transaction which can be DRAFT or POSTED

batch_number

(optional)

StringA reference number which is entered to keep track of the warehouse transaction source

description

(optional)

StringA description for the warehouse transaction to be created

udf_string_1

(optional)

String

User Defined Field of type String

udf_string_2

(optional)

String

User Defined Field of type String

udf_string_3

(optional)

String

User Defined Field of type String

udf_string_4

(optional)

String

User Defined Field of type String

udf_float_5

(optional)

Float

User Defined Field of type Float

udf_float_6

(optional)

Float

User Defined Field of type Float

udf_float_7

(optional)

Float

User Defined Field of type Float

udf_float_8

(optional)

Float

User Defined Field of type Float

udf_float_1

(optional)

Float

User Defined Field of type Float

udf_float_2

(optional)

Float

User Defined Field of type Float

udf_float_3

(optional)

Float

User Defined Field of type Float

udf_float_4

(optional)

Float

User Defined Field of type Float

udf_date_1

(optional)

Date

User Defined Field of type Date

udf_date_2

(optional)

Date

User Defined Field of type Date

udf_date_3

(optional)

Date

User Defined Field of type Date

udf_date_4

(optional)

Date

User Defined Field of type Date

items_setA set of stock movement items objectsThe items that should be moved from one warehouse to another through this stock movement transaction.

Referred Parameter Objects

Restrictions

Response Data

Name

Type

Description

idString

The ID of the stock movement warehouse transaction that was created

number

String

The number of the stock movement warehouse transaction that was created

 

batch_number

StringThe batch_number of the stock movement warehouse transaction that was created

life_cycle_state

String

 The stated of the transaction which can be DRAFT or POSTED

Examples

Example 1

HTTP Method: POST

 

Request:

 

Body:

 


Response:

 

POST warehouse_transactions/post

This method is posting a warehouse transaction which is in a draft state

Resource URL

http://host_name/crmapi/rest/$version/warehouse_transactions/post

Parameters

Name

Type

Description

token

String

The token retrieved from the login method

warehouse_transaction_identifierWarehouse transaction identifier

The warehouse transaction that should be posted. Only warehouse transactions is draft state can be specified. The allowed warehouse transaction identifier fields are the following:

 

Restrictions

Response Data

Name

Type

Description

idString

The ID of the stock movement warehouse transaction that was created

number

String

The number of the stock movement warehouse transaction that was created

 

batch_number

StringThe batch_number of the stock movement warehouse transaction that was created

life_cycle_state

String

 The stated of the transaction which can be DRAFT or POSTED

Examples

Example 1

HTTP Method: POST

 

Request:

 http://localhost:9080/crmapi/rest/v2/warehouse_transactions/post

Body:

 {
    "token":"255F3C9CEE07BD2E4B1261EDF345D636",
    "warehouse_transaction_identifier":{"number":"21"}
}


Response:

 {
    "status":{
        "message":null,
        "description":null,
        "code":"OK"
    },
    "data":{
        "life_cycle_state":"POSTED",
        "number":"21",
        "id":"E1848D3DEE07B122782D4ADDB4A64388",
        "batch_number":"0100-2"
    }
}