Preview delete reference
previewDeleteReferencePermission read
What deleting an OC would do, writing nothing: the OC, whether its módulo empties (every puesto cleared), the puestos sewing it, and the `confirmationToken` `deleteReference` needs. Show it to the usuario and wait for a yes.
/v1/external/organizations/{organizationId}/references/{referenceId}/delete-previewAuthorization
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.
Response Body
application/json
application/json
curl -X POST "https://api.fluenta.io/v1/external/organizations/0/references/0/delete-preview" \ -H "Authorization: Bearer fluenta_live_XXXX"{ "reference": { "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" }, "deletable": true, "refusal": { "code": "string", "message": "string" }, "clearsModule": true, "stationsOnIt": 0, "confirmationToken": "string", "expiresAt": "2019-08-24T14:15:22Z"}Mark reference arrived POST
«Llegó»: the taller marks a brand’s OC («OC anticipada») as physically arrived, with the «Meta por hora» and the units its «ficha técnica» says.
Hold reference PATCH
Pause an OC into the «banco de espera» (⏸): it leaves its módulo’s queue with its counts, and the puestos sewing it move to the next OC.