Withdrawals

To make a withdrawal, your backend asks Notabene what the Travel Rule requires and then creates a transfer. Notabene takes care of the rest, from finding the counterparty institution to sending its Travel Rule data. When the transfer is ready to settle, you send the funds and record the transaction hash.

The main path takes three calls: one to assess the transfer, one to create it and one to record the hash.

Automatic
Manual review

Select a step in the diagram to see what happens in it.

Done by Notabene

Step
Your customer requests a withdrawal
Your customer, in your app

Your customer starts a withdrawal in your app by entering the destination address, the asset and the amount.

← → the step before and after · Esc all steps
Step 1
1Assess the transfer
Your backend

Your backend asks Notabene whether the Travel Rule applies and which fields to collect, so your app asks your customer only for those, usually the beneficiary’s name. The request and its answer are in 1. Assess the transfer.

Good to know
  • If you use Withdrawal Assist, the Embedded component works this out for you, as described in Data collection.
← → the step before and after · Esc all steps
Step 2
2Create the transfer
Your backend

Your backend creates the transfer with a single call that names your customer, the destination and the beneficiary. The request, its answer and every field are in 2. Create the transfer.

← → the step before and after · Esc all steps
Step
Notabene checks the transfer
Notabene, as soon as the transfer exists

Notabene finds the counterparty institution, checks whether the Travel Rule applies and runs your policies. Nothing leaves your side until your policies have decided.

  • Your policies approve the transfer: Notabene sends the Travel Rule data.
  • Your policies flag it: nothing is sent until a person on your team approves or rejects it.
  • Your policies reject it: nothing is sent, and the transfer ends as Rejected.
← → the step before and after · Esc all steps
Automatic
Your policies approve it automatically
Your policy engine, with the rules you configured

When the rules you configured approve the transfer and nothing else is open on your side, your side is authorized automatically, and there is no call to make.

Good to know
  • Your requirements preset is a separate setting. It decides whether your side also waits for the counterparty. With straight-through processing it does not. With counterparty coordination it waits for the counterparty’s address confirmation and authorization, for up to 1 minute by default.
← → the step before and after · Esc all steps
Manual review
Your team reviews a flagged transfer
Your compliance team

When your policies flag the transfer, nothing is sent until a person on your team approves or rejects it, in the dashboard or through the API. The calls are in 3. Wait until it is ready to settle.

Good to know
  • Authorizing a transfer while a flag or a requirement is still open always counts as an override.
← → the step before and after · Esc all steps
Step
Notabene sends the Travel Rule data
Notabene, once your policies or your team approve the transfer

Notabene sends the transfer details to the counterparty institution. It sends your customer’s personal data once the counterparty confirms that the destination address belongs to its customer.

Good to know
  • Authorization and sending are independent, so your side can be authorized before the personal data has been sent.
← → the step before and after · Esc all steps
Step 3
3Notabene tells you it is ready to settle
Notabene, to your webhook endpoint

Each time an institution authorizes the transfer, your webhook endpoint receives transfer.agent_status_changed.v3. Once every institution is Authorized, it is ready to settle. The event and the polling call are in 3. Wait until it is ready to settle.

Good to know
  • When the destination is a self-hosted wallet, there is no counterparty to wait for, so the transfer is ready as soon as your side is authorized.
  • You set up your webhook endpoint in the dashboard, under Developers › Webhooks.
← → the step before and after · Esc all steps
Step 4
4Send the funds and record the hash
Your wallet, then your backend

Broadcast the transaction on chain, then record its hash on the transfer. The transfer is then Settled. The call is in 4. Send the funds and record the hash.

