> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.useroot.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.useroot.com/_mcp/server.

# Approve a pending move

POST https://api.useroot.com/api/subaccounts/move/{move_id}/approve

Approves a single move in **CREATED** status and settles it immediately. The move must belong to your entity.

Moves are internal transfers between subaccounts — they settle synchronously without bank processing.

**Response body**

| Field | Type | Description |
|-------|------|-------------|
| `data` | Object | The move object (`status` reflects the state at response time) |
| `warning` | String | Present on **207** when settlement had a recoverable issue |

**Success responses**

| Status Code | Description |
|-------------|-------------|
| **201** | The move was approved and settled. |
| **207** | The move was approved but settlement failed; see `warning`. |

**Error responses**

| Status Code | Description |
|-------------|-------------|
| **400** | The move cannot be approved in its current state. |
| **404** | Move not found for this entity. |

Reference: https://docs.useroot.com/api-reference/subaccounts-api/approve-move-transfer

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: '[Code Generated] Root - Instant Account to Account Money Movement'
  version: 1.0.0
paths:
  /api/subaccounts/move/{move_id}/approve:
    post:
      operationId: approve-move-transfer
      summary: Approve a pending move
      description: >-
        Approves a single move in **CREATED** status and settles it immediately.
        The move must belong to your entity.


        Moves are internal transfers between subaccounts — they settle
        synchronously without bank processing.


        **Response body**


        | Field | Type | Description |

        |-------|------|-------------|

        | `data` | Object | The move object (`status` reflects the state at
        response time) |

        | `warning` | String | Present on **207** when settlement had a
        recoverable issue |


        **Success responses**


        | Status Code | Description |

        |-------------|-------------|

        | **201** | The move was approved and settled. |

        | **207** | The move was approved but settlement failed; see `warning`.
        |


        **Error responses**


        | Status Code | Description |

        |-------------|-------------|

        | **400** | The move cannot be approved in its current state. |

        | **404** | Move not found for this entity. |
      tags:
        - subaccountsApi
      parameters:
        - name: move_id
          in: path
          description: ID of the move to approve
          required: true
          schema:
            type: string
            format: uuid
        - name: x-api-key
          in: header
          description: >-
            RootPay API key sent in the x-api-key header. Keys are
            environment-scoped: live_* for production, test_* for sandbox.
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Move approved and settled
          content:
            application/json:
              schema:
                description: Any type
        '400':
          description: Move cannot be approved in its current state
          content:
            application/json:
              schema:
                description: Any type
        '404':
          description: Move not found for this entity
          content:
            application/json:
              schema:
                description: Any type
servers:
  - url: https://api.useroot.com
    description: Production
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        RootPay API key sent in the x-api-key header. Keys are
        environment-scoped: live_* for production, test_* for sandbox.

```

## Examples

### Example 1



**Request**

```json
{}
```

**Response**

```json
{
  "data": {
    "id": "a3f1c9d2-4b7e-4f8a-9d3e-2b5f7c6a1e9d",
    "source_subaccount_id": "d2f4e6a8-9b7c-4d3e-8f1a-5b6c7d8e9f0a",
    "destination_subaccount_id": "e7a9b8c6-1d2f-4e3a-9b7c-5d6e7f8a9b0c",
    "amount_in_minor_units": 250000,
    "currency_code": "USD",
    "status": "SETTLED",
    "created_at": "2024-06-10T15:45:30Z",
    "settled_at": "2024-06-10T15:45:35Z",
    "description": "Transfer for monthly budget allocation"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.useroot.com/api/subaccounts/move/move_id/approve"

payload = {}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.useroot.com/api/subaccounts/move/move_id/approve';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.useroot.com/api/subaccounts/move/move_id/approve"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.useroot.com/api/subaccounts/move/move_id/approve")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.useroot.com/api/subaccounts/move/move_id/approve")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.useroot.com/api/subaccounts/move/move_id/approve', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.useroot.com/api/subaccounts/move/move_id/approve");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.useroot.com/api/subaccounts/move/move_id/approve")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Example 2



**Request**

```json
{}
```

**Response**

```json
{
  "data": {
    "id": "a3f1c9d2-4b7e-4f8a-9d3e-2b5f7c6a1e9d",
    "source_subaccount_id": "d2f4e6a8-9b7c-4d3e-8f1a-5b6c7d8e9f0a",
    "destination_subaccount_id": "e7a9b8c6-1d2f-4e3a-9b7c-5d6e7f8a9b0c",
    "amount_in_minor_units": 250000,
    "currency_code": "USD",
    "status": "SETTLED",
    "created_at": "2024-06-10T15:45:30Z",
    "settled_at": "2024-06-10T15:45:35Z",
    "description": "Transfer for monthly budget allocation"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.useroot.com/api/subaccounts/move/move_id/approve"

payload = {}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.useroot.com/api/subaccounts/move/move_id/approve';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.useroot.com/api/subaccounts/move/move_id/approve"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.useroot.com/api/subaccounts/move/move_id/approve")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.useroot.com/api/subaccounts/move/move_id/approve")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.useroot.com/api/subaccounts/move/move_id/approve', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.useroot.com/api/subaccounts/move/move_id/approve");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.useroot.com/api/subaccounts/move/move_id/approve")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```