> ## Documentation Index
> Fetch the complete documentation index at: https://808-labs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IDs, metadata and custom fields

> Keep store identifiers separate from Ignyt resources and approved extensions.

Data model
Keep Ignyt IDs, store references and approved custom fields distinct throughout an order’s lifecycle.

## Resource identity

Use the Ignyt `id` returned by an endpoint for Ignyt API calls. Catalog records also expose `external_id`, `merchant_id`, `connection_id` and supported `source_metadata`. Product IDs and purchasable variant IDs are different resources. An external ID can be reused by different stores; do not use it alone as a global primary key.

Persist the app/environment and connection alongside external references. For orders, keep the Ignyt purchase ID, child merchant-order ID and returned external order reference separately. Payment, refund, transfer and bank-payout identifiers represent different operations; none is a replacement for a purchase ID.

Metadata is optional and connector-dependent. Missing metadata does not authorize guessing a foreign identifier or replacing Ignyt's ID. A merchant can echo an Ignyt reference through its agreed mapping, but that is not evidence that all upstream and internal IDs are interchangeable.

## Client-specific order fields

Inspect your configured extension profile with `GET /v1/order-extensions`. Where approved and enabled, `PUT /v1/carts/{cart_id}/custom-fields` accepts profile-defined values with `cart:write` and `fields:manage` authority. This is not a schema-free way to add arbitrary fields or change prices, payment recipients or canonical statuses.

Ignyt configures the versioned profile and any merchant mapping; your integration supplies the permitted values. Order responses expose approved fields under `extensions.<namespace>`. Existing purchases retain their frozen profile/value snapshot even when the current configuration changes.

Forwarding is explicit per connection and requires the connector's supported metadata path. A field appearing in an Ignyt response does not prove that the merchant received it. Inspect available forwarding/acknowledgement evidence and qualify the store before relying on that field for fulfillment. Ask Ignyt to arrange a custom profile rather than building a private fork of the REST contract.

## Related guides

> [card] [Build a purchase](https://808-labs.mintlify.site/checkout-and-refunds.md)
>
> Freeze approved custom fields with the order context.

> [card] [Read the contract](https://808-labs.mintlify.site/versioning.md)
>
> Handle additive fields without depending on undocumented data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.