ingest_with_rosetta
Onboard a merchant feed with one call: send payload and canonical_target and Rosetta fingerprints the shape, reuses a frozen adapter when it has one and otherwise plans, freezes or queues the mapping by confidence. The status says stable, provisional or needs review. Pass samples, up to a few more payloads, to improve the guess, and merchant_id to label the integration in the audit trail. The first call for a new shape provisions and stores an adapter and may queue a review. Needs a claimed Last Price credential. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | The merchant record to translate. | |
| samples | No | More payloads of the same shape, to improve the guess. | |
| merchant_id | No | A label for the integration, kept in the audit trail. | |
| canonical_target | Yes | The id of a built-in schema (see list_canonical_schemas) or a whole schema with an id and fields. |