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

# Get adminfinancepolicy



## OpenAPI

````yaml /openapi/openapi.yaml get /admin/finance/policy
openapi: 3.0.3
info:
  title: Golan Sertifikasi API
  version: 1.0.0
  description: >-
    Public REST API for Golan Sertifikasi web and mobile clients. All monetary
    values are integer IDR. Authenticate with Google ID token exchange; use the
    short-lived bearer token returned by the API.
servers:
  - url: /api/v1
security:
  - bearerAuth: []
paths:
  /admin/finance/policy:
    get:
      tags:
        - Finance
      operationId: getFinancePolicy
      responses:
        '200':
          description: Current database-backed policy and last editor/time.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FinancePolicyRecord'
        '403':
          $ref: '#/components/responses/Forbidden'
        '503':
          description: Finance policy database is unavailable.
components:
  schemas:
    FinancePolicyRecord:
      allOf:
        - $ref: '#/components/schemas/FinancePolicy'
        - type: object
          required:
            - updated_at
            - updated_by
          properties:
            updated_at:
              type: string
              format: date-time
            updated_by:
              type: string
    FinancePolicy:
      type: object
      required:
        - policy_version
        - finance_policy_approvals_verified
        - topup_enabled
        - topup_service_fee_idr
        - topup_service_fee_tax_idr
        - topup_service_fee_policy_version
        - referral_reward_enabled
        - referral_formula
        - referral_amount_idr
        - referral_percentage
        - referral_max_amount_idr
        - referral_max_completed_courses_per_referred_user
        - referral_max_total_per_referred_user_idr
        - referral_max_total_budget_idr
        - referral_policy_version
        - wallet_purchase_enabled
        - instructor_withdrawal_enabled
        - instructor_withdrawal_minimum_idr
        - instructor_withdrawal_maximum_idr
        - instructor_withdrawal_policy_version
        - finance_withdrawal_simulation_enabled
        - course_refund_enabled
        - course_refund_window_hours
        - instructor_earnings_enabled
        - instructor_share_bps
        - instructor_earning_hold_hours
        - instructor_share_basis
        - instructor_earning_policy_version
        - platform_payout_enabled
        - platform_payout_simulation_enabled
        - platform_payout_safety_reserve_idr
        - platform_payout_maximum_idr
        - platform_payout_destination_ref
      properties:
        policy_version:
          type: string
          minLength: 1
          maxLength: 64
          description: >-
            New value required on every update and copied to each enabled
            component policy version.
        finance_policy_approvals_verified:
          type: boolean
          description: >-
            Recorded approval state; production still requires the separate
            environment hard veto.
        topup_enabled:
          type: boolean
        topup_service_fee_idr:
          type: integer
          format: int64
          minimum: 0
        topup_service_fee_tax_idr:
          type: integer
          format: int64
          minimum: 0
        topup_service_fee_policy_version:
          type: string
        referral_reward_enabled:
          type: boolean
        referral_formula:
          type: string
          enum:
            - fixed
            - percentage
        referral_amount_idr:
          type: integer
          format: int64
          minimum: 0
        referral_percentage:
          type: number
          minimum: 0
          maximum: 1
          description: Decimal fraction; 0.05 equals 5 percent.
        referral_max_amount_idr:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Maximum single course-completion award. Required above zero when
            referral is enabled.
        referral_max_completed_courses_per_referred_user:
          type: integer
          minimum: 1
          maximum: 100
        referral_max_total_per_referred_user_idr:
          type: integer
          format: int64
          minimum: 0
        referral_max_total_budget_idr:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Cumulative lifetime reward ceiling; cannot be reset through the
            policy API.
        referral_policy_version:
          type: string
        wallet_purchase_enabled:
          type: boolean
        instructor_withdrawal_enabled:
          type: boolean
        instructor_withdrawal_minimum_idr:
          type: integer
          format: int64
          minimum: 0
        instructor_withdrawal_maximum_idr:
          type: integer
          format: int64
          minimum: 0
        instructor_withdrawal_policy_version:
          type: string
        finance_withdrawal_simulation_enabled:
          type: boolean
        course_refund_enabled:
          type: boolean
        course_refund_window_hours:
          type: integer
          minimum: 0
          maximum: 720
        instructor_earnings_enabled:
          type: boolean
        instructor_share_bps:
          type: integer
          minimum: 0
          maximum: 10000
        instructor_earning_hold_hours:
          type: integer
          minimum: 0
          maximum: 87600
        instructor_share_basis:
          type: string
          enum:
            - price_after_discount_ex_tax
        instructor_earning_policy_version:
          type: string
        platform_payout_enabled:
          type: boolean
        platform_payout_simulation_enabled:
          type: boolean
        platform_payout_safety_reserve_idr:
          type: integer
          format: int64
          minimum: 0
        platform_payout_maximum_idr:
          type: integer
          format: int64
          minimum: 0
        platform_payout_destination_ref:
          type: string
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          enum:
            - unauthorized
            - forbidden
            - invalid_google_credential
            - auth_not_configured
            - account_unavailable
            - self_referral
            - not_found
            - tax_policy_unavailable
            - finance_policy_unapproved
            - insufficient_balance
            - wallet_on_hold
            - reservation_pending
            - payment_pending
            - dependency_unavailable
            - payment_unavailable
            - push_unavailable
            - media_unavailable
            - upload_too_large
            - amount_mismatch
            - invalid_status
            - invalid_coupon
            - gateway_request_failed
            - gateway_verification_failed
            - conflict
            - invalid_request
            - idempotency_key_required
            - invalid_idempotency_key
            - internal_error
        message:
          type: string
        request_id:
          type: string
  responses:
    Forbidden:
      description: Role or resource access denied.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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