Corgi BankDocumentation
OpenAPI

Approve or reject the exact retained rate sheet as a different treasury approver

POST/ledger/fx/rate-sheets/{id}/decisions

A treasury approver with ledger:treasury:write and operations:approve, authenticated within five minutes and different from the maker, decides the exact retained content_sha256 (403 for the maker, 409 for a changed digest). The schema refuses a maker's decision independently. A business date has at most one approved, unwithdrawn closing sheet; a customer sheet cannot be approved after its validity ends. Publishes ledger.fx_rate_sheet.approved or rejected.

Path parameters

idstringRequired

Headers

Idempotency-KeystringOptional

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

approvebooleanRequired
content_sha256stringRequired
evidencestringRequired

Returns

200 OK

actorstringRequired
atstring · date-timeRequired
business_datestring · dateRequired

A business date, YYYY-MM-DD

content_sha256stringRequired
daily_customer_limit_usd_minorintegerOptional
decisionobject or nullOptional
5 child attributes
actorstringRequired
approvebooleanRequired
atstring · date-timeRequired
content_sha256stringRequired
evidencestringRequired
evidencestringRequired
idstringRequired
linesarray of objectsRequired
5 child attributes
currency_codestringRequired
customer_buy_spread_bpsintegerOptional

The customer buys the currency: ask = mid × (1 + bps/10000)

customer_sell_spread_bpsintegerOptional

The customer sells the currency: bid = mid × (1 − bps/10000)

max_conversion_usd_minorintegerOptional
usd_per_foreign_majorstringRequired
policy_referencestringRequired
purposestringRequired
rate_snapshot_idstringRequired
rate_snapshot_sha256stringRequired
statusstringRequired

Proposed, approved or rejected

valid_fromstring · date-time or nullOptional
valid_untilstring · date-time or nullOptional

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close