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 Access
  • your-user-id in the URI, should be replaced with your identifier of the user
  • your-payment-id in the URI, should be replaced with the id for the payment that should be retrieved

Request

Copy
Copied
GET /v1/users/$(your-user-id)/payments/$(your-payment-id)

Accept: application/json
Authorization: $(your-authorization)

Response

Success

Response Schema: application/json
object (PaymentDto)
id
string
merchantId
string
type
string
Enum: "PAYMENT" "REFUND" "REVERSAL"
status
string
Enum: "CREATED" "READY" "CONFIRMED" "PROCESSING" "AUTHORIZED" "COMPLETE" "CANCELED" "USER_CANCELED" "MERCHANT_CANCELED" "REVERSED" "REVERSAL_FAILED" "PAYMENT_FAILED" "TIMEOUT" "SYSTEM_ERROR"
created
string

Created timestamp

cardAlias
string
cardType
string
Enum: "CARD" "SWISH" "WEBPAY_INVOICE" "RECURRING_CARD"
amount
number
currency
string
purchaseReference
string
callback
boolean
application/json
{
  • "payment": {
    }
}
Error responses

Please refer to our HTTP response codes and Error codes to learn what error responses you may expect from the API.

Example

Try it

Loading...