Through this EndPoint 2 types of warehouse output can be created:
Output by an OT: When the output is generated from the resources requested in a material requisition generated by an OT.
Of a general type: The spare parts to be discounted from the warehouse are associated.
Both warehouse exits will generate the total of the requested resources.
To generate an output by an OT it’s mandatory to have the warehouse information, the requisition, the OT and that the requisition has pending deliveries. In the event that any of the requisition is managed by serial, the “items” (array) must be sent with all the information of the items that will be part of the output.
To generate a general output, it’s mandatory to have the warehouse information, the transaction reference, send the type of movement, and the array of items to be associated.
The optional information that can be added to the output is the cost center code or description and the warehouse output notes. It’s necessary to take into account that the information of an existing cost center in Fracttal must be sent.
EndPoint or URL
https://app.fracttal.com/api/warehouse_outputs_orders/
Method POST
Parameters of the Body
Do not send optional parameters in null, if you are not going to use this information they are not sent in the body
Parameter | Type of the field | Required | Description |
warehouse_code | Text | Yes | Warehouse code |
wo_folio | Text | Yes | Id of the work order that has the associated requisition |
id_movement | Text | Yes (only for OT type outputs) | Id of the material requisition |
id_movement_type | Number | Yes | Type of output to perform: |
responsible_code | Text | Yes | Code of the inhouse perssonel responsible for the warehouse exit. Must be an existing inhouse personnel in Fracttal. |
document | Text | Yes (For General type outputs) | Transaction reference. |
items | Array Json | Yes (For General type outputs or by OTs with items controlled by serial) | Array of Json, with the information of the items that you want to associate with the output. The values that each item must have are: |
date | Text | Optional | Deadline. By default is the current date in UTC-0 |
description | Text | Optional | Warehouse releases notes |
description_cost_center | Text | Optional | Description of the costs center. Must exist in Fracttal |
value_cost_center | Text | Optional | Costs center value. It must exist in Fracttal. It’s only necessary to send one of the 2: the description_cost_center or the value_cost_center. |
Output Parameters
Parameter | Type of field | Description |
date | Date | Delivery date |
description | Text | Note assigned to the output |
document | Text | Work order |
date_create | date | Creation date |
description | Text | Entry description. |
items | json | Information of the items that were with the output and to which the total delivery was made |
Example:
Example OT Output:
EndPoint: https://app.fracttal.com/api/warehouse_outputs_orders/
Body
{
"warehouse_code":"1254",
"wo_folio":"1109",
"id_movement":"109",
"responsible_code":"3457899",
"description":"Salida de almacén mediante API",
"description_cost_center":"Activos"
}
Example Response:
{
"success": true,
"message": "200",
"data": {
"date": "2019-07-24",
"description": "Salida de almacén API",
"document": "1109",
"id_cost_center": 5,
"id_responsible": 53,
"folio_source": "109",
"folio_target": null,
"date_create": "2019-07-24T13:04:24.235573+00:00",
"items": {
"id_movement": 378,
"id_company": 69,
"qty": 1,
"unit_cost": 5000,
"total_cost": 5000,
"id": 460,
"qty_pending": 1,
"id_item_log": 171,
"id_taxes": 1,
"item_status": 1,
"items_description": "Martillo { MART01 }"
}
},
"total": 1
}
Example:
Example OT Output (serialized items):
EndPoint: https://app.fracttal.com/api/warehouse_outputs_orders/
Body
{
"warehouse_code":"BD_SERIAL",
"wo_folio":"OT-1737",
"id_movement":"25",
"responsible_code":"AP87757",
"description":"Salida de almacén mediante API",
"items":[
{
"code":"CLL0976",
"id_type_item":4,
"qty":2,
"serial_numbers":["85564","98756"]
}
]
}
Example Response:
{
"success": true,
"message": "200",
"data": {
"id": 425748,
"id_company": 69,
"id_movement_type": 4,
"id_warehouse_source": 1642,
"id_warehouse_target": null,
"date": "2021-09-14",
"description": "Salida de almacén mediante API",
"document": "OT-1737",
"id_third_party": null,
"id_cost_center": null,
"id_responsible": 86,
"folio_source": "25",
"folio_target": null,
"id_movement_state": 2,
"id_priority": null,
"date_create": "2021-09-14T04:23:19.062941+00:00",
"id_condition": null,
"id_currency": null,
"exchange_value": null,
"id_work_orders_tasks": null,
"id_movement_reference": null,
"id_accounts_log": null,
"approved": null,
"approved_comment": null,
"is_input": null,
"id_currency_iso": null,
"approval_date": null,
"items": [
{
"id_movement": 425748,
"id_company": 69,
"qty": 2,
"unit_cost": 666.4000244140625,
"total_cost": 1332.8,
"id": 995244,
"qty_pending": 0,
"id_item_log": 656215,
"id_taxes": 1,
"item_status": 1,
"items_description": "CUCHILLA ABB { CLL0976 }"
}
]
},
"total": 1
}
Example:
Example General Output:
EndPoint: https://app.fracttal.com/api/warehouse_outputs_orders/
Body
{ "warehouse_code":"1254",
"responsible_code":"7845123",
"description":"Salida de almacén mediante API",
"description_cost_center":"Activos",
"document":"OUTGOING",
"date":"2021-05-10",
"id_movement_type":5,
"items":[
{
"code":"HERRA01",
"id_type_item":3,
"qty":2
},
{
"code":"09877",
"id_type_item":4,
"qty":1
}
]
}
Example Response:
{
"success": true,
"message": "200",
"data": {
"id": 186592,
"id_company": 69,
"id_movement_type": 5,
"id_warehouse_source": 2,
"id_warehouse_target": null,
"date": "2021-05-10",
"description": "Salida de almacén mediante API",
"document": "OUTGOING",
"id_third_party": null,
"id_cost_center": 5,
"id_responsible": 7,
"folio_source": null,
"folio_target": null,
"id_movement_state": 2,
"id_priority": null,
"date_create": "2021-06-11T19:14:42.224853+00:00",
"id_condition": null,
"id_currency": null,
"exchange_value": null,
"id_work_orders_tasks": null,
"id_movement_reference": null,
"id_accounts_log": null,
"approved": null,
"approved_comment": null,
"is_input": null,
"id_currency_iso": null,
"id_warehouse": null,
"items": [
{
"id_movement": 186592,
"id_company": 69,
"qty": 1,
"unit_cost": 4590,
"total_cost": 4590,
"id": 450042,
"qty_pending": 1,
"id_item_log": 306,
"id_taxes": 1,
"item_status": 1,
"items_description": "ABRAZADERA 1/4 R16 Y70 Dunlop RM340 { ITM-002 }"
},
{
"id_movement": 186592,
"id_company": 69,
"qty": 1,
"unit_cost": 4800,
"total_cost": 4800,
"id": 450043,
"qty_pending": 1,
"id_item_log": 401,
"id_taxes": 1,
"item_status": 1,
"items_description": "NIPLE DE 3\" { 0002020000201612 }"
}
]
},
"total": 1
}