Create payment
documentedInsert a payment transaction.
POST /PaymentPaymentsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.saasu.com/Payment?FileId={{$file_id}}" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"Notes": "{{$notes}}",
"PaymentItems": [
{"InvoiceTransactionId": {{$invoiceTransactionId1}}, "AmountPaid": {{$amountPaid1}} },
{"InvoiceTransactionId": {{$invoiceTransactionId2}}, "AmountPaid": {{$amountPaid2}} }
],
"TransactionDate": "{{$transactionDate}}",
"TransactionType": "{{$transactionType}}",
"PaymentAccountId": {{$paymentAccountId}},
"TotalAmount": {{$totalAmount}},
"Summary": "{{$summary}}",
"Reference": "{{$reference}}",
"ClearedDate": "{{$clearedDate}}",
"Currency": "{{$currency}}",
"AutoPopulateFxRate": {{$autoPopulateFxRate}},
"FxRate": {{$fxRate}}
}'