GET api/customeruserdef/{id}/{option}

Returns the Customer Userdef record by CustomerId. Possible values for the option parameter are: 'ByCustomerId' - get the Userdef record (only one) for a specific Customer where id = customerId

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

option

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CustomerUserdef
NameDescriptionTypeAdditional information
CustomerUserdefId

Sedona internal autonumber for the Userdef record (not required on PUT since there is only one Userdef record per Customer)

integer

None.

CustomerId

foreign key from AR_Customer table

integer

Required

Table1Code

Custom field name = AR_Setup_Userdef.Table_1; lookup values stored in AR_Userdef_1.Userdef_1_Code

string

None.

Table2Code

Custom field name = AR_Setup_Userdef.Table_2; lookup values stored in AR_Userdef_2.Userdef_2_Code

string

None.

Table3Code

Custom field name = AR_Setup_Userdef.Table_3; lookup values stored in AR_Userdef_3.Userdef_3_Code

string

None.

Text1

Custom field name = AR_Setup_Userdef.Text_1

string

String length: inclusive between 0 and 40

Text2

Custom field name = AR_Setup_Userdef.Text_2

string

String length: inclusive between 0 and 40

Text3

Custom field name = AR_Setup_Userdef.Text_3

string

String length: inclusive between 0 and 40

Text4

Custom field name = AR_Setup_Userdef.Text_4

string

String length: inclusive between 0 and 40

Text5

Custom field name = AR_Setup_Userdef.Text_5

string

String length: inclusive between 0 and 40

Money1

Custom field name = AR_Setup_Userdef.Money_1

decimal number

None.

Money2

Custom field name = AR_Setup_Userdef.Money_2

decimal number

None.

Check1

Custom field name = AR_Setup_Userdef.Check_1

boolean

None.

Check2

Custom field name = AR_Setup_Userdef.Check_2

boolean

None.

Check3

Custom field name = AR_Setup_Userdef.Check_3

boolean

None.

Check4

Custom field name = AR_Setup_Userdef.Check_4

boolean

None.

Check5

Custom field name = AR_Setup_Userdef.Check_5

boolean

None.

Date1

Custom field name = AR_Setup_Userdef.Date_1

string

None.

Date2

Custom field name = AR_Setup_Userdef.Date_2

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CustomerUserdefId": 1,
    "CustomerId": 1,
    "Table1Code": "sample string 2",
    "Table2Code": "sample string 3",
    "Table3Code": "sample string 4",
    "Text1": "sample string 5",
    "Text2": "sample string 6",
    "Text3": "sample string 7",
    "Text4": "sample string 8",
    "Text5": "sample string 9",
    "Money1": 1.0,
    "Money2": 1.0,
    "Check1": true,
    "Check2": true,
    "Check3": true,
    "Check4": true,
    "Check5": true,
    "Date1": "sample string 10",
    "Date2": "sample string 11"
  },
  {
    "CustomerUserdefId": 1,
    "CustomerId": 1,
    "Table1Code": "sample string 2",
    "Table2Code": "sample string 3",
    "Table3Code": "sample string 4",
    "Text1": "sample string 5",
    "Text2": "sample string 6",
    "Text3": "sample string 7",
    "Text4": "sample string 8",
    "Text5": "sample string 9",
    "Money1": 1.0,
    "Money2": 1.0,
    "Check1": true,
    "Check2": true,
    "Check3": true,
    "Check4": true,
    "Check5": true,
    "Date1": "sample string 10",
    "Date2": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerUserdef xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SedonaServices.Models">
  <CustomerUserdef>
    <Check1>true</Check1>
    <Check2>true</Check2>
    <Check3>true</Check3>
    <Check4>true</Check4>
    <Check5>true</Check5>
    <CustomerId>1</CustomerId>
    <CustomerUserdefId>1</CustomerUserdefId>
    <Date1>sample string 10</Date1>
    <Date2>sample string 11</Date2>
    <Money1>1</Money1>
    <Money2>1</Money2>
    <Table1Code>sample string 2</Table1Code>
    <Table2Code>sample string 3</Table2Code>
    <Table3Code>sample string 4</Table3Code>
    <Text1>sample string 5</Text1>
    <Text2>sample string 6</Text2>
    <Text3>sample string 7</Text3>
    <Text4>sample string 8</Text4>
    <Text5>sample string 9</Text5>
  </CustomerUserdef>
  <CustomerUserdef>
    <Check1>true</Check1>
    <Check2>true</Check2>
    <Check3>true</Check3>
    <Check4>true</Check4>
    <Check5>true</Check5>
    <CustomerId>1</CustomerId>
    <CustomerUserdefId>1</CustomerUserdefId>
    <Date1>sample string 10</Date1>
    <Date2>sample string 11</Date2>
    <Money1>1</Money1>
    <Money2>1</Money2>
    <Table1Code>sample string 2</Table1Code>
    <Table2Code>sample string 3</Table2Code>
    <Table3Code>sample string 4</Table3Code>
    <Text1>sample string 5</Text1>
    <Text2>sample string 6</Text2>
    <Text3>sample string 7</Text3>
    <Text4>sample string 8</Text4>
    <Text5>sample string 9</Text5>
  </CustomerUserdef>
</ArrayOfCustomerUserdef>