Update Payment Order

Changed on

Update a payment order

patch/payment_orders/{id}

Request

  • Base URL
    https://app.moderntreasury.com/api
  • URL
    https://app.moderntreasury.com/api/payment_orders/{id}
  • Auth
    HTTP basic

Path parameters

idstring required

Request body

statusstring

To cancel a payment order, use cancelled. To redraft a returned payment order, use needs_approval. To undo approval on a denied or approved payment order, use needs_approval.

metadatastring json

Additional data in the form of key-value pairs. Pairs can be removed by passing an empty string or null as the value.

receiving_account_idstring

When using receiving_account_id, you may pass the id of an external account or an internal account. If an external account is passed, you must pass a value for counterparty_id.

counterparty_idstring

Required when receiving_account_id is passed the ID of an external account.

typestring

One of ach, eft, wire, check, book, rtp, sepa, bacs, au_becs, interac, signet, provexchange.

subtypestring

An additional layer of classification for the type of payment order you are doing. This field is only used for ach payment orders currently. For ach payment orders, the subtype represents the SEC code. We currently support CCD, PPD, IAT, CTX, WEB, CIE, and TEL.

amountinteger

Value in specified currency's smallest unit. e.g. $10 would be represented as 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000

directionstring

Describes the direction money is flowing in the transaction. A credit moves money from your account to someone else's. A debit pulls money from someone else's account to your own.

originating_accountstring
currencystring

Must conform to ISO 4217. Defaults to the currency of the originating account.

process_afterstring date-time

If present, Modern Treasury will not process the payment until after this time. If process_after is past the cutoff for effective_date, process_after will take precedence and effective_date will automatically update to reflect the earliest possible sending date after process_after. Format is ISO8601 timestamp.

effective_datestring date

Format is YYYY-MM-DD

prioritystring

Either normal or high. For ACH and EFT payments, high represents a same-day ACH or EFT transfer, respectively. For check payments, high can mean an overnight check rather than standard mail.

descriptionstring

An optional description for internal use.

statement_descriptorstring

An optional descriptor which will appear in the receiver's statement. For check payments this field will be used as the memo line. For ach the maximum length is 10 characters. Note that for ACH payments, the name on your bank account will be included automatically by the bank, so you can use the characters for other useful information. For eft the maximum length is 15 characters.

remittance_informationstring

For ach, this field will be passed through on an addenda record. For wire payments the field will be passed through as the "Originator to Beneficiary Information", also known as OBI or Fedwire tag 6000.

purposestring

For wire, this is usually the purpose which is transmitted via the "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud, this is the payment.purpose_code field. For eft, this field is the 3 digit CPA Code that will be attached to the payment.

originating_party_namestring

If present, this will replace your default company name on receiver's bank statement. This field can only be used for ACH payments currently. For ACH, only the first 16 characters of this string will be used. Any additional characters will be truncated.

originating_secondary_party_namestring

Secondary name for the legal entity making the payment. Can be used for e.g. check signatures where the originating party wishes to retain their company's display name but use an employee's name for the signature.

nsf_protectedboolean

A boolean to determine if NSF Protection is enabled for this payment order. Note that this setting must also be turned on in your organization settings page.

external_idstring

An optional user-defined 180 character unique identifier

Changes

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      added the new optional request property