{"info":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","description":"<html><head></head><body><h1 id=\"data-definition\">Data definition</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Data Type</th>\n<th>Max Length</th>\n<th>State</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>originatorConversationId</td>\n<td>string</td>\n<td>100</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>paymentNotes</td>\n<td>string</td>\n<td>255</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remittername</td>\n<td>string</td>\n<td>128</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitteraddress</td>\n<td>string</td>\n<td>128</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterPhoneNumber</td>\n<td>string</td>\n<td>13</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterIdType</td>\n<td>string</td>\n<td>13</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterIdNumber</td>\n<td>string</td>\n<td>13</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterCountry</td>\n<td>string</td>\n<td>50</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterCCY</td>\n<td>string</td>\n<td>3</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitternationality</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitteridIssuePlace</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>remitteridIssueDate</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>remitteridExpiryDate</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>recipientName</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterFinancialInstitution</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterSourceOfFunds</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterPrincipalActivity</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>remitterDateOfBirth</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>recipientAddress</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>recipientEmailAddress</td>\n<td>string</td>\n<td>64</td>\n<td><strong>Optional</strong></td>\n</tr>\n<tr>\n<td>recipientPhoneNumber</td>\n<td>string</td>\n<td>13</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>recipientMCCMNC</td>\n<td>integer</td>\n<td>6</td>\n<td><strong>Required Mobile only</strong></td>\n</tr>\n<tr>\n<td>recipientInstitutionIdentifier</td>\n<td>string</td>\n<td>6</td>\n<td><strong>Only optional for Mobile</strong></td>\n</tr>\n<tr>\n<td>recipientPrimaryAccountNumber</td>\n<td>string</td>\n<td>50</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>recipientPurpose</td>\n<td>string</td>\n<td>3</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>recipientCCY</td>\n<td>integer</td>\n<td>6</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>recipientCountry</td>\n<td>string</td>\n<td>3</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>transactionrouteId</td>\n<td>guid</td>\n<td>6</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>transactionamount</td>\n<td>decimal</td>\n<td>6</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>transactionchannelType</td>\n<td>integer</td>\n<td>6</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>transactionreference</td>\n<td>string</td>\n<td>100</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n<tr>\n<td>transactionsystemTraceAudiNumber</td>\n<td>string</td>\n<td>50</td>\n<td><strong>Mandatory</strong></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Note:</strong> <strong>The recipient and remitter names should adhere to the following specifications:</strong></p>\n<ol>\n<li><p>Should contain at least two names.</p>\n</li>\n<li><p>No capturing of initials in any of the fields.</p>\n</li>\n<li><p>No input of numbers.</p>\n</li>\n<li><p>A single space should be used between the names.</p>\n</li>\n</ol>\n<h1 id=\"transaction-status-types\">Transaction Status Types</h1>\n<p>This is a reference to the <code>transactionStatus</code> field found on the <strong>Transfers callback payload</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0</td>\n<td>Pending</td>\n</tr>\n<tr>\n<td>1</td>\n<td>Queued</td>\n</tr>\n<tr>\n<td>2</td>\n<td>Submitted</td>\n</tr>\n<tr>\n<td>3</td>\n<td>SubmitAcknowledged</td>\n</tr>\n<tr>\n<td>4</td>\n<td>Completed</td>\n</tr>\n<tr>\n<td>6</td>\n<td>Failed</td>\n</tr>\n<tr>\n<td>7</td>\n<td>Rejected</td>\n</tr>\n<tr>\n<td>8</td>\n<td>TimedOut</td>\n</tr>\n<tr>\n<td>9</td>\n<td>DeliveredToThirdParty</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"category-types\">Category Types</h1>\n<p>This is a reference to the <code>category</code> field found as a result of the <strong>Find Transaction Routes</strong> request. It describes the transaction type for a particular route.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>0</td>\n<td>Mobile Wallet Transfer</td>\n</tr>\n<tr>\n<td>1</td>\n<td>Bank Transfer</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"channel-types\">Channel Types</h1>\n<p>This is a reference to the <code>channel</code> field found as a result of the <strong>Find Transaction Routes</strong> request. It describes the available transaction routes.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>182</td>\n<td>Mpesa</td>\n</tr>\n<tr>\n<td>180</td>\n<td>Pesalink</td>\n</tr>\n<tr>\n<td>181</td>\n<td>IFT</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"currencies\">Currencies</h1>\n<p>The API supports the following currencies:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>KES</td>\n<td>404</td>\n<td>Kenyan Shillings</td>\n</tr>\n<tr>\n<td>TZS</td>\n<td>834</td>\n<td>Tanzanian Shilling</td>\n</tr>\n<tr>\n<td>UGX</td>\n<td>800</td>\n<td>Ugandan Shilling</td>\n</tr>\n<tr>\n<td>BIF</td>\n<td>108</td>\n<td>Burundi Franc</td>\n</tr>\n<tr>\n<td>RWF</td>\n<td>646</td>\n<td>Rwanda Franc</td>\n</tr>\n<tr>\n<td>SSP</td>\n<td>728</td>\n<td>South Sudanese Pound</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"mccmnc-codes\">MCCMNC Codes</h1>\n<p>This is a reference to the <code>mccmnc</code> field found on the <strong>Payment Order Request</strong> when doing specifically a mobile request. Below are the codes that the API currently supports.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>63902</td>\n<td>Safaricom Kenya</td>\n</tr>\n<tr>\n<td>64101</td>\n<td>Airtel Uganda</td>\n</tr>\n<tr>\n<td>64110</td>\n<td>MTN Uganda</td>\n</tr>\n<tr>\n<td>64111</td>\n<td>Telcom Uganda</td>\n</tr>\n<tr>\n<td>64114</td>\n<td>Africell Uganda</td>\n</tr>\n<tr>\n<td>64002</td>\n<td>Tigo Tanzania</td>\n</tr>\n<tr>\n<td>64003</td>\n<td>ZANTEL Tanzania</td>\n</tr>\n<tr>\n<td>64004</td>\n<td>Vodacom Tanzania</td>\n</tr>\n<tr>\n<td>64005</td>\n<td>Airtel Tanzania</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"error-codes\">Error Codes</h1>\n<p>What errors and status codes can a user expect?</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>DTB API Response Codes</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>The request was processed successfully</td>\n</tr>\n<tr>\n<td>202</td>\n<td>The request has been accepted for processing</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized request. <strong>Happens when the credentials used, for this case,the bearer token, has expired.</strong></td>\n</tr>\n<tr>\n<td>400, BadRequest</td>\n<td>Bad request. <strong>For example, this happens when there is a validation error(missing fields) or when there is a duplicate entry(originatorConversationId)</strong></td>\n</tr>\n<tr>\n<td>404</td>\n<td>Request url not found</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal server error</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"sample-callback-response-for-transfers\">Sample callback response for Transfers</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": \"0c16c3a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"customerId\": \"a393c67c-158b-ec11-ab86-0ee00e897f52\",\n  \"isEnabled\": true,\n  \"remarks\": \"ERTU67897RQQEQ\",\n  \"conversationId\": \"908cb9a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"originatorConversationId\": \"8f8cb9a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"dueDate\": \"2022-03-21T00:00:00\",\n  \"dateApproved\": null,\n  \"dateRejected\": null,\n  \"isProcessed\": true,\n  \"dateProcessed\": \"2022-03-19T07:32:04.3\",\n  \"recordStatus\": 2,\n  \"createdBy\": \"Flavian\",\n  \"createdDate\": \"2022-03-19T07:31:55.85\",\n  \"orderLines\": [\n    {\n      \"remitter\": {\n        \"name\": \"John Gram\",\n        \"address\": \"USA\",\n        \"phoneNumber\": \"1-900-99398333\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"2000000\",\n        \"country\": \"USA\",\n        \"ccy\": 404,\n        \"financialInstitution\": \"Bank\",\n        \"sourceOfFunds\": \"Business\",\n        \"principalActivity\": \"Business\"\n      },\n      {\n      \"recipient\": {\n        \"name\": \"John Doe\",\n        \"address\": \"Nyati\",\n        \"emailAddress\": \"jjdoe@gmail.com\",\n        \"phoneNumber\": \"\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"2000000\",\n        \"financialInstitution\": \"Mpesa\",\n        \"primaryAccountNumber\": \"+254714000000\",\n        \"mccmnc\": \"63902\",\n        \"ccy\": 404,\n        \"country\": \"KE\",\n        \"purpose\": \"TEST\"\n      },\n      \"transaction\": {\n        \"routeId\": \"b1b67c98-84a6-ec11-ab96-0ee00e897f52\",\n        \"amount\": 10,\n        \"reference\": \"ERTU67897RQQEQ\",\n        \"systemTraceAuditNumber\": \"0d4b10f3-e679-4a75-b737-11d7d8600fac\",\n        \"type\": 0,\n        \"channelType\": 0,\n        \"customerAccountNo\": null,\n        \"routeTransactionTypeId\": \"00000000-0000-0000-0000-000000000000\"\n      },\n      \"transactionOutcome\": {\n        \"id\": \"0e16c3a6-56a7-ec11-ab96-0ee00e897f52\",\n        \"paymentAmount\": 10,\n        \"feeAmount\": 2,\n        \"trackingNumber\": \"5O18CE9I\",\n        \"transactionStatus\": 4,\n        \"transactionStatusDescription\": \"Completed\",\n        \"workingAccountAvailableFunds\": 0,\n        \"utilityAccountAvailableFunds\": 0,\n        \"transactionDate\": \"20220319073158\",\n        \"transactionCreditParty\": null,\n        \"resultCode\": \"0\",\n        \"resultCodeDescription\": \"Success\",\n        \"thirdPartyPayload\": {\n          \"thirdPartyResultCode\": \"0\",\n          \"thirdPartyResultCodeDescription\": \"Transaction processed successfully.\",\n          \"thirdPartyReceiptNumber\": null\n        },\n        \"createdDate\": \"2022-03-19T07:31:55.85\"\n      }\n    }\n  ]\n}\n\n</code></pre>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Data definition","slug":"data-definition"},{"content":"Transaction Status Types","slug":"transaction-status-types"},{"content":"Category Types","slug":"category-types"},{"content":"Channel Types","slug":"channel-types"},{"content":"Currencies","slug":"currencies"},{"content":"MCCMNC Codes","slug":"mccmnc-codes"},{"content":"Error Codes","slug":"error-codes"}],"owner":"16548268","collectionId":"3ebaa839-5643-4f3d-bd0b-43cca7048839","publishedId":"2sA3sAioLv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-08-21T11:26:18.000Z"},"item":[{"name":"Token Request","id":"c3cf749f-a946-4fe6-91e4-76b150977160","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"clientid","type":"text"},{"key":"client_secret","value":"clientsecret","type":"text"},{"key":"grant_type","value":"client_credentials","type":"text"}]},"url":"https://xborder-uat.diamondtrustbank.co.ke/connect/token","description":"<p>The DTB API uses <a href=\"https://oauth.net/2/\">OAuth2.0</a> authentication and this requires <code>client_id</code>, <code>client_secret</code>, <code>grant_type</code>, <code>scope</code>. <code>Token Request</code> is a POST request responsible for returning the bearer token that is required for all the requests that are to be made. For this the required details are: <code>client_id</code>, <code>client_secret</code>, <code>grant_type</code>, <code>scope</code></p>\n<h4 id=\"sample-success-response\">Sample success response:</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"access_token\":\"eyJhdddsGciOiJSUzI1NiIsImtpZCI6IkJEQTFFRURDNjNDQkVDNDY4N0Q5MzdDNThCM0ZBQjYxIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE2MjQ1NDIzMTgsImV4cCI6MTYyNDU0NTkxOCwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6NDQzMTAiLCJhdWQiOiJQeVBheV9hcGkiLCJjbGllbnRfaWQiOiJQeVBheV9hcGkiLCJjbGllbnRfY3VzdeqvG9tZXJfaWQiOiJmYmViMzc4NS03MmEyLWViMTEtYTgxMy1kYzQxYTlmODczOWMiLCJjbGllbwwwfnRfY3VzdG9tZXJfdHlwZSI6IkNvcnBvcmF0ZSIsImNsaWVudF93ZWJzaXRlIjoiaHR0cDovL3d3dygw2445weWNzLmNvLmtlIiwianRpIjoiODcxMzlGOTZEMzJCNTRGNTA4OERCRTI4OTBCMkEyM0UiLCJpYXQiOjE2MjQ1NDIzMTgsInNjb3BlIjpbIlB5UGF5X2FwaSJdfQ.BifQbO6n9P_928WRN40qDJgvvdujFygWpbTmPIiOwPgG2uGlZzDeeVRguU6KseS4HuTZrZg2oWEnyTFG5gcH06m8Yd0sPdN5m441425IscbvcXE3sAn7Nbvs VHSMITl1rZdS1KNzbTWKzGV4l8AFTNLa4j63Z7aG73E6e1BrIHsP6dV0JUKTjXzBOyX6dmV0E4MuSHv9qyFk0YdlQkPw1NHtDYwOh___r88mNavaeKlsX1JMevq17MLXz3pfx2upH89KdoATdALBMjY7r8MSLslZCr1d-VmVeQaLq7heHvgtLIHsZlyqeeqeqkznKE6piL9wHScVtIgVmdNSVJVJAOIQgjHxn0oVnOOw\",\n    \"expires_in\": 3600,\n    \"token_type\": \"Bearer\",\n    \"scope\": \"scope\"\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["connect","token"],"host":["xborder-uat","diamondtrustbank","co","ke"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3cf749f-a946-4fe6-91e4-76b150977160"},{"name":"Bank Payment Order Request","id":"d18fd15d-8635-4d7b-a1c4-c8843fb73396","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"originatorConversationId\": \"12211t21412vr434345545x\",\r\n  \"paymentNotes\": \"Transactions\",\r\n  \"paymentOrderLines\": [\r\n    {\r\n        \"remitter\": {\r\n            \"name\": \"John Doe\",\r\n            \"address\": \"USA\",\r\n            \"phoneNumber\": \"USA\",\r\n            \"idType\": \"USA\",\r\n            \"idNumber\": \"200000\",\r\n            \"country\": \"USA\",\r\n            \"ccy\": \"840\",\r\n            \"financialInstitution\": \"Bank\",\r\n            \"sourceOfFunds\": \"Business\",\r\n            \"principalActivity\": \"Business\",\r\n            \"dateOfBirth\":\"yyyy/mm/dd\",\r\n            \"idIssueDate\":\"yyyy/mm/dd\",\r\n            \"idIssuePlace\": \"Texas\",\r\n            \"idExpiryDate\":\"yyyy/mm/dd\",\r\n            \"nationality\" : \"American\"\r\n        },\r\n      \"recipient\": {\r\n        \"name\": \"John Doe\",\r\n        \"address\": \"Nyati\",\r\n        \"emailAddress\": \"kkhaliboy@gmail.com\",\r\n        \"phoneNumber\": \"\",\r\n        \"idType\": \"National ID\",\r\n        \"idNumber\": \"100000000\",\r\n        \"financialInstitution\": \"Bank\",\r\n        \"institutionIdentifier\": \"EQBLKENA\",\r\n        \"primaryAccountNumber\": \"0122000000\",\r\n        \"ccy\": 404,\r\n        \"country\": \"KE\",\r\n        \"purpose\": \"TEST\"\r\n      },\r\n      \"transaction\": {\r\n        \"routeId\": \"90d7e7a0-2a12-ec11-aaa1-c7e0fb8016f8\",\r\n        \"ChannelType\": 180,\r\n        \"amount\": 1111,\r\n        \"reference\": \"s1199111s5cdd12r32rwwewsuyitt\",\r\n        \"systemTraceAuditNumber\": \"22f323f3241s14sswwwin9uihjf\"\r\n      },\r\n       \"metaDataList\":[\r\n        {\r\n       \"key\": \"remitterPrimaryAccountNumber\",\r\n       \"value\":\"5643212450\" \r\n       }\r\n       ]\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://xborder-uat.diamondtrustbank.co.ke/v1/payment-order/new-order","description":"<p><strong>Note:</strong> A valid token is required for authentication as it expires after every hour. Refer to <code>Token Request</code> to generate a new <strong>token.</strong></p>\n<p><code>originatorConversationId</code> This a unique identifier of the request from the client</p>\n<p><code>paymentNotes</code> This a brief summary of the request</p>\n<p><strong>remitter:</strong> <strong>This information is only required for a Payment Remittance Company</strong></p>\n<hr />\n<p><code>name</code>: Name of the remitter</p>\n<p><code>contact</code>: Remitter's contact</p>\n<p><code>address:</code> Address of the remitter</p>\n<p><code>idType</code>: remitter Id type e.g. <strong>National ID, Passport</strong></p>\n<p><code>idNumber</code>: remitter Id type number</p>\n<p><code>country:</code>This is the remitter's <strong>ALPHA 2 code. Follow</strong> <a href=\"https://www.nationsonline.org/oneworld/country_code_list.htm#:~:text=ISO\">ALPHA</a> <strong>to learn more.</strong></p>\n<p><code>ccy</code>: Remitter's currency code</p>\n<p><code>financialInstitution</code>: Remitter's financial institution</p>\n<p><code>sourceOfFunds:</code> Remitter's source of funds</p>\n<p><code>principalActivity:</code> Remitter's principal activity</p>\n<p><code>dateOfBirth:</code>The birth date of the sender in the format <strong>yyyy/mm/dd</strong></p>\n<p><code>idIssueDate:</code>National identification card issue date of the sender in the format <strong>yyyy/mm/dd(This field is optional)</strong></p>\n<p><code>idIssuePlace:</code> Location where the national ID was issued <strong>(This field is optional)</strong></p>\n<p><code>idExpiryDate:</code> The expiration date of the national ID of the sender in the format <strong>yyyy/mm/dd(This field is optional)</strong></p>\n<p><code>nationality:</code> The country where the sender is from e.g. American</p>\n<hr />\n<p><strong>recipient:</strong> <strong>These are the recipient's details</strong></p>\n<hr />\n<p><code>name</code>: Name of recipient</p>\n<p><code>address:</code> Address of the recipient</p>\n<p><code>emailAddress:</code> Email address of the recipient</p>\n<p><code>contact:</code> Contact of the recipient</p>\n<p><code>idType:</code> Id type of the recipient</p>\n<p><code>idNumber:</code> Id number of the recipient</p>\n<p><code>financialInstitution:</code> Recipient financial institution</p>\n<p><code>institutionIdentifier:</code> An identifier of the recipient institution. This is <strong>mandatory</strong> for <strong>Bank payment order requests (IFT, RTGS and Pesalink). Bank uses BIC_Codes e.g. EQBLKENA.</strong></p>\n<p><code>primaryAccountNumber:</code>This is the account number being credited</p>\n<p><code>ccy:</code>This is the currency code of the recipient country</p>\n<p><code>country:</code>This is the recipient's <strong>ALPHA 2 code. Follow</strong> <a href=\"https://www.nationsonline.org/oneworld/country_code_list.htm#:~:text=ISO\">ALPHA</a> <strong>to learn more.</strong></p>\n<p><code>purpose:</code>This is the purpose of the transfer.</p>\n<hr />\n<p><strong>transaction:</strong> <strong>The following are the transaction details:</strong></p>\n<hr />\n<p><code>routeId</code>: Id of the route transaction to be used for the transaction.<strong>This id is generated from the FindTransactionRoutes request.</strong></p>\n<p><code>channelType</code>: This is the channel transaction type. It is received after querying the <strong>Find Transaction Routes request</strong></p>\n<p><code>amount</code>: Amount to be transferred</p>\n<p><code>reference</code>: A reference for the transaction</p>\n<p><code>systemTraceAuditNumber</code>: Unique identifier of the transaction from the client</p>\n<hr />\n<p><strong>metaDataList:</strong> <strong>The following are the metadata list details:</strong></p>\n<hr />\n<p><code>key</code>: The key is <code>remitterPrimaryAccountNumber</code>. This is a mandatory field that holds the key for the account that is to be <strong>debited</strong> for the transaction.</p>\n<p><code>value</code>: This holds the value of the account to be debited e.g. 231452360.</p>\n<p><strong>NOTE: For duplicate requests, the transaction will be accepted but instead expect a callback to be sent. Refer to the</strong> <strong><code>Sample Duplicate Callback Response</code></strong> <strong>for an example.</strong></p>\n<hr />\n<h2 id=\"sample-bank-request\">Sample Bank request</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"originatorConversationId\": \"fb60297a-c26f-4669-ab7a-c6598e4a595d\",\n  \"paymentNotes\": \"Transactions\",\n  \"paymentOrderLines\": [\n    {\n      \"remitter\": {\n        \"name\": \"Dean Muhando\",\n        \"address\": \"Kampala\",\n        \"phoneNumber\": \"+254743543212\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"25662882\",\n        \"country\": \"UG\",\n        \"ccy\": 800,\n        \"financialInstitution\": \"68000\",\n        \"sourceOfFunds\": \"Loan\",\n        \"principalActivity\": \"Business\",\n        \"institutionIdentifier\":\"404\",\n        \"nationality\":\"KENYAN\",\n        \"dateOfBirth\":\"24-02-1998\"\n      },\n      \"recipient\": {\n        \"name\": \"Gigi Buffon\",\n        \"address\": \"Westlands\",\n        \"emailAddress\": \"dboysss@gmail.com\",\n        \"phoneNumber\": \"+254743354635\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"28475979\",\n        \"financialInstitution\": \"68000\",\n        \"primaryAccountNumber\": \"0170197176640\",\n        \"mccmnc\": \"63902\",\n        \"ccy\": 404,\n        \"country\" : \"KE\",\n        \"purpose\": \"Salary\",\n         \"institutionIdentifier\":\"EQBLKENA\"\n      },\n      \"transaction\": {\n        \"routeId\": \"b44baada-a9ea-ef11-a051-0afb36a7659f\",\n        \"ChannelType\": 180,\n        \"amount\": 100,\n        \"reference\": \"testing\",\n        \"systemTraceAuditNumber\": \"a561069d-28b6-4c41-899e-228b942be476\"\n      },\n       \"metaDataList\":[\n        {\n       \"key\": \"remitterPrimaryAccountNumber\",\n       \"value\":\"5643212450\" \n       }\n    ]      \n    }\n  ]\n}\n\n</code></pre>\n<h2 id=\"sample-success-response\">Sample success response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": {\n    \"appDomainName\": \"LIVE\",\n    \"systemConversationId\": \"16780000-a97d-3024-8e07-08d93713929d\",\n    \"originatorConversationId\": \"origiqjwwqwqnnmqeqersationId\",\n    \"remarks\": \"order submission accepted\",\n    \"timestamp\": \"2021-06-24T13:25:49.5292326Z\"\n  }\n}\n\n</code></pre>\n<h2 id=\"sample-failed-response\">Sample failed response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"appDomainName\": \"LIVE\",\n    \"timestamp\": \"2022-02-11T10:13:11.2483928Z\",\n    \"systemConversationId\": \"16780000-a97d-3024-98a9-08d9ed471bab\",\n    \"originatorConversationId\": \"W93323321ei4455t40093334xxiuigggtey\",\n    \"errors\": [\n        {\n            \"field\": \"OriginatorConversationId\",\n            \"message\": \"duplicate originator conversation id 'W93323321ei4455t40093334xxiuigggtey'\"\n        }\n    ]\n}\n\n</code></pre>\n<h2 id=\"sample-validation-errors-response\">Sample validation errors response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"appDomainName\": \"LIVE\",\n    \"status\": \"BadRequest\",\n    \"timestamp\": \"2022-02-11T10:13:11.2483928Z\",\n    \"systemConversationId\": \"16780000-a97d-3024-98a9-08d9ed471bab\",\n    \"originatorConversationId\": \"W93323321ei4455t40093334xxiuigggtey\",\n    \"errors\": [\n          {\n             \"field\": \"PaymentOrderLines[0].Recipient\",\n             \"message\": \"The Recipient field is required.\"\n          }\n      ]\n}\n\n</code></pre>\n<h2 id=\"sample-duplicate-callback-response\">Sample Duplicate callback response</h2>\n<p><strong>Kindly note the following will be the response in case a duplicate request is sent. The details will be seen under the</strong> <strong><code>transcationOutcome</code></strong> <strong>part of the callback.</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"00000000-0000-0000-0000-000000000000\",\n    \"customerId\": \"f45eca19-d0df-eb11-aa67-8d094e8aa279\",\n    \"isEnabled\": false,\n    \"remarks\": null,\n    \"conversationId\": null,\n    \"originatorConversationId\": \"UA5L3LSL53W5P07KWG54\",\n    \"dueDate\": \"0001-01-01T00:00:00\",\n    \"dateApproved\": null,\n    \"dateRejected\": null,\n    \"isProcessed\": false,\n    \"dateProcessed\": null,\n    \"recordStatus\": 0,\n    \"createdBy\": null,\n    \"createdDate\": \"2022-04-28T14:52:57.1131933+03:00\",\n    \"orderLines\": [\n        {\n            \"remitter\": {\n                \"name\": null,\n                \"address\": null,\n                \"phoneNumber\": null,\n                \"idType\": null,\n                \"idNumber\": null,\n                \"idIssuePlace\": null,\n                \"idIssueDate\": null,\n                \"idExpireDate\": null,\n                \"country\": null,\n                \"nationality\": null,\n                \"ccy\": null,\n                \"financialInstitution\": null,\n                \"sourceOfFunds\": null,\n                \"principalActivity\": null,\n                \"dateOfBirth\": null\n            },\n            \"recipient\": {\n                \"name\": \"John Doe\",\n                \"address\": \"28 Nii sackey street\",\n                \"emailAddress\": \"test@gmail.com\",\n                \"phoneNumber\": \"+254700000000\",\n                \"mccmnc\": \"63902\",\n                \"idType\": \"National Id\",\n                \"idNumber\": \"10000000\",\n                \"primaryAccountNumber\": \"+254713771963\",\n                \"financialInstitution\": \"Business\",\n                \"institutionIdentifier\": null,\n                \"ccy\": \"404\",\n                \"purpose\": \"Withdraw Amount from wallet\",\n                \"country\": null\n            },\n            \"transaction\": {\n                \"routeId\": \"dadcb601-7089-ec11-ab85-0ee00e897f52\",\n                \"amount\": 200,\n                \"reference\": \"16000000000\",\n                \"systemTraceAuditNumber\": \"UA5L3LSL53W5P07KWG54\",\n                \"type\": 0,\n                \"channelType\": 0,\n                \"customerAccountNo\": null,\n                \"routeTransactionTypeId\": \"00000000-0000-0000-0000-000000000000\"\n            },\n            \"transactionOutcome\": {\n                \"id\": \"00000000-0000-0000-0000-000000000000\",\n                \"paymentAmount\": 0,\n                \"feeAmount\": 0,\n                \"trackingNumber\": null,\n                \"transactionStatus\": 6,\n                \"transactionStatusDescription\": \"Failed\",\n                \"workingAccountAvailableFunds\": 0,\n                \"utilityAccountAvailableFunds\": 0,\n                \"transactionDate\": null,\n                \"transactionCreditParty\": null,\n                \"resultCode\": \"9\",\n                \"resultCodeDescription\": \"Duplicate transaction\",\n                \"thirdPartyPayload\": null,\n                \"createdDate\": \"2022-04-28T14:52:57.1131933+03:00\"\n            }\n        }\n    ]\n}\n\n</code></pre>\n<h2 id=\"sample-callback-response\">Sample callback response</h2>\n<p><strong>NOTE: There are particular fields to note in the callback response incase there is a</strong> <strong><code>failed</code></strong> <strong>status in the</strong> <strong><code>transactionStatus</code></strong> <strong>field:</strong></p>\n<p><code>resultCode:</code>This is the code shown as defined under the <em><strong>Error Codes</strong></em> section</p>\n<p><code>resultDescription:</code>This is the description of the <strong>resultCode</strong></p>\n<p><code>thirdPartyPayload:</code>This body contains fields that gives the exact <strong>resultCode</strong> and <strong>resultDescription</strong> from the third party e.g M-Pesa as shown above. The fields are <code>thirdPartyResultCode</code> and <code>thirdPartyResultDescription</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": \"0c16c3a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"customerId\": \"a393c67c-158b-ec11-ab86-0ee00e897f52\",\n  \"isEnabled\": true,\n  \"remarks\": \"ERTU67897RQQEQ\",\n  \"conversationId\": \"908cb9a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"originatorConversationId\": \"8f8cb9a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"dueDate\": \"2022-03-21T00:00:00\",\n  \"dateApproved\": null,\n  \"dateRejected\": null,\n  \"isProcessed\": true,\n  \"dateProcessed\": \"2022-03-19T07:32:04.3\",\n  \"recordStatus\": 2,\n  \"createdBy\": \"Flavian\",\n  \"createdDate\": \"2022-03-19T07:31:55.85\",\n  \"orderLines\": [\n     {\n      \"remitter\": {\n        \"name\": \"John Gram\",\n        \"address\": \"USA\",\n        \"phoneNumber\": \"1-900-99300000\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"2000000\",\n        \"country\": \"USA\",\n        \"ccy\": 404,\n        \"financialInstitution\": \"Bank\",\n        \"sourceOfFunds\": \"Business\",\n        \"principalActivity\": \"Business\"\n      },\n      {\n      \"recipient\": {\n        \"name\": \"John Doe\",\n        \"address\": \"Nyati\",\n        \"emailAddress\": \"jjdoe@gmail.com\",\n        \"phoneNumber\": \"\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"2000000\",\n        \"financialInstitution\": \"Bank\",\n        \"primaryAccountNumber\": \"102000000\",\n        \"mccmnc\": \"63902\",\n        \"ccy\": 404,\n        \"country\": \"KE\",\n        \"purpose\": \"TEST\"\n      },\n      \"transaction\": {\n        \"routeId\": \"b1b67c98-84a6-ec11-ab96-0ee00e897f52\",\n        \"amount\": 10,\n        \"reference\": \"ERTU67897RQQEQ\",\n        \"systemTraceAuditNumber\": \"0d4b10f3-e679-4a75-b737-11d7d8600fac\",\n        \"type\": 0,\n        \"channelType\": 0,\n        \"customerAccountNo\": null,\n        \"routeTransactionTypeId\": \"00000000-0000-0000-0000-000000000000\"\n      },\n      \"transactionOutcome\": {\n        \"id\": \"0e16c3a6-56a7-ec11-ab96-0ee00e897f52\",\n        \"paymentAmount\": 10,\n        \"feeAmount\": 2,\n        \"trackingNumber\": \"5O18CE9I\",\n        \"transactionStatus\": 4,\n        \"transactionStatusDescription\": \"Completed\",\n        \"workingAccountAvailableFunds\": 0,\n        \"utilityAccountAvailableFunds\": 0,\n        \"transactionDate\": \"20220319073158\",\n        \"transactionCreditParty\": null,\n        \"resultCode\": \"0\",\n        \"resultCodeDescription\": \"Success\",\n        \"thirdPartyPayload\": {\n          \"thirdPartyResultCode\": \"0\",\n          \"thirdPartyResultCodeDescription\": \"Transaction processed successfully.\",\n          \"thirdPartyReceiptNumber\": null\n        },\n        \"createdDate\": \"2022-03-19T07:31:55.85\"\n      }\n    }\n  ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","payment-order","new-order"],"host":["xborder-uat","diamondtrustbank","co","ke"],"query":[],"variable":[]}},"response":[],"_postman_id":"d18fd15d-8635-4d7b-a1c4-c8843fb73396"},{"name":"Mobile Payment Order Request","id":"7718181a-c004-43a6-b420-b0e2be2f1dfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"originatorConversationId\": \"12211t21412vr434345545x\",\r\n  \"paymentNotes\": \"Transactions\",\r\n  \"paymentOrderLines\": [\r\n    {\r\n        \"remitter\": {\r\n            \"name\": \"John Doe\",\r\n            \"address\": \"USA\",\r\n            \"phoneNumber\": \"USA\",\r\n            \"idType\": \"USA\",\r\n            \"idNumber\": \"200000\",\r\n            \"country\": \"USA\",\r\n            \"ccy\": \"840\",\r\n            \"financialInstitution\": \"Bank\",\r\n            \"sourceOfFunds\": \"Business\",\r\n            \"principalActivity\": \"Business\",\r\n            \"dateOfBirth\":\"yyyy/mm/dd\",\r\n            \"idIssueDate\":\"yyyy/mm/dd\",\r\n            \"idIssuePlace\": \"Texas\",\r\n            \"idExpiryDate\":\"yyyy/mm/dd\",\r\n            \"nationality\" : \"American\"\r\n        },\r\n      \"recipient\": {\r\n        \"name\": \"John Doe\",\r\n        \"address\": \"Nyati\",\r\n        \"emailAddress\": \"kkhaliboy@gmail.com\",\r\n        \"phoneNumber\": \"\",\r\n        \"idType\": \"National ID\",\r\n        \"idNumber\": \"28475979\",\r\n        \"financialInstitution\": \"Mpesa\",\r\n        \"primaryAccountNumber\": \"+254714789009\",\r\n        \"mccmnc\": \"63902\",\r\n        \"ccy\": 404,\r\n        \"country\": \"KE\",\r\n        \"purpose\": \"TEST\"\r\n      },\r\n      \"transaction\": {\r\n        \"routeId\": \"90d7e7a0-2a12-ec11-aaa1-c7e0fb8016f8\",\r\n        \"channelType\": 182,\r\n        \"amount\": 1111,\r\n        \"reference\": \"s1199111s5cdd12r32rwwewsuyitt\",\r\n        \"systemTraceAuditNumber\": \"22f323f3241s14sswwwin9uihjf\"\r\n      },\r\n       \"metaDataList\":[\r\n        {\r\n       \"key\": \"remitterPrimaryAccountNumber\",\r\n       \"value\":\"5643212450\" \r\n       }\r\n       ]\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://xborder-uat.diamondtrustbank.co.ke/v1/payment-order/new-order","description":"<p><strong>Note:</strong> A valid token is required for authentication as it expires after every hour. Refer to <code>Token Request</code> to generate a new <strong>token.</strong></p>\n<p><code>originatorConversationId</code> This a unique identifier of the request from the client</p>\n<p><code>paymentNotes</code> This a brief summary of the request</p>\n<p><strong>remitter:</strong> <strong>This information is only required for a Payment Remittance Company</strong></p>\n<hr />\n<p><code>name</code>: Name of the remitter</p>\n<p><code>contact</code>: Remitter's contact</p>\n<p><code>address:</code> Address of the remitter</p>\n<p><code>idType</code>: remitter Id type e.g. <strong>National ID, Passport</strong></p>\n<p><code>idNumber</code>: remitter Id type number</p>\n<p><code>country:</code>This is the remitter's <strong>ALPHA 2 code. Follow</strong> <a href=\"https://www.nationsonline.org/oneworld/country_code_list.htm#:~:text=ISO\">ALPHA</a> <strong>to learn more.</strong></p>\n<p><code>ccy</code>: Remitter's currency code</p>\n<p><code>financialInstitution</code>: Remitter's financial institution</p>\n<p><code>sourceOfFunds:</code> Remitter's source of funds</p>\n<p><code>principalActivity:</code> Remitter's principal activity</p>\n<p><code>dateOfBirth:</code>The birth date of the sender in the format <strong>yyyy/mm/dd</strong></p>\n<p><code>idIssueDate:</code>National identification card issue date of the sender in the format <strong>yyyy/mm/dd(This field is optional)</strong></p>\n<p><code>idIssuePlace:</code> Location where the national ID was issued <strong>(This field is optional)</strong></p>\n<p><code>idExpiryDate:</code> The expiration date of the national ID of the sender in the format <strong>yyyy/mm/dd(This field is optional)</strong></p>\n<p><code>nationality:</code> The country where the sender is from e.g. American</p>\n<hr />\n<p><strong>recipient:</strong> <strong>These are the recipient's details</strong></p>\n<hr />\n<p><code>name</code>: Name of recipient</p>\n<p><code>address:</code> Address of the recipient</p>\n<p><code>emailAddress:</code> Email address of the recipient</p>\n<p><code>contact:</code> Contact of the recipient</p>\n<p><code>idType:</code> Id type of the recipient</p>\n<p><code>idNumber:</code> Id number of the recipient</p>\n<p><code>mccmnc:</code>Mobile country code. Follow this link, <a href=\"https://www.msisdn.net/list-of-mcc-mnc/\">MCCMNC</a>, to find out more about the codes. Only <strong>mandatory</strong> for <strong>Mobile payment order requests.</strong></p>\n<p><code>financialInstitution:</code> Recipient financial institution</p>\n<p><code>institutionIdentifier:</code> An identifier of the recipient institution.</p>\n<p><code>primaryAccountNumber:</code>This is the account number (phone number) being credited</p>\n<p><code>ccy:</code>This is the currency code of the recipient</p>\n<p><code>country:</code>This is the recipient's <strong>ALPHA 2 code. Follow</strong> <a href=\"https://www.nationsonline.org/oneworld/country_code_list.htm#:~:text=ISO\">ALPHA</a> <strong>to learn more.</strong></p>\n<p><code>purpose:</code>This is the purpose of the transfer.</p>\n<hr />\n<p><strong>transaction:</strong> <strong>The following are the transaction details:</strong></p>\n<hr />\n<p><code>routeId</code>: Id of the route transaction to be used for the transaction.<strong>This id is generated from the FindTransactionRoutes request.</strong></p>\n<p><code>channelType</code>: This is the channel transaction type. It is received after querying the <strong>Find Transaction Routes request</strong></p>\n<p><code>amount</code>: Amount to be transferred</p>\n<p><code>reference</code>: A reference for the transaction</p>\n<p><code>systemTraceAuditNumber</code>: Unique identifier of the transaction from the client</p>\n<hr />\n<p><strong>metaDataList:</strong> <strong>The following are the metadata list details:</strong></p>\n<hr />\n<p><code>key</code>: The key is <code>remitterPrimaryAccountNumber</code>. This is a mandatory field that holds the key for the account that is to be <strong>debited</strong> for the transaction.</p>\n<p><code>value</code>: This holds the value of the account to be debited e.g. 231452360.</p>\n<p><strong>NOTE: For duplicate requests, the transaction will be accepted but instead expect a callback to be sent. Refer to the</strong> <strong><code>Sample Duplicate Callback Response</code></strong> <strong>for an example.</strong></p>\n<hr />\n<h2 id=\"sample-mobile-request\">Sample mobile request</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"originatorConversationId\": \"12211t21412vr434345545x\",\n  \"paymentNotes\": \"Transactions\",\n  \"paymentOrderLines\": [\n    {\n        \"remitter\": {\n            \"name\": \"John Doe\",\n            \"address\": \"USA\",\n            \"phoneNumber\": \"USA\",\n            \"idType\": \"USA\",\n            \"idNumber\": \"200000\",\n            \"country\": \"USA\",\n            \"ccy\": \"840\",\n            \"financialInstitution\": \"Bank\",\n            \"sourceOfFunds\": \"Business\",\n            \"principalActivity\": \"Business\",\n            \"dateOfBirth\":\"yyyy/mm/dd\",\n            \"idIssueDate\":\"yyyy/mm/dd\",\n            \"idIssuePlace\": \"Texas\",\n            \"idExpiryDate\":\"yyyy/mm/dd\",\n            \"nationality\" : \"American\"\n        },\n      \"recipient\": {\n        \"name\": \"John Doe\",\n        \"address\": \"Nyati\",\n        \"emailAddress\": \"kkhaliboy@gmail.com\",\n        \"phoneNumber\": \"\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"28475979\",\n        \"financialInstitution\": \"Mpesa\",\n        \"primaryAccountNumber\": \"+254714789009\",\n        \"mccmnc\": \"63902\",\n        \"ccy\": 404,\n        \"country\": \"KE\",\n        \"purpose\": \"TEST\"\n      },\n      \"transaction\": {\n        \"routeId\": \"90d7e7a0-2a12-ec11-aaa1-c7e0fb8016f8\",\n        \"channelType\": 1,\n        \"customerAccountNo\":\"12323242433\",\n        \"amount\": 1111,\n        \"reference\": \"s1199111s5cdd12r32rwwewsuyitt\",\n        \"systemTraceAuditNumber\": \"22f323f3241s14sswwwin9uihjf\"\n      },     \n       \"metaDataList\":[\n        {\n       \"key\": \"remitterPrimaryAccountNumber\",\n       \"value\":\"5643212450\" \n       }\n    }\n  ]\n}\n\n</code></pre>\n<h2 id=\"sample-success-response\">Sample success response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"message\": {\n    \"appDomainName\": \"LIVE\",\n    \"systemConversationId\": \"16780000-a97d-3024-8e07-08d93713929d\",\n    \"originatorConversationId\": \"origiqjwwqwqnnmqeqersationId\",\n    \"remarks\": \"order submission accepted\",\n    \"timestamp\": \"2021-06-24T13:25:49.5292326Z\"\n  }\n}\n\n</code></pre>\n<h2 id=\"sample-failed-response\">Sample failed response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"appDomainName\": \"LIVE\",\n    \"timestamp\": \"2022-02-11T10:13:11.2483928Z\",\n    \"systemConversationId\": \"16780000-a97d-3024-98a9-08d9ed471bab\",\n    \"originatorConversationId\": \"W93323321ei4455t40093334xxiuigggtey\",\n    \"errors\": [\n        {\n            \"field\": \"OriginatorConversationId\",\n            \"message\": \"duplicate originator conversation id 'W93323321ei4455t40093334xxiuigggtey'\"\n        }\n    ]\n}\n\n</code></pre>\n<h2 id=\"sample-validation-errors-response\">Sample validation errors response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"appDomainName\": \"LIVE\",\n    \"status\": \"BadRequest\",\n    \"timestamp\": \"2022-02-11T10:13:11.2483928Z\",\n    \"systemConversationId\": \"16780000-a97d-3024-98a9-08d9ed471bab\",\n    \"originatorConversationId\": \"W93323321ei4455t40093334xxiuigggtey\",\n    \"errors\": [\n          {\n             \"field\": \"PaymentOrderLines[0].Recipient\",\n             \"message\": \"The Recipient field is required.\"\n          }\n      ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","payment-order","new-order"],"host":["xborder-uat","diamondtrustbank","co","ke"],"query":[],"variable":[]}},"response":[],"_postman_id":"7718181a-c004-43a6-b420-b0e2be2f1dfd"},{"name":"Reject Order By OriginatorConversationId","id":"c3780a3e-6ff6-4419-a44c-021340004ae2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://xborder-uat.diamondtrustbank.co.ke/v1/payment-order/reject-order?OriginatorConversationId=61d8824a-0053-4286-8993-23c45ae1646e","description":"<p>This request is used to reject an order already posted using a specified <code>originatorConversationId</code></p>\n<p><strong>NOTE: This can only be done for transactions in</strong> <strong><code>Pending</code></strong> <strong>or</strong> <strong><code>Queued</code></strong> <strong>state (refer to the</strong> <strong><code>Transaction Status Types</code></strong> <strong>table)</strong>. <strong>For bulk transactions, we can only reject the ones that fit the given criteria.</strong></p>\n<h2 id=\"sample-response\">Sample response</h2>\n<p><code>originatorConversationId</code> This a unique identifier of the request from the client</p>\n<p><code>transactionStatus</code>: This is the value representing the state of the transaction (refer to the <strong>Transaction Status Types</strong> table)</p>\n<p><code>transactionDescription:</code> This describes the <code>transactionStatus</code> value.</p>\n<p><code>resultCode</code>: It is the code representing the result of the reject process.</p>\n<p><code>resultCodeDescription</code>: It describes the <code>resultCode</code> value</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"paymentOrderlines\": [\n        {\n            \"originatorConversationId\": \"61d8824a-0053-4286-8993-23c45ae1646e\",\n            \"transactionStatus\": 7,\n            \"transactionStatusDescription\": \"Rejected\",\n            \"resultCode\": \"1\",\n            \"resultCodeDescription\": \"Transaction cannot be rejected on current status\"\n        }\n    ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","payment-order","reject-order"],"host":["xborder-uat","diamondtrustbank","co","ke"],"query":[{"key":"OriginatorConversationId","value":"61d8824a-0053-4286-8993-23c45ae1646e"}],"variable":[]}},"response":[],"_postman_id":"c3780a3e-6ff6-4419-a44c-021340004ae2"},{"name":"Find Payment Order By OriginatorConversationId","id":"9c3e683c-884d-49d4-941e-32dd848ec326","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://xborder-uat.diamondtrustbank.co.ke/v1/payment-order/check-status?Id=61d8824a-0053-4286-8993-23c45ae1646e&IdType=OriginatorConversationId","description":"<p>This request returns an order based on the <code>Id</code> which is the unique identifier that you provide with every <code>PostPaymentOrder</code> request together with the <code>IdType</code> which specifies the type of the Id to be passed. For this case <code>IdType</code> will be the <strong>OriginatorConversationId</strong>.</p>\n<h2 id=\"sample-error-response\">Sample error response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"appDomainName\": \"LIVE\",\n    \"status\": 400,\n    \"timestamp\": \"2022-02-11T10:13:11.2483928Z\",\n    \"systemConversationId\": \"16780000-a97d-3024-98a9-08d9ed471bab\",\n    \"originatorConversationId\": \"61d8824a-0053-4286-8993-23c45ae1646e\",\n    \"errors\": [\n        {\n            \"field\": \"Id\",\n            \"message\": \"The Id field is required.\"\n        }\n    ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","payment-order","check-status"],"host":["xborder-uat","diamondtrustbank","co","ke"],"query":[{"key":"Id","value":"61d8824a-0053-4286-8993-23c45ae1646e"},{"key":"IdType","value":"OriginatorConversationId"}],"variable":[]}},"response":[],"_postman_id":"9c3e683c-884d-49d4-941e-32dd848ec326"},{"name":"Callback","id":"425d544a-8778-4b66-9c49-312a25adc7c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"","description":"<p>This is the response that is sent to the partner for a transaction in its final status.</p>\n<p><strong>NOTE: There are particular fields to note in the callback response incase there is a</strong> <strong><code>failed</code></strong> <strong>status in the</strong> <strong><code>transactionStatus</code></strong> <strong>field:</strong></p>\n<p><code>resultCode:</code>This is the code shown as defined under the <em><strong>Error Codes</strong></em> section</p>\n<p><code>resultDescription:</code>This is the description of the <strong>resultCode</strong></p>\n<p><code>thirdPartyPayload:</code>This body contains fields that gives the exact <strong>resultCode</strong> and <strong>resultDescription</strong> from the third party e.g M-Pesa as shown above. The fields are <code>thirdPartyResultCode</code> and <code>thirdPartyResultDescription</code></p>\n<h2 id=\"sample-callback-response\">Sample callback response</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"id\": \"0c16c3a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"customerId\": \"a393c67c-158b-ec11-ab86-0ee00e897f52\",\n  \"isEnabled\": true,\n  \"remarks\": \"ERTU67897RQQEQ\",\n  \"conversationId\": \"908cb9a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"originatorConversationId\": \"8f8cb9a6-56a7-ec11-ab96-0ee00e897f52\",\n  \"dueDate\": \"2022-03-21T00:00:00\",\n  \"dateApproved\": null,\n  \"dateRejected\": null,\n  \"isProcessed\": true,\n  \"dateProcessed\": \"2022-03-19T07:32:04.3\",\n  \"recordStatus\": 2,\n  \"createdBy\": \"Flavian\",\n  \"createdDate\": \"2022-03-19T07:31:55.85\",\n  \"orderLines\": [\n     {\n      \"remitter\": {\n        \"name\": \"John Gram\",\n        \"address\": \"USA\",\n        \"phoneNumber\": \"1-900-99300000\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"2000000\",\n        \"country\": \"USA\",\n        \"ccy\": 404,\n        \"financialInstitution\": \"Bank\",\n        \"sourceOfFunds\": \"Business\",\n        \"principalActivity\": \"Business\"\n      },\n      {\n      \"recipient\": {\n        \"name\": \"John Doe\",\n        \"address\": \"Nyati\",\n        \"emailAddress\": \"jjdoe@gmail.com\",\n        \"phoneNumber\": \"\",\n        \"idType\": \"National ID\",\n        \"idNumber\": \"2000000\",\n        \"financialInstitution\": \"Mpesa\",\n        \"primaryAccountNumber\": \"+254714000000\",\n        \"mccmnc\": \"63902\",\n        \"ccy\": 404,\n        \"country\": \"KE\",\n        \"purpose\": \"TEST\"\n      },\n      \"transaction\": {\n        \"routeId\": \"b1b67c98-84a6-ec11-ab96-0ee00e897f52\",\n        \"amount\": 10,\n        \"reference\": \"ERTU67897RQQEQ\",\n        \"systemTraceAuditNumber\": \"0d4b10f3-e679-4a75-b737-11d7d8600fac\",\n        \"type\": 0,\n        \"channelType\": 0,\n        \"customerAccountNo\": null,\n        \"routeTransactionTypeId\": \"00000000-0000-0000-0000-000000000000\"\n      },\n      \"transactionOutcome\": {\n        \"id\": \"0e16c3a6-56a7-ec11-ab96-0ee00e897f52\",\n        \"paymentAmount\": 10,\n        \"feeAmount\": 2,\n        \"trackingNumber\": \"5O18CE9I\",\n        \"transactionStatus\": 4,\n        \"transactionStatusDescription\": \"Completed\",\n        \"workingAccountAvailableFunds\": 0,\n        \"utilityAccountAvailableFunds\": 0,\n        \"transactionDate\": \"20220319073158\",\n        \"transactionCreditParty\": null,\n        \"resultCode\": \"0\",\n        \"resultCodeDescription\": \"Success\",\n        \"thirdPartyPayload\": {\n          \"thirdPartyResultCode\": \"0\",\n          \"thirdPartyResultCodeDescription\": \"Transaction processed successfully.\",\n          \"thirdPartyReceiptNumber\": null\n        },\n        \"createdDate\": \"2022-03-19T07:31:55.85\"\n      }\n    }\n  ]\n}\n\n</code></pre>\n<h2 id=\"sample-duplicate-callback-response\">Sample Duplicate callback response</h2>\n<p><strong>Kindly note the following will be the response in case a duplicate request is sent. The details will be seen under the</strong> <strong><code>transcationOutcome</code></strong> <strong>part of the callback.</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"00000000-0000-0000-0000-000000000000\",\n    \"customerId\": \"f45eca19-d0df-eb11-aa67-8d094e8aa279\",\n    \"isEnabled\": false,\n    \"remarks\": null,\n    \"conversationId\": null,\n    \"originatorConversationId\": \"UA5L3LSL53W5P07KWG54\",\n    \"dueDate\": \"0001-01-01T00:00:00\",\n    \"dateApproved\": null,\n    \"dateRejected\": null,\n    \"isProcessed\": false,\n    \"dateProcessed\": null,\n    \"recordStatus\": 0,\n    \"createdBy\": null,\n    \"createdDate\": \"2022-04-28T14:52:57.1131933+03:00\",\n    \"orderLines\": [\n        {\n            \"remitter\": {\n                \"name\": null,\n                \"address\": null,\n                \"phoneNumber\": null,\n                \"idType\": null,\n                \"idNumber\": null,\n                \"idIssuePlace\": null,\n                \"idIssueDate\": null,\n                \"idExpireDate\": null,\n                \"country\": null,\n                \"nationality\": null,\n                \"ccy\": null,\n                \"financialInstitution\": null,\n                \"sourceOfFunds\": null,\n                \"principalActivity\": null,\n                \"dateOfBirth\": null\n            },\n            \"recipient\": {\n                \"name\": \"John Doe\",\n                \"address\": \"28 Nii sackey street\",\n                \"emailAddress\": \"test@gmail.com\",\n                \"phoneNumber\": \"+254700000000\",\n                \"mccmnc\": \"63902\",\n                \"idType\": \"National Id\",\n                \"idNumber\": \"10000000\",\n                \"primaryAccountNumber\": \"+254713771963\",\n                \"financialInstitution\": \"Business\",\n                \"institutionIdentifier\": null,\n                \"ccy\": \"404\",\n                \"purpose\": \"Withdraw Amount from wallet\",\n                \"country\": null\n            },\n            \"transaction\": {\n                \"routeId\": \"dadcb601-7089-ec11-ab85-0ee00e897f52\",\n                \"amount\": 200,\n                \"reference\": \"16000000000\",\n                \"systemTraceAuditNumber\": \"UA5L3LSL53W5P07KWG54\",\n                \"type\": 0,\n                \"channelType\": 0,\n                \"customerAccountNo\": null,\n                \"routeTransactionTypeId\": \"00000000-0000-0000-0000-000000000000\"\n            },\n            \"transactionOutcome\": {\n                \"id\": \"00000000-0000-0000-0000-000000000000\",\n                \"paymentAmount\": 0,\n                \"feeAmount\": 0,\n                \"trackingNumber\": null,\n                \"transactionStatus\": 6,\n                \"transactionStatusDescription\": \"Failed\",\n                \"workingAccountAvailableFunds\": 0,\n                \"utilityAccountAvailableFunds\": 0,\n                \"transactionDate\": null,\n                \"transactionCreditParty\": null,\n                \"resultCode\": \"9\",\n                \"resultCodeDescription\": \"Duplicate transaction\",\n                \"thirdPartyPayload\": null,\n                \"createdDate\": \"2022-04-28T14:52:57.1131933+03:00\"\n            }\n        }\n    ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[],"_postman_id":"425d544a-8778-4b66-9c49-312a25adc7c8"},{"name":"Find Transaction Routes","id":"863d4394-ee57-4556-8bd6-d0d00466896e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://xborder-uat.diamondtrustbank.co.ke/v1/transaction-routes/assigned-routes","description":"<h1 id></h1>\n<p><a href=\"#transaction-routes-1\"></a></p>\n<p>This is a <strong>GET</strong> request that returns a list of transaction routes that you currently have setup</p>\n<h2 id=\"sample-success-response\">Sample success response:</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"routes\": [\n        {\n            \"id\": \"b44baada-a9ea-ef11-a051-0afb36a7659f\",\n            \"category\": \"1\",\n            \"categoryDescription\": \"Bank Transfer\",\n            \"transactionTypeId\": \"8399bb51-2de9-ef11-a051-0afb36a7659f\",\n            \"categoryIsEnabled\": true,\n            \"routeIntergration\": \"DTB\",\n            \"country\": \"KENYA\",\n            \"routeIsActive\": true,\n            \"channelTypes\": [\n                {\n                    \"channelType\": 180,\n                    \"channelDescription\": \"DTB-Pesalink\"\n                },\n                {\n                    \"channelType\": 181,\n                    \"channelDescription\": \"DTB-IFT\"\n                },\n                {\n                    \"channelType\": 182,\n                    \"channelDescription\": \"DTB-Mpesa-B2C\"\n                }\n            ]\n        }\n    ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["v1","transaction-routes","assigned-routes"],"host":["xborder-uat","diamondtrustbank","co","ke"],"query":[],"variable":[]}},"response":[],"_postman_id":"863d4394-ee57-4556-8bd6-d0d00466896e"},{"name":"Health Check","id":"bd6fcd5a-e38f-4e1e-9665-38e5d1900932","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://xborder-uat.diamondtrustbank.co.ke/api_health_check","description":"<p>Ensures the functionality of all the API endpoints</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","id":"3ebaa839-5643-4f3d-bd0b-43cca7048839","name":"DTB API Documentation","type":"collection"}},"urlObject":{"protocol":"https","path":["api_health_check"],"host":["xborder-uat","diamondtrustbank","co","ke"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd6fcd5a-e38f-4e1e-9665-38e5d1900932"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"9bc79168-e611-426a-b92c-51f4c7c75cae","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a399b313-4b79-4d66-9715-a9b8471e0275","type":"text/javascript","exec":[""]}}],"variable":[{"key":"test_url","value":"https://sandboxapi.zamupay.com","type":"string"},{"key":"test_token_url","value":"http://54.224.92.175:10001","type":"string"}]}