Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/yml8 #26

Open
wants to merge 98 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
e9bfe34
customisation for initial CT tests
chrisk2020 Oct 16, 2019
375ee84
update example errors section
chrisk2020 Oct 16, 2019
bf6447a
update our api doc example
chrisk2020 Oct 16, 2019
af208f1
re-order bash/ js
chrisk2020 Oct 17, 2019
ec878c2
Update CNAME
Oct 17, 2019
a0265cb
Update CNAME
Oct 17, 2019
535c970
update cname
chrisk2020 Oct 17, 2019
8555f82
Merge branch 'master' into develop
chrisk2020 Oct 17, 2019
db2c3e9
Merge pull request #1 from clear-treasury/develop
chrisk2020 Oct 17, 2019
ed5ac00
publish to GH pages
chrisk2020 Oct 17, 2019
3667c00
Merge pull request #2 from clear-treasury/develop
chrisk2020 Oct 17, 2019
2a96a78
update intro
chrisk2020 Oct 17, 2019
68fd891
add json response examples
chrisk2020 Oct 17, 2019
5a7c74f
build
chrisk2020 Oct 17, 2019
0b5ec6b
align code samples to sections
chrisk2020 Oct 17, 2019
056883c
update favicon image
chrisk2020 Oct 17, 2019
2e5e7b5
Merge pull request #3 from clear-treasury/develop
chrisk2020 Oct 17, 2019
7bf72a4
Update CNAME
Oct 18, 2019
fa13953
update with jeans input on authentication
chrisk2020 Oct 18, 2019
307c0f9
Merge pull request #4 from clear-treasury/develop
chrisk2020 Oct 18, 2019
fa724c4
update documentation based from swagger/ generated docs
chrisk2020 Dec 5, 2019
b7e9b8f
clarify BookQuote
chrisk2020 Dec 5, 2019
5da36fe
build docs
chrisk2020 Dec 5, 2019
fefd618
Merge pull request #5 from clear-treasury/develop
chrisk2020 Dec 5, 2019
965d03e
remove webhooks from docs
chrisk2020 Dec 5, 2019
ade7aed
Merge pull request #6 from clear-treasury/develop
chrisk2020 Dec 5, 2019
8029587
Update all docs to latest generated
rpowis Jan 16, 2020
819f5b1
Link error code 418 to MDN page explaining it
rpowis Jan 16, 2020
36467fa
Build and deploy
rpowis Jan 16, 2020
3efb077
Update deploy config
rpowis Jan 16, 2020
05c86e3
Revert "Update deploy config"
rpowis Jan 16, 2020
addfcaf
Add client_ref to statements and update response
rpowis Jan 29, 2020
0f3bb1c
Execute deploy script as npm script
rpowis Jan 29, 2020
ad4aaea
Remove and ignore build dir
rpowis Jan 29, 2020
9734d74
Update build and deploy scripts
rpowis Jan 29, 2020
32d1c95
Ignore generated files as they're now on the gh-pages branch
rpowis Jan 29, 2020
940491a
Add client_ref to statements request example
rpowis Jan 29, 2020
79d66c3
Css updates to create "Clear Treasury API"
chrisk2020 Jan 29, 2020
e73d2ab
Update site title
rpowis Jan 29, 2020
ae5b5c3
Remove token endpoint for now
rpowis Jan 29, 2020
06c9416
Update trade example request params
rpowis Feb 3, 2020
fe9a876
Add initial schema definition for client object
rpowis Feb 3, 2020
0c12569
Split out each section into its own file
rpowis Feb 3, 2020
bd9b1ce
Add registration endpoint
rpowis Feb 3, 2020
846b1d7
Update the example registration response object
rpowis Feb 3, 2020
820b069
Update with latest generated docs info
rpowis Feb 12, 2020
0fad409
Update errors docs
rpowis Feb 13, 2020
a03dac0
Update access info to better explain tokens
rpowis Feb 13, 2020
313ee4f
Add missing backslashes from curl examples
rpowis Feb 13, 2020
b707bab
Update access info
rpowis Feb 14, 2020
485a292
Update info for client endpoints
rpowis Feb 14, 2020
bc08d7c
Update info for quotes endpoints
rpowis Feb 15, 2020
120c024
Update info for quotes endpoints
rpowis Feb 15, 2020
5c5bb11
Update info for book-a-trade
rpowis Feb 15, 2020
46f0d47
Update info for payments
rpowis Feb 18, 2020
3682755
Update list payments response object
rpowis Feb 18, 2020
0e8dfd2
Update beneficiary info
rpowis Feb 18, 2020
1d06b97
Update beneficiary SWIFT example
rpowis Feb 18, 2020
4d3907a
Update trades request object
rpowis Feb 18, 2020
83731a0
Add data for iterating quotes tests in postman
rpowis Feb 18, 2020
50f5056
Add countries and currencies info
rpowis Feb 18, 2020
b4c7052
Update countries and currencies info
rpowis Feb 18, 2020
57b39e9
Unnest comment
rpowis Feb 18, 2020
3b2e1dd
Update individual GET endpoint info
rpowis Feb 24, 2020
5a6465e
Add notes file
rpowis Mar 21, 2020
279f193
Update payments
rpowis Dec 18, 2020
671f8a4
+ holiday page
Jean2v Jan 28, 2025
5f2e23d
+ holidays page
Jean2v Jan 30, 2025
abc1153
+1
Jean2v Jan 30, 2025
e2a444a
+ deploy yml
Jean2v Jan 30, 2025
cca5950
+1
Jean2v Jan 30, 2025
e4b1c98
+1
Jean2v Jan 30, 2025
7db67cf
+1
Jean2v Jan 30, 2025
b0384c6
+ gemfile
Jean2v Jan 30, 2025
c494336
Fix Gemfile case issue
Jean2v Jan 31, 2025
be572d9
+1
Jean2v Jan 31, 2025
096b665
+1
Jean2v Jan 31, 2025
a3029ad
+1
Jean2v Jan 31, 2025
3aceb12
+1
Jean2v Jan 31, 2025
12993f8
+1
Jean2v Jan 31, 2025
a9e0385
+1
Jean2v Jan 31, 2025
6a0e0f4
+1
Jean2v Jan 31, 2025
1c3c73c
+1
Jean2v Jan 31, 2025
b8e8e69
+1
Jean2v Jan 31, 2025
ec4cde9
+1
Jean2v Jan 31, 2025
4078599
+1
Jean2v Jan 31, 2025
02fab4b
+1
Jean2v Jan 31, 2025
00ebc81
+1
Jean2v Jan 31, 2025
ad4e0cd
+1
Jean2v Jan 31, 2025
c786501
+1
Jean2v Jan 31, 2025
a5e1c2a
+1
Jean2v Jan 31, 2025
b615766
+1
Jean2v Jan 31, 2025
c2036d4
+1
Jean2v Jan 31, 2025
455c762
+1
Jean2v Jan 31, 2025
12d4fb0
+1
Jean2v Jan 31, 2025
8fd1272
+1
Jean2v Jan 31, 2025
2a78fa6
+1
Jean2v Jan 31, 2025
868a5ca
+1
Jean2v Jan 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update with jeans input on authentication
  • Loading branch information
