Skip to content

Finalise Fee Statement

POST
/api/admin/fee-statements/{statementId}/finalize
curl --request POST \
--url https://example.com/api/admin/fee-statements/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/finalize \
--header 'Authorization: Bearer <token>'

Finalise a Draft statement (stamps its transactions, snapshots totals).

statementId
required
string format: uuid

OK

Media type application/json
object
statement
object
id
string format: uuid
merchantId
string format: uuid
reference
string
nullable
periodStart
string format: date-time
nullable
periodEnd
string format: date-time
status
string
Allowed values: Draft Finalised Paid Void
totalFees
number format: double
totalNet
number format: double
transactionCount
integer format: int32
currency
string
nullable
finalisedAt
string format: date-time
nullable
paidAt
string format: date-time
nullable
createdAt
string format: date-time
paymentReference
string
nullable
notes
string
nullable
lines
object
items
Array<object>
nullable
object
transactionId
string format: uuid
occurredAt
string format: date-time
description
string
nullable
reference
string
nullable
status
string
Allowed values: Processing Approved Declined Refunded Voided
amount
number format: double
feeAmount
number format: double
netAmount
number format: double
page
integer format: int32
pageSize
integer format: int32
totalCount
integer format: int32
totalPages
integer format: int32
hasNextPage
boolean
hasPreviousPage
boolean
Example
{
"statement": {
"status": "Draft"
},
"lines": {
"items": [
{
"status": "Processing"
}
]
}
}

Not Found

Media type application/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Conflict

Media type application/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}