GET api/LookUpCust/GetCreditTypes?pCardCode={pCardCode}&pActiveOnly={pActiveOnly}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pCardCode | integer |
Required |
|
| pActiveOnly | boolean |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of CreditType| Name | Description | Type | Additional information |
|---|---|---|---|
| card_code | integer |
Required |
|
| credit_code | integer |
Required |
|
| credit_name | string |
Required String length: inclusive between 0 and 30 |
|
| active | string |
Required Matching regular expression pattern: ^[yn]{1}$ String length: inclusive between 0 and 1 |
|
| is_protected | string |
Required Matching regular expression pattern: ^[yn]{1}$ String length: inclusive between 0 and 1 |
Response Formats
application/json, text/json
Sample:
[
{
"card_code": 1,
"credit_code": 2,
"credit_name": "sample string 3",
"active": "sample string 4",
"is_protected": "sample string 5"
},
{
"card_code": 1,
"credit_code": 2,
"credit_name": "sample string 3",
"active": "sample string 4",
"is_protected": "sample string 5"
}
]
application/xml, text/xml
Sample:
<ArrayOfCreditType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustDemog">
<CreditType>
<active>sample string 4</active>
<card_code>1</card_code>
<credit_code>2</credit_code>
<credit_name>sample string 3</credit_name>
<is_protected>sample string 5</is_protected>
</CreditType>
<CreditType>
<active>sample string 4</active>
<card_code>1</card_code>
<credit_code>2</credit_code>
<credit_name>sample string 3</credit_name>
<is_protected>sample string 5</is_protected>
</CreditType>
</ArrayOfCreditType>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.