# Transaction

        <p>Transactions are created for every order that results in an exchange of money.</p>
        {{ '/api/reference/transaction.png' | image }}
        <p>There are five types of transactions:</p>
        <ul>
         <li><strong>Authorization</strong>: An amount reserved against the cardholder's funding source. Money does not change hands until the authorization is captured.</li>
         <li><strong>Sale</strong>: An authorization and capture performed together in a single step.</li>
         <li><strong>Capture</strong>: A transfer of the money that was reserved during the authorization stage.</li>
         <li><strong>Void</strong>: A cancellation of a pending authorization or capture.</li>
         <li><strong>Refund</strong>: A partial or full return of captured funds to the cardholder. A refund can happen only after a capture is processed.</li>
        </ul>
        <p>Refund transactions must be created by using the <a href="/docs/admin-api/rest/reference/orders/refund">Refund resource</a>.</p>
        <div class="note">
          <h4>Note</h4>
          <p>An order can have more than one authorization transaction associated with it. This might happen when an order is edited or when a post-purchase upsell is added to the order. To be notified when an order is edited subscribe to the OrderEdit webhook.</p>
          <p>If your app captures payments, you should make a <code>GET</code> request to the <code>/admin/api/{version}/orders/{order_id}/transactions.json</code> endpoint to retrieve the
           authorization transactions associated with an order. Then, to complete the full order payment capture, you should use the <code>authorization</code> or <code>parent_id</code>
           properties in separate capture <code>POST</code> requests to the same endpoint for each authorization transaction.</p>
        </div>
        <div class="note">
          <h4>Note</h4>
          <p>An order can have no more than 100 transactions associated with it.</p>
        </div>

## Resource Properties

### Transaction

* amount: The amount of money included in the transaction. If you don't provide a value for `amount`, then it defaults to the total cost of the order (even if a previous transaction has been made towards it).

  * Type: x-string
  * Example: "10.00"
* amount_rounding: The rounding adjustment for cash payments, to be applied on the amount to get a rounded amount.

  * Type: x-string
  * Example: "0.02"
* authorization: The authorization code associated with the transaction.
  * Type: x-string
  * Example: "ch_1AtJu6CktlpKSclI4zjeQb2t"
* authorization_expires_at: The date and time (<a href='https://en.wikipedia.org/wiki/ISO_8601' target="_blank">ISO 8601</a> format) when the Shopify Payments authorization expires.

  * Type: x-string
  * Example: "2021-03-13T16:09:54-04:00"
* created_at: The date and time (<a href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a> format) when the transaction was created.
  * Type: x-string
  * Example: "2012-03-13T16:09:54-04:00"
* currency: <p>The three-letter code (<a href="https://en.wikipedia.org/wiki/ISO_4217">ISO 4217</a> format) for the currency used for the payment.</p>

  * Type: x-string
  * Example: "USD"
* device_id: The ID for the device.
  * Type: x-string
  * Example: 1
* error_code:           A standardized error code, independent of the payment provider. Valid values:
          <ul>
            <li><strong>incorrect_number</strong></li>
            <li><strong>invalid_number</strong></li>
            <li><strong>invalid_expiry_date</strong></li>
            <li><strong>invalid_cvc</strong></li>
            <li><strong>expired_card</strong></li>
            <li><strong>incorrect_cvc</strong></li>
            <li><strong>incorrect_zip</strong></li>
            <li><strong>incorrect_address</strong></li>
            <li><strong>card_declined</strong></li>
            <li><strong>processing_error</strong></li>
            <li><strong>call_issuer</strong></li>
            <li><strong>pick_up_card</strong></li>
          </ul>

  * Type: x-string
  * Example: "invalid_cvc"
