-
-
Save Selleray/f26e97235f3fdc8285341fa7484f82c0 to your computer and use it in GitHub Desktop.
Modulr POST Request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="beneficiaries-post-Flow" doc:id="8e570ef7-a010-42ea-b8c7-28acd1e34625" > | |
<flow-ref doc:name="Create HMAC Authentication Signature" doc:id="9f01a868-b1ab-4150-b0be-eb456b46ab6a" name="Create-Authentication-Header-Flow" /> | |
<ee:transform doc:name="Create Request for Benficiary POST" doc:id="1dd785a7-7113-48f6-841d-358309f9cd25"> | |
<ee:message> | |
<ee:set-payload><![CDATA[%dw 2.0 | |
output application/json | |
--- | |
{ | |
"defaultReference":payload.defaultReference, | |
"destinationIdentifier":{ | |
"accountNumber":payload.accountNumber, | |
"currency":"GBP", | |
"sortCode":payload.sortCode, | |
"type":"SCAN" | |
}, | |
"name":payload.name, | |
"externalReference":payload.externalReference | |
}]]></ee:set-payload> | |
</ee:message> | |
</ee:transform> | |
<http:request method="POST" doc:name="Send Request to Create Beneficiary" doc:id="16976706-40e2-4522-aeeb-fc4ec555a13c" config-ref="HTTP_Request_configuration" path="/customers/C120BAHP/beneficiaries"> | |
<http:headers><![CDATA[#[output application/java | |
--- | |
{ | |
Authorization : vars.authHeader, | |
"x-mod-nonce" : vars.authentication.nonceId, | |
Date : vars.authentication.dateHeader, | |
"content-type" : "application/json;charset=UTF-8", | |
accept : "application/json" | |
}]]]></http:headers> | |
</http:request> | |
</flow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment