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

# Add ERP next Info

## Overview

The "add\_erpnext\_info" endpoint allows users to integrate their ERP Next system with Toingg by securely submitting the necessary connection details. To add an ERP Next configuration, send a POST request to the `/add_erpnext_info` endpoint with a JSON body that includes the following fields:

```json theme={null}
{
  "erpUrl": "string",
  "apiKey": "string",
  "secret": "string"
}
```

Providing these credentials enables seamless integration, ensuring that your ERP Next data is securely connected and accessible within Toingg for efficient workflow and data management.


## OpenAPI

````yaml POST /add_erpnext_info
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.toingg.com/api/v3
security: []
paths:
  /add_erpnext_info:
    post:
      tags:
        - Erpnext Integration
      summary: Add Erpnext Info
      operationId: add_erpnext_info_add_erpnext_info_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/erpnextModel'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    erpnextModel:
      properties:
        erpUrl:
          type: string
          title: Erpurl
        apiKey:
          type: string
          title: Apikey
        secret:
          type: string
          title: Secret
      type: object
      required:
        - erpUrl
        - apiKey
        - secret
      title: erpnextModel
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: login

````