Skip to content
Console
Menu

Alerts and status pages

App store purchases

Credits

Knowledge

KV

Notifications

Organizations

Storage

Workflows

API reference

Getting Started

Authentication

KV Store

Record a bank receipt

RecordBankReceipt through the project-scoped bank transfer API.

RecordBankReceipt through the project-scoped bank transfer API.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/bank_receipts:record
  • Scope billing:bank_receipts:write
  • Effect write — a successful call changes state.
  • Collection bank_receipts

#Request

FieldTypeWhat it is
parentstringThe environment recording the receipt. Required.
checkout_sessionstringThe checkout against which bank statement evidence is recorded. Required.
bank_transaction_idstringBank statement transaction identity. Required.
amount_minorint64Actual received minor units. Required.
currency_codestringActual currency. Required.
received_timetimestampBank receipt time. Required.
referencestringActual statement reference; absent references are held.
payer_evidencestringBank statement evidence or secure evidence locator. Required.
ambiguousboolHold evidence with unresolved payer or bank ambiguity.

#Response

FieldTypeWhat it is
namestringResource name.
uidstringStable resource identity. Output only.
metaResourceMetaResource metadata. Output only.
checkout_sessionstringThe checkout this receipt was submitted against. Output only.
bank_transaction_idstringThe bank statement transaction identity. Output only.
amount_minorint64Amount actually received in minor units. Output only.
currency_codestringCurrency actually received. Output only.
received_timetimestampBank-reported receipt time. Output only.
referencestringReference observed on the bank statement; empty is held. Output only.
payer_evidencestringEvidence locator or statement evidence; screenshots alone are not proof. Output only.
confirmerstringAuthenticated principal that recorded this receipt. Output only.
statestringpaid, held, rejected, refunded or reversed. Output only.
hold_reasonstringWhy settlement was held. Output only.
entriesBankReceiptEntry[]Append-only human resolution, refund and reversal history. Output only.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#BankReceiptEntry

FieldTypeWhat it is
kindstringaccept, reject, refund or reversal. Output only.
evidencestringOperator evidence supporting this decision. Output only.
confirmerstringAuthenticated decision maker. Output only.
create_timetimestampUTC decision time. Output only.
external_referencestringBank refund/reversal reference, when applicable. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/bank_receipts:record" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount_minor":1,"bank_transaction_id":"…","checkout_session":"…","currency_code":"…","payer_evidence":"…","received_time":{}}'