- 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 list of payments on a particular checkout
GET
/admin/api/{api_version}/checkouts/{token}/payments.json
请求参数
Path 参数
api_version
string
必需
token
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//checkouts//payments.json'
返回响应
🟢200Retrieves a list of payments on a particular checkout
application/json
Body
payments
array [object {6}]
可选
id
number
可选
unique_token
string
可选
payment_processing_error_message
null
可选
transaction
object
可选
credit_card
null
可选
checkout
object
可选
示例
{
"payments": [
{
"id": 25428999,
"unique_token": "e01e661f4a99acd9dcdg6f1422d0d6f7",
"payment_processing_error_message": null,
"transaction": {
"amount": "598.94",
"amount_in": null,
"amount_out": null,
"amount_rounding": null,
"authorization": "authorization-key",
"created_at": "2005-08-01T11:57:11-04:00",
"currency": "USD",
"error_code": null,
"parent_id": null,
"gateway": "bogus",
"id": 389404469,
"kind": "authorization",
"message": null,
"status": "success",
"test": false
},
"credit_card": null,
"checkout": {
"completed_at": null,
"created_at": "2012-10-12T07:05:27-04:00",
"currency": "USD",
"presentment_currency": "USD",
"customer_id": 207119551,
"customer_locale": "en",
"device_id": null,
"discount_code": null,
"discount_codes": [],
"email": "bob.norman@mail.example.com",
"legal_notice_url": null,
"location_id": null,
"name": "#446514532",
"note": "",
"note_attributes": {
"custom engraving": "Happy Birthday",
"colour": "green"
},
"order_id": null,
"order_status_url": null,
"order": null,
"payment_due": "419.49",
"payment_url": "https://app.local/cardserver/sessions",
"payments": [
{
"id": 25428999,
"unique_token": "e01e661f4a99acd9dcdg6f1422d0d6f7",
"payment_processing_error_message": null,
"transaction": {
"amount": "598.94",
"amount_in": null,
"amount_out": null,
"amount_rounding": null,
"authorization": "authorization-key",
"created_at": "2005-08-01T11:57:11-04:00",
"currency": "USD",
"error_code": null,
"parent_id": null,
"gateway": "bogus",
"id": 389404469,
"kind": "authorization",
"message": null,
"status": "success",
"test": false
},
"credit_card": null
}
],
"phone": null,
"shopify_payments_account_id": null,
"privacy_policy_url": null,
"refund_policy_url": null,
"requires_shipping": true,
"reservation_time_left": 0,
"reservation_time": null,
"source_identifier": null,
"source_name": "web",
"source_url": null,
"subscription_policy_url": null,
"subtotal_price": "398.00",
"shipping_policy_url": null,
"tax_exempt": false,
"taxes_included": false,
"terms_of_sale_url": null,
"terms_of_service_url": null,
"token": "7yjf4v2we7gamku6a6h7tvm8h3mmvs4x",
"total_price": "419.49",
"total_tax": "21.49",
"total_tip_received": "0.00",
"total_line_items_price": "398.00",
"updated_at": "2012-10-12T07:05:27-04:00",
"user_id": null,
"web_url": "https://checkout.local/548380009/checkouts/7yjf4v2we7gamku6a6h7tvm8h3mmvs4x",
"total_duties": null,
"total_additional_fees": null,
"line_items": [
{
"id": "71e61dc0fa94a2fc",
"key": "71e61dc0fa94a2fc",
"product_id": 632910392,
"variant_id": 49148385,
"sku": "IPOD2008RED",
"vendor": "Apple",
"title": "IPod Nano - 8GB",
"variant_title": "Red",
"image_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano.png?v=1672766496",
"taxable": true,
"requires_shipping": true,
"gift_card": false,
"price": "199.00",
"compare_at_price": null,
"line_price": "199.00",
"properties": {},
"quantity": 1,
"grams": 200,
"fulfillment_service": "manual",
"applied_discounts": [],
"discount_allocations": [],
"tax_lines": []
},
{
"id": "d76e2360549fc5e0",
"key": "d76e2360549fc5e0",
"product_id": 632910392,
"variant_id": 808950810,
"sku": "IPOD2008PINK",
"vendor": "Apple",
"title": "IPod Nano - 8GB",
"variant_title": "Pink",
"image_url": "https://cdn.shopify.com/s/files/1/0005/4838/0009/products/ipod-nano-2.png?v=1672766496",
"taxable": true,
"requires_shipping": true,
"gift_card": false,
"price": "199.00",
"compare_at_price": null,
"line_price": "199.00",
"properties": {},
"quantity": 1,
"grams": 200,
"fulfillment_service": "manual",
"applied_discounts": [],
"discount_allocations": [],
"tax_lines": []
}
],
"gift_cards": [],
"tax_lines": [
{
"price": "21.49",
"rate": 0.06,
"title": "State Tax",
"compare_at": 0.06
}
],
"tax_manipulations": [],
"shipping_line": {
"handle": "shopify-Free%20Shipping-0.00",
"price": "0.00",
"title": "Free Shipping",
"tax_lines": []
},
"shipping_rate": {
"id": "shopify-Free%20Shipping-0.00",
"price": "0.00",
"title": "Free Shipping"
},
"shipping_address": {
"id": 550558813,
"first_name": "Bob",
"last_name": "Norman",
"phone": "+1(502)-459-2181",
"company": null,
"address1": "Chestnut Street 92",
"address2": "",
"city": "Louisville",
"province": "Kentucky",
"province_code": "KY",
"country": "United States",
"country_code": "US",
"zip": "40202"
},
"credit_card": {
"first_name": "Bob",
"last_name": "Norman",
"first_digits": "1",
"last_digits": "1",
"brand": "bogus",
"expiry_month": 8,
"expiry_year": 2042,
"customer_id": null
},
"billing_address": {
"id": 550558813,
"first_name": "Bob",
"last_name": "Norman",
"phone": "+1(502)-459-2181",
"company": null,
"address1": "Chestnut Street 92",
"address2": "",
"city": "Louisville",
"province": "Kentucky",
"province_code": "KY",
"country": "United States",
"country_code": "US",
"zip": "40202"
},
"applied_discount": null,
"applied_discounts": [],
"discount_violations": []
}
}
]
}
修改于 2023-01-29 12:00:33