# Ownership Graph (/docs/developer-resources/api-basics/ownership-graph)

Every financial resource Monime creates carries an **ownership graph**: an immutable chain of relationships that traces back to the object that originated it. Use it to explain where a resource came from without stitching records together yourself.

*Ownership graph visualization.*

## What it answers

- **What triggered this?**

  Find the object that caused a transaction or payment to exist.

- **Who initiated it?**

  Follow the chain back to the original action and its caller.

- **What was the context?**

  Read the business context carried in each node's metadata.

- **How did we get here?**

  See every step between the origin and the resource in hand.

## Structure

The graph is a nested chain of `owner` nodes. Each node identifies an object by `id` and `type`, carries its `metadata`, and names its own `owner` — until the chain reaches the object that started it.

```json title="Ownership graph of a payment"
{
  "ownershipGraph": {
    "owner": {
      "id": "pmt-k6Em1Aap25VZ8oWg7ajhxHX3JqF",
      "type": "payment",
      "metadata": {
        "channel": "momo",
        "provider": "m17"
      },
      "owner": {
        "id": "sps-k6Em1aAap254VXg6fhxk9HX3JqF",
        "type": "checkout_session",
        "metadata": {
          "orderId": "ord-3n4o5p6q7r8s"
        },
        "owner": {
          "id": "arq-k6Em12r5VZ8oW9r9Xh7xsH3J4qF",
          "type": "api_request",
          "metadata": {
            "endpoint": "/v1/checkout-sessions",
            "subjectId": "acc-k6Em15VsZ8go5W9lX2h7dxsJ4qF",
            "ipAddress": "192.168.1.100"
          }
        }
      }
    }
  }
}
```

Read it from the outside in: this payment was made through a checkout session, and that checkout session was created by an API request to `/v1/checkout-sessions`.

## Example lineage

The same chain applies to every sequence of resources. For a payment code:

```text title="Lineage of a payment code"
Payment Code
└── Payment (when someone pays)
    └── Financial Transaction (when the payment is processed)
        └── Fee Transaction (when your service fee is taken)
```

> **Note:** The ownership graph is immutable: once a resource is created, the chain that explains its origin does not change.

## Related

- [**Core concepts**](/docs/get-started/core-concepts)

  Spaces, Monimeers, Financial Accounts and the Ownership Graph.

- [**Object metadata**](/docs/developer-resources/api-basics/object-metadata)

  Attach your own context to Monime objects.
