POST warehouse_transactions/post

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

Resource URL

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:

Name

Type

Description

id

(semi-optional)

String

The ID of the warehouse transaction

number

(semi-optional)

String

The number of the warehouse 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

 

Restrictions

  • It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.

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:

{
	"token":"363D92A1BAA5BF4EABECD87CDB691EA0",
    "warehouse_transaction_identifier":{"batch_number":"bn010009090"}
}


Response:

{
    "status":
    {
        "message": null,
        "description": null,
        "code": "OK"
    },
    "data":
    {
        "life_cycle_state": "POSTED",
        "number": "290",
        "id": "F8A4A7B509DCFBE4AE969EF23C91602C",
        "batch_number": "bn010009090"
    }
}