* extended_authorization_attributes:           The attributes associated with a Shopify Payments extended authorization period. It has the following attributes:
            <ul>
              <li><strong>standard_authorization_expires_at</strong>: The date and time (<a href='https://en.wikipedia.org/wiki/ISO_8601' target="_blank">ISO 8601</a> format) when the standard authorization period expires. After expiry, an extended authorization fee is applied upon capturing the payment.</li>
              <li><strong>extended_authorization_expires_at</strong>: The date and time (<a href='https://en.wikipedia.org/wiki/ISO_8601' target="_blank">ISO 8601</a> format) when the extended authorization period expires. After expiry, the merchant can't capture the payment.</li>
            </ul>

          <code>extended_authorization_attributes</code> are available on the <strong>Retrieve a specific transaction for an order</strong> endpoint only if the following criteria applies:
            <ul>
              <li>The store is on a <a href="https://www.shopify.com/plus?shpxid=72e62d60-101E-4719-442C-5B4B3876EBD9">Shopify Plus</a> plan.</li>
              <li>The store uses Shopify Payments.</li>
              <li>The transaction being retrieved is an extended authorization, which is determined by the <code>capture_before</code> date in the charge.</li>
            </ul>

           If the criteria isn't met, then an empty JSON is returned for <code>extended_authorization_attributes</code>.

           To learn more about extended authorization periods, refer to <a href="https://help.shopify.com/en/manual/payments/payment-authorization">Payment authorization</a>.

  * Type: x-string
  * Example: {"standard_authorization_expires_at"=>"2020-10-08T00:00:00-04:00", "extended_authorization_expires_at"=>"2020-10-30T00:00:00-04:00"}
* gateway:           The name of the gateway the transaction was issued through. A list of gateways can be found on Shopify's <a href="//www.shopify.com/payment-gateways" target="_blank">payment gateways page</a>.

  * Type: x-string
  * Example: "shopify_payments"
* id: The ID for the transaction.
  * Type: x-string
  * Example: 999225661
* kind:           The transaction's type. Valid values:
          <ul>
            <li><strong>authorization</strong>: Money that the customer has agreed to pay. The authorization period can be between 7 and 30 days (depending on your payment service) while a store waits for a payment to be captured.</li>
            <li><strong>capture</strong>: A transfer of money that was reserved during the authorization of a shop.</li>
            <li><strong>sale</strong>: The authorization and capture of a payment performed in one single step.</li>
            <li><strong>void</strong>: The cancellation of a pending authorization or capture.</li>
            <li><strong>refund</strong>: The partial or full return of captured money to the customer.</li>
          </ul>

  * Type: x-string
  * Example: "capture"
* location_id: The ID of the physical location where the transaction was processed.
  * Type: x-string
  * Example: {"id"=>49202758}
* message:           A string generated by the payment provider with additional information about why the transaction succeeded or failed.

  * Type: x-string
  * Example: "Marked the Stripe payment as received"
* order_id: The ID for the order that the transaction is associated with.
  * Type: x-string
  * Example: 450789469
