- 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 single user
GET
/admin/api/{api_version}/users/{user_id}.json
请求参数
Path 参数
api_version
string
必需
user_id
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//users/.json'
返回响应
🟢200Retrieves a single user
application/json
Body
user
object (User)
可选
account_owner
string
可选
bio
string
可选
email
string
可选
first_name
string
可选
id
string
可选
im
string
可选
last_name
string
可选
permissions
enum<string>
可选
枚举值:
applicationsbilling_application_chargesbilling_chargesbilling_invoices_viewbilling_payment_methods_viewcustomersdashboarddomainsdraft_ordersedit_ordersedit_private_appsexport_customersexport_draft_ordersexport_productsexport_ordersgift_cardslinkslocationsmarketingmarketing_sectionorderspagespreferencesproductsreportsshopify_payments_accountsshopify_payments_transfersstaff_audit_log_viewstaff_management_activationstaff_management_createstaff_management_deletestaff_management_updatethemesview_private_apps
示例值:
customersdashboardreports
phone
string
可选
receive_announcements
string
可选
0
, 1
screen_name
string
已废弃
url
string
可选
locale
string
可选
language
or language-COUNTRY
, where language
is a two-letter language code, and COUNTRY
is a two-letter country code. For example: en
or en-US
user_type
enum<string>
可选
枚举值:
regularrestrictedinvitedcollaborator
示例
{
"user": {
"id": 548380009,
"first_name": "John",
"email": "j.smith@example.com",
"url": "www.example.com",
"im": null,
"screen_name": null,
"phone": null,
"last_name": "Smith",
"account_owner": true,
"receive_announcements": 1,
"bio": null,
"permissions": [
"applications",
"beacons",
"billing_application_charges",
"channels",
"content",
"content_entries_delete",
"content_entries_edit",
"content_entries_view",
"content_models_delete",
"content_models_edit",
"content_models_view",
"custom_pixels_management",
"custom_pixels_view",
"customers",
"dashboard",
"domains",
"draft_orders",
"edit_orders",
"edit_private_apps",
"gift_cards",
"links",
"locations",
"marketing",
"marketing_section",
"metaobjects_delete",
"metaobjects_edit",
"metaobjects_view",
"metaobject_definitions_delete",
"metaobject_definitions_edit",
"metaobject_definitions_view",
"orders",
"overviews",
"pages",
"pay_draft_orders_by_credit_card",
"pay_orders_by_credit_card",
"pay_orders_by_vaulted_card",
"preferences",
"products",
"refund_orders",
"reports",
"translations",
"themes",
"view_private_apps",
"shopify_payments_accounts",
"shopify_payments_transfers",
"staff_audit_log_view",
"staff_management_update",
"applications_billing",
"attestation_authority",
"authentication_management",
"balance_bank_accounts_management",
"billing_charges",
"billing_invoices_pay",
"billing_invoices_view",
"billing_payment_methods_manage",
"billing_payment_methods_view",
"billing_settings",
"billing_subscriptions",
"capital",
"shopify_credit",
"customer_private_data",
"erase_customer_data",
"request_customer_data",
"domains_management",
"enable_private_apps",
"experiments_management",
"gdpr_actions",
"payment_settings",
"shopify_payments",
"staff_api_permission_management",
"staff_management",
"staff_management_activation",
"staff_management_create",
"staff_management_delete",
"support_methods",
"collaborator_request_management",
"collaborator_request_settings",
"export_customers",
"export_draft_orders",
"export_orders",
"export_products"
],
"locale": "en",
"user_type": "regular",
"admin_graphql_api_id": "gid://shopify/StaffMember/548380009",
"tfa_enabled?": false
}
}
修改于 2023-01-29 12:00:33