# /paymentmethods/ideal/v1/transactions/{transactionId}

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Payments Gateway",
    "description": "Common payments API",
    "version": "1.23.0"
  },
  "security": [
    {
      "oAuth2ClientCredentials": []
    }
  ],
  "servers": [
    {
      "url": "/api/v1/"
    }
  ],
  "paths": {
    "/paymentmethods/ideal/v1/transactions/{transactionId}": {
      "get": {
        "tags": [
          "ideal"
        ],
        "operationId": "getIdealTransaction",
        "parameters": [
          {
            "name": "transactionId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/IdealTransaction"
          },
          "4XX": {
            "$ref": "#/components/responses/UserError"
          },
          "5XX": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "IdealConsumer": {
        "description": "contains the Name and IBAN that were used by the consumer that completed the payment. This field is null until the payment is completed.",
        "type": "object",
        "nullable": true,
        "properties": {
          "name": {
            "description": "Name of the consumer",
            "type": "string",
            "example": "John"
          },
          "bic": {
            "$ref": "#/components/schemas/BIC"
          },
          "iban": {
            "description": "IBAN of the consumer",
            "type": "string",
            "example": "NL24RABO8487376045"
          },
          "checkoutDetails": {
            "description": "The checkout details defined by the debtor before completing the transaction.\n\nBy default, the invoice address will be the same as the shipping address unless it is explicitly changed by the\ndebtor.\n\nThis field is only available if the transaction status is `SUCCESS` and checkout data was requested.",
            "type": "object",
            "properties": {
              "contactDetails": {
                "type": "object",
                "title": "DebtorContactDetails",
                "properties": {
                  "firstName": {
                    "type": "string",
                    "description": "The first name of the debtor (can be different from the first name in the contact details)",
                    "example": "Edsger",
                    "minLength": 1
                  },
                  "lastName": {
                    "type": "string",
                    "description": "The last name of the debtor (can be different from the last name in the contact details)",
                    "example": "Dijkstra",
                    "minLength": 1
                  },
                  "phoneNumber": {
                    "type": "string",
                    "description": "The phone number of the debtor in E.164 format",
                    "pattern": "^\\+[1-9][0-9]{1,14}$",
                    "example": "+31612345678"
                  },
                  "email": {
                    "type": "string",
                    "description": "The e-mail address of the debtor",
                    "format": "email",
                    "example": "edsger@domain.nl",
                    "minLength": 1
                  }
                }
              },
              "shippingAddress": {
                "$ref": "#/components/schemas/IdealAddress"
              },
              "invoiceAddress": {
                "$ref": "#/components/schemas/IdealAddress"
              }
            }
          }
        }
      },
      "ReturnUrl": {
        "oneOf": [
          {
            "required": [
              "returnUrls"
            ],
            "type": "object",
            "properties": {
              "returnUrls": {
                "type": "object",
                "required": [
                  "success",
                  "cancelled",
                  "expired",
                  "failed"
                ],
                "properties": {
                  "success": {
                    "type": "string",
                    "format": "url",
                    "maxLength": 2000,
                    "example": "https://yourdomain.tld/order/payment-success.html"
                  },
                  "cancelled": {
                    "type": "string",
                    "format": "url",
                    "maxLength": 2000,
                    "example": "https://yourdomain.tld/order/payment-cancelled.html"
                  },
                  "expired": {
                    "type": "string",
                    "format": "url",
                    "maxLength": 2000,
                    "example": "https://yourdomain.tld/order/payment-expired.html"
                  },
                  "failed": {
                    "type": "string",
                    "format": "url",
                    "maxLength": 2000,
                    "example": "https://yourdomain.tld/order/payment-failed.html"
                  }
                }
              }
            }
          },
          {
            "required": [
              "returnUrl"
            ],
            "type": "object",
            "properties": {
              "returnUrl": {
                "type": "string",
                "format": "url",
                "maxLength": 2000,
                "example": "https://yourdomain.tld/order/return?orderID=order123"
              }
            }
          }
        ]
      },
      "Uuid": {
        "description": "Unique identifier",
        "type": "string",
        "format": "uuid",
        "minLength": 36,
        "maxLength": 36,
        "example": "8db1e7fa-ba8a-4189-92fd-67a20217443d"
      },
      "IdealAddress": {
        "type": "object",
        "title": "Address",
        "properties": {
          "firstName": {
            "type": "string",
            "description": "The first name of the debtor",
            "example": "Edsger",
            "minLength": 1
          },
          "lastName": {
            "type": "string",
            "description": "The last name of the debtor",
            "example": "Dijkstra",
            "minLength": 1
          },
          "companyName": {
            "type": "string",
            "description": "The company name of the debtor",
            "example": "Cookie factory",
            "minLength": 1
          },
          "postalCode": {
            "type": "string",
            "description": "The postal code of the address without spaces",
            "example": "1234AB",
            "minLength": 1
          },
          "houseNumber": {
            "type": "string",
            "description": "The house number of the address",
            "example": "100",
            "minLength": 1
          },
          "addition": {
            "type": "string",
            "description": "The addition of the address",
            "example": "2B",
            "minLength": 1
          },
          "street": {
            "type": "string",
            "description": "The street of the address",
            "example": "Bankastraat",
            "minLength": 1
          },
          "city": {
            "type": "string",
            "description": "The city of the address",
            "example": "Amsterdam",
            "minLength": 1
          },
          "countryName": {
            "type": "string",
            "description": "Name of the country",
            "example": "Netherlands",
            "minLength": 1
          }
        }
      },
      "Reference": {
        "description": "Identifier from client. This value will be sent in the webhook payload alongside the ID you receive as part of the response of a transaction.",
        "type": "string",
        "minLength": 1,
        "maxLength": 255,
        "example": 20210623130413,
        "default": ""
      },
      "Datetime": {
        "description": "ISO 8601 date and time",
        "type": "string",
        "format": "date-time",
        "minLength": 20,
        "example": "2006-01-02T15:04:05Z"
      },
      "Amount": {
        "description": "Denomination in the smallest currency subunit, as for example eurocents.",
        "type": "integer",
        "minimum": 1,
        "maximum": 99999999,
        "example": 1200
      },
      "Currency": {
        "description": "ISO 4217 currency code",
        "type": "string",
        "minLength": 3,
        "maxLength": 3,
        "default": "EUR",
        "example": "EUR"
      },
      "BIC": {
        "description": "Bank Identification Code",
        "type": "string",
        "minLength": 8,
        "maxLength": 11,
        "example": "RABONL2U"
      },
      "Language": {
        "description": "Preferred language of the user interface",
        "type": "string",
        "example": "nl"
      },
      "Refunds": {
        "description": "Details of refunds for a transaction",
        "type": "object",
        "required": [
          "refundedAmount",
          "refundedPendingAmount"
        ],
        "properties": {
          "refundedAmount": {
            "description": "Amount in the smallest currency subunit, as for example eurocents, that has already been refunded.",
            "type": "integer",
            "minimum": 0,
            "maximum": 99999999,
            "example": 300
          },
          "refundedPendingAmount": {
            "description": "Amount in the smallest currency subunit, as for example eurocents, that has been requested to be refunded.",
            "type": "integer",
            "minimum": 1,
            "maximum": 99999999,
            "example": 100
          }
        }
      },
      "TransactionWebhookEvent": {
        "description": "* `FINALSTATUS` - When the status of the transaction becomes final; it is no longer `OPEN`.\n* `STATUS_CHANGE` - When the status of the transaction has any change.\n",
        "type": "string",
        "enum": [
          "FINALSTATUS",
          "STATUS_CHANGE"
        ],
        "example": "FINALSTATUS"
      },
      "Digest": {
        "description": "Digest of whole message body",
        "type": "string",
        "example": "sha-256=OWM5MDc3ODYwNzdjYjE5NjU0Y2NjMDM4MzEyYzMxZTA5MTAzMDBjYWM1Y2I1ODM4NTdlMDU2MzhiMzE1ZDhjNw==",
        "externalDocs": {
          "description": "Instance Digests in HTTP",
          "url": "https://datatracker.ietf.org/doc/html/rfc3230"
        }
      },
      "TransactionStatus": {
        "description": "* `OPEN`       - Payment has been created. This is the initial status.\n* `SUCCESS`    - Payment has succeeded.\n* `CANCELLED`  - Payment has not succeeded; cancelled by the consumer.\n* `EXPIRED`    - Payment has not succeeded; expired.\n* `FAILURE`    - Payment has not succeeded; unknown reason.\n* `AUTHORIZED` - Payment is authorized.\n* `PENDING`    - Payment could not be completed yet; waiting for something.\n* `CHARGEBACK` - Payment chargeback was created.\n",
        "type": "string",
        "enum": [
          "OPEN",
          "SUCCESS",
          "CANCELLED",
          "EXPIRED",
          "FAILURE",
          "AUTHORIZED",
          "PENDING",
          "CHARGEBACK"
        ],
        "example": "OPEN"
      }
    },
    "responses": {
      "IdealTransaction": {
        "description": "iDEAL Transaction details",
        "headers": {
          "Digest": {
            "$ref": "#/components/headers/Digest"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "type": "object",
                  "required": [
                    "id",
                    "orderId",
                    "reference",
                    "amount",
                    "currency",
                    "purchaseId",
                    "description",
                    "expiresAt",
                    "status",
                    "action",
                    "createdAt",
                    "idealTransactionId"
                  ],
                  "properties": {
                    "id": {
                      "$ref": "#/components/schemas/Uuid"
                    },
                    "orderId": {
                      "$ref": "#/components/schemas/Uuid"
                    },
                    "reference": {
                      "$ref": "#/components/schemas/Reference"
                    },
                    "issuer": {
                      "$ref": "#/components/schemas/BIC"
                    },
                    "amount": {
                      "$ref": "#/components/schemas/Amount"
                    },
                    "currency": {
                      "$ref": "#/components/schemas/Currency"
                    },
                    "purchaseId": {
                      "type": "string",
                      "example": "order123"
                    },
                    "description": {
                      "type": "string",
                      "example": "Order at yourdomain.tld"
                    },
                    "expiresAt": {
                      "$ref": "#/components/schemas/Datetime"
                    },
                    "language": {
                      "$ref": "#/components/schemas/Language"
                    },
                    "webhooks": {
                      "$ref": "#/components/schemas/TransactionWebhookEvent"
                    },
                    "status": {
                      "$ref": "#/components/schemas/TransactionStatus"
                    },
                    "action": {
                      "description": "Next action to be performed by merchant (or consumer) to complete the payment.",
                      "type": "object",
                      "nullable": true,
                      "properties": {
                        "redirect": {
                          "type": "object",
                          "properties": {
                            "url": {
                              "description": "URL where consumer should be redirected to by the merchant to perform the payment.",
                              "type": "string",
                              "format": "url",
                              "example": "https://issuer.tld/ideal/start?trxid=213981209381209390821&random=wreq0dq90vgq0ew923123"
                            }
                          }
                        }
                      }
                    },
                    "createdAt": {
                      "$ref": "#/components/schemas/Datetime"
                    },
                    "consumer": {
                      "$ref": "#/components/schemas/IdealConsumer"
                    },
                    "refunds": {
                      "$ref": "#/components/schemas/Refunds"
                    },
                    "idealTransactionId": {
                      "description": "The 16-digit transaction ID within the iDEAL scheme as known by the acquirer and issuing bank, and \nused in the credit transfer. The value can have leading zeros.\nThis value is `null` if the status is `OPEN` or `FAILURE`.",
                      "type": "string",
                      "nullable": true,
                      "minLength": 16,
                      "maxLength": 16,
                      "example": 1234567890123456
                    }
                  }
                },
                {
                  "$ref": "#/components/schemas/ReturnUrl"
                }
              ]
            }
          }
        }
      },
      "InternalError": {
        "description": "Internal server error. This can be caused by an unresponsive backend",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "id",
                "message"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Uuid"
                },
                "message": {
                  "type": "string",
                  "example": "Service Unavailable"
                }
              }
            }
          }
        }
      },
      "UserError": {
        "description": "The user input was incorrect or something illegal was attempted (eg. using a service without having that service configured for the user, or not being authorized)",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "required": [
                "id",
                "message"
              ],
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Uuid"
                },
                "message": {
                  "type": "string",
                  "example": "no authorization methods provided"
                }
              }
            }
          }
        }
      }
    },
    "headers": {
      "Digest": {
        "description": "Digest of whole message body",
        "schema": {
          "$ref": "#/components/schemas/Digest"
        }
      }
    },
    "securitySchemes": {
      "oAuth2ClientCredentials": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/v1/authorization/oauth2/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 234,
      "2": 76,
      "3": 191,
      "4": 145,
      "5": 198,
      "6": 48,
      "7": 79,
      "8": 46,
      "9": 249,
      "10": 185,
      "11": 249
    }
  }
}
```