---
schema_version: "1"
id: 13b2ef9173e48020125ceaa0885987fe29a282b919266d16e13f050daba48488
title: Flatten Account Internal Organization Unit Hierarchy (POST)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/penny-perfect-pricing/references/resources/flatten-account-iou-hierarchy.md
canonical_url: https://developer.salesforce.com/docs/industries/penny-perfect-pricing/references/penny-perfect-pricing-rest/flatten-account-iou-hierarchy.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b18b30ab31be187523fb796fe376d7a5425b193215445e24db239603a7552712
products:
  - Penny Perfect Pricing Developer Guide
  - Industries Developer Documentation
---
# Flatten Account Internal Organization Unit Hierarchy (POST)

Flattens the account hierarchies of the specified accounts under the specified internal organization unit.

## Resource

```
/connect/industries/retail/flatten-account-iou-hierarchy
```

## Resource example

```
https://yourInstance.salesforce.com/services/data/v68.0/connect/industries/retail/flatten-account-iou-hierarchy
```

## Available version

68.0

## Requires Chatter

No

## HTTP methods

POST

## Request body for POST

See [Flatten Account Internal Organization Unit Hierarchy Input](https://developer.salesforce.com/docs/industries/penny-perfect-pricing/references/requests/flatten-account-iou-hierarchy-input.md).

```json
{
  "internalOrganizationUnitId": "0gJxx00000000srEAA",
  "accountIds": ["001xx000003GadmAAC"]
}
```

| Name                         | Type     | Description                                                                                                                                   | Required or Optional | Available Version |
| ---------------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ----------------- |
| `internalOrganizationUnitId` | String   | Specifies the ID of the internal organization unit under which the specified accounts are flattened.                                          | Optional             | 68.0              |
| `accountIds`                 | String[] | Specifies the IDs of account records to flatten under the specified internal organization unit. Maximum number of Account Ids per call: 2000. | Optional             | 68.0              |

## Response body for POST

See [Flatten Account Internal Organization Unit Hierarchy Output](https://developer.salesforce.com/docs/industries/penny-perfect-pricing/references/responses/flatten-account-iou-hierarchy-output.md).
