# Add billing manual balance changes

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/billing/manual_balance_changes:
    post:
      summary: Add billing manual balance changes
      deprecated: false
      description: Add manual change to customer balance
      tags:
        - API Reference/Management API/Core/Billing/Customer Balance
      parameters:
        - name: dry_run
          in: query
          description: When true, the request doesn't persist record on success
          example: ''
          schema:
            type: boolean
        - name: Content-Type
          in: header
          description: '[Details](doc-341635)'
          required: true
          example: application/json
          schema:
            type: string
            default: application/json
            const: application/json
        - name: X-User-Agent
          in: header
          description: Arbitrary identifier of your client. [Details](doc-341635)
          required: true
          example: '{{X_USER_AGENT}}'
          schema:
            type: string
            default: '{{X_USER_AGENT}}'
        - name: X-Product-Name
          in: header
          description: API Product for API context. [Details](doc-341635)
          required: true
          example: '{{PRODUCT_NAME}}'
          schema:
            type: string
            default: '{{PRODUCT_NAME}}'
        - name: X-Customer
          in: header
          description: Customer for API context.  [Details](doc-342139)
          required: false
          example: '{{CUSTOMER_ID}}'
          schema:
            type: string
            default: '{{CUSTOMER_ID}}'
        - name: Authorization
          in: header
          description: '[Member](doc-342129) or [User](doc-342130) Authorization.'
          required: false
          example: Bearer {{_OAUTH_TOKEN}}
          schema:
            type: string
            default: Bearer {{_OAUTH_TOKEN}}
        - name: X-Client-Authorization
          in: header
          description: '[Token](doc-342128) Authorization.'
          example: '{{API_TOKEN}}'
          schema:
            type: string
            default: '{{API_TOKEN}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                manual_balance_change:
                  type: object
                  properties:
                    amount:
                      type: number
                      minimum: 0.01
                      x-apidog-mock: value of change positive or negative
                  x-apidog-orders:
                    - amount
                  required:
                    - amount
                  x-apidog-ignore-properties: []
              x-apidog-orders:
                - manual_balance_change
              required:
                - manual_balance_change
              x-apidog-ignore-properties: []
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  manual_balance_change:
                    $ref: '#/components/schemas/ManualBalanceChange'
                x-apidog-orders:
                  - manual_balance_change
                required:
                  - manual_balance_change
                x-apidog-refs: {}
                x-apidog-ignore-properties: []
              example:
                manual_balance_change:
                  id: 8909097747120550
                  date: '2025-04-01T11:34:43.813Z'
                  value: '800'
                  type: refill
                  bl_user_id: 8c75c254-4c81-45b3-a912-cd31561bf4e4
          headers: {}
          x-apidog-name: Success
        '400':
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  errors:
                    type: string
                    const: Invalid request
                x-apidog-orders:
                  - errors
                required:
                  - errors
                x-apidog-ignore-properties: []
              example:
                errors: Invalid request
          headers: {}
          x-apidog-name: Bad Request
        '404':
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  error:
                    type: string
                    examples:
                      - Record not found
                x-apidog-orders:
                  - error
                required:
                  - error
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Record Not Found
        '422':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  details:
                    type: object
                    properties:
                      period:
                        type: array
                        items:
                          type: object
                          properties:
                            error:
                              type: string
                            message:
                              type: string
                            options:
                              type: object
                              properties: {}
                              x-apidog-orders: []
                              x-apidog-ignore-properties: []
                          x-apidog-orders:
                            - error
                            - message
                            - options
                          x-apidog-ignore-properties: []
                      offset:
                        type: array
                        items:
                          type: object
                          properties:
                            error:
                              type: string
                            message:
                              type: string
                            options:
                              type: object
                              properties: {}
                              x-apidog-orders: []
                              x-apidog-ignore-properties: []
                          x-apidog-orders:
                            - error
                            - message
                            - options
                          x-apidog-ignore-properties: []
                    x-apidog-orders:
                      - period
                      - offset
                    x-apidog-ignore-properties: []
                required:
                  - error
                  - details
                x-apidog-orders:
                  - error
                  - details
                x-apidog-ignore-properties: []
              example:
                error: Invalid parameters
                details:
                  period:
                    - error: inclusion
                      message: is not included in the list
                      options:
                        in:
                          - month
                          - year
          headers: {}
          x-apidog-name: Parameter Error
      security: []
      x-apidog-folder: API Reference/Management API/Core/Billing/Customer Balance
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/346351/apis/api-3762157-run
components:
  schemas:
    ManualBalanceChange:
      type: object
      properties:
        id:
          type: integer
          x-apidog-mock: '{{$number.int}}'
          minimum: 1
        date:
          type: string
          x-apidog-mock: '{{$date.isoTimestamp}}'
        value:
          type: string
          x-apidog-mock: '{{$string.numeric}}'
        type:
          type: string
          enum:
            - refill
            - correction
          x-apidog-enum:
            - value: refill
              name: ''
              description: ''
            - value: correction
              name: ''
              description: ''
          description: Type of change - refill (positive), correction (negative)
        bl_user_id:
          type: string
          x-apidog-mock: '{{$string.uuid}}'
          description: User id
      x-apidog-orders:
        - id
        - date
        - value
        - type
        - bl_user_id
      required:
        - id
        - date
        - value
        - type
        - bl_user_id
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes: {}
servers:
  - url: https://api.mpc.dev.placewise.com
    description: Staging
security: []

```