---
updatedAt: 2025-11-11T21:43:17.000Z
agentTools:
  projectIndex: https://domains.opensrs.guide/llms.txt
---

# pay subreseller

Transfers funds from the reseller account into a subreseller account.

## Request parameters for pay subreseller

## Standard parameters

* **action** = pay
* **object** = subreseller

## Attributes

Parameters within the **attributes** associative array are described below.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter name
      </th>

      <th>
        Obligation
      </th>

      <th>
        Definition/Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        amount
      </td>

      <td>
        Required
      </td>

      <td>
        The amount that you want to transfer to the subreseller account; this value must be a positive number.
      </td>
    </tr>

    <tr>
      <td>
        username
      </td>

      <td>
        Required
      </td>

      <td>
        The username of the subreseller that is receiving the funds.
      </td>
    </tr>
  </tbody>
</Table>

## Response parameters for pay subreseller

## Standard parameters

* **action** = reply
* **is\_success** = a Boolean is returned, indicating success or failure of the request
* **response\_code** = response code indicating outcome of the request
* **response\_text** = message describing the outcome of the request

## Attributes

If the request is successful, the **attributes** associative array may include the\
following:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter name
      </th>

      <th>
        Obligation
      </th>

      <th>
        Definition/Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        id
      </td>

      <td>
        Returned if **is\_success = true**
      </td>

      <td>
        The ID number of the transaction.
      </td>
    </tr>
  </tbody>
</Table>

## Examples for pay subreseller

```xml Request
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="action">PAY</item>
                <item key="object">SUBRESELLER</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="amount">1.00</item>
                        <item key="username">subtest</item>
                    </dt_assoc>
                </item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>
```
```xml Response
<?xml version='1.0' encoding="UTF-8" standalone="no"?>
<OPS_envelope>
    <header>
        <version>0.9</version>
    </header>
    <body>
        <data_block>
            <dt_assoc>
                <item key="protocol">XCP</item>
                <item key="object">SUBRESELLER</item>
                <item key="response_text">Funds Transferred</item>
                <item key="action">REPLY</item>
                <item key="attributes">
                    <dt_assoc>
                        <item key="id">3627217</item>
                    </dt_assoc>
                </item>
                <item key="response_code">200</item>
                <item key="is_success">1</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>
```