Typescript (SDK)
import { Autumn } from 'autumn-js'
const autumn = new Autumn()
const result = await autumn.balances.finalize({
lockId: "lock_abc123",
action: "confirm",
});{
"success": true
}Balances
Finalize Lock
Finalize a previously locked balance. Use ‘confirm’ to commit the deduction, or ‘release’ to return the held balance.
POST
/
v1
/
balances.finalize
Typescript (SDK)
import { Autumn } from 'autumn-js'
const autumn = new Autumn()
const result = await autumn.balances.finalize({
lockId: "lock_abc123",
action: "confirm",
});{
"success": true
}Body Parameters
Response
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
application/json
The lock ID that was passed into the previous check call.
Use 'confirm' to commit the deduction, or 'release' to return the held balance.
Available options:
confirm, release Additional properties to attach to this finalize lock event.
Additional properties to attach to this finalize lock event.
Show child attributes
Show child attributes
Response
OK
⌘I