Retrieve all data for a single product category
This method retrieves the ProductCategory object for the product category specified by ProductCateogryRefNum. The ProductCategoryRefNum is the gateway assigned unique product category identifier that was returned by ProductCategory object is returned.
See also addProductCategory
ProductCategory getProductCategory ( ueSecurityToken Token,string ProductCategoryRefNum)
Type | Name | Description |
---|---|---|
ueSecurityToken | Token | Merchant security token: used to identify merchant and retrieve the custom fields. |
string | ProductCategoryRefNum | Gateway assigned product category ID used to pull product category details |
ProductCategory | Returns a Product Category object containing fields and their values. |
The following exceptions (errors) are applicable to this method.
Code | Message | Advice |
---|---|---|
41006 | Product Category Not Found | Product category specified by ProductCategoryRefNum was not found. Make sure the number stored is not truncated or rounded. |
For directions on how to set up the WSDL link, create “$token” and “$client”, go to PHP Soap How-to.
<?php
Dim catRefNum As String catRefNum = "9001169812" Dim category As usaepay.ProductCategory category = client.getProductCategory(token, catRefNum) MsgBox(category.Name)
string catRefNum = "900116985"; try { usaepay.ProductCategory category = client.getProductCategory(token, catRefNum); MessageBox.Show(string.Concat(category.Name)); } catch (Exception err) { MessageBox.Show(err.Message); }
Request:
Response:
Version | Change |
---|---|
1.3 | Method added in this release |