GET /v1/payments/{paymentId}

Get information about a payment, including information such as order and customer information, previous charges and refunds.

Response Class (Status 200)

{
    "payment": {
        "checkout": {
            "url": "string"
        },
        "consumer": {
            "company": {
                "merchantReference": "string",
                "name": "string",
                "contactDetails": {
                    "firstName": "string",
                    "lastName": "string",
                    "email": "string",
                    "phoneNumber": {
                      "number": "string",
                      "prefix": "string"
                    }
                }
                "registrationNumber": "string"
            },
            "privatePerson": {
                "dateOfBirth": "2017-03-22T08:02:30.977Z",
                "email": "string",
                "firstName": "string",
                "lastName": "string",
                "merchantReference": "string",
                "phoneNumber": {
                    "number": "string",
                    "prefix": "string"
                }
            },
            "shippingAddress": {
                "addressLine1": "string",
                "addressLine2": "string",
                "city": "string",
                "country": "string",
                "postalCode": "string",
                "receiverLine": "string"
            }
        },
        "created": "2017-03-22T08:02:30.977Z",
        "orderDetails": {
            "amount": 0,
            "currency": "string",
            "reference": "string"
        },
        "paymentDetails": {
            "cardDetails": {
                "expiryDate": "string",
                "maskedPan": "string"
            },
            "invoiceDetails": {
                "dueDate": "2017-03-22T08:02:30.977Z",
                "invoiceNumber": "string",
                "ocr": "string",
                "pdfLink": "string"
            },
            "paymentMethod": "string",
            "paymentType": "string"
        },
        "paymentId": "string",
        "refunds": [
            {
                "amount": 0,
                "lastUpdated": "2017-03-22T08:02:30.978Z",
                "orderItems": [
                    {
                        "grossTotalAmount": 0,
                        "name": "string",
                        "netTotalAmount": 0,
                        "quantity": 0,
                        "reference": "string",
                        "taxAmount": 0,
                        "taxRate": 0,
                        "unit": "string",
                        "unitPrice": 0
                    }
                ],
                "refundId": "string",
                "state": "string"
            }
        ],
        "summary": {
            "cancelledAmount": 0,
            "chargedAmount": 0,
            "refundedAmount": 0,
            "reservedAmount": 0
        }
    }
}

Parameters

Parameter Value Description Parameter Type Data Type
paymentId (required)   path string
Authorization (required) Private api key header string

 

Response

HTTP Status Code Reason Response model
400 Bad request
{
  "errors": {}
}
401 Unauthorized  
404 Payment not found  
500 Unexpected error
{
  "message": "string",
  "code": "string",
  "source": "string"
}
Do you have a question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00