> For the complete documentation index, see [llms.txt](https://developer.flash-payments.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.flash-payments.com/moving-funds/deposits/deposits-to-a-payid.md).

# Deposits to a PayID

How a deposit addressed to a sub-client's PayID shows up in the API and in webhooks

Once you have registered a [PayID](https://developer.flash-payments.com/accounts/virtual-account-numbers/sub-client-payids.md) on a sub-client’s Virtual Account Number (VAN), your customer can pay into their VAN by that alias instead of the Australian BSB and account number.

Before paying, their bank shows them the account name registered for the PayID, which is the sub-client’s name as registered with Flash. The transaction arrives as an ordinary [deposit](https://developer.flash-payments.com/moving-funds/deposits.md) on the VAN, booked on your master account balance and linked to the sub-client, exactly like a deposit to the BSB and account number: the same [statuses](https://developer.flash-payments.com/moving-funds/deposits/deposit-statuses.md), the same [webhooks](https://developer.flash-payments.com/basics/webhooks/regular-webhooks.md) and the same [queries](https://developer.flash-payments.com/moving-funds/deposits/query-deposits.md).

#### Which PayID a deposit was addressed to

The deposit's `recipient` records it: `accountIdType` is `PAYID` and `payid` holds the address, next to the `bsb` and `accountNo` of the virtual account it was paid into. For a deposit paid to the BSB and account number, `accountIdType` is `BSB` and `payid` is `null`. To reconcile per PayID, match on `recipient.payid`.

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const bodyJSON = {
  variables: {
    input: "68e5c1a9d2f4b07a3c9e1d55",
  },
  query: `
query ($input: ID) {
  deposit(id: $input) {
    id amount currency status externalReference createdAt
    subClient {
      id fullName
    }
    recipient {
      accountIdType payid bsb accountNo accountName
    }
  }
}`,
};
```

{% endtab %}

{% tab title="GraphQL Query" %}

```graphql
query($input: ID) {
  deposit(id: $input) {
    id
    amount
    currency
    status
    externalReference
    createdAt
    subClient {
      id
      fullName
    }
    recipient {
      accountIdType
      payid
      bsb
      accountNo
      accountName
    }
    # more fields available, see API schema
  }
}
```

{% endtab %}

{% tab title="Variables" %}

```javascript
{
  "input": "68e5c1a9d2f4b07a3c9e1d55"
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "data": {
    "deposit": {
      "id": "68e5c1a9d2f4b07a3c9e1d55",
      "amount": 250,
      "currency": "AUD",
      "status": "CONFIRMED",
      "externalReference": "INV-10422",
      "createdAt": "2026-10-08T04:17:52.310Z",
      "subClient": {
        "id": "606d28675a2d931bc925fec2",
        "fullName": "ACME Corp"
      },
      "recipient": {
        "accountIdType": "PAYID",
        "payid": "acme-corp@example.com",
        "bsb": "802919",
        "accountNo": "1066419",
        "accountName": "ACME Corp"
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}

#### Webhooks

The [deposit webhooks](https://developer.flash-payments.com/basics/webhooks/regular-webhooks.md) carry the PayID too: the `recipient` object of every `deposit_*` payload has `payid` next to `accountName`, `bsb` and `accountNo`. The field is absent for deposits paid to the BSB and account number.

```javascript
// excerpt of a deposit_cleared payload
{
  "id": "68e5c1a9d2f4b07a3c9e1d55",
  "amount": 250,
  "currency": "AUD",
  "externalReference": "INV-10422",
  "recipient": {
    "accountName": "ACME Corp",
    "accountNo": "1066419",
    "bsb": "802919",
    "payid": "acme-corp@example.com"
  },
  // sender, subClient and the other fields as for any deposit
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.flash-payments.com/moving-funds/deposits/deposits-to-a-payid.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
