# Ingrid API

The Ingrid API is organized around REST. Our API has predictable resource-oriented URLs, accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. You can use the Ingrid API in test mode, which doesn't affect your live data or interact with carrier networks. The API key you use to authenticate the request determines whether the request is live mode or test mode.

Version: 1.0.0
License: Apache 2.0

## Servers

Production
```
https://api.ingrid.com
```

## Security

### BearerAuth

Type: http
Scheme: Bearer

### BearerTokenAuth

Type: http
Scheme: Bearer

## Download OpenAPI description

 - [Ingrid API](https://docs.ingrid.com/_bundle/developer-resources/ingrid-api/@v1.preview/openapi.yaml)

## Address Form Configuration

 - [GET /v1.preview/address/sites/{siteId}/form/countries/{countryCode}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/getaddressformcountry.md): Get a country's address form configuration. Every country has a configuration at all times, so this never returns `404 Not Found` for a valid country code: a country the site has not configured return
 - [POST /v1.preview/address/sites/{siteId}/form/countries](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/upsertaddressformcountries.md): Upsert the configuration of one or several countries. Each listed country receives the same configuration, and they will report each other in `alsoCovers`.
 - [PATCH /v1.preview/address/sites/{siteId}/form/countries](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/patchaddressformcountries.md): Partially update the configuration of one or several countries with a single JSON Merge Patch document (RFC 7396). The `configuration` document is applied to each listed country independently. Propert
 - [DELETE /v1.preview/address/sites/{siteId}/form/countries](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/restoreaddressformcountries.md): Restore the listed countries to their default configuration: the site's changes to those countries are discarded. Countries are never deleted (every country always has a configuration), so this behave
 - [GET /v1.preview/address/sites/{siteId}/form/countries](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/listaddressformcountries.md): List every country's address form configuration. The list always covers every country: filter with `modified=true` to see only the countries the site has configured, or with `form=<id>` to see which c
 - [GET /v1.preview/address/sites/{siteId}/form/forms/{formId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/getaddressformdefinition.md): Get an address form.
 - [PUT /v1.preview/address/sites/{siteId}/form/forms/{formId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/upsertaddressformdefinition.md): Upsert an address form: creates it if the identifier is new, replaces it wholesale otherwise. System forms are replaced like any other, flipping `modified` to `true`, but new identifiers with the `sys
 - [DELETE /v1.preview/address/sites/{siteId}/form/forms/{formId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/deleteaddressformdefinition.md): Delete a custom form, or restore a system form to Ingrid's definition. `DELETE` uniformly removes the site's data about the entry. A custom form is removed entirely and subsequent reads return `404 No
 - [GET /v1.preview/address/sites/{siteId}/form/forms](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/listaddressformdefinitions.md): List the site's address forms: Ingrid's system forms and the site's own. Filter with `origin=custom` or `modified=true` to narrow the list to what the site has created or changed, or with `field=<id>`
 - [GET /v1.preview/address/sites/{siteId}/form/fields/{fieldId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/getaddressformfield.md): Get an address form field.
 - [PUT /v1.preview/address/sites/{siteId}/form/fields/{fieldId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/upsertaddressformfield.md): Upsert an address form field: creates it if the identifier is new, replaces it wholesale otherwise. System fields are replaced like any other, flipping `modified` to `true`, but new identifiers with t
 - [PATCH /v1.preview/address/sites/{siteId}/form/fields/{fieldId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/patchaddressformfield.md): Partially update an address form field (JSON Merge Patch, RFC 7396). Individual locales of its localized strings and individual `options` entries can be changed, added, or removed (`null`) without ech
 - [DELETE /v1.preview/address/sites/{siteId}/form/fields/{fieldId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/deleteaddressformfield.md): Delete a custom field, or restore a system field to Ingrid's definition. `DELETE` uniformly removes the site's data about the entry. A custom field is removed entirely and subsequent reads return `404
 - [GET /v1.preview/address/sites/{siteId}/form/fields](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/listaddressformfields.md): List the site's address form fields: Ingrid's field catalogue and the site's own fields. Filter with `origin=custom` or `modified=true` to narrow the list to what the site has created or changed, or w
 - [GET /v1.preview/address/sites/{siteId}/form/validation-rules/{ruleId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/getaddressformvalidationrule.md): Get a validation rule.
 - [PUT /v1.preview/address/sites/{siteId}/form/validation-rules/{ruleId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/upsertaddressformvalidationrule.md): Upsert a validation rule: creates it if the identifier is new, replaces it wholesale otherwise. System rules are replaced like any other, flipping `modified` to `true`, but new identifiers with the `s
 - [PATCH /v1.preview/address/sites/{siteId}/form/validation-rules/{ruleId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/patchaddressformvalidationrule.md): Partially update a validation rule (JSON Merge Patch, RFC 7396). Individual locales of the message can be changed, added, or removed (`null`) without echoing the rest. `null` removes a property, so an
 - [DELETE /v1.preview/address/sites/{siteId}/form/validation-rules/{ruleId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/deleteaddressformvalidationrule.md): Delete a custom validation rule, or restore a system rule to Ingrid's definition. `DELETE` uniformly removes the site's data about the entry. A custom rule is removed entirely and subsequent reads ret
 - [GET /v1.preview/address/sites/{siteId}/form/validation-rules](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration/listaddressformvalidationrules.md): List the site's validation rules: Ingrid's rule catalogue and the site's own rules. Filter with `origin=custom` or `modified=true` to narrow the list to what the site has created or changed.
## Configuration

 - [Integration guide](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/integration-guide.md): ## Integration guide Use the Config API with a configuration-aware Ingrid API to draft, test, publish, and gradually roll out a site's configuration. This guide defines the shared lifecycle and routin
 - [How the APIs fit together](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/how-the-apis-fit-together.md): ### How the APIs fit together Configuration has two API roles: | API | Responsibility | Typical caller | | --- | --- | --- | | **Config API** under `/v1.preview/configuration` | Creates workspaces, p
 - [Core concepts](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/core-concepts.md): ### Core concepts - A **revision** is an immutable site-wide configuration snapshot. An edit creates a new revision instead of changing an existing one. Revision IDs are opaque. - A **workspace**
 - [Prerequisites and credentials](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/prerequisites-and-credentials.md): ### Prerequisites and credentials You need the site ID, a bearer access token, and the endpoint for the configuration resource you want to change. The access token needs both the Config API permission
 - [Configuration routing headers](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/configuration-routing-headers.md): ### Configuration routing headers Every configuration-aware API uses the same three request headers. The response headers report the routing decision that the API actually used. | Header | Request mea
 - [Draft and publish configuration](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/draft-and-publish-configuration.md): ### Draft and publish configuration This workflow uses the legacy Transport return shipment policy of one shipping method as a concrete configuration-aware API. Other configuration APIs have different
 - [1. Create a workspace](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/1.-create-a-workspace.md): #### 1. Create a workspace Start from the published revision by omitting `basedOnWorkspaceId`. ```bash curl -i -X POST https://api.ingrid.com/v1.preview/configuration/workspaces \ -H "Authorization
 - [2. Read the draft](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/2.-read-the-draft.md): #### 2. Read the draft Send both values to the owning configuration API. Passing the revision keeps every resource loaded into the editor on one snapshot, even if another editor changes the workspace
 - [3. Edit the draft](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/3.-edit-the-draft.md): #### 3. Edit the draft Send the workspace and the revision you read. The owning API validates and stores its resource, creates a site-wide revision, and returns the new ID in `X-Site-Revision`. ```ba
 - [4. Preview the complete workspace](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/4.-preview-the-complete-workspace.md): #### 4. Preview the complete workspace Read every affected resource with the latest workspace and revision headers. This catches cross-resource mistakes before release. You can also route a dedicated
 - [5. Publish the workspace](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/5.-publish-the-workspace.md): #### 5. Publish the workspace Stop writes to the workspace before the final validation and keep them stopped until publishing finishes. Fetch `GET /v1.preview/configuration/workspaces/{workspaceId}?si
 - [Read one consistent published snapshot](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/read-one-consistent-published-snapshot.md): ### Read one consistent published snapshot A read without routing headers follows the published pointer. If your operation needs several configuration-aware calls to agree, first call `GET /v1.preview
 - [Allocate consumer traffic](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/allocate-consumer-traffic.md): ### Allocate consumer traffic Allocations support A/B tests and gradual rollouts without publishing the draft. Backoffice editors manage the allocation. A journey orchestrator calls the traffic endpoi
 - [1. Create the variant workspace](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/1.-create-the-variant-workspace.md): #### 1. Create the variant workspace Use the draft workflow above and leave the workspace active. An allocation targets the workspace pointer, so new tokens can select later edits to that workspace. A
 - [2. Create an allocation](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/2.-create-an-allocation.md): #### 2. Create an allocation The following allocation applies only to Swedish journeys and sends 10% to the workspace and 90% to the published configuration. Omitting `workspaceId` identifies the publ
 - [3. Allocate a journey](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/3.-allocate-a-journey.md): #### 3. Allocate a journey Call the traffic endpoint when the journey starts. Keep `externalRef` stable for the journey, such as a cart, session, or visitor ID. Do not generate a new value for every r
 - [4. Carry the token through the journey](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/4.-carry-the-token-through-the-journey.md): #### 4. Carry the token through the journey Send the token on every configuration-aware API call whose result must remain in the same variant. ```bash curl -i \ https://api.ingrid.com/v1.preview/le
 - [5. Renew the token](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/5.-renew-the-token.md): #### 5. Renew the token Tokens route requests for one hour. Refresh before expiry by repeating the allocation request with the current token in `previousToken`. Send the same `siteId`, `region`, `exte
 - [6. Finish a rollout](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/6.-finish-a-rollout.md): #### 6. Finish a rollout Replace an allocation with the complete target set you want next. `PUT` is a full replacement, not a patch. Existing tokens keep their revisions until expiry, while new and re
 - [Failures and recovery](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/failures-and-recovery.md): ### Failures and recovery Config API errors use [RFC 9457 Problem Details](https://www.rfc-editor.org/rfc/rfc9457). Configuration-aware APIs use the same format for routing failures. | Status | Contex
 - [API reference](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/api-reference.md): ### API reference Use the operations below after choosing the workflow in this guide: - **Workspaces:** [list](#tag/Configuration/operation/listWorkspaces) , [create](#tag/Configuration/operation/cr
 - [Integration checklists](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/integration-checklists.md): ### Integration checklists Before publishing a backoffice integration: - Keep the workspace `id` and latest `revisionId` together. - Send both headers on every draft read and write. - Replace the re
 - [POST /v1.preview/configuration/allocate](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/allocatetraffic.md): Select a configuration revision for one user journey. Call this operation when the journey starts, then carry its result across every configuration-aware Ingrid API request in that journey. ## Selecti
 - [GET /v1.preview/configuration/allocations](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/listallocations.md): List all traffic allocations configured for a site. Use this operation to inspect the conditions and weighted target sets that can participate in traffic allocation. Results are ordered by `createdAt`
 - [POST /v1.preview/configuration/allocations](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/createallocation.md): Create a conditional, weighted configuration rollout. Each workspace target must identify an active workspace in `siteId`. Omit an assignment's `workspaceId` to include the published configuration. Th
 - [GET /v1.preview/configuration/workspaces](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/listworkspaces.md): List a site's active configuration workspaces. Use this operation to display the drafts that can still be edited, published, or deleted. Results are ordered by `createdAt`, newest first, and exclude w
 - [POST /v1.preview/configuration/workspaces](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/createworkspace.md): Create an isolated draft of a site's configuration. By default, the draft starts at the published revision. Set `basedOnWorkspaceId` to fork the current revision of another active workspace in the sam
 - [GET /v1.preview/configuration/allocations/{allocationId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/getallocation.md): Get one traffic allocation by its identifier. Use this operation to retrieve the complete condition and target set before replacing it with `PUT /v1.preview/configuration/allocations/{allocationId}`.
 - [PUT /v1.preview/configuration/allocations/{allocationId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/updateallocation.md): Replace an allocation's name, condition, and weighted targets. This is a full replacement, not a partial update. Include every target that must remain in the allocation. The API applies the same name
 - [DELETE /v1.preview/configuration/allocations/{allocationId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/deleteallocation.md): Permanently delete a traffic allocation. The allocation stops producing tokens after the change has propagated, which can take up to two minutes. Tokens already issued by this allocation continue to p
 - [GET /v1.preview/configuration/workspaces/{workspaceId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/getworkspace.md): Get an active workspace and its current draft revision. Use the returned `id` and `revisionId` as `X-Site-Workspace` and `X-Site-Revision` when reading or editing the draft through a configuration-awa
 - [DELETE /v1.preview/configuration/workspaces/{workspaceId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/deleteworkspace.md): Permanently remove an active workspace. Deleting a workspace discards the draft, frees its `name` for reuse, and removes that workspace from every allocation that targets it. The target removal may ta
 - [POST /v1.preview/configuration/workspaces/{workspaceId}/publish](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/publishworkspace.md): Make a workspace's current revision the site's default configuration. Publishing consumes the workspace, frees its `name`, and removes the workspace from every allocation that targets it. The target r
 - [GET /v1.preview/configuration/published](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/configuration/getpublishedversion.md): Get the revision currently used as the site's default configuration. Use the returned `revisionId` to pin several published-configuration reads to one immutable snapshot. The operation returns `404 No
## Criteria Usage

 - [The flow](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/promise-criteria/the-flow.md): ## The flow A flow involves three parties: 1. **Orchestrator** (the merchant backend or e-com platform). Holds the items and creates both the criteria and the final order, all server-to-server. 2.
 - [Per-call inputs vs. criteria snapshot](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/promise-criteria/per-call-inputs-vs.-criteria-snapshot.md): ## Per-call inputs vs. criteria snapshot Several fields appear on both the criteria (where they are snapshotted) and the per-call endpoints that accept a criteria reference. The field may be present o
 - [Incomplete criteria](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/promise-criteria/incomplete-criteria.md): ## Incomplete criteria What the shopper or consignor supplies may be missing when the criteria is created, so options can be shown before the items or their address are known: item lists may be empty,
 - [Criteria errors](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/promise-criteria/criteria-errors.md): ## Criteria errors Operations that accept a criteria can return the errors listed below. Errors are classified as **Terminal** (the existing criteria is in a permanent dead-end state, so create a new
## Delivery

 - [POST /v1.preview/delivery/criteria](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/delivery/createdeliverycriteria.md): Called from a trusted environment, such as the merchant backend or e-com platform, this endpoint creates a delivery criteria: a snapshot of the items and the context they are shipped in. The merchant'
 - [POST /v1.preview/delivery/options](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/delivery/getdeliveryoptions.md): Get available delivery options for a given criteria. This endpoint can be used for a wide range of use cases beyond a normal checkout journey, such as free-shipping indicators, listing available optio
 - [POST /v1.preview/delivery/locations](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/delivery/listpickuplocations.md): List the locations the customer can choose from for an offer, scoped by a delivery criteria. Returns pickup points for a `pickup` offer and stores for an `instore` offer. Send the offer's `token` as `
 - [POST /v1.preview/delivery/orders](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/delivery/createdeliveryorder.md): Create a delivery order based on the customer's selection from the delivery options response. Once the order is created, the delivery criteria is **consumed** and any subsequent request using it may r
## Handover

 - [POST /v1.preview/handover/criteria](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/handover/createhandovercriteria.md): Called from a trusted environment, such as the merchant backend or a returns platform, this endpoint creates a handover criteria: a snapshot of the items handed over, where they are handed over and wh
 - [POST /v1.preview/handover/options](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/handover/gethandoveroptions.md): Get available handover options for a given criteria: the ways the consignor can hand the parcel over (pickup from their address, drop-off at a service point or locker), what they need to identify the
 - [POST /v1.preview/handover/locations](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/handover/listhandoverlocations.md): List the service points or lockers the consignor can drop the parcel off at for an offer, scoped by a handover criteria. Send the offer's `token` as `offerToken`.
 - [POST /v1.preview/handover/orders](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/handover/createhandoverorder.md): Create a handover order based on the consignor's selection from the handover options response. Once the order is created, the handover criteria is **consumed** and any subsequent request using it may
## Apps

 - [GET /v1.preview/apps](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/listapps.md): List the apps that a merchant or the platform owns. The platform's list does not include the apps that its merchants own. The response includes only the apps on which the caller holds `iam.management.
 - [POST /v1.preview/apps](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/createapp.md): Create an active app, owned by a merchant or the platform. Requires `iam.management.create` on the owner. You cannot change the owner later, and owning the app grants it no access. The app has no cred
 - [GET /v1.preview/apps/{appId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/getapp.md): Return an app. Requires `iam.management.get` on the app.
 - [PATCH /v1.preview/apps/{appId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/updateapp.md): Update an app's name, description, or account status. Requires `iam.management.update` on the app. Include at least one field. An empty request body returns a validation error. Set `status` to `inacti
 - [DELETE /v1.preview/apps/{appId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/deleteapp.md): Permanently delete an app. Requires `iam.management.delete` on the app. The operation also removes the app's grants and revokes its credentials, which stop working at once. An unknown or already delet
 - [GET /v1.preview/apps/{appId}/credentials](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/listappcredentials.md): List an app's long-lived credentials. Requires `iam.management.list` on the app. The response never includes credential secrets. Treat `lastUsedAt` as approximate when you decide which credential to r
 - [POST /v1.preview/apps/{appId}/credentials](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/createappcredential.md): Create a long-lived credential for an app. Requires `iam.management.create` on the app. Only this response contains the secret. Store it securely, because later operations return only the credential's
 - [GET /v1.preview/apps/{appId}/credentials/{credentialId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/getappcredential.md): Return one app credential, without its secret. Requires `iam.management.get` on the app.
 - [DELETE /v1.preview/apps/{appId}/credentials/{credentialId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/apps/deleteappcredential.md): Permanently revoke and delete an app credential. Requests that use its secret can no longer authenticate. Requires `iam.management.delete` on the app.
## Roles

 - [Authorization model](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/roles/authorization-model.md): ## Authorization model Roles group permissions that you grant to a user or app on a resource. A grant connects one role, one user or app, and one resource, such as a merchant or one of its sites. A ro
 - [Choose a role](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/roles/choose-a-role.md): ## Choose a role Use a product role, such as `transport.shipments.writer`, when the user or app needs one product capability. Use the coarse `reader` or `writer` role only when it needs broad access t
 - [Who can receive a grant](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/roles/who-can-receive-a-grant.md): ## Who can receive a grant A user must be a member of the merchant before receiving a grant on it or its sites. A user added with `POST /v1.preview/merchants/{merchantId}/members` is `invited` until t
 - [Role catalog](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/roles/role-catalog.md): ## Role catalog Each row is one role on one type of resource you can grant it on. Its permissions apply to that resource and to the resources under it that define them. | Role | Resource type | Common
 - [Permission catalog](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/roles/permission-catalog.md): ## Permission catalog A permission names one action that a role allows. Use `GET /v1.preview/me/permissions` to read the caller's permissions on a resource. | Permission | Resource types | | --- | --
 - [GET /v1.preview/roles](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/roles/listroles.md): List the roles you can grant to users and apps. Each role lists the permissions it grants on each type of resource you can grant it on. Use `resourceType` to return only the roles you can grant on tha
## Grants

 - [GET /v1.preview/grants](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/grants/listgrants.md): List the grants on a resource, or the grants of a user or app. Set `resourceType` and `resourceId` to list the grants on one merchant or site. To find a user's or app's grants on resources of one type
 - [POST /v1.preview/grants](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/grants/creategrant.md): Grant one role to a user or app on a resource. A user must be an `active` member of the merchant that the resource is in, or of the platform for a grant on the platform. An app must be owned by that m
 - [GET /v1.preview/grants/{grantId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/grants/getgrant.md): Return one grant. Requires `iam.management.get` on the grant's resource. Treat `grantId` as opaque, and do not construct or modify it. An expired grant, or a grant of an `invited` member, returns `404
 - [DELETE /v1.preview/grants/{grantId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/grants/deletegrant.md): Permanently revoke one grant. Requires `iam.management.delete` on the grant's resource. Treat `grantId` as opaque, and use the value that a create, list, or get operation returned. Returns `204 No Con
## Current access

 - [GET /v1.preview/me](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/current-access/getcurrentprincipal.md): Get the authenticated user or app and how it authenticated this request. `kind` says whether the caller is a user or an app, and the matching `user` or `app` property holds it. When the caller uses a
 - [PATCH /v1.preview/me](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/current-access/updatecurrentprincipal.md): Update the profile of the authenticated user. Send the changed fields under `user`, as `GET /v1.preview/me` returns them, with at least one of `firstName` or `lastName`. Apps cannot update themselves
 - [POST /v1.preview/me/restricted_tokens](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/current-access/createcurrentprincipalrestrictedtoken.md): Create a short-lived restricted token that limits the authenticated user or app to some of its roles. Hand the token to a component that should act only on part of the caller's access, for example on
 - [GET /v1.preview/me/memberships](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/current-access/listcurrentprincipalmemberships.md): List the memberships of the authenticated user, newest first. A membership lets the user receive grants, but gives no access by itself. An `invited` membership gives no access until the user accepts i
 - [POST /v1.preview/me/memberships/{membershipId}/accept](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/current-access/acceptcurrentprincipalmembership.md): Accept an invitation to a merchant or the platform, which puts the membership's grants into effect. Accepting an `active` membership changes nothing and returns it. Returns `409 Conflict` with the `in
 - [DELETE /v1.preview/me/memberships/{membershipId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/current-access/deletecurrentprincipalmembership.md): Leave a merchant or the platform, or decline an invitation to one. The operation removes the membership, whatever its status, and revokes its grants. The principal may leave any membership, the platfo
 - [GET /v1.preview/me/grants](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/current-access/listcurrentprincipalgrants.md): List the grants that the authenticated user or app holds on resources of one type. To read the permissions that the grants give on one resource, including through the merchant that a site belongs to,
 - [GET /v1.preview/me/permissions](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/current-access/getcurrentprincipalpermissions.md): Get the permissions that the caller holds on one resource. The response includes the permissions from the caller's grants on the resource and on the merchant or platform above it. Use it to decide wh
## Merchant memberships

 - [GET /v1.preview/merchants/{merchantId}/members](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchant-memberships/listmerchantmembers.md): List the users who are members of a merchant, newest first. The list includes `invited` members who have not accepted the membership yet. Set `userId` to find one user's membership. Apps are not liste
 - [POST /v1.preview/merchants/{merchantId}/members](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchant-memberships/createmerchantmember.md): Add a person to a merchant by email address, optionally with initial grants on the merchant and its sites. The membership starts `invited`, for a new and an existing user alike, and its grants take ef
 - [GET /v1.preview/merchants/{merchantId}/members/{membershipId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchant-memberships/getmerchantmember.md): Return a membership of a merchant. Returns `404 Not Found` when the merchant has no membership with the identifier.
 - [DELETE /v1.preview/merchants/{merchantId}/members/{membershipId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchant-memberships/deletemerchantmember.md): Remove a user from a merchant, whatever the membership's status. The operation revokes the user's grants on the merchant and its sites. For an `invited` member, it cancels the invitation; an email inv
 - [POST /v1.preview/merchants/{merchantId}/members/{membershipId}/resend_invitation](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchant-memberships/resendmerchantmemberinvitation.md): Resend an `invited` member's invitation, which renews it for seven days from now. When the user has an outstanding email invitation to set up a sign-in method, the API also replaces it with a new one
 - [PUT /v1.preview/merchants/{merchantId}/members/{membershipId}/grants](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchant-memberships/replacemerchantmembergrants.md): Replace the roles an `invited` member gets on accepting the membership. The grants replace the current ones: the API keeps the grants that are in both, adds the new ones, and removes the rest. Each gr
## Merchants

 - [POST /v1.preview/merchants](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchants/createmerchant.md): Create a merchant identity with a server-assigned UUID. The operation returns `409 Conflict` when an active merchant already uses the name.
 - [GET /v1.preview/merchants](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchants/listmerchants.md): List active merchants where the authenticated principal has `iam.management.list` on the merchant. The handler filters results through SpiceDB. Results follow SpiceDB lookup order, which is otherwise
 - [GET /v1.preview/merchants/{merchantId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchants/getmerchant.md): Return canonical identity metadata for one active merchant.
 - [PATCH /v1.preview/merchants/{merchantId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchants/updatemerchant.md): Rename an active merchant with JSON Merge Patch. Omit `name` to leave the merchant unchanged.
 - [DELETE /v1.preview/merchants/{merchantId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/merchants/deletemerchant.md): Soft-delete a merchant and its active sites. The merchant disappears from active reads and lists. Repeating the operation returns `404 Not Found`.
## Sites

 - [POST /v1.preview/sites](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/sites/createsite.md): Create a site identity under an active merchant with a server-assigned UUID. An unknown or inaccessible merchant returns `403 Forbidden`. An authorized merchant that is absent from active storage retu
 - [GET /v1.preview/sites](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/sites/listsites.md): List active sites under a merchant where the authenticated principal has `iam.management.list` on that merchant. An unknown or inaccessible merchant returns an empty list. Results are ordered by site
 - [GET /v1.preview/sites/{siteId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/sites/getsite.md): Return canonical identity metadata for one active site.
 - [PATCH /v1.preview/sites/{siteId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/sites/updatesite.md): Rename an active site with JSON Merge Patch. Omit `name` to leave the site unchanged. The merchant relationship cannot change.
 - [DELETE /v1.preview/sites/{siteId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/sites/deletesite.md): Soft-delete a site and its internal versions. The site disappears from active reads and lists. Repeating the operation returns `404 Not Found`.
## Transport Configuration (Legacy)

 - [Before you start](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/before-you-start.md): ## Before you start You need: - The Site ID. - A bearer token with `transport.legacy_configuration.get` to read configuration. - A bearer token with `transport.legacy_configuration.update` to change
 - [Enable a Shipping Method for booking](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/enable-a-shipping-method-for-booking.md): ## Enable a Shipping Method for booking Shipping Method activation is explicit and independent from every method subresource. Enabling a Pickup Scheduling policy does not make a method bookable. Enabl
 - [Schedule pickups](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/schedule-pickups.md): ## Schedule pickups Booking a Shipment can leave Carrier work for later: sending an EDI file or a manifest, closing a dispatch, or asking the Carrier to collect. Ingrid calls all of it pickup. Each bo
 - [Configure Shipment addon defaults](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/configure-shipment-addon-defaults.md): ## Configure Shipment addon defaults `carrierAddons` contains exact Carrier Addon codes. A code can be a short value such as `A3`, a numeric string such as `1081`, or a prefixed value such as `budbee.
 - [Place Document addition content](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/place-document-addition-content.md): ## Place Document addition content Each addition selects one placement for its complete content block. `labelHeader` reserves a band above the Carrier content and moves that content down, `labelFooter
 - [Configure automatic Return Shipments](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/configure-automatic-return-shipments.md): ## Configure automatic Return Shipments A Return Shipment policy makes Ingrid create and book a linked provisional return Shipment whenever an outbound Shipment uses the source Shipping Method in the
 - [Save Shipment templates](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/save-shipment-templates.md): ## Save Shipment templates A Shipment template is a named set of Shipment values that people pick when they create a Shipment by hand. Templates belong to the Site. Everyone who can read the Site's Tr
 - [Author Custom Booking Methods](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/author-custom-booking-methods.md): ## Author Custom Booking Methods Custom Booking Methods apply conditional changes to a Shipment before Ingrid books it. Each method matches one source Shipping Method and can map it to a Carrier produ
 - [Prerequisites](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/prerequisites.md): ### Prerequisites You need: - A bearer token with `transport.legacy_configuration.get` to read and test Custom Booking Methods. - A bearer token with `transport.legacy_configuration.update` to repla
 - [Define a method](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/define-a-method.md): ### Define a method A Site has at most one Custom Booking Method per source Shipping Method, and the collection is keyed by it. The `{shippingMethod}` URL segment selects the method by the Shipment's
 - [Use Shipment data in CEL](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/use-shipment-data-in-cel.md): ### Use Shipment data in CEL The HTTP API uses camelCase JSON properties. CEL uses the snake_case field names below. The test operation prepares the submitted sample before creating this CEL projectio
 - [Filter functions](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/filter-functions.md): ### Filter functions Filter expressions must return a boolean. These Ingrid functions are available in addition to standard CEL functions. | Function | Result | Behavior | | --- | --- | --- | | `ship
 - [Action functions](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/action-functions.md): ### Action functions Action expressions mutate the Shipment under construction. They return `null`; do not use them as filters. | Function | Behavior | | --- | --- | | `add_addon(name)` | Appends a C
 - [Test a saved revision](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/test-a-saved-revision.md): ### Test a saved revision Submit one to 20 sample Shipments after saving the policy in a workspace. Pin the resulting revision so the exact saved policy and supporting Site configuration are selected
 - [Save, test, and publish a candidate](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/save-test-and-publish-a-candidate.md): ### Save, test, and publish a candidate Testing does not change configuration. Use the Config API workspace lifecycle to test an immutable saved revision: 1. [Create a workspace](#tag/Configuration/op
 - [Handle test failures](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/handle-test-failures.md): ### Handle test failures A malformed request returns `400 Validation Error`. Invalid saved CEL is rejected when the policy is written. A well-formed multi-sample test can still return `200 OK` with er
 - [Next steps](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/next-steps.md): ### Next steps - [Test Custom Booking Method](#tag/Legacy-Transport-Configuration/operation/testCustomBookingMethod) at the exact saved revision against every branch and source used by the merchant.
 - [Handle errors](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/handle-errors.md): ## Handle errors Errors use [RFC 9457 Problem Details](https://www.rfc-editor.org/rfc/rfc9457). Branch on the HTTP status and the problem `type`, not on `detail`. | Status | Error | When it occurs | H
 - [API reference](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/api-reference.md): ## API reference - **Shipping Methods:** [list](#tag/Transport-Configuration-(Legacy)/listShippingMethods) , [get](#tag/Transport-Configuration-(Legacy)/getShippingMethod) , [update](#tag/Transport
 - [Next steps](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/next-steps.md): ## Next steps - Read the [Config API integration guide](#tag/Configuration) to create, preview, and publish workspaces, and to route consumer traffic to a workspace before you publish it. - Use the
 - [GET /v1.preview/legacy/transport/sites/{siteId}/shipping-methods](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/listshippingmethods.md): List the Shipping Methods that are addressable for Transport booking at this Site. The list contains Ingrid catalog entries and preserved custom or legacy entries. `enabled` is explicit booking activa
 - [GET /v1.preview/legacy/transport/sites/{siteId}/shipping-methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getshippingmethod.md): Get one Shipping Method's effective booking activation and applicable capability. `systemDefaults=true` returns Ingrid's pristine disabled catalog entry without changing stored activation. A custom or
 - [PATCH /v1.preview/legacy/transport/sites/{siteId}/shipping-methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/patchshippingmethod.md): Partially update explicit booking activation with JSON Merge Patch (RFC 7396). Enabling requires a verified booking path in the applicable Site, Carrier contract and integration context. An absent boo
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/shipping-methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deleteshippingmethod.md): Restore Ingrid's disabled entry or remove a custom Shipping Method entry. Resetting a method stops new bookings with it. It does not delete the method's subresources, existing Shipments, or pending wo
 - [GET /v1.preview/legacy/transport/sites/{siteId}/pickup-scheduling](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/listpickupschedulingpolicies.md): List effective Pickup Scheduling policies by Shipping Method. A method whose booking never leaves pickup work has no policy.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/pickup-scheduling/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getpickupschedulingpolicy.md): Read one Shipping Method's effective Pickup Scheduling policy and its `origin` and `modified` state. Add `systemDefaults=true` to inspect the pristine system policy without changing the stored entry.
 - [PATCH /v1.preview/legacy/transport/sites/{siteId}/pickup-scheduling/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/patchpickupschedulingpolicy.md): Amend the effective policy with JSON Merge Patch. The server validates the complete resulting policy against the Carrier rules for the Shipping Method and stores it atomically. Editing a system entry
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/pickup-scheduling/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deletepickupschedulingpolicy.md): Restore a system entry to its pristine policy, with automation off where it is optional, or remove a custom entry. The operation is idempotent.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/shipment-defaults](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/listshipmentdefaults.md): List the Carrier Addon defaults configured for exact Shipping Methods. An empty result means the Site has no configured defaults. The response does not add Site defaults or inherited values.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/shipment-defaults/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getshipmentdefaults.md): Get every Shipment default for one exact Shipping Method. An absent combined entry returns `404 Not Found`.
 - [PATCH /v1.preview/legacy/transport/sites/{siteId}/shipment-defaults/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/patchshipmentdefaults.md): Partially update Shipment defaults with [JSON Merge Patch (RFC 7396)](https://www.rfc-editor.org/rfc/rfc7396). The Shipping Method identity comes from the path, and you cannot patch it. Omit propertie
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/shipment-defaults/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deleteshipmentdefaults.md): Delete the Carrier Addon defaults for one exact Shipping Method. The operation is idempotent.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/document-rendering](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getdocumentrendering.md): Get the Site-wide Document rendering settings. `configuration` holds only the Site's explicit declarations, and `effective` shows the resolved result over Ingrid's defaults. Each Shipping Method appli
 - [PATCH /v1.preview/legacy/transport/sites/{siteId}/document-rendering](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/patchdocumentrendering.md): Partially update the Site-wide Document rendering settings with [JSON Merge Patch (RFC 7396)](https://www.rfc-editor.org/rfc/rfc7396). The patch targets `configuration`. Omit properties to leave them
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/document-rendering](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deletedocumentrendering.md): Discard the Site's Document rendering declarations so Ingrid's defaults apply again. The operation is idempotent, and a subsequent GET returns an empty `configuration`. Shipping Method declarations an
 - [GET /v1.preview/legacy/transport/sites/{siteId}/document-rendering/methods](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/listdocumentrenderingmethods.md): List the rendering settings of every Shipping Method whose Documents the Site can render, including disabled, return and retained legacy methods. Each entry carries the method's explicit `configuratio
 - [GET /v1.preview/legacy/transport/sites/{siteId}/document-rendering/methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getdocumentrenderingmethod.md): Get one Shipping Method's rendering settings: read-only capabilities, this method's explicit `configuration`, and the resolved `effective` result of the documented fallback order. Only an unknown Ship
 - [PATCH /v1.preview/legacy/transport/sites/{siteId}/document-rendering/methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/patchdocumentrenderingmethod.md): Partially update the rendering entry of one Shipping Method with [JSON Merge Patch (RFC 7396)](https://www.rfc-editor.org/rfc/rfc7396). The identity comes from the path, and you cannot patch it. The p
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/document-rendering/methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deletedocumentrenderingmethod.md): Discard one Shipping Method's rendering declarations so every property follows the documented fallback again. The Shipping Method stays in the collection. A later read returns `200 OK` with an empty `
 - [GET /v1.preview/legacy/transport/sites/{siteId}/document-additions](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/listdocumentadditions.md): List the Site's Document Additions, including disabled ones. An empty list means no addition exists.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/document-additions/{additionId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getdocumentaddition.md): Get one addition. An unknown `additionId` returns `404 Not Found`.
 - [PUT /v1.preview/legacy/transport/sites/{siteId}/document-additions/{additionId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/putdocumentaddition.md): Create or replace one complete Document Addition in a workspace. The identity comes from the path. Unknown Shipping Methods, invalid metadata keys, and placements outside any named method's `capabilit
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/document-additions/{additionId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deletedocumentaddition.md): Delete an addition, so a later read returns `404 Not Found`. The operation is idempotent, including for an unknown identifier.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/return-shipment-policies](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/listreturnshipmentpolicies.md): List every configured Return Shipment policy at the selected revision. An empty list means Ingrid does not automatically create provisional return Shipments for any source Shipping Method.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/return-shipment-policies/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getreturnshipmentpolicy.md): Get the Return Shipment policy for one outbound Shipping Method. An absent policy returns `404 Not Found`.
 - [PUT /v1.preview/legacy/transport/sites/{siteId}/return-shipment-policies/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/putreturnshipmentpolicy.md): Create or replace the complete policy for one outbound Shipping Method in a workspace. Supplying `returnAddressFallback` uses the outbound origin only when the Shipment has no explicit return address;
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/return-shipment-policies/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deletereturnshipmentpolicy.md): Delete the policy for one outbound Shipping Method from a workspace. Ingrid then stops automatically creating a linked provisional return Shipment for that method. The operation is idempotent.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/custom-booking-methods](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/listcustombookingmethods.md): List every Custom Booking Method at the selected revision. The response contains the exact configured values without runtime defaults. An empty list means the selected revision has no Custom Booking
 - [GET /v1.preview/legacy/transport/sites/{siteId}/custom-booking-methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getcustombookingmethod.md): Get the Custom Booking Method of one source Shipping Method. A source without a policy returns `404 Not Found`.
 - [PUT /v1.preview/legacy/transport/sites/{siteId}/custom-booking-methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/putcustombookingmethod.md): Create or replace the Custom Booking Method of one source Shipping Method in one workspace. The identity comes from the path and is not included in the body. A new key must follow the Atlas identifier
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/custom-booking-methods/{shippingMethod}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deletecustombookingmethod.md): Delete the Custom Booking Method of one source Shipping Method from one workspace. The operation is idempotent and does not disable the Shipping Method, delete a Return Shipment policy, or guarantee t
 - [POST /v1.preview/legacy/transport/sites/{siteId}/custom-booking-methods/{shippingMethod}/test](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/testcustombookingmethod.md): Test one saved Custom Booking Method at a resolved revision. Each sample runs through one production-compatible Shipment preparation pass in isolation. The saved policy is selected only when the prep
 - [POST /v1.preview/legacy/transport/sites/{siteId}/custom-booking-methods/{shippingMethod}/generate](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/generatecustombookingmethod.md): Generate a replacement candidate from the saved Custom Booking Method at the selected revision and a conversation. The saved declaration must exist; create an empty declaration with `PUT {}` before ge
 - [GET /v1.preview/legacy/transport/sites/{siteId}/shipment-templates](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/listshipmenttemplates.md): List the Site's Shipment templates, sorted by `name` ignoring case. An empty list means the Site has no templates.
 - [GET /v1.preview/legacy/transport/sites/{siteId}/shipment-templates/{shipmentTemplateId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/getshipmenttemplate.md): Get one Shipment template. An unknown `shipmentTemplateId` returns `404 Not Found`.
 - [PUT /v1.preview/legacy/transport/sites/{siteId}/shipment-templates/{shipmentTemplateId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/putshipmenttemplate.md): Create or replace one complete Shipment template in a workspace. The identity comes from the path. To create a template, choose a new identifier, such as a UUID, without a namespace prefix. Sending th
 - [DELETE /v1.preview/legacy/transport/sites/{siteId}/shipment-templates/{shipmentTemplateId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/transport-configuration-(legacy)/deleteshipmenttemplate.md): Delete one Shipment template from a workspace, so a later read returns `404 Not Found`. The operation is idempotent, including for an unknown identifier.
## Webhooks

 - [GET /v1.preview/webhooks/sites/{siteId}/endpoints](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/webhooks/webhookendpoints_list.md): Returns the webhook endpoints configured for the site.
 - [POST /v1.preview/webhooks/sites/{siteId}/endpoints](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/webhooks/webhookendpoints_create.md): Creates a webhook endpoint in a workspace; configuration writes require the X-Site-Workspace header. `events` selects the event types delivered to the endpoint and defaults to none. The signing secret
 - [GET /v1.preview/webhooks/triggering-events](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/webhooks/triggeringevents_list.md): Returns the webhook event names that can be used by future webhook configuration endpoints.
 - [GET /v1.preview/webhooks/sites/{siteId}/endpoints/{endpointId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/webhooks/webhookendpoints_get.md): Returns a webhook endpoint configured for the site.
 - [PATCH /v1.preview/webhooks/sites/{siteId}/endpoints/{endpointId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/webhooks/webhookendpoints_update.md): Updates the URL, description, enabled state, or event list of a webhook endpoint in a workspace. Omitted fields are unchanged. `events` replaces the whole list; an empty array unsubscribes from all ev
 - [DELETE /v1.preview/webhooks/sites/{siteId}/endpoints/{endpointId}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/webhooks/webhookendpoints_delete.md): Deletes a webhook endpoint and its event subscriptions from a workspace.
 - [POST parcelChanged](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/webhooks/parcelchangedwebhook.md): Webhook endpoint for receiving Parcel level events
 - [POST ecomOrderChanged](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/webhooks/ecomorderchangedwebhook.md): Webhook endpoint for receiving e-commerce order level events
## Address Form Configuration (Legacy)

 - [Configuration model](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/configuration-model.md): ## Configuration model - **Country configurations** hold the setup for one country each, referencing the named layout and ruleset they use and carrying their feature toggles inline. The special cod
 - [Resolution at runtime](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/resolution-at-runtime.md): ## Resolution at runtime Each country resolves to exactly one entry: its own configuration if it has one, otherwise the site's `XW` entry, otherwise Ingrid's defaults. Entries never merge, so a countr
 - [Legacy scope](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/legacy-scope.md): ## Legacy scope This API configures the widget-based Address Form, and it is the supported way to do so for every site running the legacy checkout widget. Sites using the new Address Form solution are
 - [Errors](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/errors.md): ## Errors Errors follow the [RFC 9457 Problem Details](https://www.rfc-editor.org/rfc/rfc9457) format.
 - [GET /v1.preview/legacy/address-form/sites/{siteId}/country-configurations/{countryCode}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/getaddressformcountryconfiguration.md): Get the Address Form configuration for a country. Returns the country's own stored configuration and nothing else: the response is never a resolved view, so sections it leaves unset fall back at runti
 - [POST /v1.preview/legacy/address-form/sites/{siteId}/country-configurations](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/upsertaddressformcountryconfigurations.md): Upsert the Address Form configuration of one or several countries. Each listed country receives the same configuration, created if absent and replaced wholesale otherwise. Referenced set names (`layou
 - [PATCH /v1.preview/legacy/address-form/sites/{siteId}/country-configurations](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/patchaddressformcountryconfigurations.md): Partially update the Address Form configuration of one or several countries with a single JSON Merge Patch document (RFC 7396). The `configuration` document is applied to each listed country independe
 - [DELETE /v1.preview/legacy/address-form/sites/{siteId}/country-configurations](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/deleteaddressformcountryconfigurations.md): Delete the Address Form configuration of the listed countries. Each falls back to the site's `XW` entry when one is stored, otherwise to Ingrid's defaults. Listed countries without a stored configurat
 - [GET /v1.preview/legacy/address-form/sites/{siteId}/country-configurations](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/listaddressformcountryconfigurations.md): List every stored country configuration, including the `XW` fallback entry when one is stored. Countries absent from the response resolve to the `XW` entry when one is stored, otherwise to Ingrid's de
 - [GET /v1.preview/legacy/address-form/sites/{siteId}/layouts/{layoutName}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/getaddressformlayout.md): Get a named Address Form layout. The response includes `referencedBy`: the countries whose configuration currently references this layout.
 - [PUT /v1.preview/legacy/address-form/sites/{siteId}/layouts/{layoutName}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/putaddressformlayout.md): Upsert a named Address Form layout: creates it if the name is new, replaces it wholesale otherwise.
 - [DELETE /v1.preview/legacy/address-form/sites/{siteId}/layouts/{layoutName}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/deleteaddressformlayout.md): Delete a named Address Form layout. Fails with `409 Conflict` when the layout is still referenced by a country. Repoint or delete the referencing countries first.
 - [GET /v1.preview/legacy/address-form/sites/{siteId}/layouts](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/listaddressformlayouts.md): List the site's named Address Form layouts.
 - [GET /v1.preview/legacy/address-form/sites/{siteId}/rulesets/{rulesetName}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/getaddressformruleset.md): Get a named Address Form ruleset. The response includes `referencedBy`: the countries whose configuration currently references this ruleset.
 - [PUT /v1.preview/legacy/address-form/sites/{siteId}/rulesets/{rulesetName}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/putaddressformruleset.md): Upsert a named Address Form ruleset: creates it if the name is new, replaces it wholesale otherwise.
 - [PATCH /v1.preview/legacy/address-form/sites/{siteId}/rulesets/{rulesetName}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/patchaddressformruleset.md): Partially update a named Address Form ruleset (JSON Merge Patch, RFC 7396). Individual entries under `fieldRules` can be changed, added, or removed (`null`) without touching the rest. `multiFieldRules
 - [DELETE /v1.preview/legacy/address-form/sites/{siteId}/rulesets/{rulesetName}](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/deleteaddressformruleset.md): Delete a named Address Form ruleset. Fails with `409 Conflict` when the ruleset is still referenced by a country. Repoint or delete the referencing countries first.
 - [GET /v1.preview/legacy/address-form/sites/{siteId}/rulesets](https://docs.ingrid.com/developer-resources/ingrid-api/v1.preview/openapi/address-form-configuration-(legacy)/listaddressformrulesets.md): List the site's named Address Form rulesets.