* payment_details:           Information about the payment method used for this transaction. It has the following attributes:
          <ul>
            <li><strong>credit_card_bin</strong>: The <a href="https://en.wikipedia.org/wiki/ISO/IEC_7812" target="_blank">issuer identification number</a> (IIN), formerly known as bank identification number (BIN) of the customer's credit card. This is made up of the first few digits of the credit card number.</li>
            <li><strong>avs_result_code</strong>: The response code from the <a href="https://en.wikipedia.org/wiki/Address_Verification_System" target="_blank">address verification system</a>. The code is always a single letter. Refer to <a href='http://www.emsecommerce.net/avs_cvv2_response_codes.htm' target="_blank">this chart</a> for the codes and their definitions.</li>
            <li><strong>cvv_result_code</strong>: The response code from the credit card company indicating whether the customer entered the <a href="https://en.wikipedia.org/wiki/Card_Security_Code" target="_blank">card security code</a>, or card verification value, correctly. The code is a single letter or empty string; see <a href="http://www.emsecommerce.net/avs_cvv2_response_codes.htm" target="_blank">this chart</a> for the codes and their definitions.</li>
            <li><strong>credit_card_number</strong>: The customer's credit card number, with most of the leading digits redacted.</li>
            <li><strong>credit_card_company</strong>: The name of the company that issued the customer's credit card.</li>
            <li><strong>credit_card_name</strong>: The holder of the credit card.</li>
            <li><strong>credit_card_wallet</strong>: The wallet type where this credit card was retrieved from.</li>
            <li><strong>credit_card_expiration_month</strong>: The month in which the credit card expires.</li>
            <li><strong>credit_card_expiration_year</strong>: The year in which the credit card expires.</li>
            <li><strong>buyer_action_info</strong>: Details for payment methods that require additional buyer action to complete the order transaction.</li>
            <li><strong>payment_method_name</strong>: The name of the payment method used by the buyer to complete the order transaction.</li>
          </ul>

  * Type: x-string
  * Example: {"credit_card_bin"=>"123456", "avs_result_code"=>"Y", "cvv_result_code"=>"M", "credit_card_number"=>"•••• •••• •••• 4242", "credit_card_company"=>"Visa", "credit_card_name"=>"John Smith", "credit_card_wallet"=>"shopify_pay", "credit_card_expiration_month"=>10, "credit_card_expiration_year"=>2028, "buyer_action_info"=>{"multibanco"=>{"Entity"=>"12345", "Reference"=>"999999999"}}, "payment_method_name"=>"multibanco"}
* parent_id:           The ID of an associated transaction.
          <ul>
            <li>For <code>capture</code> transactions, the parent needs to be an <code>authorization</code> transaction.</li>
            <li>For <code>void</code> transactions, the parent needs to be an <code>authorization</code> transaction.</li>
            <li>For <code>refund</code> transactions, the parent needs to be a <code>capture</code> or <code>sale</code> transaction.</li>
          </ul>

  * Type: x-string
  * Example: 584698724408
* payments_refund_attributes:           The attributes associated with a Shopify Payments refund. It has the following attributes:
            <ul>
              <li><strong>status</strong>: The current status of the refund. Valid values: <code>pending</code>, <code>failure</code>, <code>success</code>, and <code>error</code>.</li>
              <li><strong>acquirer_reference_number</strong>: A unique number associated with the transaction that can be used to track the refund. This property has a value only for transactions completed with Visa or Mastercard.</li>
            </ul>

          <code>payments_refund_attributes</code> are available on any JSON serialization of the order transaction only if the following criteria apply:
            <ul>
              <li>The store is on a <a href="https://www.shopify.com/plus?shpxid=72e62d60-101E-4719-442C-5B4B3876EBD9">Shopify Plus</a> plan.</li>
              <li>The store uses Shopify Payments.</li>
              <li>The order transaction <strong>kind</strong> is either <code>refund</code> or <code>void</code>.</li>
            </ul>

           If the criteria isn't met, then the <code>payments_refund_attributes</code> property is omitted.


  * Type: x-string
  * Example: {"status"=>"success", "acquirer_reference_number"=>"123456789012345678901234"}
* processed_at:           The date and time (<a href='https://en.wikipedia.org/wiki/ISO_8601' target="_blank">ISO 8601</a> format)
          when a transaction was processed. This value is the date that's used in the analytic reports. By default,
          it matches the <code>created_at</code> value. If you're importing transactions from an app or another
          platform, then you can set <code>processed_at</code> to a date and time in the past to match when the
          original transaction was processed.

  * Type: x-string
  * Example: "2018-01-10T11:00:00-05:00"
* receipt:           A transaction receipt attached to the transaction by the gateway. The value of this field depends on which gateway the shop is using.

  * Type: x-string
  * Example: {}
* source_name:           The origin of the transaction. This is set by Shopify and can't be overridden. Example values (not an exhaustive list): <code>web</code>, <code>pos</code>, <code>iphone</code>, and <code>android</code>.

  * Type: x-string
  * Example: "web"
