createSourcingAudit

Creates a Sourcing Audit record capturing the outcome of a sourcing run.

Input fields

input (CreateSourcingAuditInput!)

Return fields

ref (String)

Unique reference identifier for the Sourcing Audit.
Max character limit: 30.

entityType (String)

The type of the audited entity.
Supported values are ORDER and FULFILMENT_CHOICE.

entityId (ID)

The identifier of the audited Order or FulfilmentChoice.

entityRef (String)

The reference of the audited Order or FulfilmentChoice.

retailer (RetailerLink)

The Retailer the audited Sourcing Request belongs to.

type (String)

The type of the Sourcing Request.
Supported values are PRIMARY and FALLBACK.
Max character limit: 30.

status (String)

The overall outcome of the Sourcing Request.
Supported values include FULLY_SOURCED (all Items sourced in full), PARTIALLY_SOURCED (at least one Item has less than its full quantity sourced), and NOT_SOURCED (no Items sourced).
Max character limit: 30.

createdOn (DateTime)

Time the Sourcing Audit was created.

profile (SourcingProfile)

The SourcingProfile and version used for the sourcing decision.
Resolved when the audit is queried and populated only if the caller holds the SOURCINGPROFILE_VIEW permission.

strategies ([SourcingAuditStrategy])

The Strategies considered during evaluation, in priority order.

items ([SourcingAuditItem])

The Items and their quantities included in this Sourcing Request, in a fixed, significant order.

locationCount (Int)

The total number of unique Locations considered across the Sourcing Request.