> ## Documentation Index
> Fetch the complete documentation index at: https://wpay-feat-edp-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Step 4: Inspect a transaction

After the transaction has been created your application can get the
latest details and status using the transaction ID submitted in the form
or passed back in the `onComplete` callback.

## Get transaction details

This transaction ID can be used with the SDK to fetch additional details about
the transaction.

<CodeGroup>
  ```js cURL
  curl -i -X GET "https://api.example.gr4vy.app/transactions/fe26475d-ec3e-4884-9553-f7356683f7f9" \
      -H "Authorization: Bearer [JWT_TOKEN]"
  ```

  ```js Node
  const response = await client.getTransaction(transaction_id);
  console.log(response.data);
  ```

  ```python Python
  response = client.get_transaction(transaction_id)
  print(response)
  ```

  ```php PHP
  $result = $apiInstance->getTransaction($transaction_id);
  echo $result;
  ```

  ```java Java
  Transaction response = transactionsApi.getTransaction(transaction.getId().toString());
  System.out.println(response);
  ```
</CodeGroup>

The transaction includes details about the payment method used, and the status
of the transaction.

```json
{
  "type": "transaction",
  "id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
  "status": "authorized",
  "amount": 1299,
  "currency": "AUD",
  "payment_method": {
    "type": "payment-method",
    "id": "77a76f7e-d2de-4bbc-ada9-d6a0015e6bd5",
    "method": "card",
    ...
  },
  ...
}
```

<Info>
  Visit the [API reference documentation](/reference) for full details about the
  transaction resource, and any other API.
</Info>
