Fracttal →

Query purchase orders

Through this EndPoint you can query the purchase orders of a warehouse created during a period of time.

Input parameters

ParameterTypeRequiredDescription
warehouse_codeTextYesWarehouse Code
sinceTextOptionalInitial date of the query. Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example: '2016-07-12T20:00:00-03'. (Default 30 days before)
untilTextOptionalEnd date of the query. Format: 'YYYYY-MM-DDTHH:MM:SS-UTC' Example:'2016-07-12T20:00:00-03'. (Defaults to the current date.
pageIntegerOptionalPage number to consult.
startIntegerOptionalInitial record number to be displayed by the query.
limitIntegerOptionalFinal record number to be returned by the query.

Output parameters

ParameterTypeDescription
id_movementIntegerId del movimiento
folio_sourceTextSource warehouse movement ID
folio_targetTextDestination warehouse movement ID
dateDateDelivery date
descriptionTextDescription of the entry.
documentTextReference
movements_types_descriptionTextType of Movement
movements_states_descriptionTextDescription of the movement status
warehouses_source_descriptionTextWarehouse source
third_parties_nameTextName of third party
costs_center_descriptionTextCost Center
responsible_descriptionTextResponsible
priorities_descriptionTextPriority
date_createTextDate of creation of the movement
third_parties_codeTextThird party code
third_parties_addressTextAddress of the third party
third_parties_telephone_1TextPhone 1 of the third party
third_parties_telephone_2TextPhone 2 of the third
third_parties_emailTextThird party email
number_detailsNumberNumber of movement items

Example:

Request: (GET) https://app.fracttal.com/api/warehouse_purchase_orders/?warehouse_code=1254

{
    "success": true,
    "message": "200",
    "data": [
        {
            "id_movement": 2133,
            "folio_source": null,
            "folio_target": "TUER3640",
            "date": "2018-05-31",
            "description": null,
            "document": "PLAN JUNIO",
            "movements_types_description": "PURCHASE_ORDER",
            "movements_states_description": "NOT_DELIVERED",
            "warehouses_source_description": null,
            "warehouses_target_description": "ALMACEN",
            "third_parties_name": "Máchena",
            "costs_center_description": "PRODUCCIÓN",
            "costs_center_value": "11000",
            "responsible_description": " ",
            "conditions_description": "CREDITO 30 DIAS",
            "priorities_description": "VERY_HIGH",
            "date_create": "2018-05-25T16:15:09.253565+00:00",
            "third_parties_code": "234",
            "third_parties_address": null,
            "third_parties_telephone_1": "",
            "third_parties_telephone_2": "",
            "third_parties_email": null,
            "number_details": 1,
            "currency_description": "PESO CHILENO",
            "currency_symbol": "$"
        }
    ],
    "total": 1
}

Test It

Language