# `mix open_payments.spec.sync`
[🔗](https://github.com/interledger/open-payments-elixir/blob/v1.0.0/lib/mix/tasks/open_payments.spec.sync.ex#L1)

Updates the bundled documents from the shared Open Payments Specifications repo.

    mix open_payments.spec.sync --ref FULL_COMMIT_SHA

Use an existing local checkout to work without network access:

    mix open_payments.spec.sync --ref FULL_COMMIT_SHA --source /path/to/specifications

Add `--check` to verify the bundled documents without writing changes. The ref
must be a full 40-character commit SHA. Updates preserve the original JSON bytes
and record the version, revision, and SHA-256 checksums in `SOURCE.json`.

Review specification changes and update affected types, validators, and tests
before committing the updated documents. This task does not generate a client
or establish compatibility with new operations automatically.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
