maib MIA QR API
EN
EN
  • Overview
    • General Technical Specifications
    • MIA QR Types
  • Endpoints
    • Authentication
      • Obtain Authentication Token
    • Payment Initiation
      • Create QR Code (Static, Dynamic)
      • Create Hybrid QR Code
        • Create Extension for QR Code by ID
    • Payment Cancellation
      • Cancel Active QR (Static, Dynamic)
      • Cancel Active QR Extension (Hybrid)
    • Payment Refund
      • Refund Completed Payment
    • Information Retrieval (GET)
      • Display List of QR Codes with Filtering Options
      • Retrieve QR Details by ID
      • Retrieve List of Payments with Filtering Options
      • Retrieve Payment Details by ID
  • Payment Simulation (Sandbox)
  • Notifications on Callback URL
  • Errors
    • API Errors
    • HTTP Status Codes
  • Glossary
  • maib e-commerce API
Powered by GitBook
On this page
  1. Endpoints
  2. Payment Refund

Refund Completed Payment

POST /v2/mia/payments/{payId}/refund

This endpoint allows initiating a refund for a successfully completed payment identified by payId.


Request parameters (path)

Name
Type
Required
Description

payId

string (GUID)

Yes

Unique identifier of the payment recorded in the MIA system.

Request parameters (body)

Name
Type
Required
Description

reason

string (max. 500 caractere)

Yes

Reason for initiating the refund.

Request example

{
    "reason": "Client returned the product"
}

Response parameters

Object result

Name
Type
Description

payId

string (GUID)

Unique identifier of the payment for which the refund was made.

status

string (enum)

Result status of the payment. Possible value: Refunded.

Other fields

Name
Type
Description

ok

boolean

Indicates whether the request was processed successfully.

errors

array

Contains details about any errors encountered during processing.

errors.errorCode

string

Error code.

errors.errorMessage

string

Error description.


Response example

{
    "result": {
        "payId": "123e4567-e89b-12d3-a456-426614174000",
        "status": "Refunded"
    },
    "ok": true
}
PreviousPayment RefundNextInformation Retrieval (GET)

Last updated 1 day ago