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

# Resend an invoice

> Sends the stored invoice document again to the contacts with the `invoices` role (the document is never re-rendered). Allowed while your partner is suspended. See the [billing guide](/consumer/billing).

**Required permissions:** `manage-consumer-billing` · **API keys:** not allowed

> [!NOTE]
>
> Dashboard session only. API keys cannot call this operation.


## OpenAPI

````yaml /openapi/consumer.v1.json post /consumer/v1/billing/invoices/{invoiceId}:resend
openapi: 3.1.1
info:
  title: AllRide Voucher Consumer API
  version: 1.0.0
  description: >-
    The Consumer API (`/consumer/v1`) and the shared Workspace API
    (`/partner/v1`) of the AllRide Voucher Platform for Partner Consumers:
    browse your catalog, redeem vouchers, manage redemption entities and
    Redemption Links, configure email OTP, read analytics and billing, and
    administer your workspace. Start with the
    [quickstart](https://docs-consumer.voucher.allride.io/quickstart). This
    document lists the sandbox server; production uses
    `https://api.voucher.allride.io`.
  contact:
    name: AllRide
    url: https://allride.io
servers:
  - url: https://api.voucher-staging.allride.io
    description: Sandbox
security:
  - apiKey: []
tags:
  - name: Catalog
    description: >-
      Browse the providers, voucher sets and categories AllRide makes available
      to you.
  - name: Catalog settings
    description: >-
      Turn providers and voucher sets on or off for your channels and keep your
      own settings and references.
  - name: Redemptions
    description: >-
      Redeem vouchers (single or batch), read issued codes and links, and void
      redemptions.
  - name: Redemption entities
    description: Your end customers or accounts, identified by your own opaque `refId`.
  - name: Redemption links
    description: >-
      Shareable links that let an end customer redeem on an AllRide-hosted
      landing page.
  - name: Email (SMTP and templates)
    description: >-
      Email OTP Gate settings, your SMTP configuration and the OTP email
      templates.
  - name: Analytics
    description: Redemption, entity and link statistics in your partner time zone.
  - name: Billing
    description: >-
      Billing account, contacts, payment methods, invoices (including
      Stornorechnungen), payments, usage and balance.
  - name: Pricing
    description: Your resolved Price Terms per voucher set and your Price Acceptances.
  - name: Partner
    description: >-
      Your partner record, settings, principal introspection, API access and the
      developer reference.
  - name: Members
    description: Users of your partner and their invitations.
  - name: Groups
    description: Groups, their permissions and the permission catalog.
  - name: API keys
    description: API keys of your partner (dashboard only).
  - name: Webhook endpoints
    description: Webhook endpoints, their secrets and the event types you can subscribe to.
  - name: Webhook deliveries
    description: The webhook delivery log and replays.
  - name: IP allowlist
    description: Source address ranges allowed to call the API.
  - name: Custom domains
    description: Your own host names for Redemption Link landing pages.
  - name: Workspace branding
    description: Workspace Branding (dashboards and landing pages) and brand assets.
  - name: Single sign-on
    description: SAML and OIDC connections for your users.
  - name: Audit log
    description: Every change made in your partner, by whom and when.
paths:
  /consumer/v1/billing/invoices/{invoiceId}:resend:
    post:
      tags:
        - Billing
      summary: Resend an invoice
      description: >-
        Sends the stored invoice document again to the contacts with the
        `invoices` role (the document is never re-rendered). Allowed while your
        partner is suspended. See the [billing guide](/consumer/billing).


        **Required permissions:** `manage-consumer-billing` · **API keys:** not
        allowed
      operationId: consumer.billing-invoices.resend
      parameters:
        - name: invoiceId
          in: path
          required: true
          description: Id of the invoice.
          schema:
            $ref: '#/components/schemas/ULong'
        - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: OK
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Idempotent-Replayed:
              $ref: '#/components/headers/IdempotentReplayed'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvoiceResponse'
              examples:
                default:
                  summary: OK
                  value:
                    data:
                      id: 19017
                      resource: invoice
                      number: VP-R-2026-000042
                      kind: periodic
                      status: sent
                      serviceMonth: 2026-10
                      servicePeriodStart: '2026-10-01'
                      servicePeriodEnd: '2026-10-31'
                      cancelsInvoiceId: null
                      cancelledByInvoiceId: null
                      issueDate: '2026-11-02'
                      dueDate: '2026-11-16'
                      collectionMethod: sepa-debit
                      collectionDate: '2026-11-16'
                      netAmount:
                        value: 128000
                        label: €1,280.00
                      taxAmount:
                        value: 24320
                        label: €243.20
                      grossAmount:
                        value: 152320
                        label: €1,523.20
                      amountPaid:
                        value: 0
                        label: €0.00
                      amountCancelled:
                        value: 0
                        label: €0.00
                      amountDue:
                        value: 152320
                        label: €1,523.20
                      taxTreatment: domestic
                      taxBreakdown:
                        - category: standard
                          rate: '19.00'
                          netAmount:
                            value: 128000
                            label: €1,280.00
                          taxAmount:
                            value: 24320
                            label: €243.20
                      paymentInstructions:
                        type: sepa-debit
                        mandateReference: EXAMPLE-MANDATE-REF
                        creditorId: DE00ZZZ00000000000
                        ibanLast4: '3000'
                        collectionDate: '2026-11-16'
                      lineCount: 6
                      eInvoiceFormat: zugferd-en16931
                      language: de
                      dunningLevel: none
                      sentAt: '2026-11-02T07:05:12Z'
                      paidAt: null
                      _links:
                        self:
                          href: >-
                            https://api.voucher.allride.io/consumer/v1/billing/invoices/19017
                          type: application/json
                        lines:
                          href: >-
                            https://api.voucher.allride.io/consumer/v1/billing/invoices/19017/lines
                          type: application/json
                        document:
                          href: >-
                            https://api.voucher.allride.io/consumer/v1/billing/invoices/19017/document?format=pdf
                          type: application/json
        '400':
          description: Bad Request
          x-error-codes:
            - invalid-header
            - invalid-idempotency-key
            - data-failed-validation
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalid-header:
                  summary: Invalid header
                  value:
                    errors:
                      - message: >-
                          A standard or platform header is malformed or missing;
                          `more.validationErrors[].property` names it.
                        statusCode: 400
                        errorCode: invalid-header
                invalid-idempotency-key:
                  summary: Invalid Idempotency-Key
                  value:
                    errors:
                      - message: >-
                          The `Idempotency-Key` header is not 1-255 printable
                          ASCII characters.
                        statusCode: 400
                        errorCode: invalid-idempotency-key
                data-failed-validation:
                  summary: Data failed validation
                  value:
                    errors:
                      - message: >-
                          One or more properties or parameters are invalid; each
                          is listed in `more.validationErrors` with its property
                          path and violated constraint. Unknown properties and
                          query parameters are refused as well.
                        statusCode: 400
                        errorCode: data-failed-validation
                        more:
                          validationErrors:
                            - property: name
                              constraint: required
                              message:
                                en: This property is required.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Not found.
          x-error-codes:
            - route-not-found
            - invoice-not-found
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                route-not-found:
                  summary: Route not found
                  value:
                    errors:
                      - message: No operation exists for this path.
                        statusCode: 404
                        errorCode: route-not-found
                invoice-not-found:
                  summary: Invoice not found
                  value:
                    errors:
                      - message: >-
                          No finalised invoice with this id exists on your
                          billing account (drafts are not visible).
                        statusCode: 404
                        errorCode: invoice-not-found
        '409':
          description: Conflict
          x-error-codes:
            - idempotency-key-in-use
            - invoice-document-not-ready
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            Retry-After:
              $ref: '#/components/headers/RetryAfter'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                idempotency-key-in-use:
                  summary: Idempotency-Key in use
                  value:
                    errors:
                      - message: >-
                          A request with the same `Idempotency-Key` is still
                          being processed.
                        statusCode: 409
                        errorCode: idempotency-key-in-use
                invoice-document-not-ready:
                  summary: Invoice document not ready
                  value:
                    errors:
                      - message: >-
                          The PDF or XML document of this invoice is still being
                          rendered.
                        statusCode: 409
                        errorCode: invoice-document-not-ready
        '422':
          description: Unprocessable Content
          x-error-codes:
            - idempotency-key-reused
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                idempotency-key-reused:
                  summary: Idempotency-Key reused
                  value:
                    errors:
                      - message: >-
                          The `Idempotency-Key` was already used for a different
                          request.
                        statusCode: 422
                        errorCode: idempotency-key-reused
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    ULong:
      type: integer
      format: uint64
      minimum: 0
      maximum: 18446744073709552000
      x-bigint: true
      description: >-
        Unsigned 64-bit integer (ids and large counters). May exceed 2^53; parse
        with a BigInt-safe JSON parser in JavaScript.
    InvoiceResponse:
      type: object
      description: Single-object envelope around a `Invoice`.
      properties:
        data:
          $ref: '#/components/schemas/Invoice'
      required:
        - data
      additionalProperties: false
    ErrorResponse:
      type: object
      description: >-
        Error body of every 4xx and 5xx response (`Content-Type:
        application/json`).
      properties:
        errors:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/ErrorEntry'
          description: The errors; in v1 always exactly one.
      required:
        - errors
      additionalProperties: false
    Invoice:
      type: object
      description: >-
        An invoice (consumer view), including Stornorechnungen (`kind:
        cancellation`). Finalised invoices are never edited or deleted; a wrong
        invoice is cancelled with a Stornorechnung and, where needed, replaced
        by a corrected invoice.
      properties:
        id:
          $ref: '#/components/schemas/ULong'
          description: Numeric id of the resource, unique per resource type.
        resource:
          type: string
          enum:
            - invoice
          description: Always `invoice`.
        number:
          type: string
          description: >-
            Gapless invoice number `VP-R-<year>-<n>`; Stornorechnungen use the
            same series.
        kind:
          type: string
          enum:
            - periodic
            - final
            - corrective
            - cancellation
          description: >-
            `periodic` monthly invoice, `final` after offboarding, `corrective`
            corrected invoice issued after a cancellation, `cancellation`
            Stornorechnung (cancellation invoice) that cancels the invoice named
            in `cancelsInvoiceId`. Treat as an open set: new values may be
            added.
        status:
          type: string
          enum:
            - finalised
            - sent
            - partially-paid
            - paid
            - overdue
            - void
            - uncollectible
          description: >-
            Invoice status. Only finalised documents are visible. `void` means
            the invoice was cancelled by the Stornorechnung in
            `cancelledByInvoiceId`. A Stornorechnung is only ever `finalised` or
            `sent`. Treat as an open set: new values may be added.
        cancelsInvoiceId:
          anyOf:
            - $ref: '#/components/schemas/ULong'
            - type: 'null'
          description: >-
            On a Stornorechnung (`kind: cancellation`): the id of the invoice it
            cancels; otherwise `null`.
        cancelledByInvoiceId:
          anyOf:
            - $ref: '#/components/schemas/ULong'
            - type: 'null'
          description: >-
            On a cancelled (`void`) invoice: the id of its Stornorechnung;
            otherwise `null`.
        serviceMonth:
          $ref: '#/components/schemas/YearMonth'
          description: Main service month (Europe/Berlin).
        servicePeriodStart:
          $ref: '#/components/schemas/LocalDate'
          description: Earliest service day covered (late usage widens it).
        servicePeriodEnd:
          $ref: '#/components/schemas/LocalDate'
          description: Latest service day covered.
        issueDate:
          $ref: '#/components/schemas/LocalDate'
          description: Issue date (Europe/Berlin).
        dueDate:
          $ref: '#/components/schemas/LocalDate'
          description: Due date = issue date + payment terms (Europe/Berlin).
        collectionMethod:
          type:
            - string
            - 'null'
          enum:
            - sepa-debit
            - bank-transfer
            - null
          description: >-
            Current collection plan; may change after a failed debit. `null` on
            a Stornorechnung. Treat as an open set: new values may be added.
        collectionDate:
          anyOf:
            - $ref: '#/components/schemas/LocalDate'
            - type: 'null'
          description: Planned SEPA debit date (Europe/Berlin); `null` for bank transfer.
        netAmount:
          $ref: '#/components/schemas/SignedMoney'
          description: Net total; negative on a Stornorechnung.
        taxAmount:
          $ref: '#/components/schemas/SignedMoney'
          description: Tax total; negative on a Stornorechnung.
        grossAmount:
          $ref: '#/components/schemas/SignedMoney'
          description: Gross total; negative on a Stornorechnung.
        amountPaid:
          $ref: '#/components/schemas/Money'
          description: Paid so far (payments and credit balance applied).
        amountCancelled:
          $ref: '#/components/schemas/Money'
          description: >-
            Part of the gross settled by a Stornorechnung: the full gross on a
            cancelled (`void`) invoice, `0` on every other invoice.
        amountDue:
          $ref: '#/components/schemas/Money'
          description: Still due = gross − paid − cancelled; `0` on a Stornorechnung.
        taxTreatment:
          type: string
          enum:
            - domestic
            - eu-reverse-charge
            - non-eu-not-taxable
          description: >-
            Tax treatment at issue. Treat as an open set: new values may be
            added.
        taxBreakdown:
          type: array
          items:
            type: object
            properties:
              category:
                type: string
                enum:
                  - standard
                  - reverse-charge
                  - not-taxable
                description: 'Tax category. Treat as an open set: new values may be added.'
              rate:
                $ref: '#/components/schemas/DecimalString'
                description: Tax rate in percent as a decimal string (`"19.00"`).
              netAmount:
                $ref: '#/components/schemas/SignedMoney'
                description: Net amount of this category; negative on a Stornorechnung.
              taxAmount:
                $ref: '#/components/schemas/SignedMoney'
                description: Tax amount of this category; negative on a Stornorechnung.
            required:
              - category
              - rate
              - netAmount
              - taxAmount
            additionalProperties: false
          description: Tax per category and rate (BILL-TAX-002).
        paymentInstructions:
          type:
            - object
            - 'null'
          description: Printed payment instructions.
          properties:
            type:
              type: string
              enum:
                - sepa-debit
                - bank-transfer
                - settled
              description: >-
                How the invoice is paid. Treat as an open set: new values may be
                added.
            mandateReference:
              type: string
              description: SEPA mandate reference (`sepa-debit`).
            creditorId:
              type: string
              description: AllRide's SEPA creditor id (`sepa-debit`).
            ibanLast4:
              type: string
              description: Last 4 characters of the debited IBAN (`sepa-debit`).
            collectionDate:
              $ref: '#/components/schemas/LocalDate'
              description: Planned collection date at rendering (`sepa-debit`).
            iban:
              type: string
              description: IBAN to transfer to (`bank-transfer`).
            bic:
              type: string
              description: BIC (`bank-transfer`).
            accountHolderName:
              type: string
              description: Account holder (`bank-transfer`).
            reference:
              type: string
              description: >-
                Reference to use exactly, so the payment is matched
                (`bank-transfer`).
          required:
            - type
          additionalProperties: false
        lineCount:
          type: integer
          minimum: 0
          description: Number of invoice lines.
        eInvoiceFormat:
          type: string
          enum:
            - zugferd-en16931
            - xrechnung-cii
          description: >-
            E-invoice format of the documents. Treat as an open set: new values
            may be added.
        language:
          $ref: '#/components/schemas/Locale'
          description: Document language.
        dunningLevel:
          type: string
          enum:
            - none
            - reminded
            - dunning-1
            - dunning-2
            - delinquent
          description: >-
            Dunning level of this invoice. Treat as an open set: new values may
            be added.
        sentAt:
          anyOf:
            - $ref: '#/components/schemas/Instant'
            - type: 'null'
          description: When the invoice email was first sent.
        paidAt:
          anyOf:
            - $ref: '#/components/schemas/Instant'
            - type: 'null'
          description: When the invoice was fully paid.
        _links:
          type: object
          description: >-
            Related resources you may follow (HAL style). A link is present only
            when you hold the target's permissions.
          properties:
            self:
              $ref: '#/components/schemas/Link'
              description: This resource.
            lines:
              $ref: '#/components/schemas/Link'
              description: The invoice lines.
            document:
              $ref: '#/components/schemas/Link'
              description: The document download (PDF).
          required:
            - self
          additionalProperties: false
      required:
        - id
        - resource
        - number
        - kind
        - status
        - cancelsInvoiceId
        - cancelledByInvoiceId
        - serviceMonth
        - servicePeriodStart
        - servicePeriodEnd
        - issueDate
        - dueDate
        - collectionMethod
        - collectionDate
        - netAmount
        - taxAmount
        - grossAmount
        - amountPaid
        - amountCancelled
        - amountDue
        - taxTreatment
        - taxBreakdown
        - paymentInstructions
        - lineCount
        - eInvoiceFormat
        - language
        - dunningLevel
        - sentAt
        - paidAt
        - _links
      additionalProperties: false
    ErrorEntry:
      type: object
      description: One error. Branch on `errorCode`; ignore members you do not know.
      properties:
        message:
          type: string
          description: >-
            Human-readable message. For 5xx errors it is always the generic
            `Something went wrong on our side`.
        statusCode:
          type: integer
          description: The HTTP status.
        errorCode:
          type: string
          description: Stable kebab-case error code, listed in the error catalog.
        requestId:
          type: string
          description: >-
            5xx only: the request id (also in the `X-Request-Id` header). Quote
            it when you contact support.
        more:
          type: object
          additionalProperties: true
          description: >-
            Additional details for some codes, for example `validationErrors`
            (array of `ValidationError`) or `requiredPermissions`. The members
            per code are listed in the error catalog.
          properties:
            validationErrors:
              type: array
              items:
                $ref: '#/components/schemas/ValidationError'
              description: Invalid properties or parameters.
      required:
        - message
        - statusCode
        - errorCode
      additionalProperties: true
    YearMonth:
      type: string
      pattern: ^\d{4}-(0[1-9]|1[0-2])$
      description: Calendar month `YYYY-MM`.
      example: 2026-10
    LocalDate:
      type: string
      format: date
      description: Calendar date `YYYY-MM-DD`.
      example: '2026-11-01'
    SignedMoney:
      type: object
      description: Like `Money`, but `value` may be negative (Stornorechnungen, balances).
      properties:
        value:
          type: integer
          description: Amount in cent; may be negative.
        label:
          type: string
          readOnly: true
          description: Server-formatted amount with sign (`-€12.50`).
      required:
        - value
        - label
      additionalProperties: false
      example:
        value: -1250
        label: '-12,50 €'
    Money:
      type: object
      description: >-
        An amount in euros: `value` in cent (2900 = €29.00). All amounts are in
        euros (EUR). In requests send `value`; a `label` you send is ignored.
      properties:
        value:
          type: integer
          minimum: 0
          description: Amount in cent (2900 = €29.00).
        label:
          type: string
          readOnly: true
          description: >-
            Server-formatted amount in the response locale (`€5.00` in English,
            `5,00 €` in German).
      required:
        - value
        - label
      additionalProperties: false
      example:
        value: 2900
        label: 29,00 €
    DecimalString:
      type: string
      pattern: ^-?[0-9]{1,6}\.[0-9]{2}$
      description: >-
        A decimal number as a string with two fraction digits (for example a tax
        rate `"19.00"`).
      example: '19.00'
    Locale:
      type: string
      enum:
        - de
        - en
      description: 'Supported locale. Treat as an open set: new values may be added.'
    Instant:
      type: string
      format: date-time
      description: >-
        RFC 3339 timestamp in UTC with `Z`, millisecond precision, truncated: no
        fraction when the milliseconds are zero (`2026-11-01T00:00:00Z`),
        otherwise exactly three digits (`2026-10-21T17:42:10.120Z`). Inputs must
        carry an offset and are normalised to UTC.
      example: '2026-11-01T00:00:00Z'
    Link:
      type: object
      description: A link to a related resource.
      properties:
        href:
          type: string
          format: uri
          description: Absolute URL.
        type:
          type: string
          description: Media type of the target, usually `application/json`.
      required:
        - href
        - type
      additionalProperties: false
    ValidationError:
      type: object
      description: >-
        One invalid property or parameter of a `data-failed-validation` error
        (also used for item failures of batch operations and content checks).
      properties:
        property:
          type: string
          description: >-
            Path of the offending property in your request body
            (`items[2].quantity`), or the name of the query parameter, path
            parameter or header.
        constraint:
          type: string
          description: >-
            The violated rule as a kebab-case item code, for example `required`,
            `too-long`, `invalid-id`, `unknown-field`. See the validation item
            codes in the error catalog.
        params:
          type: object
          additionalProperties: true
          description: >-
            Parameters of the constraint, for example `min` and `max` for
            `invalid-page` or `allowed` for `invalid-sort`.
        value:
          description: The rejected value, when it is safe to return.
        message:
          type: object
          description: Explanation per locale.
          properties:
            en:
              type: string
              description: English message.
            de:
              type: string
              description: German message.
          required:
            - en
          additionalProperties: false
      required:
        - property
        - constraint
        - message
      additionalProperties: true
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: >-
        Optional key (1-255 printable ASCII characters, no spaces; a UUID is
        ideal) that makes this POST safe to retry: the same key with the same
        request replays the stored response for 24 hours. See
        [Idempotency](/guides/idempotency).
      schema:
        type: string
        minLength: 1
        maxLength: 255
        pattern: ^[\x21-\x7E]{1,255}$
      example: order-8812:line-1
  headers:
    XRequestId:
      description: Request id (yours if you sent a valid `X-Request-Id`, else generated).
      schema:
        type: string
    IdempotentReplayed:
      description: >-
        `true` when this response is a replay of a stored response for the same
        `Idempotency-Key`.
      schema:
        type: string
        enum:
          - 'true'
    RetryAfter:
      description: Seconds to wait before retrying or polling.
      schema:
        type: integer
  responses:
    Unauthorized:
      description: 'Unauthorized: the credential is missing or invalid.'
      x-error-codes:
        - unauthenticated
        - token-invalid
        - token-expired
        - api-key-invalid
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            unauthenticated:
              summary: Authentication required
              value:
                errors:
                  - message: No credential was sent with the request.
                    statusCode: 401
                    errorCode: unauthenticated
            token-invalid:
              summary: Invalid credential
              value:
                errors:
                  - message: >-
                      The credential cannot be verified for this surface (wrong
                      scheme, signature or credential kind).
                    statusCode: 401
                    errorCode: token-invalid
            token-expired:
              summary: Credential expired
              value:
                errors:
                  - message: The dashboard ID token has expired.
                    statusCode: 401
                    errorCode: token-expired
            api-key-invalid:
              summary: Invalid API key
              value:
                errors:
                  - message: >-
                      The API key is unknown, revoked, expired, past its roll
                      grace period or belongs to the other environment
                      (`vk_test_` against production or `vk_live_` against the
                      sandbox).
                    statusCode: 401
                    errorCode: api-key-invalid
    Forbidden:
      description: 'Forbidden: an access gate refused the request.'
      x-error-codes:
        - partner-role-missing
        - partner-suspended
        - partner-offboarded
        - api-access-inactive
        - ip-not-allowed
        - mfa-required
        - sso-required
        - missing-permission
        - reauthentication-required
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            partner-role-missing:
              summary: Partner role missing
              value:
                errors:
                  - message: >-
                      Your partner lacks the role (provider or consumer) this
                      surface needs.
                    statusCode: 403
                    errorCode: partner-role-missing
                    more:
                      requiredRole: consumer
            partner-suspended:
              summary: Partner suspended
              value:
                errors:
                  - message: >-
                      Your partner is suspended: writes are refused (billing
                      writes from the dashboard excepted).
                    statusCode: 403
                    errorCode: partner-suspended
            partner-offboarded:
              summary: Partner offboarded
              value:
                errors:
                  - message: Your partner has been offboarded; every route is refused.
                    statusCode: 403
                    errorCode: partner-offboarded
            api-access-inactive:
              summary: API access inactive
              value:
                errors:
                  - message: >-
                      API access of your partner is not active (not yet granted,
                      revoked, or the partner is suspended), so API keys are
                      refused.
                    statusCode: 403
                    errorCode: api-access-inactive
            ip-not-allowed:
              summary: IP address not allowed
              value:
                errors:
                  - message: >-
                      The request's source address is not in your IP allowlist
                      while enforcement is on.
                    statusCode: 403
                    errorCode: ip-not-allowed
            mfa-required:
              summary: Multi-factor authentication required
              value:
                errors:
                  - message: >-
                      Your partner requires multi-factor authentication for
                      dashboard users.
                    statusCode: 403
                    errorCode: mfa-required
            sso-required:
              summary: Single sign-on required
              value:
                errors:
                  - message: >-
                      Your partner enforces single sign-on for this user's email
                      domain.
                    statusCode: 403
                    errorCode: sso-required
            missing-permission:
              summary: Missing permission
              value:
                errors:
                  - message: >-
                      The membership or API key lacks a permission the operation
                      requires, including non-delegable permissions called with
                      an API key.
                    statusCode: 403
                    errorCode: missing-permission
                    more:
                      requiredPermissions:
                        - create-consumer-redemptions
            reauthentication-required:
              summary: Recent sign-in required
              value:
                errors:
                  - message: >-
                      The operation needs a sign-in within the last 15 minutes
                      (dashboard users only).
                    statusCode: 403
                    errorCode: reauthentication-required
    InternalError:
      description: Unexpected failure; quote the `requestId`.
      x-error-codes:
        - internal-error
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            internal-error:
              summary: Internal error
              value:
                errors:
                  - message: Something went wrong on our side
                    statusCode: 500
                    errorCode: internal-error
                    requestId: 0c9f2ea5-fe09-463c-8f96-b6cae67800ad
    ServiceUnavailable:
      description: Temporarily unavailable; retry after `Retry-After`.
      x-error-codes:
        - service-unavailable
        - db-unavailable
        - query-timeout
      headers:
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            service-unavailable:
              summary: Service unavailable
              value:
                errors:
                  - message: Something went wrong on our side
                    statusCode: 503
                    errorCode: service-unavailable
                    requestId: 0c9f2ea5-fe09-463c-8f96-b6cae67800ad
            db-unavailable:
              summary: Database unavailable
              value:
                errors:
                  - message: Something went wrong on our side
                    statusCode: 503
                    errorCode: db-unavailable
                    requestId: 0c9f2ea5-fe09-463c-8f96-b6cae67800ad
            query-timeout:
              summary: Query timeout
              value:
                errors:
                  - message: Something went wrong on our side
                    statusCode: 503
                    errorCode: query-timeout
                    requestId: 0c9f2ea5-fe09-463c-8f96-b6cae67800ad
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: vk_live_<keyId>_<secret>
      description: >-
        Your API key in `Authorization: Bearer <key>`. Use `vk_test_…` keys
        against the sandbox and `vk_live_…` keys against production.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.