Preview write supply source
preview_write_supply_sourceValidate and preview an article's supply source (Bezugsquelle) create or update.
Args:
payload: Create requires supplierId (party id) and
articleNumber (the SUPPLIER's own SKU, not yours);
pricing via price+currency or raw articlePrices.
On update, omitted fields carry over from the existing
record.
article_id: Owning article — the source is always linked into its
supplySources[].
supply_source_id: Pass to update; omit to create.
set_as_primary: Create defaults True, update False. An article's
FIRST supply source is always forced primary.
Returns:
{ready_for_preview, normalized_payload, warnings[], will_set_as_primary, approval, execution};
ready_for_preview=False with validation_errors on a bad
payload.
when_to_use: First step of the two-step supply-source write. Field
semantics, defaults, and footguns:
get_schema(entity="articleSupplySource", detail="payload_guide").
preconditions: article_id must resolve; on update
supply_source_id too.
post_effects: No mutation; issues a payload-bound approval token.
After the user explicitly confirms, call execute_approved with approval.token and
execution.payload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | ||
| article_id | Yes | ||
| correlation_id | No | ||
| set_as_primary | No | ||
| supply_source_id | No | ||
| recovery_approval_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||