You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the repo for the [Settle APIs Documentation](https://developer.settle.eu/) website. It's buildt using [Vuepress](https://vuepress.vuejs.org/) - a minimalistic Vue-powered static site generator from [Evan You](https://evanyou.me/), the creator of [Vue.js](https://vuejs.org/), and [Netlify CMS](https://www.netlifycms.org/) - an open source content management for your [Git workflow](https://guides.github.com/introduction/flow/).
7
8
8
-
***TL;DR:****[Contributing and setting up local environment](#contributing)*
9
+
**_TL;DR:_**_[Contributing and setting up local environment](#contributing)_
9
10
10
11
## VuePress
11
12
@@ -52,13 +53,19 @@ At its core, **Netlify CMS** is an open-source React app that acts as a wrapper
52
53
53
54
`yarn install`
54
55
55
-
4.### Start the local dev server
56
+
4.### Add .env.local file
57
+
58
+
Create a new file in the root folder named `.env.local` and add the `GITHUB_TOKEN` environment variable found in the Netlify Deploy Settings.
59
+
60
+
Learn more about environment variables over in the [Netlify docs](https://docs.netlify.com/configure-builds/environment-variables/)
61
+
62
+
5.### Start the local dev server
56
63
57
64
`yarn docs:dev`
58
65
59
66
By default, you should now see your scaffolded Settle APIs docs site at [https://localhost:8080](https://localhost:8080)🚀
60
67
61
-
5.### Start the local CMS server
68
+
6.### Start the local CMS server
62
69
63
70
`npx netlify-cms-proxy-server`
64
71
@@ -78,10 +85,10 @@ At its core, **Netlify CMS** is an open-source React app that acts as a wrapper
78
85
79
86
3.### Push to the branch
80
87
81
-
`git push origin feat/my-awesome-feature`
88
+
`git push origin feat/my-awesome-feature`
82
89
83
90
4.### Open a Pull Request 🤓
84
91
85
-
`gh pr create --title "My Awesome feature" --body "This is my new awesome feature." --base dev`
92
+
`gh pr create --title "My Awesome feature" --body "This is my new awesome feature." --base dev`
86
93
87
-
**NOTE:** Pull Requests are used to start conversation about proposed changes before they're code is reviewed and eventually merged into the main branch, and **we will only consider Pull Requests initiated towards the [dev branch](https://github.com/SettleAPI/settle-developer-docs/tree/dev)**. Pull Requests towards any other branch will be ignored and closed without any further notifications.
94
+
**NOTE:** Pull Requests are used to start conversation about proposed changes before they're code is reviewed and eventually merged into the main branch, and **we will only consider Pull Requests initiated towards the [dev branch](https://github.com/SettleAPI/settle-developer-docs/tree/dev)**. Pull Requests towards any other branch will be ignored and closed without any further notifications.
Copy file name to clipboardExpand all lines: docs/api/reference/rest/v1/merchant.shortlink/index.md
+46-1Lines changed: 46 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,49 @@ title: merchant.shortlink
4
4
description: Overview
5
5
schema: merchant.shortlink
6
6
api: merchant
7
-
---
7
+
---
8
+
9
+
## Shortlink Scan Handler
10
+
11
+
When user scans, Settle sends scan id and argstring, and can receive text and uri which can be transported back to the app. Uri will be opened in a web view inside the app if registered in list of trusted domains.
The scan token ID that can be used as recipient for payment and permission requests. Expires in one day.
33
+
34
+
### argstring
35
+
36
+
- Type: `string`
37
+
- Required: `false`
38
+
- Default: `null`
39
+
40
+
The string that was appended to the shortlink value in the QR code that was scanned.
41
+
42
+
</div>
43
+
44
+
## Trusted Domains
45
+
46
+
Because of security considerations when opening external URIs inside the Settle App, URIs or domains that will be opened in the app needs to be preapproved by Settle.
47
+
48
+
There are currently no API endpoints for managing trusted domains, please contact Settle support to register domain that should be visible inside app.
49
+
50
+
## Shortlink Management
51
+
52
+
To be able to receive scans, one must first register a shortlink.
Copy file name to clipboardExpand all lines: docs/api/reference/rest/v1/merchant.statusCodes/index.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,8 @@ title: merchant.statusCodes
4
4
description: Overview
5
5
schema: merchant.statusCodes
6
6
api: merchant
7
-
---
7
+
---
8
+
9
+
## Status Code
10
+
11
+
Some resources, such as the outcome resources (for payment request and permission request), have a status code field in the response body. The status_code resource lists and describes all possible status codes. Making a `GET /status_code/` request yields a list of status codes with corresponding names and descriptions. Making a `GET /status_code/{value}/` request (substituting `{value}` for a status code integer) yields the information for a particular status code.
Copy file name to clipboardExpand all lines: docs/api/reference/rest/v1/merchant.users/index.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,10 @@ title: merchant.users
4
4
description: Overview
5
5
schema: merchant.users
6
6
api: merchant
7
-
---
7
+
---
8
+
9
+
## Mercant Users
10
+
11
+
In order to gain access to the [Merchant API](/api/reference/rest/v1/) a client must authenticate itself using the ID and the secret/public key of an existing user. This means that the first user for a merchant must be created in the Self Service Portal or by an integrator on behalf of the merchant.
12
+
13
+
Each user is created for a specific merchant, which ID is given by the value of the **X-Settle-Merchant** header when making a [`merchant.users.create`](/api/reference/rest/v1/merchant.users/create/) request. A user can only interact with the API on behalf of the merchant which it was created for. The user ID is chosen on create and is has to be unique for the parent Merchant.
0 commit comments