> ## Documentation Index
> Fetch the complete documentation index at: https://flutterwaveinc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a subaccount

> Update a collection subaccount details



## OpenAPI

````yaml put /subaccounts/{id}
openapi: 3.0.0
info:
  title: Flutterwave v3
  description: >-
    The Flutterwave for Business(F4B) APIs collection for all v3 endpoints with
    pre-formatted requests and response examples.
  contact: {}
  version: '1.0'
servers:
  - url: https://api.flutterwave.com/v3
    variables: {}
security:
  - bearer: []
tags:
  - name: Charges
    description: >-
      The charge APIs includes several payment collection methods to help you
      collect payments.
  - name: Tokenized Charges
    description: Tokenize your customers' cards with Flutterwave for faster payments
  - name: Preauthorization
    description: Manage preauth attemps on card transactions
  - name: Transactions
    description: Manage transactions, query statuses, logs and fees
  - name: Transfers
    description: Transfers to local and international customers
  - name: Beneficiaries
    description: Manage transfer beneficiaries
  - name: Virtual Cards
    description: Manage Flutterwave virtual cards
  - name: Virtual Account Numbers
    description: Manage virtual accounts
  - name: Collection Subaccounts
    description: Manage Collection Subaccounts
  - name: Payout Subaccounts
    description: Manage Payout Subaccounts
  - name: Subscriptions
    description: Manage user subscriptions
  - name: Payment Plans
    description: Manage Payment Plans
  - name: Bill Payments
    description: Manage Bill Payments
  - name: Banks
    description: Fetch Bank Information
  - name: Misc
    description: >-
      Verify user information like bank verification numbers, card bins, account
      information
  - name: Settlements
    description: Manage your settlements
  - name: Otps
    description: Create and manage one time passwords (OTPs) for your applications
  - name: Chargebacks
    description: Manage Chargebacks
paths:
  /subaccounts/{id}:
    put:
      tags:
        - Collection Subaccounts
      summary: Update a subaccount
      description: Update a collection subaccount details
      operationId: Updateasubaccount
      parameters:
        - name: id
          in: path
          description: ''
          required: true
          style: simple
          schema:
            type: string
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              allOf:
                - $ref: '#/components/schemas/UpdateasubaccountRequest'
                - example:
                    business_name: Example Business
                    business_email: business@gmail.com
                    account_bank: '044'
                    account_number: '0690000034'
                    split_type: flat
                    split_value: '200'
            example:
              business_name: Example Business
              business_email: business@gmail.com
              account_bank: '044'
              account_number: '0690000034'
              split_type: flat
              split_value: '200'
        required: true
      responses:
        '200':
          description: OK
          headers:
            X-Powered-By:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Express
            Access-Control-Allow-Origin:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '*'
            Access-Control-Allow-Headers:
              content:
                text/plain:
                  schema:
                    type: string
                  example: >-
                    Origin, X-Requested-With, Content-Type, Accept,
                    Authorization, v3-xapp-id, flw-auth-token, mra-auth-token,
                    alt_mode_auth
            Access-Control-Allow-Methods:
              content:
                text/plain:
                  schema:
                    type: string
                  example: PUT, POST, GET, DELETE, OPTIONS
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '456'
            ETag:
              content:
                text/plain:
                  schema:
                    type: string
                  example: W/"1c8-IrV/6VCvyZaPKjtDxzh5KA"
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Mon, 20 Jan 2020 06:55:14 GMT
            Connection:
              content:
                text/plain:
                  schema:
                    type: string
                  example: keep-alive
          content:
            application/json; charset=utf-8:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SampleSuccessResponse21'
                  - example:
                      status: success
                      message: Subaccount edited
                      data:
                        id: 2165
                        account_number: '0690000040'
                        account_bank: '044'
                        business_name: Mad O!
                        full_name: Alexis Rogers
                        created_at: '2020-01-17T16:28:26.000Z'
                        meta:
                          - meta_name: MarketplaceID
                            meta_value: ggs-920900
                        account_id: 88497
                        split_ratio: 1
                        split_type: flat
                        split_value: '200'
                        subaccount_id: RS_884E7E4BD793ADA77F491CF4AD3DE19E
                        bank_name: ACCESS BANK NIGERIA
                        country: NG
              example:
                status: success
                message: Subaccount edited
                data:
                  id: 2165
                  account_number: '0690000040'
                  account_bank: '044'
                  business_name: Mad O!
                  full_name: Alexis Rogers
                  created_at: '2020-01-17T16:28:26.000Z'
                  meta:
                    - meta_name: MarketplaceID
                      meta_value: ggs-920900
                  account_id: 88497
                  split_ratio: 1
                  split_type: flat
                  split_value: '200'
                  subaccount_id: RS_884E7E4BD793ADA77F491CF4AD3DE19E
                  bank_name: ACCESS BANK NIGERIA
                  country: NG
        '400':
          description: Bad Request
          headers:
            X-Powered-By:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Express
            Access-Control-Allow-Origin:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '*'
            Access-Control-Allow-Headers:
              content:
                text/plain:
                  schema:
                    type: string
                  example: >-
                    Origin, X-Requested-With, Content-Type, Accept,
                    Authorization, v3-xapp-id, flw-auth-token, mra-auth-token,
                    alt_mode_auth
            Access-Control-Allow-Methods:
              content:
                text/plain:
                  schema:
                    type: string
                  example: PUT, POST, GET, DELETE, OPTIONS
            Content-Length:
              content:
                text/plain:
                  schema:
                    type: string
                  example: '61'
            ETag:
              content:
                text/plain:
                  schema:
                    type: string
                  example: W/"3d-RH9GJR7trVyHmdpF2k/JTA"
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                  example: Thu, 30 Jan 2020 09:05:16 GMT
            Connection:
              content:
                text/plain:
                  schema:
                    type: string
                  example: keep-alive
          content:
            application/json; charset=utf-8:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SampleErrorResponse1'
                  - example:
                      status: error
                      message: Merchant not found
                      data: null
              example:
                status: error
                message: Merchant not found
                data: null
      deprecated: false
