Changes for page API

Last modified by David Persson on 2022/08/11 10:43
From version 2.1
edited by David Persson
on 2019/12/04 09:43
To version 3.1
edited by David Persson
on 2019/12/04 09:49
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,0 +1,77 @@
1 +(% class="jumbotron" %)
2 +(((
3 +(% class="container" %)
4 +(((
5 +Integrate to **PayEx Credit Account API **
6 +)))
7 +)))
8 +
9 +== ChangeLog ==
10 +
11 +
12 +== Glossary ==
13 +
14 +*
15 +
16 +== Introduction ==
17 +
18 +
19 +== Problems ==
20 +
21 +If an error occur or any validation failed, a "problem" response will be returned.
22 +Below is a list of problems that can occur:
23 +
24 +**HttpStatus 401 Unauthorized**
25 +
26 +* Token expired
27 +* Token invalid
28 +* SellerNumber does not match token
29 +* CompanyNumber does not match token
30 +
31 +**HttpStatus 400 Error**
32 +
33 +* Validation: Argument required
34 +* Validation: Invalid value
35 +
36 +**HttpStatus 422 Unprocessable entity**
37 +
38 +* Authorization declined
39 +
40 +**HttpStatus 409 Conflict**
41 +
42 +* Invoice already authorized
43 +* Duplicate InvoiceNumber
44 +* Authorization is cancelled
45 +* Authorization already captured
46 +* Authorization has expired
47 +* Insufficient debited amount XXX
48 +
49 +**HttpStatus 501 NotImplemented**
50 +
51 +* CompanyNumber XXX not configured
52 +* SellerNumber XXX not configured at PayEx
53 +* CompanyNumber XXX missing configuration
54 +
55 +**HttpStatus 404 NotFound**
56 +
57 +* Authorization not found
58 +
59 +Below is an example of a problem that will be returned if buyer##.nationalConsumerIdentifier.value## is not valid in the authorization post request.
60 +
61 +{{code language="http" title="**Response**"}}
62 +HTTP/1.1 400 Error
63 +Content-Type: application/problem+json
64 +
65 +{
66 + "Type": "http://[DNS]/ledger/invoice-purchase/problems/validation",
67 + "Title": "A validation error occurred",
68 + "Status": 400,
69 + "Instance": null,
70 + "Detail": "A validation error occurred. Please fix the problems mentioned in the 'problems' property below.",
71 + "Problems": [
72 + {
73 + "buyer.nationalConsumerIdentifier.value": "Not a valid SE nationalConsumerIdentifier"
74 + }
75 + ]
76 +}
77 +{{/code}}