← → the step before and after · Esc all steps
  1. Your customer requests a withdrawal (Your customer, in your app). Your customer starts a withdrawal in your app by entering the destination address, the asset and the amount.
  2. Assess the transfer (POST /api/v1/transfers/assess, Your backend). Your backend asks Notabene whether the Travel Rule applies and which fields to collect, so your app asks your customer only for those, usually the beneficiary’s name. The request and its answer are in 1. Assess the transfer. If you use Withdrawal Assist, the Embedded component works this out for you, as described in Data collection.
  3. Create the transfer (POST /api/v1/transfers, Your backend). Your backend creates the transfer with a single call that names your customer, the destination and the beneficiary. The request, its answer and every field are in 2. Create the transfer.
  4. Notabene checks the transfer (Notabene, as soon as the transfer exists). Notabene finds the counterparty institution, checks whether the Travel Rule applies and runs your policies. Nothing leaves your side until your policies have decided. Finds the counterparty institution; Checks the Travel Rule; Applies your policies. Your policies approve the transfer: Notabene sends the Travel Rule data. Your policies flag it: nothing is sent until a person on your team approves or rejects it. Your policies reject it: nothing is sent, and the transfer ends as Rejected.
  5. Automatic: Your policies approve it automatically (Your policy engine, with the rules you configured). When the rules you configured approve the transfer and nothing else is open on your side, your side is authorized automatically, and there is no call to make. Your requirements preset is a separate setting. It decides whether your side also waits for the counterparty. With straight-through processing it does not. With counterparty coordination it waits for the counterparty’s address confirmation and authorization, for up to 1 minute by default.
  6. Manual review: Your team reviews a flagged transfer (Your compliance team). When your policies flag the transfer, nothing is sent until a person on your team approves or rejects it, in the dashboard or through the API. The calls are in 3. Wait until it is ready to settle. Authorizing a transfer while a flag or a requirement is still open always counts as an override.
  7. Notabene sends the Travel Rule data (Notabene, once your policies or your team approve the transfer). Notabene sends the transfer details to the counterparty institution. It sends your customer’s personal data once the counterparty confirms that the destination address belongs to its customer. Authorization and sending are independent, so your side can be authorized before the personal data has been sent.
  8. Notabene tells you it is ready to settle (transfer.agent_status_changed.v3, Notabene, to your webhook endpoint). Each time an institution authorizes the transfer, your webhook endpoint receives transfer.agent_status_changed.v3. Once every institution is Authorized, it is ready to settle. The event and the polling call are in 3. Wait until it is ready to settle. When the destination is a self-hosted wallet, there is no counterparty to wait for, so the transfer is ready as soon as your side is authorized. You set up your webhook endpoint in the dashboard, under Developers › Webhooks.
  9. Send the funds and record the hash (POST /api/v1/transfers/{id}/settle, Your wallet, then your backend). Broadcast the transaction on chain, then record its hash on the transfer. The transfer is then Settled. The call is in 4. Send the funds and record the hash.

Before you start

  • An access token for your backend, which every call below sends, as described in Authentication.
  • Your customer, who sends the funds, registered with Notabene, as described in Customers. The transfer refers to them by their id.
  • A webhook endpoint, as described in Webhooks, so that Notabene can tell you when the transfer is ready to settle.

A new account flags every transfer for review until you change its general default, which is set in Policies.

1. Assess the transfer

Before your customer confirms the withdrawal, ask Notabene what it requires. The answer says whether the Travel Rule applies, which fields to collect and which institution holds the destination address. Nothing is created and no one is contacted.

API reference
curl https://sandbox.notabene.id/api/v1/transfers/assess \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "asset": "ETH",
    "amount": "0.5",
    "destinationAddress": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
  }'const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/assess', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "asset": "ETH",
    "amount": "0.5",
    "destinationAddress": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
  }),
});
const answer = response.status === 204 ? null : await response.json();import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers/assess',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "asset": "ETH",
      "amount": "0.5",
      "destinationAddress": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
    },
)
answer = None if response.status_code == 204 else response.json()
What to replace
  • eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed: The destination address your customer entered
Response200
{
  "travelRule": "Applies",
  "required": [
    "originatorName",
    "originatorAccountNumber",
    "beneficiaryName",
    "beneficiaryAccountNumber",
    {
      "oneOf": [
        "originatorDateAndPlaceOfBirth",
        "originatorCustomerIdentification",
        "originatorGeographicAddress",
        "originatorNationalIdentification"
      ]
    }
  ],
  "beneficiaryVasp": {
    "did": "did:web:beneficiary.example:pt",
    "name": "Example Exchange",
    "jurisdiction": "PT"
  }
}
curl https://sandbox.notabene.id/api/v1/transfers/assess \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "asset": "ETH",
    "amount": "0.5",
    "destinationAddress": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
  }'
