Money
Approve a payout
Needs the money:write scope. About scopes
Approves a payout waiting for review, so it can be paid. Only a payout in pending_review can be approved (422 bad_transition). Needs an Idempotency-Key: sending the same request again with the same key answers as the first did and approves once.
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidapplication/json- body
note?stringKept on the payout.
Length
1 <= length <= 500Success
application/json- response
id*stringFormat
uuidcode*stringpublisher*|nullstatementId*|nullamount*stringcurrency*stringstate*stringmethod*string|nullreference*string|nullpaidAt*string|nullversion*stringupdatedAt*stringcurl -X POST 'https://api.traki.io/v1/account/payouts/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: a-unique-id-for-this-change' \ -d '{}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "publisher": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "name": "string" }, "statementId": "775b692d-f1fa-4640-9327-0c9bb8d02222", "amount": "string", "currency": "string", "state": "string", "method": "string", "reference": "string", "paidAt": "string", "version": "string", "updatedAt": "string"}