Crear Separación

Crear Separación

POST https://api.sperant.com/v3/separations

La creación de una separación implica añadir parámetros obligatorios. Siempre se creará una separación desde una proforma creada.

Headers

Name
Type
Description

Authentication

string

Token entregado.

Request Body

Name
Type
Description

budget_id

integer

Identificador de la proforma.

agent_id

integer

Identificador del usuario que iniciará la separación.

process_flow_id

integer

Identificador el flujo del proceso de separación. Solicitar a Sperant.

{
    "data": {
        "id": "12083",
        "type": "process_units",
        "attributes": {
            "budget_id": 75062,
            "budget_code": "2021-00068",
            "budget_contract_num": null,
            "unit_id": 1593,
            "project_id": 7,
            "client_id": 81956,
            "user_id": 74,
            "process_flow_id": 1,
            "process_flow": "Flujo de Separación",
            "created_at": 1615398351
        }
    }
}

El envío de atributos para crear una separación debe ser en el siguiente formato:

{
    "budget_id": 75061,
    "agent_id": 74,
    "process_flow_id": 1
}

Última actualización