add /order-id
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
2026-09-21 19:52:10 +05:00
parent 235ef5ec9e
commit ac94e0dd8a
7 changed files with 274 additions and 0 deletions

View File

@@ -4999,6 +4999,45 @@ paths:
summary: List payment history
tags:
- payment-history
/payment-history/{id}:
get:
description: Returns the full step-by-step audit trail (visa_master_payment_logs)
recorded while processing an order's payout - evidence of what actually happened,
independent of the summary rows returned by the list endpoint
parameters:
- description: Order ID
in: path
name: id
required: true
type: integer
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/appresult.AppSuccess'
"400":
description: Bad Request
schema:
$ref: '#/definitions/appresult.AppError'
"403":
description: Forbidden
schema:
$ref: '#/definitions/appresult.AppError'
"404":
description: Not Found
schema:
$ref: '#/definitions/appresult.AppError'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/appresult.AppError'
security:
- BearerAuth: []
summary: Get payment logs for an order
tags:
- payment-history
/payment-settings:
get:
description: Returns the admin-configurable bank and GBÜS commission fees used