Skip to main content
POST
/
v1
/
dict
/
refund-requests
/
{refund_id}
/
close
Close a Refund Request
curl --request POST \
  --url https://plugin-pix-indirect.api.lerian.net/v1/dict/refund-requests/{refund_id}/close \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "refundAnalysisResult": "TOTALLY_ACCEPTED",
  "refundAnalysisDetails": "Analysis confirms fraud. Refund approved."
}
'
{
  "id": "550e8400-e29b-41d4-a716-44665544r001",
  "transactionId": "E12345678202411241430ABCDEFGHIJK",
  "amount": "150.00",
  "status": "OPEN",
  "analysisResult": "TOTALLY_ACCEPTED",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

refund_id
string
required

Unique identifier of the refund request (UUID format).

Body

application/json
refundAnalysisResult
enum<string>
required

Analysis result.

Available options:
TOTALLY_ACCEPTED,
PARTIALLY_ACCEPTED,
REJECTED
Example:

"TOTALLY_ACCEPTED"

refundAnalysisDetails
string

Analysis comments.

Example:

"Analysis confirms fraud. Refund approved."

refundRejectionReason
enum<string>

Rejection reason (if rejected).

Available options:
NO_BALANCE,
ACCOUNT_CLOSURE,
INVALID_REQUEST,
OTHER
refundTransactionId
string

Transaction ID for executing refund.

Example:

"E98765432202411241500REFUNDTRANS"

Response

Refund request closed successfully.

id
string

Unique identifier.

Example:

"550e8400-e29b-41d4-a716-44665544r001"

transactionId
string

Original transaction ID.

Example:

"E12345678202411241430ABCDEFGHIJK"

amount
string

Refund amount.

Example:

"150.00"

status
enum<string>

Current status.

Available options:
OPEN,
CLOSED,
CANCELLED
Example:

"OPEN"

analysisResult
string

Analysis result.

Example:

"TOTALLY_ACCEPTED"

createdAt
string<date-time>
Example:

"2024-01-15T10:30:00Z"

updatedAt
string<date-time>
Example:

"2024-01-15T10:30:00Z"