* status: The status of the transaction. Valid values: <code>pending</code>, <code>failure</code>, <code>success</code>, and <code>error</code>.
  * Type: x-string
  * Example: "success"
* total_unsettled_set: Specifies the available amount with currency to capture on the gateway in shop and           presentment currencies. Only available when an amount is capturable or manually mark as paid.
  * Type: x-string
  * Example: {"presentment_money"=>{"amount"=>"171.8", "currency"=>"USD"}, "shop_money"=>{"amount"=>"171.8", "currency"=>"USD"}}
* test: Whether the transaction is a test transaction.
  * Type: x-string
  * Example: true
* user_id: The ID for the user who was logged into the Shopify POS device when the order was processed, if applicable.
  * Type: x-string
  * Example: 106045196
* currency_exchange_adjustment:           An adjustment on the transaction showing the amount lost or gained due to fluctuations in the currency exchange rate. It has the following attributes:
          <ul>
            <li><strong>ID</strong>: The ID of the adjustment.</li>
            <li><strong>adjustment</strong>: The difference between the amounts on the associated transaction and the parent transaction.</li>
            <li><strong>original_amount</strong>: The amount of the parent transaction in the shop currency.</li>
            <li><strong>final_amount</strong>: The amount of the associated transaction in the shop currency.</li>
            <li><strong>currency</strong>: The shop currency.</li>
          </ul>
          Requires the header <code>X-Shopify-Api-Features = include-currency-exchange-adjustments</code>.

  * Type: x-string
  * Example: {"id"=>1, "adjustment"=>"-0.01", "original_amount"=>"-53.62", "final_amount"=>"-53.63", "currency"=>"CAD"}
* manual_payment_gateway: Whether payment gateway used is manual.
  * Type: boolean
  * Example: false
## Retrieves a list of transactions

<p>Retrieves a list of transactions.</p>
<p>Transactions attached to multi-currency orders are in the presentment currency by default. To retrieve transactions in the shop currency, include the URL parameter <code>in_shop_currency=true</code>.</p>

### Endpoint
/admin/api/#{api_version}/orders/{order_id}/transactions.json (GET)

### Parameters
* api_version (required): 
* order_id (required): 
* fields: Show only certain fields, specifed by a comma-separated list of fields names.
* in_shop_currency: Show amounts in the shop currency.
* since_id: Retrieve only transactions after the specified ID.

### Responses
#### 200
Retrieves a list of transactions

Examples:
##### Retrieve an order's transactions
Request:
```
GET /admin/api/unstable/orders/450789469/transactions.json
```

