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

# Receive Acecf

> Receive an ACECF from another facturador. Public endpoint authenticated via API key.



## OpenAPI

````yaml /openapi/public-v1.json post /api/v1/ecf/acecf/inbound
openapi: 3.1.0
info:
  title: emite.do API
  description: >-
    API pública para emitir, consultar y operar e-CF ante la DGII. Autenticación
    por header X-API-Key. El POST /api/v1/ecf no promete el estado fiscal final:
    consulta o webhook.
  version: 1.0.0
servers:
  - url: https://api.emite.do
    description: Producción
security:
  - ApiKeyAuth: []
paths:
  /api/v1/ecf/acecf/inbound:
    post:
      tags:
        - ACECF
      summary: Receive Acecf
      description: >-
        Receive an ACECF from another facturador. Public endpoint authenticated
        via API key.
      operationId: receive_acecf_api_v1_ecf_acecf_inbound_post
      parameters:
        - name: x-api-key
          in: header
          required: true
          schema:
            type: string
            title: X-Api-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AcecfInboundRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AcecfResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AcecfInboundRequest:
      properties:
        idempotency_key:
          type: string
          maxLength: 100
          minLength: 1
          title: Idempotency Key
        sender_rnc:
          type: string
          maxLength: 11
          minLength: 9
          title: Sender Rnc
        receiver_rnc:
          type: string
          maxLength: 11
          minLength: 9
          title: Receiver Rnc
        ecf_type:
          type: string
          maxLength: 2
          minLength: 2
          pattern: ^(31|32|33|34|41|43|44|45|46|47)$
          title: Ecf Type
        encf:
          type: string
          maxLength: 13
          minLength: 13
          title: Encf
        signed_xml:
          type: string
          title: Signed Xml
          description: Base64-encoded signed XML from sender
        environment:
          type: string
          maxLength: 20
          title: Environment
          default: TesteCF
        receiver_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Receiver Url
          description: Base URL del receptor (se POST a /fe/aprobacioncomercial/api/ecf).
      type: object
      required:
        - idempotency_key
        - sender_rnc
        - receiver_rnc
        - ecf_type
        - encf
        - signed_xml
      title: AcecfInboundRequest
      description: ACECF received from another facturador.
    AcecfResponse:
      properties:
        public_id:
          type: string
          title: Public Id
        status:
          type: string
          title: Status
        message:
          type: string
          title: Message
        dgii_response:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Dgii Response
      type: object
      required:
        - public_id
        - status
        - message
      title: AcecfResponse
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key de la empresa. Se muestra una sola vez al crearla.

````