4.9. Retrieving payment status

In addition to Paytrail notifying the merchant of payment status, the merchant may inquire payment status.

Example 4.15. GET /connectapi/authorizations/{id}/charges/{id}

HTTP Status Codes

200: Success

404: No such payment or authorization


Table 4.5. Return Value

NameTypeDescription
paymentstruct

Status is one of the following:

  • new
  • created
  • authorized
  • confirmed
  • charged
  • notified
  • canceled

where charged and notified indicate success


Example HTTP response body
HTTP/1.1 200 OK

{
    "payment": {
        "orderNumber": "MY-ORDER-123",
        "status": "notified"
    }
}