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

# Factureringsgegevens ophalen

> Met dit endpoint voer je de volgende bewerking uit: factureringsgegevens ophalen.



## OpenAPI

````yaml nl/api-reference/openapi.yaml get /api/v1/{workspace_slug}/payments/details
openapi: 3.1.0
info:
  title: Anlytic API
  version: '1.0'
  description: >-
    De Anlytic REST API. Alle endpoints zijn beschikbaar onder `/api/v1/`.


    ## Authenticatie


    Voor de meeste endpoints is een **Bearer JWT** nodig die je via de
    authenticatiestroom verkrijgt:

    1. `GET /api/v1/users/otp` — vraag een eenmalige toegangscode aan met HTTP
    Basic Auth.

    2. `GET /api/v1/users/token/{kid}` — wissel de code in voor een
    werkruimte-JWT.


    Stuur de JWT bij elke volgende aanvraag mee als `Authorization: Bearer
    <token>`.


    Je kunt ook een **API-sleutel** via dezelfde header gebruiken:
    `Authorization: API-Key <key>`.
  contact:
    name: Anlytic Support
    url: https://anlytic.com
servers:
  - url: https://app.anlytic.com
    description: Productie
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Configuratie
    description: API-configuratie en beleid
  - name: Triggers
    description: Geplande grafiektriggers en triggeracties
paths:
  /api/v1/{workspace_slug}/payments/details:
    get:
      tags:
        - Betalingen
      summary: Factureringsgegevens ophalen
      description: >-
        Met dit endpoint voer je de volgende bewerking uit: factureringsgegevens
        ophalen.
      operationId: getBillingDetails
      parameters:
        - $ref: '#/components/parameters/workspaceSlug'
      responses:
        '200':
          description: Aanvraag geslaagd
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentDetails'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  parameters:
    workspaceSlug:
      name: workspace_slug
      in: path
      required: true
      schema:
        type: string
        example: acme
      description: URL-vriendelijke werkruimte-identificatie
      example: acme
  schemas:
    PaymentDetails:
      type: object
      properties:
        credit_card:
          type: object
          properties:
            number:
              type: string
              description: Laatste vier cijfers
            brand:
              type: string
        billing_details:
          type: object
          properties:
            name:
              type: string
            email:
              type: string
            billing_address:
              type: string
            tax_ids:
              type: array
              items:
                type: string
        invoices:
          type: array
          items:
            type: object
            properties:
              date:
                type: string
              status:
                type: string
              amount:
                type: string
              currency:
                type: string
              invoice_pdf:
                type: string
        stats:
          type: object
          properties:
            viewers:
              type: integer
            editors:
              type: integer
        plan:
          $ref: '#/components/schemas/WorkspacePlan'
    WorkspacePlan:
      type: object
      properties:
        plan:
          type: string
        interval:
          type: string
          enum:
            - monthly
            - annual
        price:
          type: number
        status:
          type: string
        overwritten:
          type: boolean
        trial_ends_at:
          $ref: '#/components/schemas/Timestamp'
    Error:
      type: object
      properties:
        error:
          type: string
          description: Voor mensen leesbare foutmelding
        code:
          type: string
          description: Machineleesbare foutcode
    Timestamp:
      type: string
      format: date-time
      example: '2024-01-15T10:30:00Z'
  responses:
    Unauthorized:
      description: Authenticatietoken ontbreekt of is ongeldig
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Onvoldoende rechten
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Stuur een geldig token mee via de header `Authorization: Bearer
        <token>`.
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Voer `API-Key <key>` in.

````