From 880c1452e1c1ec66e609ea3f499150872869a0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Bj=C3=B6rk?= <107463939+codedeviate@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:59:55 +0200 Subject: [PATCH] Updated AuthAPI and released PaymentAPI --- Writerside/topics/API-Error-codes.md | 6 ++++ Writerside/topics/API-changelog.md | 7 ++++ Writerside/topics/Public-packages.md | 4 +-- Writerside/topics/Snippets-PaymentAPI.md | 1 - Writerside/topics/address.md | 41 +++++++++++++++++++++++- 5 files changed, 55 insertions(+), 4 deletions(-) diff --git a/Writerside/topics/API-Error-codes.md b/Writerside/topics/API-Error-codes.md index 05a2647..8462588 100644 --- a/Writerside/topics/API-Error-codes.md +++ b/Writerside/topics/API-Error-codes.md @@ -101,6 +101,12 @@ | 6502 | Unknown state from card provider | | 6503 | The merchant is not found with the given payment id | | 6504 | Payment data is not found | +| 6661 | Invalid token | +| 6662 | Invalid hash | +| 6663 | Invalid company signer pno | +| 6664 | Auth person does not match the pno of invoice | +| 6665 | Bankid session could not be generated | +| 6666 | Missing token | | 7010 | Name can not be empty. | | 7015 | New password is empty | | 7020 | Customer No/Number can not be empty. | diff --git a/Writerside/topics/API-changelog.md b/Writerside/topics/API-changelog.md index c546642..7c62363 100644 --- a/Writerside/topics/API-changelog.md +++ b/Writerside/topics/API-changelog.md @@ -2,15 +2,22 @@ +--- +## 2024-09-13 + +The official release of PaymentAPI documentation. + --- ## 2024-06-13 Released the first release candidate of PaymentAPI documentation. +--- ## 2024-06-01 Released version 2.5.0 of the Payment API. +--- ## 2024-05-28 Fixed typos and wrote supplementary texts. diff --git a/Writerside/topics/Public-packages.md b/Writerside/topics/Public-packages.md index bc7badc..352123c 100644 --- a/Writerside/topics/Public-packages.md +++ b/Writerside/topics/Public-packages.md @@ -12,11 +12,11 @@ Third-party packages that has obvious issues and/or is not maintained will be re ## PHP ### Packagist -**Status**: Testing +**Status**: Published **Link**: [Packagist](https://packagist.org/packages/qvickly/api) -We are currently testing a module package for PHP. +The [Qvickly PHP Module](https://github.com/Billmate/qvickly-php-module) is available through Packagist. ## Javascript / Typescript ### JSR diff --git a/Writerside/topics/Snippets-PaymentAPI.md b/Writerside/topics/Snippets-PaymentAPI.md index a5d06e1..f82add8 100644 --- a/Writerside/topics/Snippets-PaymentAPI.md +++ b/Writerside/topics/Snippets-PaymentAPI.md @@ -2,6 +2,5 @@ - \ No newline at end of file diff --git a/Writerside/topics/address.md b/Writerside/topics/address.md index 04337f0..a14e1a6 100644 --- a/Writerside/topics/address.md +++ b/Writerside/topics/address.md @@ -9,7 +9,46 @@ Endpoint : ```/me/address``` Method -: POST +: GET +## Request + +### Headers + +| Header | Required | Type | Description | +|--------------|----------|--------|-------------| +| x-auth-token | yes | string | Auth token | + + +## Response + +| Parameter | Type | Description | +|-----------|--------|-------------| +| firstname | string | First name | +| lastname | string | Last name | +| street | string | Street | +| zip | string | Zip code | +| city | string | City | +| country | string | Country | +| phone | string | Phone | +| email | string | Email | +| type | string | Type | + + + +```json +{ + "firstname": "Tess T", + "lastname": "Person", + "street": "Testvägen 1", + "zip": "12345", + "city": "Testinge", + "country": "SE", + "phone": "0700000000", + "email": "tess.t.person@example.com", + "type": "person" +} + +``` For an example see [here](Auth-Example-address.md)