Skip to main content
POST
/
transaction-cogs
/
update-costs
curl --request POST \
  --url https://{companyName}.api.joinluminous.com/external/api/v1/transaction-cogs/update-costs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "sales_item_ids",
  "sales_item_ids": [
    101,
    102,
    103
  ],
  "cost_per_unit": 12.5
}
'
{
  "updated_count": 47
}

Documentation Index

Fetch the complete documentation index at: https://docs.joinluminous.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

application/json
mode
enum<string>
required

Selection mode

Available options:
sales_item_ids
sales_item_ids
integer[]
required

Array of sales item IDs to update

Minimum array length: 1
cost_per_unit
number
required

Cost per unit to apply

Response

Number of sales lines updated

updated_count
integer
required

Number of sales lines that were updated

Required range: x >= 0