- Customers
- Customer Address
- Retrieves a list of addresses for a customer
- Creates a new address for a customer
- Retrieves details for a single customer address
- Updates an existing customer address
- Removes an address from a customer’s address list
- Performs bulk operations for multiple customer addresses
- Sets the default address for a customer
- CustomerSavedSearch
- Customer
- Retrieves a list of customers
- Creates a customer
- Searches for customers that match a supplied query
- Retrieves a single customer
- Updates a customer
- Deletes a customer
- Creates an account activation URL for a customer
- Sends an account invite to a customer
- Retrieves a count of customers
- Retrieves all orders that belong to a customer
- Sales channels
- Checkout
- CollectionListing
- Retrieve collection listings that are published to your app
- Retrieve product_ids that are published to a collection_id
- Retrieve a specific collection listing that is published to your app
- Create a collection listing to publish a collection to your app
- Delete a collection listing to unpublish a collection from your app
- Product ResourceFeedback
- MobilePlatformApplication
- ProductListing
- Retrieve product listings that are published to your app
- Retrieve product_ids that are published to your app
- Retrieve a count of products that are published to your app
- Retrieve a specific product listing that is published to your app
- Create a product listing to publish a product to your app
- Delete a product listing to unpublish a product from your app
- ResourceFeedback
- Payment
- Products
- Collect
- Collection
- CustomCollection
- Product
- Product Image
- Product Variant
- SmartCollection
- Orders
- Abandoned checkouts
- DraftOrder
- Order Risk
- Transaction
- Order
- Refund
- Access
- Billing
- Online store
- Asset
- Blog
- Article
- Retrieves a list of all articles from a blog
- Creates an article for a blog
- Retrieves a count of all articles from a blog
- Receive a single Article
- Updates an article
- Deletes an article
- Retrieves a list of all article authors
- Retrieves a list of all article tags
- Retrieves a list of all article tags from a specific blog
- Redirect
- Comment
- ScriptTag
- Page
- Theme
- Shipping and fulfillment
- CancellationRequest
- CarrierService
- AssignedFulfillmentOrder
- FulfillmentEvent
- Fulfillment
- Retrieves fulfillments associated with an order
- Retrieves fulfillments associated with a fulfillment order
- Retrieves a count of fulfillments associated with a specific order
- Receive a single Fulfillment
- Creates a fulfillment for one or many fulfillment orders
- Updates the tracking information for a fulfillment
- Cancels a fulfillment
- FulfillmentOrder
- Retrieves a list of fulfillment orders for a specific order
- Retrieves a specific fulfillment order
- Cancel a fulfillment order
- Marks a fulfillment order as incomplete
- Moves a fulfillment order to a new location
- Marks the fulfillment order as open
- Reschedules the fulfill_at time of a scheduled fulfillment order
- Applies a fulfillment hold on an open fulfillment order
- Sets deadline for fulfillment orders
- Releases the fulfillment hold on a fulfillment order
- LocationsForMove
- FulfillmentRequest
- FulfillmentService
- Shopify Payments
- Analytics
- Deprecated API calls
- Discounts
- DiscountCode
- Creates a discount code
- Retrieves a list of discount codes
- Updates an existing discount code
- Retrieves a single discount code
- Deletes a discount code
- Retrieves the location of a discount code
- Retrieves a count of discount codes for a shop
- Creates a discount code creation job
- Retrieves a discount code creation job
- Retrieves a list of discount codes for a discount code creation job
- PriceRule
- DiscountCode
- Inventory
- Events
- MarketingEvent
- Metafield
- Plus
- Store properties
- TenderTransaction
Retrieves a specific transaction
GET
/admin/api/{api_version}/orders/{order_id}/transactions/{transaction_id}.json
in_shop_currency=true
.extended_authorization_attributes
are available on this endpoint only to stores on the Shopify Plus plan that use Shopify Payments. To learn more about extended authorization periods, refer to Payment authorization.请求参数
Path 参数
api_version
string
必需
order_id
string
必需
transaction_id
string
必需
Query 参数
fields
string
可选
in_shop_currency
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://demo.myshopify.com//admin/api//orders//transactions/.json'
返回响应
🟢200Retrieves a specific transaction
application/json
Body
transaction
object (Transaction)
可选
amount
string
可选
amount
, then it defaults to the total cost of the order (even if a previous transaction has been made towards it).authorization
string
可选
authorization_expires_at
string
可选
created_at
string
只读可选
currency
string
可选
device_id
string
只读可选
error_code
string
只读可选
- incorrect_number
- invalid_number
- invalid_expiry_date
- invalid_cvc
- expired_card
- incorrect_cvc
- incorrect_zip
- incorrect_address
- card_declined
- processing_error
- call_issuer
- pick_up_card
extended_authorization_attributes
string
可选
- standard_authorization_expires_at: The date and time (ISO 8601 format) when the standard authorization period expires. After expiry, an extended authorization fee is applied upon capturing the payment.
- extended_authorization_expires_at: The date and time (ISO 8601 format) when the extended authorization period expires. After expiry, the merchant can't capture the payment.
extended_authorization_attributes
are available on the Retrieve a specific transaction for an order endpoint only if the following criteria applies:- The store is on a Shopify Plus plan.
- The store uses Shopify Payments.
- The transaction being retrieved is an extended authorization, which is determined by the
capture_before
date in the charge.
extended_authorization_attributes
.gateway
string
可选
id
string
只读可选
kind
string
必需
- authorization: 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.
- capture: A transfer of money that was reserved during the authorization of a shop.
- sale: The authorization and capture of a payment performed in one single step.
- void: The cancellation of a pending authorization or capture.
- refund: The partial or full return of captured money to the customer.
location_id
string
只读可选
message
string
只读可选
order_id
string
可选
payment_details
string
只读可选
- credit_card_bin: The issuer identification number (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.
- avs_result_code: The response code from the address verification system. The code is always a single letter. Refer to this chart for the codes and their definitions.
- cvv_result_code: The response code from the credit card company indicating whether the customer entered the card security code, or card verification value, correctly. The code is a single letter or empty string; see this chart for the codes and their definitions.
- credit_card_number: The customer's credit card number, with most of the leading digits redacted.
- credit_card_company: The name of the company that issued the customer's credit card.
- credit_card_name: The holder of the credit card.
- credit_card_wallet: The wallet type where this credit card was retrieved from.
- credit_card_expiration_month: The month in which the credit card expires.
- credit_card_expiration_year: The year in which the credit card expires.
parent_id
string
可选
- For
capture
transactions, the parent needs to be anauthorization
transaction. - For
void
transactions, the parent needs to be anauthorization
transaction. - For
refund
transactions, the parent needs to be acapture
orsale
transaction.
payments_refund_attributes
string
可选
- status: The current status of the refund. Valid values:
pending
,failure
,success
, anderror
. - acquirer_reference_number: 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.
payments_refund_attributes
are available on any JSON serialization of the order transaction only if the following criteria apply:- The store is on a Shopify Plus plan.
- The store uses Shopify Payments.
- The order transaction kind is either
refund
orvoid
.
payments_refund_attributes
property is omitted.processed_at
string
可选
when a transaction was processed. This value is the date that's used in the analytic reports. By default,
it matches the
created_at
value. If you're importing transactions from an app or anotherplatform, then you can set
processed_at
to a date and time in the past to match when theoriginal transaction was processed.
receipt
string
只读