Response:
```
HTTP/1.1 200 OK
{"transactions":[{"id":179259969,"order_id":450789469,"kind":"refund","gateway":"bogus","status":"success","message":null,"created_at":"2005-08-05T12:59:12-04:00","test":false,"authorization":"authorization-key","location_id":null,"user_id":null,"parent_id":801038806,"processed_at":"2005-08-05T12:59:12-04:00","device_id":null,"error_code":null,"source_name":"web","receipt":{},"currency_exchange_adjustment":null,"amount":"209.00","currency":"USD","payment_id":"#1001.3","total_unsettled_set":{"presentment_money":{"amount":"348.0","currency":"USD"},"shop_money":{"amount":"348.0","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/179259969"},{"id":389404469,"order_id":450789469,"kind":"authorization","gateway":"bogus","status":"success","message":null,"created_at":"2005-08-01T11:57:11-04:00","test":false,"authorization":"authorization-key","location_id":null,"user_id":null,"parent_id":null,"processed_at":"2005-08-01T11:57:11-04:00","device_id":null,"error_code":null,"source_name":"web","payment_details":{"credit_card_bin":null,"avs_result_code":null,"cvv_result_code":null,"credit_card_number":"•••• •••• •••• 4242","credit_card_company":"Visa","buyer_action_info":null,"credit_card_name":null,"credit_card_wallet":null,"credit_card_expiration_month":null,"credit_card_expiration_year":null,"payment_method_name":"visa"},"receipt":{"testcase":true,"authorization":"123456"},"currency_exchange_adjustment":null,"amount":"598.94","currency":"USD","payment_id":"#1001.1","total_unsettled_set":{"presentment_money":{"amount":"348.0","currency":"USD"},"shop_money":{"amount":"348.0","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/389404469"},{"id":801038806,"order_id":450789469,"kind":"capture","gateway":"bogus","status":"success","message":null,"created_at":"2005-08-05T10:22:51-04:00","test":false,"authorization":"authorization-key","location_id":null,"user_id":null,"parent_id":389404469,"processed_at":"2005-08-05T10:22:51-04:00","device_id":null,"error_code":null,"source_name":"web","receipt":{},"currency_exchange_adjustment":null,"amount":"250.94","currency":"USD","payment_id":"#1001.2","total_unsettled_set":{"presentment_money":{"amount":"348.0","currency":"USD"},"shop_money":{"amount":"348.0","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/801038806"}]}
```
##### Retrieve an order's transactions after a specified ID
Request:
```
GET /admin/api/unstable/orders/450789469/transactions.json
```

Response:
```
HTTP/1.1 200 OK
{"transactions":[{"id":1068278506,"order_id":450789469,"kind":"capture","gateway":"bogus","status":"success","message":"Bogus Gateway: Forced success","created_at":"2025-01-02T11:34:39-05:00","test":true,"authorization":null,"location_id":null,"user_id":null,"parent_id":389404469,"processed_at":"2025-01-02T11:34:39-05:00","device_id":null,"error_code":null,"source_name":"755357713","payment_details":{"credit_card_bin":null,"avs_result_code":null,"cvv_result_code":null,"credit_card_number":"•••• •••• •••• 4242","credit_card_company":"Visa","buyer_action_info":null,"credit_card_name":null,"credit_card_wallet":null,"credit_card_expiration_month":null,"credit_card_expiration_year":null,"payment_method_name":"visa"},"receipt":{},"currency_exchange_adjustment":null,"amount":"10.00","currency":"USD","payment_id":"c901414060.1","total_unsettled_set":{"presentment_money":{"amount":"338.0","currency":"USD"},"shop_money":{"amount":"338.0","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/1068278506"}]}
```
## Creates a transaction for an order

<aside class="note caution">
  <h4>Caution</h4>
  <p>For multi-currency orders, the <code>currency</code> property is required when creating refund and capture transactions. The value should be the presentment currency from the order. For more information, refer to the <a href="/api/admin-rest/latest/resources/transaction"><i>Transaction resource</i></a>.</p>
</aside>
  <p>Creates a transaction for an order.</p>

### Endpoint
/admin/api/#{api_version}/orders/{order_id}/transactions.json (POST)

### Parameters
* api_version (required): 
* order_id (required): 
* source: An optional origin of the transaction. Set to <code>external</code> to import a cash transaction for the associated order.

### Responses
#### 201
Creates a transaction for an order

Examples:
##### Capture a specified amount on an authorized order, and associate the capture with an authorization by including its ID
Request:
```
POST /admin/api/unstable/orders/450789469/transactions.json
{"transaction":{"currency":"USD","amount":"10.00","kind":"capture","parent_id":389404469}}
```