components:
  schemas:
    UpdateasubaccountRequest:
      title: UpdateasubaccountRequest
      required:
        - business_name
        - business_email
        - account_bank
        - account_number
        - split_type
        - split_value
      type: object
      properties:
        business_name:
          type: string
        business_email:
          type: string
        account_bank:
          type: string
        account_number:
          type: string
        split_type:
          type: string
        split_value:
          type: string
      example:
        business_name: Example Business
        business_email: business@gmail.com
        account_bank: '044'
        account_number: '0690000034'
        split_type: flat
        split_value: '200'
    SampleSuccessResponse21:
      title: SampleSuccessResponse21
      required:
        - status
        - message
        - data
      type: object
      properties:
        status:
          type: string
        message:
          type: string
        data:
          $ref: '#/components/schemas/Data54'
      example:
        status: success
        message: Subaccount edited
        data:
          id: 2165
          account_number: '0690000040'
          account_bank: '044'
          business_name: Mad O!
          full_name: Alexis Rogers
          created_at: '2020-01-17T16:28:26.000Z'
          meta:
            - meta_name: MarketplaceID
              meta_value: ggs-920900
          account_id: 88497
          split_ratio: 1
          split_type: flat
          split_value: '200'
          subaccount_id: RS_884E7E4BD793ADA77F491CF4AD3DE19E
          bank_name: ACCESS BANK NIGERIA
          country: NG
    SampleErrorResponse1:
      title: SampleErrorResponse1
      required:
        - status
        - message
        - data
      type: object
      properties:
        status:
          type: string
        message:
          type: string
        data:
          type: string
          nullable: true
      example:
        status: error
        message: >-
          retry_interval is required , retry_amount_variable is required ,
          retry_attempt_variable is required
        data: null
    Data54:
      title: Data54
      required:
        - id
        - account_number
        - account_bank
        - business_name
        - full_name
        - created_at
        - meta
        - account_id
        - split_ratio
        - split_type
        - split_value
        - subaccount_id
        - bank_name
        - country
      type: object
      properties:
        id:
          type: integer
          format: int32
        account_number:
          type: string
        account_bank:
          type: string
        business_name:
          type: string
        full_name:
          type: string
        created_at:
          type: string
        meta:
          type: array
          items:
            $ref: '#/components/schemas/Meta28'
          description: ''
        account_id:
          type: integer
          format: int32
        split_ratio:
          type: integer
          format: int32
        split_type:
          type: string
        split_value:
          type: string
        subaccount_id:
          type: string
        bank_name:
          type: string
        country:
          type: string
      example:
        id: 2165
        account_number: '0690000040'
        account_bank: '044'
        business_name: Mad O!
        full_name: Alexis Rogers
        created_at: '2020-01-17T16:28:26.000Z'
        meta:
          - meta_name: MarketplaceID
            meta_value: ggs-920900
        account_id: 88497
        split_ratio: 1
        split_type: flat
        split_value: '200'
        subaccount_id: RS_884E7E4BD793ADA77F491CF4AD3DE19E
        bank_name: ACCESS BANK NIGERIA
        country: NG
    Meta28:
      title: Meta28
      required:
        - meta_name
        - meta_value
      type: object
      properties:
        meta_name:
          type: string
        meta_value:
          type: string
      example:
        meta_name: mem_adr
        meta_value: '0x16241F327213'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````