chrisk2020 committed Oct 18, 2019
commit fa13953f69b6eb23eca109fb5845ed3e05fc31eb
84 changes: 57 additions & 27 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,56 @@
<div class=content>

<h1 id="introduction">Introduction</h1>
<p>Welcome to the Clear Payments API - Powered by Clear Treasury. With international payments a daily necessity for many, we have developed our online payments platform that dramatically streamlines the process.</p>
<blockquote>
<p>Base [ENV] url variables</p>
</blockquote>
<pre class="highlight "><code>sandbox: api-test<span class="hljs-selector-class">.cleartreasury</span><span class="hljs-selector-class">.co</span><span class="hljs-selector-class">.uk</span>/api
live: api<span class="hljs-selector-class">.cleartreasury</span><span class="hljs-selector-class">.co</span><span class="hljs-selector-class">.uk</span>/api</code></pre><p>Welcome to the Clear Payments API - Powered by Clear Treasury. With international payments a daily necessity for many, we have developed our online payments platform that dramatically streamlines the process.</p>
<p>We have designed the Clear Payments API to integrate directly into your process, product or software.</p>
<h1 id="authentication">Authentication</h1>
<blockquote>
<p>To authorize, use this code:</p>
<p>use this code:</p>
</blockquote>
<pre class="highlight bash"><code><span class="hljs-comment"># With shell, you can just pass the correct header with each request</span>
curl <span class="hljs-string">"api_endpoint_here"</span>
-H <span class="hljs-string">"Authorization: --yourAuthKey--"</span></code></pre><pre class="highlight javascript"><code><span class="hljs-keyword">const</span> kittn = <span class="hljs-built_in">require</span>(<span class="hljs-string">'kittn'</span>);
curl -X POST \
http://[ENV].cleartreasury.co.uk/api/token \
-H <span class="hljs-string">'Content-Type: application/x-www-form-urlencoded'</span> \
-d <span class="hljs-string">'login=--YOUR LOGIN--&amp;password=--YOUR PASSWORD--'</span></code></pre><pre class="highlight javascript"><code><span class="hljs-keyword">var</span> settings = {
<span class="hljs-string">"async"</span>: <span class="hljs-literal">true</span>,
<span class="hljs-string">"crossDomain"</span>: <span class="hljs-literal">true</span>,
<span class="hljs-string">"url"</span>: <span class="hljs-string">"http://[ENV].cleartreasury.co.uk/api/token"</span>,
<span class="hljs-string">"method"</span>: <span class="hljs-string">"POST"</span>,
<span class="hljs-string">"headers"</span>: {
<span class="hljs-string">"Content-Type"</span>: <span class="hljs-string">"application/x-www-form-urlencoded"</span>,
},
<span class="hljs-string">"data"</span>: {
<span class="hljs-string">"login"</span>: <span class="hljs-string">"--YOUR LOGIN--"</span>,
<span class="hljs-string">"password"</span>: <span class="hljs-string">"--YOUR PASSWORD--"</span>
}
}

