FluentaAPI
Program

Search references

searchReferencesPermission read

Search the organization’s referencias by «Corte (OC)», «Referencia» or «Categoría», optionally in one módulo or one state (in the «Programa», on hold, finished). 50 per page, newest first.

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

Searches the organization’s «referencias» (cuts, OCs) across every «módulo» and every state: in a «Programa», in the «banco de espera» or finished. search matches part of the «Corte (OC)», of the «Referencia» name or of the «Categoría»; moduleId and status narrow the answer.

Paged: 50 per page, newest first, as {items, page, total}; total counts every match. A moduleId that is unknown or belongs to another organization answers 404 MODULE_NOT_FOUND. Each id is the referenceId of getReference.

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

organizationId*integer

The organization, from getMe or listOrganizations.

Query Parameters

search?string

Part of the «Corte (OC)», the «Referencia» name or the «Categoría» (garment), any case. Omitted: every referencia matches.

Lengthlength <= 255
moduleId?integer

Only the referencias of this módulo (an id from listModules).

Range1 <= value <= 2147483647
status?string

in_program: in a módulo’s «Programa», not finished. on_hold: in the «banco de espera». finished: closed. Omitted: all three.

Value in

  • "in_program"
  • "on_hold"
  • "finished"
page?integer

1-based page; 50 referencias per page, newest first.

Range1 <= value <= 1000000
Default1

Response Body

application/json

application/json

curl -X GET "https://api.fluenta.io/v1/external/organizations/0/references" \  -H "Authorization: Bearer fluenta_live_XXXX"
{  "items": [    {      "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"    }  ],  "page": 0,  "total": 0}