# Retrieve By Id Payment Gateway Transactions Get Payment Gateway Transactions By Id Endpoint: GET /rest/2.0/ECOM_TRANSACTION/{id} Version: 1.0 Security: JWT ## Path parameters: - `id` (integer, required) Id of the record ## Header parameters: - `sessionId` (string, required) ## Response 200 fields (application/json): - `retrieveResponse` (object) - `retrieveResponse.StatusCode` (string) StatusCode - `retrieveResponse.Invoicelist` (string) Invoicelist - `retrieveResponse.Id` (string) Id: ECOM_TRANSACTION_REQUEST_ID - `retrieveResponse.Created` (string) System controlled field: Date and time the record was created - `retrieveResponse.RealTimeFlag` (integer) RealTimeFlag - `retrieveResponse.EcomGatewayId` (integer) EcomGatewayId - `retrieveResponse.Status` (string) Status - `retrieveResponse.PaymentItemId` (integer) PaymentItemId - `retrieveResponse.StatusMessage` (string) StatusMessage - `retrieveResponse.TransactionType` (string) TransactionType - `retrieveResponse.BillingProfileId` (integer) BillingProfileId - `retrieveResponse.Amount` (string) Amount - `retrieveResponse.RefundItemId` (integer) RefundItemId - `retrieveResponse.GatewayTransactionId` (string) GatewayTransactionId - `retrieveResponse.ApproveInvoiceId` (integer) ApproveInvoiceId - `retrieveResponse.PaymentGatewayProfileId` (integer) PaymentGatewayProfileId: Payment Gateway Profile - `retrieveResponse.RequestText` (string) RequestText - `retrieveResponse.AlertExclusion` (string) AlertExclusion ## Response 400 fields (application/json): - `error` (string) Bad request - `message` (string) Bad request ## Response 401 fields (application/json): - `error` (string) Unauthorized - `message` (string) Unauthorized ## Response 404 fields (application/json): - `error` (string) Not found - `message` (string) Not found ## Response 429 fields (application/json): - `error` (string) Too many requests - `message` (string) Too many requests ## Response 500 fields (application/json): - `error` (string) Internal error - `message` (string) Internal error