<span class="hljs-keyword">let</span> api = kittn.authorize(<span class="hljs-string">'--yourAuthKey--'</span>);</code></pre><blockquote>
<p>Make sure to replace <code>--yourAuthKey--</code> with your API key.</p>
$.ajax(settings).done(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">response</span>) </span>{
<span class="hljs-built_in">console</span>.log(response);
});</code></pre><blockquote>
<p>Clear Payments expects the API Token to be included in all API requests to the server in a header that looks like the following:</p>
</blockquote>
<p>Clear Payments uses API keys to allow access to the API. You can register a new API key at our <a href="https://payments.cleartreasury.co.uk">developer portal</a>.</p>
<p>Clear Payments expects for the API key to be included in all API requests to the server in a header that looks like the following:</p>
<p><code>Authorization: --yourAuthKey--</code></p>
<pre class="highlight "><code>curl -X POST <span class="hljs-string">\</span>
<span class="hljs-string">'[ENV].cleartreasury.co.uk/--ENDPOINT--'</span> <span class="hljs-string">\</span>
-H <span class="hljs-string">'Authorization: Bearer --YOUR TOKEN--'</span> <span class="hljs-string">\</span>
</code></pre><p>Clear API uses a token that needs to be set in the header of each call.</p>
<p>To generate your token you can use /api/Token endpoint</p>
<aside class=notice>
You must replace <code>--YOUR TOKEN--</code> with your personal API key.
</aside>
<aside class=notice>
You must replace <code>--YOUR LOGIN--</code> with your Login.
</aside>
<aside class=notice>
You must replace <code>--yourAuthKey--</code> with your personal API key.
You must replace <code>--YOUR PASSWORD--</code> with your Password.
</aside>

<p>This Token is valid for 6 months.</p>