const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/assess', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "asset": "ETH",
    "amount": "0.5",
    "destinationAddress": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
  }),
});
const answer = response.status === 204 ? null : await response.json();
import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers/assess',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "asset": "ETH",
      "amount": "0.5",
      "destinationAddress": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
    },
)
answer = None if response.status_code == 204 else response.json()
{
  "travelRule": "Applies",
  "required": [
    "originatorName",
    "originatorAccountNumber",
    "beneficiaryName",
    "beneficiaryAccountNumber",
    {
      "oneOf": [
        "originatorDateAndPlaceOfBirth",
        "originatorCustomerIdentification",
        "originatorGeographicAddress",
        "originatorNationalIdentification"
      ]
    }
  ],
  "beneficiaryVasp": {
    "did": "did:web:beneficiary.example:pt",
    "name": "Example Exchange",
    "jurisdiction": "PT"
  }
}

When travelRule is Applies, ask your customer only for the beneficiary fields in required, which is usually just the name, and send them as beneficiary in the next step. When it is Exempt, there is nothing to collect. Data collection says where each field comes from, what to do with Undetermined and what to ask when no institution is named.

2. Create the transfer

API reference
curl https://sandbox.notabene.id/api/v1/transfers \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
    "asset": "ETH",
    "amount": "0.5",
    "settlement_address": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
    "originator_id": "urn:uuid:3c9a7e52-41f6-4b8d-a0e2-6d1f9b4c8a27",
    "beneficiary_id": "urn:uuid:e7d14b39-8a2c-4f05-b6e1-2c9f7a3d5b18",
    "beneficiary": {
      "ivms": {
        "naturalPerson": {
          "name": {
            "nameIdentifier": [
              {
                "primaryIdentifier": "Smith",
                "secondaryIdentifier": "Alice",
                "naturalPersonNameIdentifierType": "LEGL"
              }
            ]
          }
        }
      }
    }
  }'const response = await fetch('https://sandbox.notabene.id/api/v1/transfers', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
    "asset": "ETH",
    "amount": "0.5",
    "settlement_address": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
    "originator_id": "urn:uuid:3c9a7e52-41f6-4b8d-a0e2-6d1f9b4c8a27",
    "beneficiary_id": "urn:uuid:e7d14b39-8a2c-4f05-b6e1-2c9f7a3d5b18",
    "beneficiary": {
      "ivms": {
        "naturalPerson": {
          "name": {
            "nameIdentifier": [
              {
                "primaryIdentifier": "Smith",
                "secondaryIdentifier": "Alice",
                "naturalPersonNameIdentifierType": "LEGL"
              }
            ]
          }
        }
      }
    }
  }),
});
const answer = response.status === 204 ? null : await response.json();import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
      "asset": "ETH",
      "amount": "0.5",
      "settlement_address": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
      "originator_id": "urn:uuid:3c9a7e52-41f6-4b8d-a0e2-6d1f9b4c8a27",
      "beneficiary_id": "urn:uuid:e7d14b39-8a2c-4f05-b6e1-2c9f7a3d5b18",
      "beneficiary": {
        "ivms": {
          "naturalPerson": {
            "name": {
              "nameIdentifier": [
                {
                  "primaryIdentifier": "Smith",
                  "secondaryIdentifier": "Alice",
                  "naturalPersonNameIdentifierType": "LEGL"
                }
              ]
            }
          }
        }
      }
    },
)
answer = None if response.status_code == 204 else response.json()
What to replace
  • 0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40: A new UUID of yours for each transfer
  • eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed: The destination address your customer entered
  • urn:uuid:3c9a7e52-41f6-4b8d-a0e2-6d1f9b4c8a27: The id of your customer who sends the funds
  • urn:uuid:e7d14b39-8a2c-4f05-b6e1-2c9f7a3d5b18: An id of your choosing for the beneficiary
  • Smith: The beneficiary’s last name
  • Alice: The beneficiary’s first names
