---
updatedAt: 2026-06-09T15:01:37.000Z
agentTools:
  projectIndex: https://doc.digiteal.eu/llms.txt
---

# Refund payment

Refund a payment

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "PAYMENTS",
    "contact": {
      "name": "Digiteal.eu",
      "url": "http://doc.digiteal.eu/",
      "email": "support@digiteal.eu"
    },
    "version": "1.0.0"
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "servers": [
    {
      "url": "https://api-test.digiteal.eu",
      "description": "Test environment"
    },
    {
      "url": "https://api-prod.digiteal.eu",
      "description": "Production environment"
    }
  ],
  "paths": {
    "/api/v1/refund": {
      "post": {
        "tags": [
          "Refund"
        ],
        "summary": "Refund payment",
        "description": "Refund a payment",
        "operationId": "refund",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefundRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "empty response body with the refund payment identifier in the uuid header",
            "headers": {
              "uuid": {
                "description": "unique identifier of the refund payment if it has started",
                "style": "simple",
                "schema": {
                  "type": "string"
                }
              },
              "status": {
                "description": "STARTED if the refund has started or SCHEDULED if it has been scheduled for later because Digiteal did not receive or transfer the funds yet",
                "style": "simple",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "byte"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error occurred",
            "content": {
              "*/*": {
                "schema": {
                  "type": "string",
                  "format": "byte"
                }
              }
            }
          }
        },
        "security": [
          {
            "BasicAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "RefundRequest": {
        "required": [
          "amountInCents",
          "paymentUUID"
        ],
        "type": "object",
        "properties": {
          "amountInCents": {
            "minimum": 1,
            "type": "integer",
            "description": "Amount expressed in cents to be refunded.",
            "format": "int64",
            "example": 1234
          },
          "currency": {
            "type": "string",
            "description": "The currency of the amount to be refunded based on the ISO 4217-alpha standard. The default value is EUR",
            "example": "EUR"
          },
          "paymentUUID": {
            "type": "string",
            "description": "Uuid of the payment to refund.",
            "format": "uuid"
          }
        },
        "description": "The details of the refund to be executed. The payment to refund must have been transferred to the creditor in order to be refunded."
      }
    },
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```