GET
Get a money action

Authorizations

Authorization
string
header
default:sk_test_docs_246e232c64ccc7a001bf61ec0f2e6ab0
required

Authorization: Bearer <secret key>. Secret keys belong to your organisation, are shown once when created in the dashboard, and are scoped (see x-required-scope on each operation). Keep them on your server. Live keys are issued after your business is verified. Publishable keys (pk_) are only for @ketapay/checkout and don't work here.

Path Parameters

id
string<uuid>
required

Response

The money action

One decision a business made that moves money, and who made it. KetaPay moves the money and keeps this record for good.

id
string<uuid>
required
object
string
required
Allowed value: "money_action"
livemode
boolean
required
action
enum<string>
required

refund is a refund of your own sale. ruling_* is a platform's decision on a dispute (dispute_id): all to the seller, all back to the buyer, or split.

Available options:
release,
refund,
ruling_release,
ruling_refund,
ruling_split
status
enum<string>
required

scheduled is waiting for execute_after, executing is moving the money. executed is done. cancelled was overtaken or stopped before any money moved. failed didn't move the money, and KetaPay is looking into it.

Available options:
scheduled,
executing,
executed,
cancelled,
failed
amount
integer
required

Amount in kobo

Required range: x >= 0
Example:

45000000

refund_amount
integer | null
required

For ruling_split, the part of amount that went back to the buyer; the rest went to the seller. Null otherwise

Required range: x >= 0
Example:

45000000

escrow_id
string<uuid>
required
milestone_id
string<uuid> | null
required
dispute_id
string<uuid> | null
required
reason
string
required
execute_after
string<date-time>
required

When the money moves. A refund moves at once

executed_at
string<date-time> | null
required
created_at
string<date-time>
required