Response201
{
  "transferId": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "status": "Active"
}
curl https://sandbox.notabene.id/api/v1/transfers \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
    "asset": "ETH",
    "amount": "0.5",
    "settlement_address": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
    "originator_id": "urn:uuid:3c9a7e52-41f6-4b8d-a0e2-6d1f9b4c8a27",
    "beneficiary_id": "urn:uuid:e7d14b39-8a2c-4f05-b6e1-2c9f7a3d5b18",
    "beneficiary": {
      "ivms": {
        "naturalPerson": {
          "name": {
            "nameIdentifier": [
              {
                "primaryIdentifier": "Smith",
                "secondaryIdentifier": "Alice",
                "naturalPersonNameIdentifierType": "LEGL"
              }
            ]
          }
        }
      }
    }
  }'
const response = await fetch('https://sandbox.notabene.id/api/v1/transfers', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
    "asset": "ETH",
    "amount": "0.5",
    "settlement_address": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
    "originator_id": "urn:uuid:3c9a7e52-41f6-4b8d-a0e2-6d1f9b4c8a27",
    "beneficiary_id": "urn:uuid:e7d14b39-8a2c-4f05-b6e1-2c9f7a3d5b18",
    "beneficiary": {
      "ivms": {
        "naturalPerson": {
          "name": {
            "nameIdentifier": [
              {
                "primaryIdentifier": "Smith",
                "secondaryIdentifier": "Alice",
                "naturalPersonNameIdentifierType": "LEGL"
              }
            ]
          }
        }
      }
    }
  }),
});
const answer = response.status === 204 ? null : await response.json();
import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
      "asset": "ETH",
      "amount": "0.5",
      "settlement_address": "eip155:1:0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
      "originator_id": "urn:uuid:3c9a7e52-41f6-4b8d-a0e2-6d1f9b4c8a27",
      "beneficiary_id": "urn:uuid:e7d14b39-8a2c-4f05-b6e1-2c9f7a3d5b18",
      "beneficiary": {
        "ivms": {
          "naturalPerson": {
            "name": {
              "nameIdentifier": [
                {
                  "primaryIdentifier": "Smith",
                  "secondaryIdentifier": "Alice",
                  "naturalPersonNameIdentifierType": "LEGL"
                }
              ]
            }
          }
        }
      }
    },
)
answer = None if response.status_code == 204 else response.json()
{
  "transferId": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "status": "Active"
}

Keep the transferId from the response: every later call takes it in its path, and events and other responses call it id.

FieldWhat to send
ref Required string, UUIDYour own reference for the transfer. Store it before you send the request and reuse it when you retry, because Notabene never creates two transfers with the same ref.
asset Required stringA symbol such as ETH, or a CAIP-19 identifier. Assets lists them.
amount Required string, decimalThe amount in the asset’s whole units, for example "0.5" ETH, never its smallest unit.
settlement_address Required stringThe destination address, as a CAIP-10 identifier or a bare address on the asset’s chain. Notabene finds the counterparty institution from it.
originator_id Required stringThe id of your customer who sends the funds.
beneficiary_id Required stringAn id of your choosing for the beneficiary, for example a urn:uuid, or the id of a customer you registered.
beneficiary.ivms object, IVMS-101The beneficiary fields listed in the assessment’s required, which is usually just the name.
beneficiary_entity_did Optional string, DIDThe counterparty institution’s DID, when your customer picked it themselves.
FieldWhat to send
ref (required), string, UUIDYour own reference for the transfer. Store it before you send the request and reuse it when you retry, because Notabene never creates two transfers with the same ref.
asset (required), stringA symbol such as ETH, or a CAIP-19 identifier. Assets lists them.
amount (required), string, decimalThe amount in the asset’s whole units, for example "0.5" ETH, never its smallest unit.
settlement_address (required), stringThe destination address, as a CAIP-10 identifier or a bare address on the asset’s chain. Notabene finds the counterparty institution from it.
originator_id (required), stringThe id of your customer who sends the funds.
beneficiary_id (required), stringAn id of your choosing for the beneficiary, for example a urn:uuid, or the id of a customer you registered.
beneficiary.ivms, object, IVMS-101The beneficiary fields listed in the assessment’s required, which is usually just the name.
beneficiary_entity_did (optional), string, DIDThe counterparty institution’s DID, when your customer picked it themselves.

