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

# Create invoice



## OpenAPI

````yaml /openapi.yaml post /v1/invoices
openapi: 3.1.0
info:
  title: Meum Merchant API
  version: 1.0.0
  description: >
    Public merchant API for programmatic invoice creation and WooCommerce
    integration.

    Base URL: https://api.meum.io
  contact:
    name: Meum Support
    email: support@meum.io
    url: https://meum.io
servers:
  - url: https://api.meum.io
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Invoices
  - name: WooCommerce Integration
  - name: Health
paths:
  /v1/invoices:
    post:
      tags:
        - Invoices
      summary: Create invoice
      operationId: createInvoice
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateInvoiceRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceCreateResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CreateInvoiceRequest:
      type: object
      required:
        - external_order_id
        - amount
      properties:
        store_id:
          type: string
          format: uuid
        integration_id:
          type: string
          format: uuid
        external_order_id:
          type: string
          example: order_demo_1048
        amount:
          type: string
          example: '100.00'
        currency:
          type: string
          default: USD
        callback_url:
          type: string
          format: uri
        return_url:
          type: string
          format: uri
        metadata:
          type: object
          additionalProperties: true
    InvoiceCreateResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        invoiceId:
          type: string
          format: uuid
        status:
          type: string
        checkout_url:
          type: string
          format: uri
          example: https://pay.meum.io/inv_demo_123
        payment_url:
          type: string
          format: uri
        amount:
          type: string
        currency:
          type: string
        output_asset:
          type: string
        expires_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Store-scoped API key (sk_live_...)

````