Skip to content

Completes


Use Completes to make a status query about a redirected third-party transaction that is part of a payment order. You can make the request by referring to the payment order, or by referring to a specified transaction.

Endpoints

POST /api/v2/merchants/{mid}/orders/{orderId}/completes

Makes a status query about the latest third-party transaction.


POST /api/v2/merchants/{transactionId}/completes

Makes a status query about a specified third-party transaction.

Request parameters

Path parameter Requirement Description Type
mid Required The merchant account reference number. Number
orderId Required The reference to uniquely identify a payment. String
transactionId Required The reference number to uniquely identify a transaction. String
Body parameter Requirement Description Type
redirectParameterString Required The redirection data to/from the bank that a payment was redirected to. Requirement and format depends on the bank. String

Sample request

CURL
curl -X POST \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer 573cec25a87526dcceacad786bbbba83b1a5172' \
    https://    /api/v2/merchants/1570616552/orders/order_example_1/completes

Request body example

REST API
{
    "redirectParameterString": "A=X&B=Y"
}

Sample response

REST API
{
    "mid": 1570616552,
    "orderId": "order_example_1",
    "orderDetailDescription": "detailed desc",
    "orderDescription": "description",
    "orderAmount": 10.50,
    "fulfilmentAmount": 10.50,
    "capturedAmount": 10.50,
    "refundedAmount": 0.00,
    "currency": "SEK",
    "baseCurrency": "SEK",
    "baseOrderAmount": 10.50,
    "baseFulfilmentAmount": 10.50,
    "baseCapturedAmount": 10.50,
    "baseRefundedAmount": 0.00,
    "capturable": false,
    "cancelable": false,
    "refundable": true,
    "completable": false,
    "dccIndicator": false,
    "timestamp": "2020-03-13T10:16:23.047Z",
    "transactionReferences": [
        {
            "transactionId": 10442995789,
            "transactionTypeId": 109,
            "mid": 1570616552,
            "orderId": "order_example_1",
            "transactionType": "Debit",
            "transactionDate": "2020-03-13T10:18:15.163Z",
            "refTransactionId": 10442995701,
            "transactionDesc": "Transaction Accepted",
            "statusCode": 0,
            "status": "Processed",
            "amount": 10.50,
            "currency": "SEK",
            "baseAmount": 10.50,
            "baseCurrency": "SEK",
            "paymentMethod": "Nordea SE",
            "paymentMethodId": 1
        }
    ]
}
Back to top