Every withdrawal sends ref, asset, amount, settlement_address, originator_id and beneficiary_id. The API reference marks only the first three as required, because deposits use a different set.

When the destination is your customer’s own wallet, set beneficiary_id to the wallet’s did:pkh and include the proof in beneficiary_proof_of_ownership.

3. Wait until it is ready to settle

Notabene now finds the counterparty institution, checks whether the Travel Rule applies, runs your policies within seconds and exchanges the Travel Rule data. Each time an institution authorizes the transfer, your webhook endpoint receives transfer.agent_status_changed.v3 with that institution in agentId. Once every institution is Authorized, the transfer is ready to settle. Events can repeat or arrive out of order, so handle them as described in Webhooks.

JSON
{
  "eventType": "transfer.agent_status_changed.v3",
  "payload": {
    "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
    "for": "did:web:originator.example:pt",
    "agentId": "did:web:beneficiary.example:pt",
    "fromStatus": "Pending",
    "toStatus": "Authorized"
  }
}
{
  "eventType": "transfer.agent_status_changed.v3",
  "payload": {
    "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
    "for": "did:web:originator.example:pt",
    "agentId": "did:web:beneficiary.example:pt",
    "fromStatus": "Pending",
    "toStatus": "Authorized"
  }
}

If you would rather poll, read the transfer until next_action.type is ExecuteSettlement. Its settlement holds the asset as a CAIP-19 identifier, the amount and the address to send to, and Statuses and decisions in the API lists the other values.

API reference
curl https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80 \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
  },
});
const answer = response.status === 204 ? null : await response.json();import requests

response = requests.get(
    'https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
)
answer = None if response.status_code == 204 else response.json()
What to replace
  • 8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80: The transferId from step 2
Response200
{
  "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
  "status": "ReadyToSettle",
  "direction": "Outgoing",
  "asset": "eip155:1/slip44:60",
  "amount": "0.5",
  "counterparty": "did:web:beneficiary.example:pt",
  "travel_rule_applies": true,
  "requires_action": false,
  "next_action": {
    "type": "ExecuteSettlement",
    "settlement": {
      "asset": "eip155:1/slip44:60",
      "amount": "0.5",
      "address": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
    }
  }
}
curl https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80 \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'
const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
  },
});
const answer = response.status === 204 ? null : await response.json();
import requests

response = requests.get(
    'https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
)
answer = None if response.status_code == 204 else response.json()
{
  "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
  "status": "ReadyToSettle",
  "direction": "Outgoing",
  "asset": "eip155:1/slip44:60",
  "amount": "0.5",
  "counterparty": "did:web:beneficiary.example:pt",
  "travel_rule_applies": true,
  "requires_action": false,
  "next_action": {
    "type": "ExecuteSettlement",
    "settlement": {
      "asset": "eip155:1/slip44:60",
      "amount": "0.5",
      "address": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed"
    }
  }
}

If the counterparty rejects the transfer, its status changes to Rejected and you do not send the funds.

If your policies flag the transfer

A flag holds the transfer for a person on your team, and nothing is sent to the counterparty until they decide. Your webhook endpoint receives transfer.status_changed.v3 with is_flagged: true, and the status stays Active while the transfer waits, with requires_action: true and Review as its next_action.

JSON
{
  "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
  "status": "Active",
  "direction": "Outgoing",
  "requires_action": true,
  "next_action": {
    "type": "Review"
  }
}
{
  "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "ref": "0b6a4f8e-2d1c-4e7a-9b3f-5c8d2e1a7f40",
  "status": "Active",
  "direction": "Outgoing",
  "requires_action": true,
  "next_action": {
    "type": "Review"
  }
}

Your team finds the transfer in the dashboard Inbox and approves or rejects it there, or your backend does the same with the calls below. Approving uses force-authorize because it overrides your policies’ verdict, so every open requirement your institution set then reads Skipped. It needs a reason, which stays on the transfer’s timeline.