Response:
```
HTTP/1.1 201 Created
{"transaction":{"id":1068278510,"order_id":450789469,"kind":"capture","gateway":"bogus","status":"success","message":"Bogus Gateway: Forced success","created_at":"2025-01-02T11:34:43-05:00","test":true,"authorization":null,"location_id":null,"user_id":null,"parent_id":389404469,"processed_at":"2025-01-02T11:34:43-05:00","device_id":null,"error_code":null,"source_name":"755357713","payment_details":{"credit_card_bin":null,"avs_result_code":null,"cvv_result_code":null,"credit_card_number":"•••• •••• •••• 4242","credit_card_company":"Visa","buyer_action_info":null,"credit_card_name":null,"credit_card_wallet":null,"credit_card_expiration_month":null,"credit_card_expiration_year":null,"payment_method_name":"visa"},"receipt":{},"currency_exchange_adjustment":null,"amount":"10.00","currency":"USD","payment_id":"c901414060.1","total_unsettled_set":{"presentment_money":{"amount":"588.94","currency":"USD"},"shop_money":{"amount":"588.94","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/1068278510"}}
```
##### Capture the full amount for one authorization on an order, and associate the capture with an authorization by including its authorization code
Request:
```
POST /admin/api/unstable/orders/450789469/transactions.json
{"transaction":{"kind":"capture","authorization":"authorization-key"}}
```

Response:
```
HTTP/1.1 201 Created
{"transaction":{"id":1068278515,"order_id":450789469,"kind":"capture","gateway":"bogus","status":"success","message":"Bogus Gateway: Forced success","created_at":"2025-01-02T11:34:49-05:00","test":true,"authorization":null,"location_id":null,"user_id":null,"parent_id":389404469,"processed_at":"2025-01-02T11:34:49-05:00","device_id":null,"error_code":null,"source_name":"755357713","payment_details":{"credit_card_bin":null,"avs_result_code":null,"cvv_result_code":null,"credit_card_number":"•••• •••• •••• 4242","credit_card_company":"Visa","buyer_action_info":null,"credit_card_name":null,"credit_card_wallet":null,"credit_card_expiration_month":null,"credit_card_expiration_year":null,"payment_method_name":"visa"},"receipt":{},"currency_exchange_adjustment":null,"amount":"598.94","currency":"USD","payment_id":"c901414060.1","total_unsettled_set":{"presentment_money":{"amount":"0.0","currency":"USD"},"shop_money":{"amount":"0.0","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/1068278515"}}
```
##### Create a test transaction
Request:
```
POST /admin/api/unstable/orders/450789469/transactions.json
{"transaction":{"currency":"USD","amount":"10.00","kind":"capture","parent_id":389404469,"test":true}}
```

Response:
```
HTTP/1.1 201 Created
{"transaction":{"id":1068278505,"order_id":450789469,"kind":"capture","gateway":"bogus","status":"success","message":"Bogus Gateway: Forced success","created_at":"2025-01-02T11:34:39-05:00","test":true,"authorization":null,"location_id":null,"user_id":null,"parent_id":389404469,"processed_at":"2025-01-02T11:34:39-05:00","device_id":null,"error_code":null,"source_name":"755357713","payment_details":{"credit_card_bin":null,"avs_result_code":null,"cvv_result_code":null,"credit_card_number":"•••• •••• •••• 4242","credit_card_company":"Visa","buyer_action_info":null,"credit_card_name":null,"credit_card_wallet":null,"credit_card_expiration_month":null,"credit_card_expiration_year":null,"payment_method_name":"visa"},"receipt":{},"currency_exchange_adjustment":null,"amount":"10.00","currency":"USD","payment_id":"c901414060.1","total_unsettled_set":{"presentment_money":{"amount":"588.94","currency":"USD"},"shop_money":{"amount":"588.94","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/1068278505"}}
```
##### Void a transaction
Request:
```
POST /admin/api/unstable/orders/450789469/transactions.json
{"transaction":{"currency":"USD","amount":"10.00","kind":"void","parent_id":389404469}}
```

