Stock Reservation Release
When the order is created, the Omnitron starts to hold reservations on stock. This reservation is used to synchronize the stock between the ERP system and the Omnitron. If the order has been successfully registered in the ERP, a request must be sent to Omnitron with the order line created in the ERP to release the reservation.
Due to the information sent to the endpoint below, Omnitron both keeps the information of the order line created in the ERP and removes the reservation for the order.
Parameter
Data Type
In
Reqiured
Description
api_token
string
header
mandatory
update_stock
boolean
data
optional
If it is True
, the stock reservation is released. Default is True
.
code
string
data
mandatory
Unique ID of the order line on the ERP side.
{order_item_id}
string
query
mandatory
Order item ID.
POST
Release Stock Reservation
POST
Release Stock ReservationPath: /api/i1/order_items/{order_item_id}/create_mapping/
Sample HTTP request to create mapping and release a stock.
content_type
header represents the response type.Authorization
header is a required header for authentication. You can retrieve api_token with login.
Example Request
Example Response
Returns Integration Mapping object data.
object_id
is the ID of the order_item
, code is the given code, content_type
shows the data table (ex: Product, Order etc.) in the Omnitron system. Users can get all table ContentType information via HTTP GET request to /api/v1/content_types/
endpoint.
Last updated
Was this helpful?