curl https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/force-authorize \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "reason": "Reviewed by compliance"
  }'const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/force-authorize', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "reason": "Reviewed by compliance"
  }),
});
const answer = response.status === 204 ? null : await response.json();import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/force-authorize',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "reason": "Reviewed by compliance"
    },
)
answer = None if response.status_code == 204 else response.json()
curl https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/reject \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "reason": "Destination not allowed"
  }'const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/reject', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "reason": "Destination not allowed"
  }),
});
const answer = response.status === 204 ? null : await response.json();import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/reject',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "reason": "Destination not allowed"
    },
)
answer = None if response.status_code == 204 else response.json()
What to replace
  • 8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80: The transferId from step 2
  • Reviewed by compliance: Why your team approves it, kept on the transfer’s timeline
  • Destination not allowed: Why your team rejects it, kept on the transfer’s timeline
Reject response200
{
  "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "status": "Rejected",
  "direction": "Outgoing",
  "counterparty": "did:web:beneficiary.example:pt"
}
curl https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/force-authorize \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "reason": "Reviewed by compliance"
  }'
const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/force-authorize', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "reason": "Reviewed by compliance"
  }),
});
const answer = response.status === 204 ? null : await response.json();
import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/force-authorize',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "reason": "Reviewed by compliance"
    },
)
answer = None if response.status_code == 204 else response.json()
curl https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/reject \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "reason": "Destination not allowed"
  }'
const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/reject', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "reason": "Destination not allowed"
  }),
});
const answer = response.status === 204 ? null : await response.json();
import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/reject',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "reason": "Destination not allowed"
    },
)
answer = None if response.status_code == 204 else response.json()
{
  "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "status": "Rejected",
  "direction": "Outgoing",
  "counterparty": "did:web:beneficiary.example:pt"
}

Approving answers 204 with no body, and rejecting answers 200 with the transfer, now Rejected. A reason is optional when you reject.

If the counterparty does not answer

With counterparty coordination, your side waits up to 1 minute by default for the counterparty and then skips the requirements that wait on it, as described in Policies. Unless your policies flagged the transfer, your side is then authorized, and your webhook endpoint receives transfer.agent_status_changed.v3 with your own DID in agentId.

JSON
{
  "eventType": "transfer.agent_status_changed.v3",
  "payload": {
    "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
    "for": "did:web:originator.example:pt",
    "agentId": "did:web:originator.example:pt",
    "fromStatus": "Pending",
    "toStatus": "Authorized"
  }
}
{
  "eventType": "transfer.agent_status_changed.v3",
  "payload": {
    "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
    "for": "did:web:originator.example:pt",
    "agentId": "did:web:originator.example:pt",
    "fromStatus": "Pending",
    "toStatus": "Authorized"
  }
}

The transfer itself stays Active until the counterparty authorizes it too, so it does not become ReadyToSettle and next_action stays empty. Its agents show which institution has not authorized, as in Transfers.

Whether you send the funds at that point is your decision. If you do, record the hash as in step 4, and the transfer reads SettledIncompleteAuthorization until the counterparty authorizes it.

4. Send the funds and record the hash

Broadcast the transaction on chain, then record its hash on the transfer, which comes back Settled.

API reference
curl https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/settle \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "settlement_id": "eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d"
  }'const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/settle', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "settlement_id": "eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d"
  }),
});
const answer = response.status === 204 ? null : await response.json();import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/settle',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "settlement_id": "eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d"
    },
)
answer = None if response.status_code == 204 else response.json()
What to replace
  • 8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80: The transferId from step 2
  • eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d: The transaction hash, as CAIP-220 or a bare hash on the asset’s chain
Response200
{
  "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "status": "Settled",
  "settlement_id": "eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
  "direction": "Outgoing"
}
curl https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/settle \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "settlement_id": "eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d"
  }'
const response = await fetch('https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/settle', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "settlement_id": "eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d"
  }),
});
const answer = response.status === 204 ? null : await response.json();
import requests

