Modern Treasury API Documentation

Welcome to Modern Treasury. You'll find comprehensive guides and documentation to help you start working with Modern Treasury APIs as quickly as possible, as well as support if you get stuck.

Create an Expected Payment

Let's now say you're expecting a wire from the counterparty you already created. You know that it will be for $212,000, that the OBI will be INV123, and that it will be sent between 1/28/2019 and 1/29/2019.
You can create an expected payment with this information. For more details on expected payments, see Expected Payment.

curl --request POST \
  -u ORGANIZATION_ID:API_KEY \
  --url https://app.moderntreasury.com/api/expected_payments \
  -H 'Content-Type: application/json' \
  -d '{
  "type": "wire",
  "amount_upper_bound": 21200000,
  "amount_lower_bound": 21200000,
  "direction": "credit",
  "currency": "USD",
  "internal_account_id": "0f8e3719-3dfd-4613-9bbf-c0333781b59f",
  "counterparty_id": "37ba4454-dd33-4aa0-8906-0e2e4103e45c",
  "statement_descriptor": "INV123",
  "date_lower_bound": "2019-01-28",
  "date_upper_bound": "2019-01-29"
}'

This is the response you will see. It contains the ID of the expected payment, 4fe3fc33-b784-4280-a987-d968e17876eb, as well as additional details about it.

{
  "id": "afc256b0-dab8-4b9a-98c1-735fc23204ce",
  "object": "expected_payment",
  "type": "wire",
  "amount_upper_bound": 21200000,
  "amount_lower_bound": 21200000,
  "direction": "credit",
  "internal_account_id": "0f8e3719-3dfd-4613-9bbf-c0333781b59f",
  "currency": "USD",
  "date_upper_bound": "2019-01-29",
  "date_lower_bound": "2019-01-28",
  "statement_descriptor": "INV123",
  "remittance_information": null,
  "metadata": {},
  "counterparty_id": "37ba4454-dd33-4aa0-8906-0e2e4103e45c",
  "transaction_id": null,
  "status": "unreconciled"
}

Updated about a year ago



Create an Expected Payment


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.