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.
/v1/external/organizations/{organizationId}/referencesSearches 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 An API token created in Configuración › Tokens de API, or a connected app’s access token
In: header
Path Parameters
The organization, from getMe or listOrganizations.
Query Parameters
Part of the «Corte (OC)», the «Referencia» name or the «Categoría» (garment), any case. Omitted: every referencia matches.
length <= 255Only the referencias of this módulo (an id from listModules).
1 <= value <= 2147483647in_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"
1-based page; 50 referencias per page, newest first.
1 <= value <= 10000001Response 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}Reorder program PATCH
Rewrite a módulo’s «Programa» order (the FILA): every referencia of the queue, each once, in the new order. Answers the queue as `getProgram` does.
Create reference POST
Create an OC (a referencia, a cut of a garment) at the end of a módulo’s «Programa», as «Nueva referencia» does.