> ## 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.

# Post paymentsmidtranswebhook



## OpenAPI

````yaml /openapi/openapi.yaml post /payments/midtrans/webhook
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:
  /payments/midtrans/webhook:
    post:
      tags:
        - Payment
      operationId: receiveMidtransWebhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MidtransWebhook'
      responses:
        '200':
          description: Verified webhook accepted and persisted idempotently.
        '400':
          description: Invalid or inconsistent transaction payload.
        '401':
          description: Signature verification failed.
        '502':
          description: Midtrans server-side verification failed.
        '503':
          description: Midtrans is not configured for this environment.
      security: []
components:
  schemas:
    MidtransWebhook:
      type: object
      required:
        - order_id
        - status_code
        - gross_amount
        - signature_key
        - transaction_status
      properties:
        order_id:
          type: string
        status_code:
          type: string
        gross_amount:
          type: string
        signature_key:
          type: string
        transaction_status:
          type: string
        fraud_status:
          type: string
        payment_type:
          type: string
        transaction_id:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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