Edit in GitHubLog an issue

Retrieving detailed atttributes

Swagger and other types of code-generated documentation erroneously indicate several APIs that search across multiple objects return detailed information about individual objects. Detailed information, such as extensionAttributes, customAttributes, and possibly other fields, are generally available only when requesting information on a single object.

This document lists the PHP, REST, and SOAP calls that indicate they return detailed information, but might not. It also provides the call that returns the detailed data.

Customer module

Magento\Customer\Api\CustomerRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
CustomerRepositoryInterface::getList($searchCriteria)
CustomerRepositoryInterface::getById($customerId)
REST
/V1/customers/search
/V1/customers/{id}
SOAP
customerCustomerRepositoryV1GetList
customerCustomerRepositoryV1GetById

Magento\Customer\Api\GroupRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
GroupRepositoryInterface::getList($searchCriteria)
GroupRepositoryInterface::getById($id)
REST
/V1/customerGroups/search
/V1/customerGroups/{id}
SOAP
customerGroupRepositoryV1GetList
customerGroupRepositoryV1GetById

EAV module

Magento\Eav\Api\AttributeSetRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
AttributeSetRepositoryInterface::getList($entityTypeCode, $searchCriteria)
AttributeSetRepositoryInterface::get($attributeSetId)
REST
/V1/eav/attribute-sets/list
/V1/eav/attribute-sets/{attributeSetId}
SOAP
eavAttributeSetRepositoryV1GetList
eavAttributeSetRepositoryV1Get

GiftWrapping module (Enterprise Edition)

Magento\GiftWrapping\Api\WrappingRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
WrappingRepositoryInterface::getList($searchCriteria)
WrappingRepositoryInterface::get($ruleId)
REST
/V1/gift-wrappings
/V1/gift-wrappings/:id
SOAP
giftWrappingWrappingRepositoryV1GetList
giftWrappingWrappingRepositoryV1Get

Quote module

Magento\Quote\Api\CartRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
CartRepositoryInterface::getList($searchCriteria)
CartRepositoryInterface::get($cartId)
REST
/V1/carts/search
/V1/carts/{cartId}
SOAP
quoteCartRepositoryV1GetList
quoteCartRepositoryV1Get

Magento\Quote\Api\GuestPaymentMethodManagementInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
GuestPaymentMethodManagementInterface::getList($cartId)
GuestPaymentMethodManagementInterface::get($cartId)
REST
/V1/guest-carts/:cartId/payment-methods
/V1/guest-carts/:cartId/selected-payment-method
SOAP
quoteGuestPaymentMethodManagementV1GetList
quoteGuestPaymentMethodManagementV1Get

Magento\Quote\Api\PaymentMethodManagementInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
PaymentMethodManagementInterface::getList($cartId)
PaymentMethodManagementInterface::get($cartId)
REST
/V1/carts/:cartId/payment-methods
/V1/carts/:cartId/selected-payment-method
SOAP
quotePaymentMethodManagementV1GetList
quotePaymentMethodManagementV1Get
LanguageDoes not return detailed attributesReturns detailed attributes
PHP
PaymentMethodManagementInterface::getList($cartId)
PaymentMethodManagementInterface::get($cartId)
REST
/V1/carts/mine/payment-methods
/V1/carts/mine/selected-payment-method
SOAP
quotePaymentMethodManagementV1GetList
quotePaymentMethodManagementV1Get

Sales module

Magento\Sales\Api\CreditmemoRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
CreditmemoRepositoryInterface::getList($searchCriteria)
CreditmemoRepositoryInterface::get($id)
REST
/V1/creditmemos
/V1/creditmemo/{id}
SOAP
salesCreditmemoRepositoryV1GetList
salesCreditmemoRepositoryV1Get

Magento\Sales\Api\InvoiceRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
InvoiceRepositoryInterface::getList($searchCriteria)
InvoiceRepositoryInterface::get($id)
REST
/V1/invoices
/V1/invoices/{id}
SOAP
salesInvoiceRepositoryV1GetList
salesInvoiceRepositoryV1Get

Magento\Sales\Api\OrderItemRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
OrderItemRepositoryInterface::getList($searchCriteria)
OrderItemRepositoryInterface::get($id)
REST
/V1/orders/items
/V1/orders/items/{id}
SOAP
salesOrderItemRepositoryV1GetList
salesOrderItemRepositoryV1Get

Magento\Sales\Api\OrderRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
OrderRepositoryInterface::getList($searchCriteria)
OrderRepositoryInterface::get($id)
REST
/V1/orders
/V1/orders/{id}
SOAP
salesOrderRepositoryV1GetList
salesOrderRepositoryV1GetList

Magento\Sales\Api\ShipmentRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
ShipmentRepositoryInterface::getList($searchCriteria)
ShipmentRepositoryInterface::get($id)
REST
/V1/shipments
/V1/shipment/{id}
SOAP
salesShipmentRepositoryV1GetList
salesShipmentRepositoryV1Get

Magento\SalesRule\Api\TransactionRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
TransactionRepositoryInterface::getList($searchCriteria)
TransactionRepositoryInterface:get($id)
REST
/V1/transactions
/V1/transactions/{id}
SOAP
salesTransactionRepositoryV1GetList
salesTransactionRepositoryV1Get

SalesRule module

Magento\SalesRule\Api\CouponRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
CouponRepositoryInterface::getList($searchCriteria)
CouponRepositoryInterface::getById($couponId)
REST
/V1/coupons/search
/V1/coupons/{couponId}
SOAP
salesRuleCouponRepositoryV1GetList
salesRuleCouponRepositoryV1GetById

Magento\SalesRule\Api\RuleRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
RuleRepositoryInterface::getList($searchCriteria)
RuleRepositoryInterface::getById($ruleId)
REST
/V1/salesRules/search
/V1/salesRules/{ruleId}
SOAP
salesRuleRuleRepositoryV1GetListRequest
salesRuleRuleRepositoryV1GetById

Tax module

Magento\Tax\Api\TaxClassRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
TaxClassRepositoryInterface::getList($searchCriteria)
TaxClassRepositoryInterface::get($taxClassId)
REST
/V1/taxClasses/search
/V1/taxClass/{rateId}
SOAP
taxTaxClassRepositoryV1GetList
taxTaxClassRepositoryV1Get

Magento\Tax\Api\TaxRateRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
TaxRateRepositoryInterface::getList($searchCriteria)
TaxRateRepositoryInterface::get($rateId)
REST
/V1/taxRates/search
/V1/taxRates/{rateId}
SOAP
taxTaxRateRepositoryV1GetList
taxTaxRateRepositoryV1Get

Magento\Tax\Api\TaxRuleRepositoryInterface

LanguageDoes not return detailed attributesReturns detailed attributes
PHP
TaxRuleRepositoryInterface::getList($searchCriteria)
TaxRuleRepositoryInterface::get($ruleId)
REST
/V1/taxRules/search
/V1/taxRules/{ruleId}
SOAP
taxTaxRuleRepositoryV1GetList
taxTaxRuleRepositoryV1Get
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.