<h1 id="bookquote">Bookquote</h1>
<blockquote>
Expand All @@ -87,7 +117,7 @@ <h1 id="bookquote">Bookquote</h1>
<span class="hljs-attr">"OurSWIFTCode"</span>: <span class="hljs-string">"string"</span>,
<span class="hljs-attr">"Message"</span>: <span class="hljs-string">"string"</span>
}</code></pre><h3 id="http-request">HTTP Request</h3>
<p><code>POST /api/BookQuote/BookQuote</code> </p>
<p><code>POST /BookQuote/BookQuote</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -168,7 +198,7 @@ <h2 id="get">GET</h2>
<span class="hljs-attr">"exportedDate"</span>: <span class="hljs-string">"2019-10-17T11:27:23.691Z"</span>
}
]</code></pre><h3 id="http-request-1">HTTP Request</h3>
<p><code>GET /api/PaymentInstruction/GetValues</code> </p>
<p><code>GET /PaymentInstruction/GetValues</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -210,7 +240,7 @@ <h2 id="get">GET</h2>
</tbody></table>
<h2 id="post">POST</h2>
<h3 id="http-request-2">HTTP Request</h3>
<p><code>POST /api/PaymentInstruction/PostValue</code> </p>
<p><code>POST /PaymentInstruction/PostValue</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -246,7 +276,7 @@ <h3 id="http-request-2">HTTP Request</h3>
<h1 id="quote">Quote</h1>
<h2 id="post-1">POST</h2>
<h3 id="http-request-3">HTTP Request</h3>
<p><code>POST /api/Quote/PostValue</code> </p>
<p><code>POST /Quote/PostValue</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -316,7 +346,7 @@ <h3 id="http-request-3">HTTP Request</h3>
</tbody></table>
<h2 id="get-1">GET</h2>
<h3 id="http-request-4">HTTP Request</h3>
<p><code>GET /api/Quote/GetValue</code> </p>
<p><code>GET /Quote/GetValue</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -367,7 +397,7 @@ <h2 id="calculatequote">calculatequote</h2>
<span class="hljs-attr">"Message"</span>: <span class="hljs-string">"string"</span>,
<span class="hljs-attr">"Status"</span>: <span class="hljs-literal">true</span>
}</code></pre><h3 id="http-request-5">HTTP Request</h3>
<p><code>POST /api/Quote/CalculateQuote</code> </p>
<p><code>POST /Quote/CalculateQuote</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -416,7 +446,7 @@ <h2 id="get-2">GET</h2>
<span class="hljs-attr">"Balance"</span>: <span class="hljs-number">0</span>
}
]</code></pre><h3 id="http-request-6">HTTP Request</h3>
<p><code>GET /api/Statement/GetValues</code> </p>
<p><code>GET /Statement/GetValues</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -511,7 +541,7 @@ <h2 id="get-3">GET</h2>
<span class="hljs-attr">"pin_check_count"</span>: <span class="hljs-number">0</span>
}
]</code></pre><h3 id="http-request-7">HTTP Request</h3>
<p><code>GET /api/Template/GetValues</code> </p>
<p><code>GET /Template/GetValues</code> </p>
<p><strong>Responses</strong></p>
<table>
<thead>
Expand All @@ -528,7 +558,7 @@ <h2 id="get-3">GET</h2>
<h1 id="token">Token</h1>
<h2 id="post-2">POST</h2>
<h3 id="http-request-8">HTTP Request</h3>
<p><code>POST /api/Token/PostValues</code> </p>
<p><code>POST /Token/PostValues</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -583,7 +613,7 @@ <h2 id="get-4">GET</h2>
<span class="hljs-attr">"Beneficiary"</span>: <span class="hljs-string">"string"</span>
}
]</code></pre><h3 id="http-request-9">HTTP Request</h3>
<p><code>GET /api/Trade/GetValues</code> </p>
<p><code>GET /Trade/GetValues</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -634,7 +664,7 @@ <h2 id="filters">Filters</h2>
<span class="hljs-attr">"Description"</span>: <span class="hljs-string">"string"</span>
}
]</code></pre><h3 id="http-request-10">HTTP Request</h3>
<p><code>GET /api/webhooks/filters</code> </p>
<p><code>GET /webhooks/filters</code> </p>
<p><strong>Responses</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -666,7 +696,7 @@ <h2 id="registrations">Registrations</h2>
<span class="hljs-attr">"Properties"</span>: {}
}
]</code></pre><h3 id="http-request-11">HTTP Request</h3>
<p><code>GET /api/webhooks/registrations</code> </p>
<p><code>GET /webhooks/registrations</code> </p>
<p><strong>Responses</strong></p>
<table>
<thead>
Expand All @@ -681,7 +711,7 @@ <h2 id="registrations">Registrations</h2>
</tr>
</tbody></table>
<h3 id="http-request-12">HTTP Request</h3>
<p><code>POST /api/webhooks/registrations</code> </p>
<p><code>POST /webhooks/registrations</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -715,7 +745,7 @@ <h3 id="http-request-12">HTTP Request</h3>
</tr>
</tbody></table>
<h3 id="http-request-13">HTTP Request</h3>
<p><code>DELETE /api/webhooks/registrations</code> </p>
<p><code>DELETE /webhooks/registrations</code> </p>
<p><strong>Responses</strong></p>
<table>
<thead>
Expand All @@ -732,7 +762,7 @@ <h3 id="http-request-13">HTTP Request</h3>
<h2 id="registrationsid">Registrations/{id}</h2>
<h3 id="get-5">GET</h3>
<h3 id="http-request-14">HTTP Request</h3>
<p><code>GET /api/webhooks/registrations/{id}</code> </p>
<p><code>GET /webhooks/registrations/{id}</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -767,7 +797,7 @@ <h3 id="http-request-14">HTTP Request</h3>
</tbody></table>
<h3 id="put">PUT</h3>
<h3 id="http-request-15">HTTP Request</h3>
<p><code>PUT /api/webhooks/registrations/{id}</code> </p>
<p><code>PUT /webhooks/registrations/{id}</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down Expand Up @@ -809,7 +839,7 @@ <h3 id="http-request-15">HTTP Request</h3>
</tbody></table>
<h3 id="delete">DELETE</h3>
<h3 id="http-request-16">HTTP Request</h3>
<p><code>DELETE /api/webhooks/registrations/{id}</code> </p>
<p><code>DELETE /webhooks/registrations/{id}</code> </p>
<p><strong>Parameters</strong></p>
<table>
<thead>
Expand Down
34 changes: 17 additions & 17 deletions source/includes/FXOps.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
```

### HTTP Request
`POST /api/BookQuote/BookQuote`
`POST /BookQuote/BookQuote`

**Parameters**

Expand Down Expand Up @@ -79,7 +79,7 @@
```