Response:
```
HTTP/1.1 201 Created
{"transaction":{"id":1068278518,"order_id":450789469,"kind":"void","gateway":"bogus","status":"success","message":"Bogus Gateway: Forced success","created_at":"2025-01-02T11:34:51-05:00","test":true,"authorization":null,"location_id":null,"user_id":null,"parent_id":389404469,"processed_at":"2025-01-02T11:34:51-05:00","device_id":null,"error_code":null,"source_name":"755357713","payment_details":{"credit_card_bin":null,"avs_result_code":null,"cvv_result_code":null,"credit_card_number":"•••• •••• •••• 4242","credit_card_company":"Visa","buyer_action_info":null,"credit_card_name":null,"credit_card_wallet":null,"credit_card_expiration_month":null,"credit_card_expiration_year":null,"payment_method_name":"visa"},"receipt":{},"currency_exchange_adjustment":null,"amount":"0.00","currency":"USD","payment_id":"c901414060.1","total_unsettled_set":{"presentment_money":{"amount":"0.0","currency":"USD"},"shop_money":{"amount":"0.0","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/1068278518"}}
```
## Retrieves a count of an order's transactions

Retrieves a count of an order's transactions.

### Endpoint
/admin/api/#{api_version}/orders/{order_id}/transactions/count.json (GET)

### Parameters
* api_version (required): 
* order_id (required): 

### Responses
#### 200
Retrieves a count of an order's transactions

Examples:
##### Count an order's transactions
Request:
```
GET /admin/api/unstable/orders/450789469/transactions/count.json
```

Response:
```
HTTP/1.1 200 OK
{"count":3}
```
## Retrieves a specific transaction

<p>Retrieves a specific transaction.</p>
<p>Transactions attached to multi-currency orders are in the presentment currency by default. To retrieve transactions in the shop currency, include the URL parameter <code>in_shop_currency=true</code>.</p>
<p><code>extended_authorization_attributes</code> are available on this endpoint only to stores on the <a href="https://www.shopify.com/plus?shpxid=72e62d60-101E-4719-442C-5B4B3876EBD9">Shopify Plus</a> plan that use Shopify Payments. To learn more about extended authorization periods, refer to <a href="https://help.shopify.com/en/manual/payments/payment-authorization">Payment authorization</a>.</p>

### Endpoint
/admin/api/#{api_version}/orders/{order_id}/transactions/{transaction_id}.json (GET)

### Parameters
* api_version (required): 
* order_id (required): 
* transaction_id (required): 
* fields: Show only certain fields, specified by a comma-separated list of field names.
* in_shop_currency: Show amounts in the shop currency.

### Responses
#### 200
Retrieves a specific transaction

Examples:
##### Retrieve a specific transaction for an order
Request:
```
GET /admin/api/unstable/orders/450789469/transactions/389404469.json
```

Response:
```
HTTP/1.1 200 OK
{"transaction":{"id":389404469,"order_id":450789469,"kind":"authorization","gateway":"bogus","status":"success","message":null,"created_at":"2005-08-01T11:57:11-04:00","test":false,"authorization":"authorization-key","location_id":null,"user_id":null,"parent_id":null,"processed_at":"2005-08-01T11:57:11-04:00","device_id":null,"error_code":null,"source_name":"web","payment_details":{"credit_card_bin":null,"avs_result_code":null,"cvv_result_code":null,"credit_card_number":"•••• •••• •••• 4242","credit_card_company":"Visa","buyer_action_info":null,"credit_card_name":null,"credit_card_wallet":null,"credit_card_expiration_month":null,"credit_card_expiration_year":null,"payment_method_name":"visa"},"receipt":{"testcase":true,"authorization":"123456"},"currency_exchange_adjustment":null,"amount":"598.94","currency":"USD","authorization_expires_at":null,"extended_authorization_attributes":{},"payment_id":"#1001.1","total_unsettled_set":{"presentment_money":{"amount":"348.0","currency":"USD"},"shop_money":{"amount":"348.0","currency":"USD"}},"manual_payment_gateway":false,"amount_rounding":null,"admin_graphql_api_id":"gid://shopify/OrderTransaction/389404469"}}
```