Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Tip

Available from CRM.COM R14.5.0

Excerpt

This method is creating a new stock out adjustment warehouse transaction

Resource URL

...

Name

Type

Description

token

String

The token retrieved from the login method

warehouse_identifier

(mandatory)

Warehouse identifier

The warehouse from for which the items non-traceable physical goods will be removed fromadjusted. The allowed warehouse identifier fields are the following:

Include Page
V4:warehouse_identifier
V4:warehouse_identifier

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 adjustment items objectsThe items that should be removed from the warehouse of which their balance will be adjusted through this stock out adjustment transaction.

fields_set

(optional)

List of Strings, comma separatedA list of fields that should be included in the results. If not specified then all the available fields will be returned

Anchor
stock-out referred parameters
stock-out referred parameters
Referred Parameter Objects

Include Page
V4:stock_outadjustment_item_parameters
V4:stock_outadjustment_item_parameters

Restrictions

...

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

fields_set

(optional)

List of Strings, comma separated

 

A list of fields that should be included in the results. If not specified then all the available fields will be returned

Examples

Expand
titleExample 1

HTTP Method: POST

 

Request:

Body:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
    "token":"9A30B8EAB0A28E012329162912CC0736{{token}}",
    "warehouse_identifier":{"name":"CentralMain Warehouse"},
    "lifebatch_cycle_statenumber":"DRAFT0001",
    "supplier_identifier":{"id_number":"984783"},
    "description":"Stock out transaction of a broken TV from Central Warehouselife_cycle_state":"POSTED",
    "items_set":
    [
        {
            "installed_itemproduct_identifier":{"serial_number":"T1M001000000001"},
        "alternative_code":"T1M001000000001",
            "unit_cost":80
        },
  Antenna"},
     {             "product_identifier":{"code":"Universal Remote Controls"},
            "quantity":50"counted_balance":414
           }
    ]

}


Response:

Code Block
themeConfluence
languagejavascript
linenumberstrue
 {
    "statusdata":
    {
        "messagenumber": null"2598",
        "descriptionbatch_number": null"0001",
        "codeid": "OK00FD0FD284FE4E32AB3D15E3E701DDA8"
,
   },     "datalife_cycle_state": "POSTED"
   {    },
    "life_cycle_statestatus": "DRAFT",{
        "numbercode": "11OK",
        "iddescription": "48BB342AFB3AF5BE12E75CB4A7D3672F",
        "batch_numbermessage": null""
    }
}