### HTTP Request
`GET /api/PaymentInstruction/GetValues`
`GET /PaymentInstruction/GetValues`

**Parameters**

Expand All @@ -97,7 +97,7 @@
## POST

### HTTP Request
`POST /api/PaymentInstruction/PostValue`
`POST /PaymentInstruction/PostValue`

**Parameters**

Expand All @@ -115,7 +115,7 @@
## POST

### HTTP Request
`POST /api/Quote/PostValue`
`POST /Quote/PostValue`

**Parameters**

Expand All @@ -137,7 +137,7 @@
## GET

### HTTP Request
`GET /api/Quote/GetValue`
`GET /Quote/GetValue`

**Parameters**

Expand Down Expand Up @@ -172,7 +172,7 @@
```

### HTTP Request
`POST /api/Quote/CalculateQuote`
`POST /Quote/CalculateQuote`

**Parameters**

Expand Down Expand Up @@ -207,7 +207,7 @@
```

### HTTP Request
`GET /api/Statement/GetValues`
`GET /Statement/GetValues`

**Parameters**

Expand Down Expand Up @@ -276,7 +276,7 @@
```

### HTTP Request
`GET /api/Template/GetValues`
`GET /Template/GetValues`

**Responses**

Expand All @@ -288,7 +288,7 @@
## POST

### HTTP Request
`POST /api/Token/PostValues`
`POST /Token/PostValues`

**Parameters**

Expand Down Expand Up @@ -329,7 +329,7 @@
```

### HTTP Request
`GET /api/Trade/GetValues`
`GET /Trade/GetValues`

**Parameters**

Expand Down Expand Up @@ -358,7 +358,7 @@
```

### HTTP Request
`GET /api/webhooks/filters`
`GET /webhooks/filters`

**Responses**

Expand Down Expand Up @@ -387,7 +387,7 @@
```

### HTTP Request
`GET /api/webhooks/registrations`
`GET /webhooks/registrations`

**Responses**

Expand All @@ -397,7 +397,7 @@


### HTTP Request
`POST /api/webhooks/registrations`
`POST /webhooks/registrations`

**Parameters**

Expand All @@ -413,7 +413,7 @@


### HTTP Request
`DELETE /api/webhooks/registrations`
`DELETE /webhooks/registrations`

**Responses**

Expand All @@ -425,7 +425,7 @@
### GET

### HTTP Request
`GET /api/webhooks/registrations/{id}`
`GET /webhooks/registrations/{id}`

**Parameters**

Expand All @@ -442,7 +442,7 @@
### PUT

### HTTP Request
`PUT /api/webhooks/registrations/{id}`
`PUT /webhooks/registrations/{id}`

**Parameters**

Expand All @@ -460,7 +460,7 @@
### DELETE

### HTTP Request
`DELETE /api/webhooks/registrations/{id}`
`DELETE /webhooks/registrations/{id}`

**Parameters**

Expand Down
Loading