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

# Chargeback inquiry



## OpenAPI

````yaml /api-reference/chargeback-api.json post /api/v1/chargeback/inquiry
openapi: 3.1.0
info:
  title: acquiring-order
  description: 接口文档
  termsOfService: https://www.waffo.com
  version: 1.0.0
servers:
  - url: http://localhost:8080
    description: Generated server url
security: []
tags:
  - name: Chargeback file upload
    description: Chargeback file upload api description
  - name: Order create
    description: ' Order create api description'
  - name: Chargeback inquiry
    description: Chargeback inquiry api description
  - name: Subscription create
    description: Subscription create api description
  - name: Subscription inquiry
    description: Subscription inquiry api description
  - name: Chargeback list
    description: Chargeback list api description
  - name: Chargeback file download
    description: Chargeback file download api description
  - name: Order inquiry
    description: Order inquiry api description
  - name: Chargeback update
    description: Chargeback update api description
  - name: Subscription cancel
    description: >
      Cancel an active subscription when the merchant no longer wishes to
      continue the recurring billing cycle. This endpoint can only be invoked
      when the subscription status is active
  - name: Order cancel
    description: Order cancel api description
  - name: Subscription manage
    description: >
      This API allows the merchant to request a subscription management URL from
      Waffo

      Waffo will generate a subscription management URL which merchant can
      redirect user to this URL for managing subscription details (e.g. view
      subscription detail and cancel subscription). This management URL has a
      fixed expiration time (e.g., 1 day).
  - name: Chargeback accept
    description: Chargeback accept api description
  - name: Order refund
    description: Order refund api description
  - name: Subscription change
    description: >
      This API allows merchants to upgrade or downgrade a user's subscription
      plan. The change request will create a new subscription based on the
      original subscription, applying any remaining amount from the original
      subscription.


      此接口允许商户升级或降级用户的订阅计划。升降级请求将基于原订阅创建新订阅，并将原订阅的剩余金额应用到新订阅中。
  - name: Refund inquiry
    description: Refund inquiry api description
  - name: Subscription change inquiry
    description: >
      This API allows merchants to query the status of a subscription change
      (upgrade/downgrade) request.

      此接口允许商户查询订阅升降级请求的状态。
  - name: Merchant config inquiry
    description: Merchant config inquiry api description
  - name: Pay Method Config Inquiry
    description: Pay Method Config Inquiry api description
paths:
  /api/v1/chargeback/inquiry:
    post:
      tags:
        - Chargeback inquiry
      summary: Chargeback inquiry
      operationId: chargebackInquiry
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChargebackInquiryRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ResponseChargebackDetailResponse'
components:
  schemas:
    ChargebackInquiryRequest:
      type: object
      description: ' Chargeback inquiry request'
      properties:
        merchantId:
          type: string
          default: '1000000201'
          description: Merchant Id assigned by Waffo
          example: 1000000201
          maxLength: 64
          minLength: 0
        chargebackId:
          type: string
          description: Chargeback id
          maxLength: 32
          minLength: 0
        originalOrderId:
          type: string
          description: Original order id
          maxLength: 32
          minLength: 0
      required:
        - chargebackId
        - merchantId
        - originalOrderId
    ResponseChargebackDetailResponse:
      type: object
      description: response data
      properties:
        code:
          type: string
        msg:
          type: string
        data:
          $ref: '#/components/schemas/ChargebackDetailResponse'
    ChargebackDetailResponse:
      type: object
      description: Chargeback detail response
      properties:
        chargebackId:
          type: string
          description: chargebackId
        originalOrderId:
          type: string
          description: Original order id
        merchantId:
          type: string
          description: merchantId
        chargebackStatus:
          type: string
          description: Chargeback status
        amount:
          type: string
          description: Chargeback amount
        currency:
          type: string
          description: Chargeback currency
        feeAmount:
          type: string
          description: Chargeback fee amount
        feeCurrency:
          type: string
          description: Chargeback fee currency
        reasonCode:
          type: string
          description: Chargeback reason code
        reason:
          type: string
          description: Chargeback reason
        description:
          type: string
          description: Chargeback description
        chargebackDateTime:
          type: string
          description: chargeback dateTime
        expiryDateTime:
          type: string
          description: chargeback expiry dateTime
        merchantUserId:
          type: string
          description: Merchant user id
        subscriptionInfo:
          $ref: '#/components/schemas/SubscriptionInfo'
          description: >-
            The associated subscription info. Present when the chargeback is
            linked to a subscription payment order.
        message:
          $ref: '#/components/schemas/MessageDto'
          description: Message body
        evidence:
          type: object
          additionalProperties:
            type: string
          description: >-
            Evidence info. Key-value pairs of evidence field names and their
            contents
    SubscriptionInfo:
      type: object
      description: The associated subscription info
      properties:
        subscriptionId:
          type: string
          description: The associated subscription ID
        period:
          type: string
          description: Which period the subscription payment belong to. For example 2
        subscriptionRequest:
          type: string
          description: >-
            Subscription request id sent from Merchant. It will also be used for
            idempotent check. 
      required:
        - period
        - subscriptionId
        - subscriptionRequest
    MessageDto:
      type: object
      description: 消息对象
      properties:
        messageId:
          type: string
          description: messageId
          maxLength: 64
          minLength: 0
        notes:
          type: string
          description: notes
          maxLength: 2048
          minLength: 0
        documents:
          type: string
          description: documents
          maxLength: 1024
          minLength: 0

````