response = requests.post(
    'https://sandbox.notabene.id/api/v1/transfers/8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80/settle',
    headers={'Authorization': 'Bearer YOUR_ACCESS_TOKEN'},
    json={
      "settlement_id": "eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d"
    },
)
answer = None if response.status_code == 204 else response.json()
{
  "id": "8f3c2a1e-5b7d-4c90-a1f2-3e4d5c6b7a80",
  "status": "Settled",
  "settlement_id": "eip155:1:tx/0x7d3c9e1f0a2b4c6d8e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d",
  "direction": "Outgoing"
}

Recording the same hash again answers 200, while a different hash answers 409. If you record the hash before every institution has authorized the transfer, it reads SettledIncompleteAuthorization until they all have.

When a call fails

Most errors carry a status, a short title and a detail that says what to correct. A request that fails validation lists each problem under errors instead, and both carry a traceId, which identifies the request.

JSONJSON
{
  "errors": [
    {
      "field": "ref",
      "error": "INVALID_VALUE",
      "message": "ref must be a UUID"
    }
  ],
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
{
  "title": "Conflict",
  "status": 409,
  "detail": "a transfer with this ref already exists with different content",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
{
  "errors": [
    {
      "field": "ref",
      "error": "INVALID_VALUE",
      "message": "ref must be a UUID"
    }
  ],
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
{
  "title": "Conflict",
  "status": 409,
  "detail": "a transfer with this ref already exists with different content",
  "traceId": "4bf92f3577b34da6a3ce929d0e0e4736"
}
AnswerWhat it means
400 with errorsA field is missing or invalid, for example originator or originator_id is required. field names it when it can.
400 with unknown asset symbolNotabene does not know the asset. Assets lists the ones it does.
401The token is missing, malformed or expired. Authentication explains how to get a new one.
409 with a transfer with this ref already exists with different contentA transfer with this ref exists. Sending a create again says what it means.
409 with transfer already settled with a different settlement idThe transfer already has a different hash.
AnswerWhat it means
400 with errorsA field is missing or invalid, for example originator or originator_id is required. field names it when it can.
400 with unknown asset symbolNotabene does not know the asset. Assets lists the ones it does.
401The token is missing, malformed or expired. Authentication explains how to get a new one.
409 with a transfer with this ref already exists with different contentA transfer with this ref exists. Sending a create again says what it means.
409 with transfer already settled with a different settlement idThe transfer already has a different hash.

Common mistakes

MistakeWhat happensInstead
The amount in the asset’s smallest unit, such as weiThe amount is read in whole units, so 500000000000000000 means that many ETH.Send "0.5" for 0.5 ETH, as Assets explains.
An inline beneficiary without beneficiary_id400 with party profile provided without party ID.Send beneficiary_id with every inline beneficiary.
A new ref when you send a create againA second transfer for the same funds.Send the same request, with the same ref.
Approving a transfer straight after creating itThe approval answers 204, but your policies evaluate the transfer after it, and a flagged transfer is not sent.Approve once your policies have flagged it, when the transfer reads requires_action: true.
MistakeWhat happensInstead
The amount in the asset’s smallest unit, such as weiThe amount is read in whole units, so 500000000000000000 means that many ETH.Send "0.5" for 0.5 ETH, as Assets explains.
An inline beneficiary without beneficiary_id400 with party profile provided without party ID.Send beneficiary_id with every inline beneficiary.
A new ref when you send a create againA second transfer for the same funds.Send the same request, with the same ref.
Approving a transfer straight after creating itThe approval answers 204, but your policies evaluate the transfer after it, and a flagged transfer is not sent.Approve once your policies have flagged it, when the transfer reads requires_action: true.

Optional calls

CallUse it when
GET/api/v1/network/entitiesYour customer has to pick the counterparty institution themselves.
POST/api/v1/transfers/{id}/cancelYour customer cancels the withdrawal before it is settled.
CallUse it when
GET /api/v1/network/entitiesYour customer has to pick the counterparty institution themselves.
POST /api/v1/transfers/{id}/cancelYour customer cancels the withdrawal before it is settled.

Transfers, statuses and events

  • Transfers: what each institution sees on a transfer, and why statuses differ.
  • Statuses: every status and what your backend does at each.
  • Webhooks: every event and every requirement you may have to answer.
  • Errors: every error message and what to do.

Did this page help you?