Gestiono
Referencia de APIAccounting / Chart Of Accounts

Update Chart Of Accounts data source

PATCH /v1/chart-of-accounts/data-source • validated by `patchAccountDataSource`

← Back to full API reference
PATCH/v1/chart-of-accounts/data-sourceAuthentication required
  • Requires organization permissions for this resource.
  • Validated by Zod schema: patchAccountDataSource.

Request details

Path params

No path parameters for this endpoint.

Query params

No explicit query schema was captured for this endpoint.

Body fields

  • id (required)

    Type: string

  • accountId (required)

    Type: number

  • type

    Type: enum

    Example: INVOICES

  • operation

    Type: enum

    Example: ADD

  • config

    Type: object

  • config.invoice

    Type: object

  • config.invoice.sourceField (required)

    Type: enum

    Example: amount

  • config.invoice.isSell (required)

    Type: boolean

  • config.resources

    Type: object

  • config.resources.ids

    Type: array

    Example:

  • config.resources.ids[] (required)

    Type: number

  • config.resources.types

    Type: array

    Example:

  • config.resources.types[] (required)

    Enum-like validator generated by zodFromObj

  • config.chartAccounts

    Type: object

  • config.chartAccounts.ids

    Type: array

    Example:

  • config.chartAccounts.ids[] (required)

    Type: number

  • config.commissions

    Type: object

  • config.commissions.isSell

    Type: boolean

  • config.manual

    Type: object

  • config.manual.amount

    Type: number

Default payloads

Path params

json
{}

Query

json
{}

Body

json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "accountId": 1
}

Sample response

json
{}

Test this endpoint now

Use your own credentials and execute a live request directly from this page.

1. Configure authentication for testing

You can test endpoints with signed API keys, a raw Authorization token, or browser cookies. Select one mode and fill in the required fields.

2. Select endpoint

PATCH/v1/chart-of-accounts/data-sourceAuthentication required

Group: Accounting / Chart Of Accounts

PATCH /v1/chart-of-accounts/data-source • validated by `patchAccountDataSource`

  • Requires organization permissions for this resource.
  • Validated by Zod schema: patchAccountDataSource.

Body fields

  • idrequired
    Type: string
  • accountIdrequired
    Type: number
  • type
    Type: enum
    Ejemplo: INVOICES
  • operation
    Type: enum
    Ejemplo: ADD
  • config
    Type: object
  • config.invoice
    Type: object
  • config.invoice.sourceFieldrequired
    Type: enum
    Ejemplo: amount
  • config.invoice.isSellrequired
    Type: boolean
  • config.resources
    Type: object
  • config.resources.ids
    Type: array
    Ejemplo:
  • config.resources.ids[]required
    Type: number
  • config.resources.types
    Type: array
    Ejemplo:
  • config.resources.types[]required
    Enum-like validator generated by zodFromObj
  • config.chartAccounts
    Type: object
  • config.chartAccounts.ids
    Type: array
    Ejemplo:
  • config.chartAccounts.ids[]required
    Type: number
  • config.commissions
    Type: object
  • config.commissions.isSell
    Type: boolean
  • config.manual
    Type: object
  • config.manual.amount
    Type: number

3. Prepare request payload

4. Server response

Run a request to inspect the real-time response for your environment.