Get payment
Gets information about a previously created payment. Both regular payments and recurring payments can be retrieved with this method.
your-authorization
should be replaced with your Authorization header, see Accessyour-user-id
in the URI, should be replaced with your identifier of the useryour-payment-id
in the URI, should be replaced with the id for the payment that should be retrieved
Request
GET /v1/users/$(your-user-id)/payments/$(your-payment-id)
Accept: application/json
Authorization: $(your-authorization)
Response
Success
Response Schema: application/json
object (PaymentDto) | |||||||||||||||||||||||||||||||
|
application/json
{- "payment": {
- "id": "7e16763b-9517-05a7-75d9-fcad069f54a7",
- "merchantId": "sdk-test-merchant",
- "type": "PAYMENT",
- "status": "CREATED",
- "created": "2020-09-04T11:42:18+0200",
- "cardAlias": "sdk-test-swish",
- "cardType": "SWISH",
- "amount": 123.12,
- "currency": "SEK",
- "purchaseReference": "350266"
}
}
Error responses
Please refer to our HTTP response codes and Error codes to learn what error responses you may expect from the API.
Example
- curl
- Python
- Java
- C#
- Node.js
Try it
Loading...