Wires

Respond to a drawdown request

6min
when a bank receives a originate a drawdown request docid\ u1t1ui9paou4apoec2tfs , it responds by wiring the money that was asked for to the specified bank account in this tutorial, you'll learn how to ✅ respond to a drawdown request if you are new to wires we recommend you read the wires docid\ zaxecgz253epmvur5l4eh documentation before starting this tutorial the tutorial assumes you have a knowledge of apis and how they work for more information on sending api calls, see the api basics docid\ hjr4y6ml96zuyj6trytom for this tutorial you'll need to understand these terms these definitions are specific to this tutorial the terms might be used slightly differently for a drawdown request term description originator the entity sending the payment beneficiary the entity receiving the payment sending financial institution the financial institution that initiates the drawdown response receiving financial institution the financial institution that receives the wire drawdown request a request for someone to send a payment by wire the tutorial uses these api endpoints api description wires docid 2jf5lvztusac2jqpi9pjf respond to a drawdown request by sending payment the tutorial uses these webhooks webhook description wire payment sent outbound wire has been transmitted to the federal reserve and has been successfully acknowledged imad number is now available wire payment received inbound wire payment received successfully wire payment rejected outbound wire could not be processed due to compliance reasons or was rejected by the federal reserve before you begin make sure you have bank rails docid\ kbym9o05dwmdjsf8k7lzi beneficiary reference id inbound drawdown request 1 register the relevant webhook events to receive the webhook events for this tutorial both partner accounts need to banking and payments docid\ dgnysfx9f7pnesmuxnwsp each specific webhook event type once you are registered, the event objects are sent to the registered urls the event object contains a list of resource identifiers used to download details on each event 2 respond to a drawdown request in this tutorial you will respond to a drawdown request from mastercard for 12,480,981 47 usd an incoming drawdown request looks like the code sample below sample inbound drawdown request { "id" "5beea7ed e9a1 4914 9bdc af7100eb4dbd", "accountnumber" "2805121064", "referenceid" "w22354k5et6", "fedbatchid" "9da4f836 7dae 4c54 8dee af7100eb4dc2", "direction" "inbound", "paymenttype" "drawdown", "source" "file", "status" "completed", "posting" "posted", "partnerauthorization" "notrequired", "partnerauthorization2" "notrequired", "amount" 1248098147, "currency" "usd", "purpose" "", "imad" "20221220b1qgc05c001017", "omad" "20221220qmgfnp7200015412200510ft01", "businessfunctioncode" "drc", "typecode" "1031", "senderroutingnumber" "021000021", "sendername" "jpmorgan chase", "senderreference" "1097200354jo", "receiverroutingnumber" "021214891", "receivername" "cross river bk", "originator" { "idcode" "d", "identifier" "014053007", "name" "mastercard international", "address1" "incorporate/services", "address2" "2200 mastercard boulevard", "address3" "o'fallon mo 63366 us" }, "beneficiary" { "idcode" "d", "identifier" "014053007", "name" "mastercard international", "address1" "incorporate/services", "address2" "2200 mastercard boulevard", "address3" "o'fallon mo 63366 us" }, "originatortobeneficiary1" "ica 17128 cc settlement", "beneficiaryreference" "2022122058465489", "receiptdate" "1220", "receipttime" "0510", "wasreversed" false, "isinternational" false, "createdat" "2022 12 20t09 17 27 307 05 00", "processedat" "2022 12 20t09 27 07 98 05 00", "effectivedate" "2022 12 20t00 00 00 05 00", "completedat" "2022 12 20t09 27 07 98 05 00", "postedat" "2022 12 20t09 27 07 98 05 00", "originalpaymentid" "5beea7ed e9a1 4914 9bdc af7100eb4dbd", "partnerid" "6ee82269 9e89 450e 9065 a9e5012c2645", "productid" "701d116d ceec 4868 94f0 ab3c00e82bde", "lastmodifiedat" "2022 12 20t09 27 07 9803522 05 00", "postingcode" "ok" } call post /v1/payments/{id}/drawdown responses for this call, some/all attributes are required a full list of attributes is found wires docid 2jf5lvztusac2jqpi9pjf the id attribute must be set to the payment id of the request that came in in this case, 5beea7ed e9a1 4914 9bdc af7100eb4dbd sample "response to drawdown" request { "originator" { "idcode" "d", "identifier" "2805121064", "name" "crb fbo rpps settlement", "address1" "885 teaneck rd", "address2" "teaneck, nj 07666 us" }, "beneficiaryreference" "1097200354jo" } https //sandbox crbcos com/wires/v1/payments/5beea7ed e9a1 4914 9bdc af7100eb4dbd/drawdown responses a successful api call returns a json response with the details of the payment sent from this point, the payment behaves like any originate a payment docid\ khepnqb3o8e9gppyfyhsm { "id" "cb9bd5f3 e720 47dc ab9b af7100fe54d4", "accountnumber" "2805121064", "coretransactionid" "e3e7a91e fe43 40c4 a264 af710135d35d", "referenceid" "w2235435x38", "fedbatchid" "0259951e e377 4940 b312 af71013af155", "fedbatchsequence" 1, "direction" "outbound", "paymenttype" "drawdownresponse", "source" "opsportal", "status" "completed", "posting" "posted", "partnerauthorization" "notrequired", "partnerauthorization2" "notrequired", "amount" 1248098147, "currency" "usd", "purpose" "entered by #61aa4fe6014afb01143ebb35#", "imad" "20221220qmgft009000933", "omad" "20221220b1qgc01r06123612201412", "businessfunctioncode" "drw", "typecode" "1032", "senderroutingnumber" "021214891", "sendername" "cross river bk", "senderreference" "w2235435x38", "receiverroutingnumber" "021000021", "receivername" "jpmorgan chase", "originator" { "idcode" "d", "identifier" "2805121064", "name" "crb fbo rpps settlement", "address1" "885 teaneck rd", "address2" "teaneck, nj 07666 us" }, "beneficiary" { "idcode" "d", "identifier" "014053007", "name" "mastercard international", "address1" "incorporate/services", "address2" "2200 mastercard boulevard", "address3" "o'fallon mo 63366 us" }, "beneficiaryreference" "1097200354jo", "receiptdate" "1220", "receipttime" "1412", "wasreversed" false, "isinternational" false, "createdat" "2022 12 20t10 25 59 53 05 00", "processedat" "2022 12 20t14 07 01 817 05 00", "effectivedate" "2022 12 20t00 00 00 05 00", "completedat" "2022 12 20t14 46 58 82 05 00", "postedat" "2022 12 20t13 48 02 473 05 00", "originalpaymentid" "5beea7ed e9a1 4914 9bdc af7100eb4dbd", "partnerid" "6ee82269 9e89 450e 9065 a9e5012c2645", "productid" "701d116d ceec 4868 94f0 ab3c00e82bde", "lastmodifiedat" "2022 12 20t14 46 58 8208426 05 00", "postingcode" "ok" }