API tutorials
Instant payments
Set payment expiration
what you will learn ✅ how to set an expiration time for how long a payment remains in the queue before being cancelled cross river queues instant payments to be sent later if for some reason the receiving bank is offline and cannot receive the credit transfer immediately payments have a default queue expiration of 3 days if the expiration is reached, cross river cancels the payment and triggers an rtp payment canceled webhook if you are new to instant payments, check out the docid\ u tnypq3 5yepg7jkd5fk overview this tutorial assumes familiarity with apis for more information, visit docid\ puttcwq5sklzxyzin5d1b the tutorial uses these api endpoints docid 727h0gkqerqhafkey67uu transfers funds between banks in real time via an instant payments network docid\ riyl47dxzg2rn5d apjtr cancels a payment request if a credit transfer or payment request response has not been received before you begin make sure you have docid\ wmg 1fqwq3bj d3c3hffs your partner id your master account number docid\ bn5xtgkjogbe ctwomcbs the following webhook events rtp payment queued payment queued for sending when the receiving financial institution comes back online rtp payment canceled payment canceled set queued payment expiration time to set the expiration time follow the the docid 5yrr2s4 i1b34cdzdxr68 tutorial, with the expiration time details set as either a specific date and time or a time in seconds if both are provided, the system prioritizes the time in seconds and ignores the date and time define an expiration for a specific date and time ( queuedpaymentexpiresat ) use the queuedpaymentexpiresat attribute in your payment request format yyyy mm ddthh\ mm\ ss (us eastern time) the value must be a future date and time for reference, the sample request includes this attribute on row 17 sample payment request with date and time expiration queuing post /v1/payments { "accountnumber" "2553179843", "amount" 15000, "creditor" { "routingnumber" "011000138", "accountnumber" "456789000", "name" "cleveland brown", "addressstreetname" "spooner st", "addressbuildingnumber" "34", "addresscity" "quahog", "addressstate" "ri", "addresspostalcode" "00093", "addresscountry" "us" "addresscountry" "us" }, "queuedpaymentexpiresat" "2023 02 19t08 22 17 512z" } define an expiration time in seconds ( queuedpaymentexpiresafterinseconds ) use the queuedpaymentexpiresafterinseconds attribute in your payment request enter the value in seconds (whole number) the countdown starts when the payment is queued a value of 0 cancels the payment immediately if the rdfi is offline for reference, the sample request includes this attribute on row 17 sample payment request with queuing expiration in seconds post /v1/payments { "accountnumber" "2553179843", "amount" 15000, "creditor" { "routingnumber" "011000138", "accountnumber" "456789000", "name" "cleveland brown", "addressstreetname" "spooner st", "addressbuildingnumber" "34", "addresscity" "quahog", "addressstate" "ri", "addresspostalcode" "00093", "addresscountry" "us" "addresscountry" "us" }, "queuedpaymentexpiresafterinseconds" 3600 } cancel a queued payment cancel a queued payment anytime using the post /v1/payments/{paymentid}/cancel endpoint test queuing in sandbox to simulate offline participants, three participants alternate between online and offline every 60 minutes register for the rtp payment queued and rtp payment canceled webhook events submit a payment using one of the following routing numbers 000000010 000000017 244084264 if the participant is offline, the rtp payment queued webhook fires, and the payment status changes to queued once the participant returns online, the payment resumes normal processing if the payment isn’t queued, continue submitting until the participant cycles offline