diff --git a/checkout/index.md b/checkout/index.md index 8980e82e9e..0f6e593d3d 100644 --- a/checkout/index.md +++ b/checkout/index.md @@ -124,7 +124,7 @@ sequenceDiagram Payer ->> Payer: Event: onPaymentCompleted Payer ->>+ Merchant: Check payment status deactivate Payer - Merchant ->>+ SwedbankPay: GET /psp/paymentorders/ + Merchant ->>+ SwedbankPay: GET deactivate Merchant SwedbankPay ->>+ Merchant: rel: paid-paymentorder deactivate SwedbankPay diff --git a/checkout/other-features.md b/checkout/other-features.md index 7001aa5f3a..aef2fd5f2e 100644 --- a/checkout/other-features.md +++ b/checkout/other-features.md @@ -682,7 +682,7 @@ other payment instrument properties, by [expanding the sub-resource][expanding] **Request** ```http -GET /psp/paymentorders/?$expand=currentpayment HTTP/1.1 +GET /psp/paymentorders/{{ page.paymentorderId }}?$expand=currentpayment HTTP/1.1 Host: {{ page.apiHost }} ``` @@ -803,7 +803,7 @@ should finish the purchase with a credit card payment instead. **Request** ```http -GET /psp/paymentorders/payments HTTP/1.1 +GET /psp/paymentorders/{{ page.paymentorderId }}/payments HTTP/1.1 Host: {{ page.apiHost }} Authorization: Bearer Content-Type: application/json @@ -814,7 +814,7 @@ Content-Type: application/json "id": "/psp/paymentorders/{{ page.paymentOrderId }}/payments", "paymentList" : [ { - "id": "/psp/creditcard/payments/{{ page.paymentOrderId }}", + "id": "/psp/creditcard/payments/{{ page.transactionId }}", "instrument" : "CreditCard", "created": "2016-09-14T13:21:29.3182115Z" }, diff --git a/checkout/payment-menu.md b/checkout/payment-menu.md index 533caa62bc..aca699d4c3 100644 --- a/checkout/payment-menu.md +++ b/checkout/payment-menu.md @@ -72,7 +72,7 @@ rect rgba(138, 205, 195, 0.1) Payer ->> Payer: Event: onPaymentCompleted Payer ->>+ Merchant: Check payment status deactivate Payer - Merchant ->>+ SwedbankPay: GET /psp/paymentorders/ + Merchant ->>+ SwedbankPay: GET deactivate Merchant SwedbankPay ->>+ Merchant: rel: paid-paymentorder deactivate SwedbankPay diff --git a/payments/card/after-payment.md b/payments/card/after-payment.md index d1c465aa48..fe01c3b0fa 100644 --- a/payments/card/after-payment.md +++ b/payments/card/after-payment.md @@ -569,7 +569,7 @@ If you, for any reason, need to delete a paymentToken you use the **Request** ```http -PATCH /psp/creditcard/payments/instrumentData/ HTTP/1.1 +PATCH /psp/creditcard/payments/instrumentData/{{ page.paymentToken }} HTTP/1.1 Host: {{ page.apiHost }} Authorization: Bearer Content-Type: application/json @@ -590,7 +590,7 @@ Content-Type: application/json { "instrumentData": { - "id": "/psp/creditcard/payments/instrumentdata/{{ page.paymentId }}", + "id": "/psp/creditcard/payments/instrumentdata/{{ page.paymentToken }}", "paymentToken": "{{ page.paymentToken }}", "payeeId": "{{ page.merchantId }}", "isDeleted": true|false, diff --git a/payments/credit/after-payment.md b/payments/credit/after-payment.md index e3dc2e0912..542bbc6347 100644 --- a/payments/credit/after-payment.md +++ b/payments/credit/after-payment.md @@ -38,7 +38,7 @@ To `capture` a `CreditAccountSe` transaction, you need to perform the **Request** ```http -POST /psp/creditaccount/payments//captures HTTP/1.1 +POST /psp/creditaccount/payments/{{ page.paymentId }}/captures HTTP/1.1 Host: {{ page.apiHost }} Authorization: Bearer Content-Type: application/json @@ -71,11 +71,11 @@ HTTP/1.1 200 OK Content-Type: application/json { - "payment": "/psp/creditaccount/payments/", + "payment": "/psp/creditaccount/payments/{{ page.paymentId }}", "captures": [ { "transaction": { - "id": "/psp/creditaccount/payments//transactions/", + "id": "/psp/creditaccount/payments/{{ page.paymentId }}/transactions/{{ page.transactionId }}", "created": "2016-09-14T01:01:01.01Z", "updated": "2016-09-14T01:01:01.03Z", "type": "Capture", @@ -90,7 +90,7 @@ Content-Type: application/json "failedErrorCode": "ThirdPartyErrorCode", "failedErrorDescription": "ThirdPartyErrorMessage", "isOperational": true, - "activities": { "id": "/psp/creditaccount/payments//transactions//activities" }, + "activities": { "id": "/psp/creditaccount/payments/{{ page.paymentId }}/transactions/{{ page.transactionId }}/activities" }, "operations": [ ] } diff --git a/payments/credit/index.md b/payments/credit/index.md index 76a0a5af5a..845b31dda7 100644 --- a/payments/credit/index.md +++ b/payments/credit/index.md @@ -46,12 +46,12 @@ sequenceDiagram Payer ->> ecomUI: Access paymentpage activate ecomUI - ecomUI ->> ecomAPI: GET (PaymentId retrieved from token) + ecomUI ->> ecomAPI: GET activate ecomAPI ecomAPI -->> ecomUI: Payment response deactivate ecomAPI Payer -->> ecomUI: Payer enter SSN and ZIP - ecomUI ->> ecomAPI: PATCH /> (Operation: ConsumerData) + ecomUI ->> ecomAPI: PATCH (Operation: ConsumerData) activate ecomAPI ecomAPI ->> PxR: GetAddressbyPaymentMethod activate PxR @@ -62,7 +62,7 @@ sequenceDiagram Payer ->> ecomUI: Payer approves address info - ecomUI ->> ecomAPI: POST /authorizations> + ecomUI ->> ecomAPI: POST activate ecomAPI ecomAPI ->> PxR: PurchaseCreditAccountOrder activate PxR @@ -102,7 +102,7 @@ sequenceDiagram Payer ->> Merchant: CompleteURL activate Merchant - Merchant ->> ecomAPI: GET /> + Merchant ->> ecomAPI: GET activate ecomAPI ecomAPI -->> Merchant: payment resource deactivate ecomAPI @@ -139,7 +139,7 @@ sequenceDiagram Payer ->> ecomUI: Payer enter SSN and ZIP - ecomUI ->> ecomAPI: PATCH /> (Operation: ConsumerData) + ecomUI ->> ecomAPI: PATCH (Operation: ConsumerData) activate ecomAPI ecomAPI ->> PxR: GetAddressbyPaymentMethod activate PxR @@ -150,7 +150,7 @@ sequenceDiagram Payer ->> ecomUI: Payer approves address info - ecomUI ->> ecomAPI: POST /authorizations> + ecomUI ->> ecomAPI: POST activate ecomAPI ecomAPI ->> PxR: PurchaseCreditAccountOrder activate PxR @@ -163,7 +163,7 @@ sequenceDiagram Payer ->> Merchant: CompleteURL activate Merchant - Merchant ->> ecomAPI: GET > + Merchant ->> ecomAPI: GET activate ecomAPI ecomAPI -->> Merchant: Payment resource deactivate ecomAPI diff --git a/payments/credit/redirect.md b/payments/credit/redirect.md index 4cb06dd8e4..160e6a9d52 100644 --- a/payments/credit/redirect.md +++ b/payments/credit/redirect.md @@ -85,7 +85,7 @@ sequenceDiagram Consumer->>-Merchant: access merchant page activate Merchant note left of Merchant: Second API request - Merchant->>-Swedbank Pay: GET /> + Merchant->>-Swedbank Pay: GET activate Swedbank Pay Swedbank Pay-->>-Merchant: payment resource activate Merchant @@ -206,8 +206,8 @@ Content-Type: application/json "payeeInfo" : { "id": "/psp/creditaccount/payments/{{ page.paymentId }}/payeeInfo" }, "urls" : { "id": "/psp/creditaccount/payments/{{ page.paymentId }}c/urls" }, "settings": { "id": "/psp/creditaccount/payments/{{ page.paymentId }}/settings" }, - "approvedLegalAddress": { "id": "/psp/creditaccount/payments//approvedlegaladdress" }, - "maskedApprovedLegalAddress": { "id": "/psp/creditaccount/payments//maskedapprovedlegaladdress" } + "approvedLegalAddress": { "id": "/psp/creditaccount/payments/{{ page.paymentId }}/approvedlegaladdress" }, + "maskedApprovedLegalAddress": { "id": "/psp/creditaccount/payments/{{ page.paymentId }}/maskedapprovedlegaladdress" } }, "operations": [ { diff --git a/payments/direct-debit/other-features.md b/payments/direct-debit/other-features.md index 5dc94eedd0..ce2f6484f6 100644 --- a/payments/direct-debit/other-features.md +++ b/payments/direct-debit/other-features.md @@ -147,12 +147,12 @@ Content-Type: application/json }, "operations": [ { - "href": "{{ page.apiUrl }}/psp/directdebit/payments//sales", + "href": "{{ page.apiUrl }}/psp/directdebit/payments/{{ page.paymentId }}/sales", "rel": "redirect-sale", "method": "POST" }, { - "href": "{{ page.apiUrl }}/psp/directdebit/payments/", + "href": "{{ page.apiUrl }}/psp/directdebit/payments/{{ page.paymentId }}", "rel": "update-payment-abort", "method": "PATCH" } diff --git a/payments/direct-debit/redirect.md b/payments/direct-debit/redirect.md index 0934c678eb..d1aff0d7f3 100644 --- a/payments/direct-debit/redirect.md +++ b/payments/direct-debit/redirect.md @@ -131,12 +131,12 @@ Content-Type: application/json   },    "operations": [         { -           "href": "{{ page.apiUrl }}/psp/directdebit/payments//sales", +           "href": "{{ page.apiUrl }}/psp/directdebit/payments/{{ page.paymentId }}/sales",            "rel": "redirect-sale",            "method": "POST"         },         { -           "href": "http://{{ page.apiHost }}/psp/directdebit/payments/", +           "href": "http://{{ page.apiHost }}/psp/directdebit/payments/{{ page.paymentId }}",            "rel": "update-payment-abort",            "method": "PATCH"         } diff --git a/payments/invoice/after-payment.md b/payments/invoice/after-payment.md index 90061c80bb..302b48bb3d 100644 --- a/payments/invoice/after-payment.md +++ b/payments/invoice/after-payment.md @@ -51,7 +51,7 @@ To capture a `FinancingConsumer` invoice payment, perform the `create-capture` operation with the following request body: ```http -POST /psp/invoice/payments//captures HTTP/1.1 +POST /psp/invoice/payments/{{ page.paymentId }}/captures HTTP/1.1 Host: {{ page.apiHost }} Authorization: Bearer Content-Type: application/json diff --git a/payments/mobile-pay/after-payment.md b/payments/mobile-pay/after-payment.md index bf3dbfa38e..a77eba1c2a 100644 --- a/payments/mobile-pay/after-payment.md +++ b/payments/mobile-pay/after-payment.md @@ -154,7 +154,7 @@ perform a `GET` on the payment after the user returns from the **Request** ```http -PATCH /psp/creditcard/payments/{{ page.paymentId }}/authorizations/ HTTP/1.1 +PATCH /psp/creditcard/payments/{{ page.paymentId }}/authorizations/{{ page.transactionId }} HTTP/1.1 Host: {{ page.apiHost }} Authorization: Bearer Content-Type: application/json diff --git a/payments/swish/after-payment.md b/payments/swish/after-payment.md index 2c36786aba..fd19fb5c84 100644 --- a/payments/swish/after-payment.md +++ b/payments/swish/after-payment.md @@ -345,8 +345,8 @@ Content-Type: application/json ### Create Reversal transaction -A reversal transaction can be created after a completed authorization by sending -a request to `/psp/swish/payments//reversals`. +A reversal transaction can be created after a completed authorization by +performing a request to the `create-reversal` operation. A [callback][technical-reference-callback] request will follow from Swedbank Pay. diff --git a/payments/swish/direct.md b/payments/swish/direct.md index 48f8e082ba..e578e7a4ac 100644 --- a/payments/swish/direct.md +++ b/payments/swish/direct.md @@ -74,7 +74,7 @@ sequenceDiagram activate Swish_API Swish_API->>-Swish_App: Start redirect activate Swish_App - + Swish_App--x-Browser: Redirect activate Merchant Merchant->>- SwedbankPay: GET @@ -243,7 +243,7 @@ request. **Request** ```http -POST /psp/swish/payments//sales HTTP/1.1 +POST /psp/swish/payments/{{ page.paymentId }}/sales HTTP/1.1 Authorization: Bearer Content-Type: application/json diff --git a/payments/vipps/after-payment.md b/payments/vipps/after-payment.md index 787e46bc88..1da1746f17 100644 --- a/payments/vipps/after-payment.md +++ b/payments/vipps/after-payment.md @@ -286,7 +286,7 @@ to the `GET` request. **Request** ```http -GET /psp/vipps/payments/{{ page.paymentId }}/authorizations/ HTTP/1.1 +GET /psp/vipps/payments/{{ page.paymentId }}/authorizations/{{ page.transactionId }} HTTP/1.1 Host: {{ page.apiHost }} Authorization: Bearer Content-Type: application/json diff --git a/payments/vipps/redirect.md b/payments/vipps/redirect.md index cef10c8134..8b46d9cb0a 100644 --- a/payments/vipps/redirect.md +++ b/payments/vipps/redirect.md @@ -285,7 +285,7 @@ transactions made on a specific payment. HTTP/1.1 200 OK Content-Type: application/json -GET /psp/vipps/payments/{{ page.paymentId }}/authorizations/ HTTP/1.1 +GET /psp/vipps/payments/{{ page.paymentId }}/authorizations/{{ page.transactionId }} HTTP/1.1 Host: {{ page.apiHost }} Authorization: Bearer diff --git a/payments/vipps/seamless-view.md b/payments/vipps/seamless-view.md index 272fa09a68..2cebac9a2a 100644 --- a/payments/vipps/seamless-view.md +++ b/payments/vipps/seamless-view.md @@ -53,7 +53,7 @@ sequenceDiagram Browser-->>-SwedbankPay: Passing data for authorization activate SwedbankPay - SwedbankPay-->>-Vipps.API: POST /authorizations ⑤ + SwedbankPay-->>-Vipps.API: POST ⑤ activate Vipps.API Vipps.API-->>-SwedbankPay: response activate SwedbankPay