---
title: "Register a tx for a request (V2 body includes token-swap route)."
method: PATCH
path: "/v2/register-tx"
tags: ["v2"]
---

# Register a tx for a request (V2 body includes token-swap route).

`PATCH /v2/register-tx`

## Request body

- union — V2 register-tx body (onramp, offramp, and token swap).
  - object
    - `onramp` object, required
      - `bitcoin_tx_hex` string, nullable — Hex-encoded full Bitcoin transaction
      - `bitcoin_txid` string, nullable — Bitcoin transaction ID (txid)
      - `order_id` string, required — Unique order id
  - object
    - `offramp` object, required
      - `evm_txhash` string, required — EVM txhash
      - `order_id` string, required — Unique order id
  - object
    - `tokenSwap` object, required
      - `evm_txhash` string, required — EVM txhash
      - `order_id` string, required — Unique order id

## Response `200`

Register successful

- union
  - object
    - `onramp` object, required
      - `txid` string, required
  - 'ok'

## Other responses

- `400` — Register error

---

[API](https://skmtc.net/bob-collective/apis/bob-gateway-api.md) · [All operations](https://skmtc.net/bob-collective/apis/bob-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bob-collective/bob-gateway-api/versions/5a00610487e4/schema)
