Smart Transfer

Update ticket leg (term)

Update ticket term (when ticket status is DRAFT)

put/smart-transfers/{ticketId}/terms/{termId}

Request

Path parameters

ticketIdstring required
termIdstring required

Headers

Idempotency-Keystring

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Request body

assetstring required

Asset name

amountstring required

Amount

fromNetworkIdstring required

Identifier of the origination Network Profile

toNetworkIdstring required

Identifier of the destination Network Profile

Example request

{
  "asset": "BTC",
  "amount": "133.789161216184",
  "fromNetworkId": "947c6115-1f5f-4fb4-9fd6-a1f9dee14670",
  "toNetworkId": "5d009697-c29b-48e0-aff8-1f4305d19dc2"
}

Response

Smart Transfer ticket term updated successfully

messagestring nullable required

Result message

Example response

{
  "message": "Success",
  "data": {
    "id": "84601ee2-b10f-4aa8-be9c-dba259a3533a",
    "ticketId": "900f04c3-83bc-428d-b681-aef682059637",
    "asset": "BTC",
    "amount": "133.789161216184",
    "amountUsd": "1333.789161216184",
    "fromNetworkId": "947c6115-1f5f-4fb4-9fd6-a1f9dee14670",
    "fromNetworkIdName": "Source network profile name",
    "toNetworkId": "5d009697-c29b-48e0-aff8-1f4305d19dc2",
    "toNetworkIdName": "Destination network profile name",
    "txHash": "0x2446f1fd773fbb9f080e674b60c6a033c7ed7427b8b9413cf28a2a4a6da9b56c",
    "fbTxId": "79075e8c-1fd9-4c97-9575-3bd9229e5c0d",
    "txStatus": "COMPLETED",
    "status": "CREATED",
    "createdAt": "2023-03-01T11:23:00Z",
    "updatedAt": "2023-03-01T11:23:00Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.