Saltar al contenido principal
GET
/
v1
/
production
/
orders
/
operations
/
{operationReference}
/
cost
Get the cost of one operation by its reference
curl --request GET \
  --url https://api.bold-factory.com/v1/production/orders/operations/{operationReference}/cost \
  --header 'Authorization: Bearer <token>'
{
  "orderId": "<string>",
  "operationId": "<string>",
  "skuId": "<string>",
  "sku": {
    "id": "<string>",
    "code": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "autoUpdateCost": true,
    "plannedCostPerUnit": {
      "amount": 123,
      "currency": "<string>"
    },
    "unit": {
      "id": "<string>",
      "code": "<string>",
      "name": "<string>"
    }
  },
  "code": "<string>",
  "name": "<string>",
  "totalCost": {
    "amount": 123,
    "currency": "<string>"
  },
  "quantity": 123,
  "machineHours": 123,
  "costPerUnit": {
    "amount": 123,
    "currency": "<string>"
  },
  "laborCost": {
    "amount": 123,
    "currency": "<string>"
  },
  "materialCost": {
    "amount": 123,
    "currency": "<string>"
  },
  "machineCost": {
    "amount": 123,
    "currency": "<string>"
  },
  "plannedQuantity": 123,
  "plannedMachineHours": 123,
  "plannedLaborHours": 123,
  "plannedLaborCostPerHour": {
    "amount": 123,
    "currency": "<string>"
  },
  "plannedLaborCost": {
    "amount": 123,
    "currency": "<string>"
  },
  "plannedMaterialCost": {
    "amount": 123,
    "currency": "<string>"
  },
  "plannedMachineCost": {
    "amount": 123,
    "currency": "<string>"
  },
  "plannedTotalCost": {
    "amount": 123,
    "currency": "<string>"
  },
  "plannedCostPerUnit": {
    "amount": 123,
    "currency": "<string>"
  }
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Parámetros de ruta

operationReference
string
requerido

Respuesta

OK

orderId
string
requerido
operationId
string
requerido
skuId
string
requerido
sku
object
requerido
code
string
requerido
name
string
requerido
totalCost
object
requerido
quantity
number<double>
requerido
machineHours
number<double>
requerido
costPerUnit
object
requerido
laborCost
object
requerido
materialCost
object
requerido
machineCost
object
requerido
plannedQuantity
number<double>
requerido
plannedMachineHours
number<double>
requerido
plannedLaborHours
number<double>
requerido
plannedLaborCostPerHour
object
requerido
plannedLaborCost
object
requerido
plannedMaterialCost
object
requerido
plannedMachineCost
object
requerido
plannedTotalCost
object
requerido
plannedCostPerUnit
object
requerido