Saltar al contenido principal
GET
/
v1
/
production
/
orders
/
operations
/
{operationReference}
/
materials
/
cost
Get the cost of the materials of a operation by its reference
curl --request GET \
  --url https://api.bold-factory.com/v1/production/orders/operations/{operationReference}/materials/cost \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "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>"
        }
      },
      "plannedQuantity": 123,
      "plannedTotalCost": {
        "amount": 123,
        "currency": "<string>"
      },
      "plannedCostPerUnit": {
        "amount": 123,
        "currency": "<string>"
      },
      "quantity": 123,
      "costPerUnit": {
        "amount": 123,
        "currency": "<string>"
      },
      "totalCost": {
        "amount": 123,
        "currency": "<string>"
      }
    }
  ],
  "totalCount": 123
}

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

results
object[]
requerido
totalCount
integer<int32>
requerido