FluentaAPI
Program

Get reference

getReferencePermission read

One referencia (cut, OC): its módulo, state, units, produced and «saldo», goals, price, dates, «Subprocesos» and «Red» marks.

GET/v1/external/organizations/{organizationId}/references/{referenceId}

Answers one «referencia» (a cut, an OC): its «módulo», its state, its units, what it has produced and its «saldo», its goals, its price, its dates, its «Subprocesos» and its «Red de talleres» marks.

referenceId comes from getProgram, searchReferences or listOnHold; one that is unknown or belongs to another organization answers 404 REFERENCE_NOT_FOUND.

Authorization

apiToken
AuthorizationBearer <token>

An API token created in Configuración › Tokens de API, or a connected app’s access token

In: header

Path Parameters

referenceId*integer

The «referencia»: an id of getProgram, searchReferences or listOnHold. Unknown or of another organization: 404 REFERENCE_NOT_FOUND.

organizationId*integer

The organization, from getMe or listOrganizations.

Response Body

application/json

application/json

curl -X GET "https://api.fluenta.io/v1/external/organizations/0/references/0" \  -H "Authorization: Bearer fluenta_live_XXXX"
{  "id": 0,  "status": "in_program",  "moduleId": 0,  "moduleName": "string",  "position": 0,  "name": "string",  "orderNumber": "string",  "garment": "string",  "companyAdminId": 0,  "otrosClientes": true,  "networkOrderId": 0,  "priority": true,  "total": 0,  "produced": 0,  "sacrificed": 0,  "pendingUnits": 0,  "goal": 0,  "dayGoal": {    "day": "2019-08-24",    "goal": 0,    "steps": [      {        "from": 0,        "goal": 0      }    ]  },  "price": 0,  "color": "string",  "spliceDate": "2019-08-24T14:15:22Z",  "dueDate": "2019-08-24T14:15:22Z",  "startedAt": "2019-08-24T14:15:22Z",  "finishedAt": "2019-08-24T14:15:22Z",  "holdSince": "2019-08-24T14:15:22Z",  "holdReason": "string",  "continuity": true,  "splitGroup": "string",  "splitMaster": true,  "sacrificeNote": "string",  "sacrificedAt": "2019-08-24T14:15:22Z",  "sacrificedByName": "string",  "networkClosedAt": "2019-08-24T14:15:22Z",  "anticipated": true,  "expectedArrival": "2019-08-24",  "arrivedAt": "2019-08-24T14:15:22Z",  "step1Name": "string",  "step1Goal": 0,  "step2Name": "string",  "step2Goal": 0,  "source": "operator"}