POST Customer/PostCustomer
Add a Customer.
Request Information
URI Parameters
Body Parameters
Customer object to use for the creation of a customer.
ClsCustomerAdd| Name | Description | Type | Additional Information |
|---|---|---|---|
| LocationID |
Agvance location assigned to customer |
string |
Required Max length: 6 |
| CustomerGUID |
The Globally Unique Identifier of the customer. If not filled out, the GUID will be automatically generated |
string |
Max length: 36 |
| CustomerID |
The Agvance Customer Identifier, also commonly called Grower ID, this is used to reference the customer throughout Agvance and the API |
string |
Required Max length: 6 |
| GrowerYN |
True if the customer is a grower, False otherwise |
boolean | |
| FirstName |
The customer's first name, can be blank |
string |
Max length: 20 |
| LastName |
The customer's last name. Can also be the company's name if the customer is a business or co-op or other entity |
string |
Required Max length: 50 |
| AddressLine1 |
Attention To, Care Of, or company name |
string |
Max length: 50 |
| AddressLine2 |
Street address or P.O. box |
string |
Max length: 50 |
| AddressLine3 |
Any other address specifics, Apartment #, Floor, etc. |
string |
Max length: 50 |
| City |
The city the customer lives in |
string |
Max length: 25 |
| State |
The state the customer lives in |
string |
Max length: 2 |
| Zip |
The zip code for the customer's address |
string |
Max length: 10 |
| PhoneNumber |
The customer's primary phone number |
string |
Max length: 15 |
| PhoneNumber2 |
The customer's alternate phone number |
string |
Max length: 15 |
| Notes |
Notes from customer profile |
string | |
| Salesman |
Salesperson assigned to customer |
string |
Max length: 15 |
| Group |
Optional information to help categorize customers |
string |
Max length: 8 |
| CrossRef1 |
Cross reference 1 |
string |
Max length: 40 |
| CrossRef2 |
Cross reference 2 |
string |
Max length: 40 |
| CrossRef3 |
Cross reference 3 |
string |
Max length: 40 |
| CrossRef4 |
Cross reference 4 |
string |
Max length: 40 |
| Pricing |
The default price level for this customer |
integer | |
| TempCust |
True if the customer is a placeholder, false otherwise |
boolean | |
| Active |
Active/Inactive flag. A=Active, I=Inactive |
string |
Max length: 1 |
| Territory |
The name of the territory for Canadian customers |
string |
Max length: 15 |
| County |
The name of the county |
string |
Max length: 60 |
| Country |
The name of the country |
string |
Max length: 60 |
| SalesTaxRate |
The tax rate this customer is to receive if using one other than the location's default rate |
decimal number | |
| OracleId |
Oracle ID |
string |
Max length: 15 |
| OracleAddrId |
Oracle Bill to/Ship to address |
string |
Max length: 15 |
| AddrLat |
Address latitude |
integer |
Range: inclusive between -90000000 and 90000000 |
| AddrLon |
Address longitude |
integer |
Range: inclusive between -180000000 and 180000000 |
| StTaxCode |
State tax code |
string |
Max length: 15 |
| AdjTaxCode |
Adjustment tax code |
string |
Max length: 15 |
| HealthId |
The Health Industry Number for animal health customers |
string |
Max length: 20 |
| ProspectYesNo |
Prospect status |
boolean | |
| AgrianCustId |
If customers are linked between Agrian and Agvance, this is the customer's Agrian ID |
string |
Max length: 60 |
| AgrianStatePermitGrowerId |
Agrian state permit grower ID |
string |
Max length: 20 |
| CompanyName1099 |
If the name to print on the 1099 is different than the customer’s name, enter it in this area |
string |
Max length: 50 |
| Gln |
The Global Location Number assigned to the customer, must be 13 digits |
string |
Max length: 13 |
| PrintDollarsPerAcreOnInvoice |
Print Dollars Per Acre on Invoice |
boolean | |
| BegYear |
Beginning year balance |
decimal number | |
| BegMth |
Beginning month balance |
decimal number | |
| CurBal |
Current balance |
decimal number | |
| UaCash |
Unapplied cash balance |
decimal number | |
| BegYearPp |
Beginning year prepay balance |
decimal number | |
| CurbalPp |
Current prepay balance |
decimal number | |
| CredLim |
Credit limit |
decimal number | |
| FinChrgPer |
Finance charge % |
decimal number | |
| Opened |
Date credit opened |
string |
Data type: DateTime Format must be MM/dd/yyyy |
| LastStatement |
Date of last financial statement |
string |
Data type: DateTime Format must be MM/dd/yyyy |
| LastReviewed |
Date of last credit review |
string |
Data type: DateTime Format must be MM/dd/yyyy |
| CredStatus |
Credit status, default available options are 'Excellent', 'Fair', 'Good', 'Hold', 'Poor' |
string |
Max length: 20 |
| OverLimThis |
Months over credit limit this year, Agvance will automatically set this to zero at year end |
integer | |
| OverLimLast |
Months over credit limit last year, Agvance will automatically set this at year end |
decimal number | |
| HighBalThis |
High end of month balance this year, this is set automatically when a month ends |
decimal number | |
| HighBalLast |
High end of month balance last year, this is set automatically when a year ends |
decimal number | |
| PrintStatement |
Print Statement. Valid options are Y (Yes), N (No), or F (If 30 Days Past Due) |
string |
Max length: 1 |
| CredNotes |
Notes related to this customer's credit |
string | |
| Wip |
Work in progress balance |
decimal number | |
| PoRequiredYesNo |
Whether or not a Purchase Order is required for this customer |
boolean | |
| AvailableCredit |
The customer's Available Credit, this amount will be calculated after each transaction |
decimal number | |
| SsnTaxIdNum |
Social Security Number/Tax ID (encrypted) |
string |
Max length: 80 |
| CreditActive |
Whether or not this customer has a credit line |
boolean | |
| CreditLineName |
The name of this customer's credit line |
string |
Max length: 50 |
| CreditLineAmt |
The maximum amount of this customer's credit line |
decimal number | |
| Budget |
This customer's budget (energy) balance |
decimal number | |
| CreditNeverSend |
Whether or not to never send a credit letter |
boolean | |
| Type1099 |
1099 type related to this customer. Valid values are: 'None' or 'Interest' |
string |
Max length: 20 |
| Paid1099 |
This customer's interest on deferred payment contracts |
decimal number | |
| BegYearBb |
This customer's beginning year budget (energy) balance |
decimal number | |
| AcctNum |
This customer's patronage account number |
string |
Max length: 17 |
| AcctType |
This customer's patronage ACH account type. Valid type are: 'C' (Checking) or 'S' (Savings) |
string |
Max length: 1 |
| AbaRouteNum |
This customer's patronage ACH routing number |
string |
Max length: 9 |
| PrintBbStatement |
Whether or not to print the budget billing statement (energy). Valid values are: 'Y' or 'N' |
string |
Max length: 1 |
| AchNameOnAccount |
This customer's patronage ACH name on account at the bank |
string |
Max length: 100 |
| Month1 |
Regular balance end of fiscal month 1 |
decimal number | |
| Month2 |
Regular balance end of fiscal month 2 |
decimal number | |
| Month3 |
Regular balance end of fiscal month 3 |
decimal number | |
| Month4 |
Regular balance end of fiscal month 4 |
decimal number | |
| Month5 |
Regular balance end of fiscal month 5 |
decimal number | |
| Month6 |
Regular balance end of fiscal month 6 |
decimal number | |
| Month7 |
Regular balance end of fiscal month 7 |
decimal number | |
| Month8 |
Regular balance end of fiscal month 8 |
decimal number | |
| Month9 |
Regular balance end of fiscal month 9 |
decimal number | |
| Month10 |
Regular balance end of fiscal month 10 |
decimal number | |
| Month11 |
Regular balance end of fiscal month 11 |
decimal number | |
| Month12 |
Regular balance end of fiscal month 12 |
decimal number | |
| Month1Pp |
Prepay Balance end of fiscal month 1 |
decimal number | |
| Month2Pp |
Prepay Balance end of fiscal month 2 |
decimal number | |
| Month3Pp |
Prepay Balance end of fiscal month 3 |
decimal number | |
| Month4Pp |
Prepay Balance end of fiscal month 4 |
decimal number | |
| Month5Pp |
Prepay Balance end of fiscal month 5 |
decimal number | |
| Month6Pp |
Prepay Balance end of fiscal month 6 |
decimal number | |
| Month7Pp |
Prepay Balance end of fiscal month 7 |
decimal number | |
| Month8Pp |
Prepay Balance end of fiscal month 8 |
decimal number | |
| Month9Pp |
Prepay Balance end of fiscal month 9 |
decimal number | |
| Month10Pp |
Prepay Balance end of fiscal month 10 |
decimal number | |
| Month11Pp |
Prepay Balance end of fiscal month 11 |
decimal number | |
| Month12Pp |
Prepay Balance end of fiscal month 12 |
decimal number | |
| Month1Bb |
Budget (energy) balance end of fiscal month 1 |
decimal number | |
| Month2Bb |
Budget (energy) balance end of fiscal month 2 |
decimal number | |
| Month3Bb |
Budget (energy) balance end of fiscal month 3 |
decimal number | |
| Month4Bb |
Budget (energy) balance end of fiscal month 4 |
decimal number | |
| Month5Bb |
Budget (energy) balance end of fiscal month 5 |
decimal number | |
| Month6Bb |
Budget (energy) balance end of fiscal month 6 |
decimal number | |
| Month7Bb |
Budget (energy) balance end of fiscal month 7 |
decimal number | |
| Month8Bb |
Budget (energy) balance end of fiscal month 8 |
decimal number | |
| Month9Bb |
Budget (energy) balance end of fiscal month 9 |
decimal number | |
| Month10Bb |
Budget (energy) balance end of fiscal month 10 |
decimal number | |
| Month11Bb |
Budget (energy) balance end of fiscal month 11 |
decimal number | |
| Month12Bb |
Budget (energy) balance end of fiscal month 12 |
decimal number | |
| CustPatBDay |
Birth date of this customer in MM/dd/yyyy format |
string |
Data type: DateTime Format must be MM/dd/yyyy |
| CustPatActiveMember |
Whether or not this customer is an active patron |
boolean | |
| CustPatCorporation |
Whether or not this customer is a corporation |
boolean | |
| TaxId |
The tax exempt ID related to this customer |
string |
Max length: 15 |
| Taxable |
Whether or not this customer is sales taxable |
boolean | |
| Reason |
The ID of the tax exempt reason for this customer |
string |
Max length: 50 |
| DefaultPaymentTerms |
The ID of the payment terms related to this customer |
string |
Max length: 15 |
| GrainTaxExempt |
Whether or not this customer is grain tax exempt |
boolean | |
| ReasonExpDate |
This customer's tax exemption expiration date |
string |
Data type: DateTime Format must be MM/dd/yyyy |
| AchAcctNum |
ACH bank account number (encrypted) |
string |
Max length: 17 |
| AchAcctType |
ACH account type, "C" for checking and "S" for savings. |
string |
Max length: 1 |
| AchAbaRouteNum |
ACH bank routing number |
string |
Max length: 9 |
| CondoGrowerId |
The customer ID of a condo storage owner that has granted this customer permission to store in his or her condo space |
string |
Max length: 6 |
| MnLienholderId |
This customer's Minnesota lienholder ID if applicable |
string |
Max length: 9 |
| FederalPermitList |
Federal permit numbers along with permit expiration date related to this customer |
Collection of ClsCustFedPermAdd | |
| CustDeptPriceDefs |
Price level defaults related to this customer based on inventory deparments |
Collection of ClsCustDeptPriceDefAdd | |
| CustJDCAccounts |
JDF Multi-Use Account integration, such as credit plan numbers, descriptive billing codes, terminal numbers, and preferences |
Collection of ClsCustJdcAccountsAdd | |
| CustContacts |
Addresses and email information for various people associated with the customer. Authorized Agents for the customer account and relations to the account may also be established here |
Collection of ClsCustContactsAdd | |
| CustClassifications |
Classifications this customer belongs to |
Collection of ClsCustClassAdd | |
| ExtraChargesCust |
Extra charges related to this customer |
Collection of ClsExtraChargesCustomerAdd | |
| CustAttributes |
Attributes related to this customer |
Collection of ClsCustAttributesAdd | |
| CustRelationship |
Family members and work relationships related to this customer |
Collection of ClsCustRelationshipAdd | |
| CustDate |
Significant dates and descriptions of those dates. These could be important customer dates such as anniversaries, birthdays, etc. |
Collection of ClsCustDateAdd | |
| CustDetail |
Types of work the customer is involved in and to what extent |
Collection of ClsCustDetailAdd | |
| CustNotify |
Document specific rules detailing the document type, how they should be sent, and the email address they should be sent to |
Collection of ClsCustNotifyAdd | |
| GRCustGBPool |
The list of Agvance customers who are authorized to use this customer's grain bank account |
Collection of ClsGrCustGbPoolAdd | |
| CustBankAccounts |
Account types, routing numbers, and account numbers for bank accounts related to this customer |
Collection of ClsCustBankAccountsAdd |
Request Formats
application/json, text/json
{
"LocationID": "sample string 1",
"CustomerGUID": "sample string 2",
"CustomerID": "sample string 3",
"GrowerYN": true,
"FirstName": "sample string 5",
"LastName": "sample string 6",
"AddressLine1": "sample string 7",
"AddressLine2": "sample string 9",
"AddressLine3": "sample string 10",
"City": "sample string 12",
"State": "sample string 13",
"Zip": "sample string 14",
"PhoneNumber": "sample string 15",
"PhoneNumber2": "sample string 16",
"Notes": "sample string 19",
"Salesman": "sample string 20",
"Group": "sample string 21",
"CrossRef1": "sample string 28",
"CrossRef2": "sample string 29",
"CrossRef3": "sample string 30",
"CrossRef4": "sample string 31",
"Pricing": 32,
"TempCust": true,
"Active": "sample string 35",
"Territory": "sample string 36",
"County": "sample string 37",
"Country": "sample string 38",
"SalesTaxRate": 39.1,
"OracleId": "sample string 40",
"OracleAddrId": "sample string 41",
"AddrLat": 42,
"AddrLon": 43,
"StTaxCode": "sample string 45",
"AdjTaxCode": "sample string 46",
"HealthId": "sample string 47",
"ProspectYesNo": true,
"AgrianCustId": "sample string 49",
"AgrianStatePermitGrowerId": "sample string 50",
"CompanyName1099": "sample string 51",
"Gln": "sample string 52",
"PrintDollarsPerAcreOnInvoice": true,
"BegYear": 54.1,
"BegMth": 55.1,
"CurBal": 56.1,
"UaCash": 57.1,
"BegYearPp": 58.1,
"CurbalPp": 59.1,
"CredLim": 60.1,
"FinChrgPer": 61.1,
"Opened": "sample string 62",
"LastStatement": "sample string 63",
"LastReviewed": "sample string 64",
"CredStatus": "sample string 65",
"OverLimThis": 66,
"OverLimLast": 67.1,
"HighBalThis": 68.1,
"HighBalLast": 69.1,
"PrintStatement": "sample string 70",
"CredNotes": "sample string 71",
"Wip": 72.1,
"PoRequiredYesNo": true,
"AvailableCredit": 75.1,
"SsnTaxIdNum": "sample string 76",
"CreditActive": true,
"CreditLineName": "sample string 78",
"CreditLineAmt": 79.1,
"Budget": 80.1,
"CreditNeverSend": true,
"Type1099": "sample string 82",
"Paid1099": 83.1,
"BegYearBb": 84.1,
"AcctNum": "sample string 89",
"AcctType": "sample string 90",
"AbaRouteNum": "sample string 91",
"PrintBbStatement": "sample string 92",
"AchNameOnAccount": "sample string 93",
"Month1": 94.1,
"Month2": 95.1,
"Month3": 96.1,
"Month4": 97.1,
"Month5": 98.1,
"Month6": 99.1,
"Month7": 100.1,
"Month8": 101.1,
"Month9": 102.1,
"Month10": 103.1,
"Month11": 104.1,
"Month12": 105.1,
"Month1Pp": 106.1,
"Month2Pp": 107.1,
"Month3Pp": 108.1,
"Month4Pp": 109.1,
"Month5Pp": 110.1,
"Month6Pp": 111.1,
"Month7Pp": 112.1,
"Month8Pp": 113.1,
"Month9Pp": 114.1,
"Month10Pp": 115.1,
"Month11Pp": 116.1,
"Month12Pp": 117.1,
"Month1Bb": 118.1,
"Month2Bb": 119.1,
"Month3Bb": 120.1,
"Month4Bb": 121.1,
"Month5Bb": 122.1,
"Month6Bb": 123.1,
"Month7Bb": 124.1,
"Month8Bb": 125.1,
"Month9Bb": 126.1,
"Month10Bb": 127.1,
"Month11Bb": 128.1,
"Month12Bb": 129.1,
"CustPatBDay": "sample string 130",
"CustPatActiveMember": true,
"CustPatCorporation": true,
"TaxId": "sample string 133",
"Taxable": true,
"Reason": "sample string 135",
"DefaultPaymentTerms": "sample string 136",
"GrainTaxExempt": true,
"ReasonExpDate": "sample string 140",
"AchAcctNum": "sample string 141",
"AchAcctType": "sample string 142",
"AchAbaRouteNum": "sample string 143",
"CondoGrowerId": "sample string 145",
"MnLienholderId": "sample string 146",
"FederalPermitList": [
{
"Permit": "sample string 1",
"ExpDate": "sample string 2"
},
{
"Permit": "sample string 1",
"ExpDate": "sample string 2"
}
],
"CustDeptPriceDefs": [
{
"DeptId": "sample string 1",
"PriceLevel": 2
},
{
"DeptId": "sample string 1",
"PriceLevel": 2
}
],
"CustJDCAccounts": [
{
"JdcAccountType": "sample string 1",
"JdcAccountNumber": "sample string 2",
"PostalCode": "sample string 3"
},
{
"JdcAccountType": "sample string 1",
"JdcAccountNumber": "sample string 2",
"PostalCode": "sample string 3"
}
],
"CustContacts": [
{
"ContactType": "sample string 1",
"ContactName": "sample string 2",
"EmailAddress": "sample string 3",
"PhoneNumber": "sample string 4",
"Relationship": "sample string 5",
"AddressLine1": "sample string 6",
"AddressLine2": "sample string 7",
"City": "sample string 8",
"State": "sample string 9",
"Zip": "sample string 10"
},
{
"ContactType": "sample string 1",
"ContactName": "sample string 2",
"EmailAddress": "sample string 3",
"PhoneNumber": "sample string 4",
"Relationship": "sample string 5",
"AddressLine1": "sample string 6",
"AddressLine2": "sample string 7",
"City": "sample string 8",
"State": "sample string 9",
"Zip": "sample string 10"
}
],
"CustClassifications": [
{
"ClassName": "sample string 1"
},
{
"ClassName": "sample string 1"
}
],
"ExtraChargesCust": [
{
"ExtraChargeId": "sample string 1"
},
{
"ExtraChargeId": "sample string 1"
}
],
"CustAttributes": [
{
"AttributeValue": "sample string 1",
"CrossRef": "sample string 2"
},
{
"AttributeValue": "sample string 1",
"CrossRef": "sample string 2"
}
],
"CustRelationship": [
{
"FirstName": "sample string 1",
"LastName": "sample string 2",
"Relation": "sample string 3",
"BirthDate": "sample string 4",
"Notes": "sample string 5"
},
{
"FirstName": "sample string 1",
"LastName": "sample string 2",
"Relation": "sample string 3",
"BirthDate": "sample string 4",
"Notes": "sample string 5"
}
],
"CustDate": [
{
"SignificantDate": "sample string 1",
"Description": "sample string 2"
},
{
"SignificantDate": "sample string 1",
"Description": "sample string 2"
}
],
"CustDetail": [
{
"Description": "sample string 1",
"Value": 2.1,
"Category": "sample string 3",
"SubCategory": "sample string 4"
},
{
"Description": "sample string 1",
"Value": 2.1,
"Category": "sample string 3",
"SubCategory": "sample string 4"
}
],
"CustNotify": [
{
"DocumentType": "sample string 1",
"DeliverTo": "sample string 2",
"EmailAddress": "sample string 3",
"IncludeDocumentAsAttachment": true
},
{
"DocumentType": "sample string 1",
"DeliverTo": "sample string 2",
"EmailAddress": "sample string 3",
"IncludeDocumentAsAttachment": true
}
],
"GRCustGBPool": [
{
"CustomerID": "sample string 1"
},
{
"CustomerID": "sample string 1"
}
],
"CustBankAccounts": [
{
"AccountType": "sample string 1",
"RoutingNumber": "sample string 2",
"BankAccountNumber": "sample string 3"
},
{
"AccountType": "sample string 1",
"RoutingNumber": "sample string 2",
"BankAccountNumber": "sample string 3"
}
]
}
application/xml, text/xml
<CustomerAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Customer">
<AbaRouteNum>sample string 91</AbaRouteNum>
<AcctNum>sample string 89</AcctNum>
<AcctType>sample string 90</AcctType>
<AchAbaRouteNum>sample string 143</AchAbaRouteNum>
<AchAcctNum>sample string 141</AchAcctNum>
<AchAcctType>sample string 142</AchAcctType>
<AchNameOnAccount>sample string 93</AchNameOnAccount>
<Active>sample string 35</Active>
<AddrLat>42</AddrLat>
<AddrLon>43</AddrLon>
<AddressLine1>sample string 7</AddressLine1>
<AddressLine2>sample string 9</AddressLine2>
<AddressLine3>sample string 10</AddressLine3>
<AdjTaxCode>sample string 46</AdjTaxCode>
<AgrianCustId>sample string 49</AgrianCustId>
<AgrianStatePermitGrowerId>sample string 50</AgrianStatePermitGrowerId>
<AvailableCredit>75.1</AvailableCredit>
<BegMth>55.1</BegMth>
<BegYear>54.1</BegYear>
<BegYearBb>84.1</BegYearBb>
<BegYearPp>58.1</BegYearPp>
<Budget>80.1</Budget>
<City>sample string 12</City>
<CompanyName1099>sample string 51</CompanyName1099>
<CondoGrowerId>sample string 145</CondoGrowerId>
<Country>sample string 38</Country>
<County>sample string 37</County>
<CredLim>60.1</CredLim>
<CredNotes>sample string 71</CredNotes>
<CredStatus>sample string 65</CredStatus>
<CreditActive>true</CreditActive>
<CreditLineAmt>79.1</CreditLineAmt>
<CreditLineName>sample string 78</CreditLineName>
<CreditNeverSend>true</CreditNeverSend>
<CrossRef1>sample string 28</CrossRef1>
<CrossRef2>sample string 29</CrossRef2>
<CrossRef3>sample string 30</CrossRef3>
<CrossRef4>sample string 31</CrossRef4>
<CurBal>56.1</CurBal>
<CurbalPp>59.1</CurbalPp>
<CustAttributes>
<ClsCustomer.ClsCustomerAdd.ClsCustAttributesAdd>
<AttributeValue>sample string 1</AttributeValue>
<CrossRef>sample string 2</CrossRef>
</ClsCustomer.ClsCustomerAdd.ClsCustAttributesAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustAttributesAdd>
<AttributeValue>sample string 1</AttributeValue>
<CrossRef>sample string 2</CrossRef>
</ClsCustomer.ClsCustomerAdd.ClsCustAttributesAdd>
</CustAttributes>
<CustBankAccounts>
<ClsCustomer.ClsCustomerAdd.ClsCustBankAccountsAdd>
<AccountType>sample string 1</AccountType>
<BankAccountNumber>sample string 3</BankAccountNumber>
<RoutingNumber>sample string 2</RoutingNumber>
</ClsCustomer.ClsCustomerAdd.ClsCustBankAccountsAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustBankAccountsAdd>
<AccountType>sample string 1</AccountType>
<BankAccountNumber>sample string 3</BankAccountNumber>
<RoutingNumber>sample string 2</RoutingNumber>
</ClsCustomer.ClsCustomerAdd.ClsCustBankAccountsAdd>
</CustBankAccounts>
<CustClassifications>
<ClsCustomer.ClsCustomerAdd.ClsCustClassAdd>
<ClassName>sample string 1</ClassName>
</ClsCustomer.ClsCustomerAdd.ClsCustClassAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustClassAdd>
<ClassName>sample string 1</ClassName>
</ClsCustomer.ClsCustomerAdd.ClsCustClassAdd>
</CustClassifications>
<CustContacts>
<ClsCustomer.ClsCustomerAdd.ClsCustContactsAdd>
<AddressLine1>sample string 6</AddressLine1>
<AddressLine2>sample string 7</AddressLine2>
<City>sample string 8</City>
<ContactName>sample string 2</ContactName>
<ContactType>sample string 1</ContactType>
<EmailAddress>sample string 3</EmailAddress>
<PhoneNumber>sample string 4</PhoneNumber>
<Relationship>sample string 5</Relationship>
<State>sample string 9</State>
<Zip>sample string 10</Zip>
</ClsCustomer.ClsCustomerAdd.ClsCustContactsAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustContactsAdd>
<AddressLine1>sample string 6</AddressLine1>
<AddressLine2>sample string 7</AddressLine2>
<City>sample string 8</City>
<ContactName>sample string 2</ContactName>
<ContactType>sample string 1</ContactType>
<EmailAddress>sample string 3</EmailAddress>
<PhoneNumber>sample string 4</PhoneNumber>
<Relationship>sample string 5</Relationship>
<State>sample string 9</State>
<Zip>sample string 10</Zip>
</ClsCustomer.ClsCustomerAdd.ClsCustContactsAdd>
</CustContacts>
<CustDate>
<ClsCustomer.ClsCustomerAdd.ClsCustDateAdd>
<Description>sample string 2</Description>
<SignificantDate>sample string 1</SignificantDate>
</ClsCustomer.ClsCustomerAdd.ClsCustDateAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustDateAdd>
<Description>sample string 2</Description>
<SignificantDate>sample string 1</SignificantDate>
</ClsCustomer.ClsCustomerAdd.ClsCustDateAdd>
</CustDate>
<CustDeptPriceDefs>
<ClsCustomer.ClsCustomerAdd.ClsCustDeptPriceDefAdd>
<DeptId>sample string 1</DeptId>
<PriceLevel>2</PriceLevel>
</ClsCustomer.ClsCustomerAdd.ClsCustDeptPriceDefAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustDeptPriceDefAdd>
<DeptId>sample string 1</DeptId>
<PriceLevel>2</PriceLevel>
</ClsCustomer.ClsCustomerAdd.ClsCustDeptPriceDefAdd>
</CustDeptPriceDefs>
<CustDetail>
<ClsCustomer.ClsCustomerAdd.ClsCustDetailAdd>
<Category>sample string 3</Category>
<Description>sample string 1</Description>
<SubCategory>sample string 4</SubCategory>
<Value>2.1</Value>
</ClsCustomer.ClsCustomerAdd.ClsCustDetailAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustDetailAdd>
<Category>sample string 3</Category>
<Description>sample string 1</Description>
<SubCategory>sample string 4</SubCategory>
<Value>2.1</Value>
</ClsCustomer.ClsCustomerAdd.ClsCustDetailAdd>
</CustDetail>
<CustJDCAccounts>
<CustJDCAccounts>
<JdcAccountNumber>sample string 2</JdcAccountNumber>
<JdcAccountType>sample string 1</JdcAccountType>
<PostalCode>sample string 3</PostalCode>
</CustJDCAccounts>
<CustJDCAccounts>
<JdcAccountNumber>sample string 2</JdcAccountNumber>
<JdcAccountType>sample string 1</JdcAccountType>
<PostalCode>sample string 3</PostalCode>
</CustJDCAccounts>
</CustJDCAccounts>
<CustNotify>
<ClsCustomer.ClsCustomerAdd.ClsCustNotifyAdd>
<DeliverTo>sample string 2</DeliverTo>
<DocumentType>sample string 1</DocumentType>
<EmailAddress>sample string 3</EmailAddress>
<IncludeDocumentAsAttachment>true</IncludeDocumentAsAttachment>
</ClsCustomer.ClsCustomerAdd.ClsCustNotifyAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustNotifyAdd>
<DeliverTo>sample string 2</DeliverTo>
<DocumentType>sample string 1</DocumentType>
<EmailAddress>sample string 3</EmailAddress>
<IncludeDocumentAsAttachment>true</IncludeDocumentAsAttachment>
</ClsCustomer.ClsCustomerAdd.ClsCustNotifyAdd>
</CustNotify>
<CustPatActiveMember>true</CustPatActiveMember>
<CustPatBDay>sample string 130</CustPatBDay>
<CustPatCorporation>true</CustPatCorporation>
<CustRelationship>
<ClsCustomer.ClsCustomerAdd.ClsCustRelationshipAdd>
<BirthDate>sample string 4</BirthDate>
<FirstName>sample string 1</FirstName>
<LastName>sample string 2</LastName>
<Notes>sample string 5</Notes>
<Relation>sample string 3</Relation>
</ClsCustomer.ClsCustomerAdd.ClsCustRelationshipAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustRelationshipAdd>
<BirthDate>sample string 4</BirthDate>
<FirstName>sample string 1</FirstName>
<LastName>sample string 2</LastName>
<Notes>sample string 5</Notes>
<Relation>sample string 3</Relation>
</ClsCustomer.ClsCustomerAdd.ClsCustRelationshipAdd>
</CustRelationship>
<CustomerGUID>sample string 2</CustomerGUID>
<CustomerID>sample string 3</CustomerID>
<DefaultPaymentTerms>sample string 136</DefaultPaymentTerms>
<ExtraChargesCust>
<ClsCustomer.ClsCustomerAdd.ClsExtraChargesCustomerAdd>
<ExtraChargeId>sample string 1</ExtraChargeId>
</ClsCustomer.ClsCustomerAdd.ClsExtraChargesCustomerAdd>
<ClsCustomer.ClsCustomerAdd.ClsExtraChargesCustomerAdd>
<ExtraChargeId>sample string 1</ExtraChargeId>
</ClsCustomer.ClsCustomerAdd.ClsExtraChargesCustomerAdd>
</ExtraChargesCust>
<FederalPermitList>
<ClsCustomer.ClsCustomerAdd.ClsCustFedPermAdd>
<ExpDate>sample string 2</ExpDate>
<Permit>sample string 1</Permit>
</ClsCustomer.ClsCustomerAdd.ClsCustFedPermAdd>
<ClsCustomer.ClsCustomerAdd.ClsCustFedPermAdd>
<ExpDate>sample string 2</ExpDate>
<Permit>sample string 1</Permit>
</ClsCustomer.ClsCustomerAdd.ClsCustFedPermAdd>
</FederalPermitList>
<FinChrgPer>61.1</FinChrgPer>
<FirstName>sample string 5</FirstName>
<GRCustGBPool>
<ClsCustomer.ClsCustomerAdd.ClsGrCustGbPoolAdd>
<CustomerID>sample string 1</CustomerID>
</ClsCustomer.ClsCustomerAdd.ClsGrCustGbPoolAdd>
<ClsCustomer.ClsCustomerAdd.ClsGrCustGbPoolAdd>
<CustomerID>sample string 1</CustomerID>
</ClsCustomer.ClsCustomerAdd.ClsGrCustGbPoolAdd>
</GRCustGBPool>
<Gln>sample string 52</Gln>
<GrainTaxExempt>true</GrainTaxExempt>
<Group>sample string 21</Group>
<GrowerYN>true</GrowerYN>
<HealthId>sample string 47</HealthId>
<HighBalLast>69.1</HighBalLast>
<HighBalThis>68.1</HighBalThis>
<LastName>sample string 6</LastName>
<LastReviewed>sample string 64</LastReviewed>
<LastStatement>sample string 63</LastStatement>
<LocationID>sample string 1</LocationID>
<MnLienholderId>sample string 146</MnLienholderId>
<Month1>94.1</Month1>
<Month10>103.1</Month10>
<Month10Bb>127.1</Month10Bb>
<Month10Pp>115.1</Month10Pp>
<Month11>104.1</Month11>
<Month11Bb>128.1</Month11Bb>
<Month11Pp>116.1</Month11Pp>
<Month12>105.1</Month12>
<Month12Bb>129.1</Month12Bb>
<Month12Pp>117.1</Month12Pp>
<Month1Bb>118.1</Month1Bb>
<Month1Pp>106.1</Month1Pp>
<Month2>95.1</Month2>
<Month2Bb>119.1</Month2Bb>
<Month2Pp>107.1</Month2Pp>
<Month3>96.1</Month3>
<Month3Bb>120.1</Month3Bb>
<Month3Pp>108.1</Month3Pp>
<Month4>97.1</Month4>
<Month4Bb>121.1</Month4Bb>
<Month4Pp>109.1</Month4Pp>
<Month5>98.1</Month5>
<Month5Bb>122.1</Month5Bb>
<Month5Pp>110.1</Month5Pp>
<Month6>99.1</Month6>
<Month6Bb>123.1</Month6Bb>
<Month6Pp>111.1</Month6Pp>
<Month7>100.1</Month7>
<Month7Bb>124.1</Month7Bb>
<Month7Pp>112.1</Month7Pp>
<Month8>101.1</Month8>
<Month8Bb>125.1</Month8Bb>
<Month8Pp>113.1</Month8Pp>
<Month9>102.1</Month9>
<Month9Bb>126.1</Month9Bb>
<Month9Pp>114.1</Month9Pp>
<Notes>sample string 19</Notes>
<Opened>sample string 62</Opened>
<OracleAddrId>sample string 41</OracleAddrId>
<OracleId>sample string 40</OracleId>
<OverLimLast>67.1</OverLimLast>
<OverLimThis>66</OverLimThis>
<Paid1099>83.1</Paid1099>
<PhoneNumber>sample string 15</PhoneNumber>
<PhoneNumber2>sample string 16</PhoneNumber2>
<PoRequiredYesNo>true</PoRequiredYesNo>
<Pricing>32</Pricing>
<PrintBbStatement>sample string 92</PrintBbStatement>
<PrintDollarsPerAcreOnInvoice>true</PrintDollarsPerAcreOnInvoice>
<PrintStatement>sample string 70</PrintStatement>
<ProspectYesNo>true</ProspectYesNo>
<Reason>sample string 135</Reason>
<ReasonExpDate>sample string 140</ReasonExpDate>
<SalesTaxRate>39.1</SalesTaxRate>
<Salesman>sample string 20</Salesman>
<SsnTaxIdNum>sample string 76</SsnTaxIdNum>
<StTaxCode>sample string 45</StTaxCode>
<State>sample string 13</State>
<TaxId>sample string 133</TaxId>
<Taxable>true</Taxable>
<TempCust>true</TempCust>
<Territory>sample string 36</Territory>
<Type1099>sample string 82</Type1099>
<UaCash>57.1</UaCash>
<Wip>72.1</Wip>
<Zip>sample string 14</Zip>
</CustomerAdd>
application/x-www-form-urlencoded
Response Information
Resource Description
Add a Customer.
AgvCustomer| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
0 = Success; 1 = An error occurred; 2 = An error occurred; 3 = Descriptive message; process was successful |
string | |
| Message |
Informational message that corresponds to the Status returned; 0 - Message will be "OK"; 1 - Detailed message returned to give user an indication of what went wrong; 2 - Less Detailed message returned that may not mean anything to the user but that the application might use to take a corrective action; 3 - Not an error but something the user might need to know |
string | |
| Count |
Number of customers returned |
string | |
| Customers |
A List of Properties and Values returned for each customer |
Collection of clsAPICustomer |
Response Formats
application/json, text/json
{
"Status": "sample string 1",
"Message": "sample string 2",
"Count": "sample string 3",
"Customers": [
{
"ID": "sample string 1",
"Name": "sample string 2",
"Address1": "sample string 3",
"Address2": "sample string 4",
"Address3": "sample string 5",
"City": "sample string 6",
"State": "sample string 7",
"ZipCode": "sample string 8",
"County": "sample string 9",
"Phone1": "sample string 10",
"Phone2": "sample string 11",
"Salesperson": "sample string 12",
"Notes": "sample string 13",
"Location": "sample string 14",
"CustomerGUID": "sample string 15",
"AlternateCustomerIdPrintout": "sample string 16",
"AlternateCustomerIdSelecting": "sample string 17",
"FederalPermitList": [
{
"CustID": "sample string 1",
"LineItem": 2,
"Permit": "sample string 3",
"ExpDate": "sample string 4"
},
{
"CustID": "sample string 1",
"LineItem": 2,
"Permit": "sample string 3",
"ExpDate": "sample string 4"
}
]
},
{
"ID": "sample string 1",
"Name": "sample string 2",
"Address1": "sample string 3",
"Address2": "sample string 4",
"Address3": "sample string 5",
"City": "sample string 6",
"State": "sample string 7",
"ZipCode": "sample string 8",
"County": "sample string 9",
"Phone1": "sample string 10",
"Phone2": "sample string 11",
"Salesperson": "sample string 12",
"Notes": "sample string 13",
"Location": "sample string 14",
"CustomerGUID": "sample string 15",
"AlternateCustomerIdPrintout": "sample string 16",
"AlternateCustomerIdSelecting": "sample string 17",
"FederalPermitList": [
{
"CustID": "sample string 1",
"LineItem": 2,
"Permit": "sample string 3",
"ExpDate": "sample string 4"
},
{
"CustID": "sample string 1",
"LineItem": 2,
"Permit": "sample string 3",
"ExpDate": "sample string 4"
}
]
}
]
}
application/xml, text/xml
<AgvCustomer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Customer">
<Count>sample string 3</Count>
<Customers xmlns:d2p1="http://schemas.datacontract.org/2004/07/SSI.API">
<d2p1:clsAPICustomer>
<d2p1:Address1>sample string 3</d2p1:Address1>
<d2p1:Address2>sample string 4</d2p1:Address2>
<d2p1:Address3>sample string 5</d2p1:Address3>
<d2p1:AlternateCustomerIdPrintout>sample string 16</d2p1:AlternateCustomerIdPrintout>
<d2p1:AlternateCustomerIdSelecting>sample string 17</d2p1:AlternateCustomerIdSelecting>
<d2p1:City>sample string 6</d2p1:City>
<d2p1:County>sample string 9</d2p1:County>
<d2p1:CustomerGUID>sample string 15</d2p1:CustomerGUID>
<d2p1:FederalPermitList xmlns:d4p1="http://schemas.datacontract.org/2004/07/SKY.Core.Customer">
<d4p1:ClsCustomer.ClsCustFedPerm>
<d4p1:CustID>sample string 1</d4p1:CustID>
<d4p1:ExpDate>sample string 4</d4p1:ExpDate>
<d4p1:LineItem>2</d4p1:LineItem>
<d4p1:Permit>sample string 3</d4p1:Permit>
</d4p1:ClsCustomer.ClsCustFedPerm>
<d4p1:ClsCustomer.ClsCustFedPerm>
<d4p1:CustID>sample string 1</d4p1:CustID>
<d4p1:ExpDate>sample string 4</d4p1:ExpDate>
<d4p1:LineItem>2</d4p1:LineItem>
<d4p1:Permit>sample string 3</d4p1:Permit>
</d4p1:ClsCustomer.ClsCustFedPerm>
</d2p1:FederalPermitList>
<d2p1:ID>sample string 1</d2p1:ID>
<d2p1:Location>sample string 14</d2p1:Location>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Notes>sample string 13</d2p1:Notes>
<d2p1:Phone1>sample string 10</d2p1:Phone1>
<d2p1:Phone2>sample string 11</d2p1:Phone2>
<d2p1:Salesperson>sample string 12</d2p1:Salesperson>
<d2p1:State>sample string 7</d2p1:State>
<d2p1:ZipCode>sample string 8</d2p1:ZipCode>
</d2p1:clsAPICustomer>
<d2p1:clsAPICustomer>
<d2p1:Address1>sample string 3</d2p1:Address1>
<d2p1:Address2>sample string 4</d2p1:Address2>
<d2p1:Address3>sample string 5</d2p1:Address3>
<d2p1:AlternateCustomerIdPrintout>sample string 16</d2p1:AlternateCustomerIdPrintout>
<d2p1:AlternateCustomerIdSelecting>sample string 17</d2p1:AlternateCustomerIdSelecting>
<d2p1:City>sample string 6</d2p1:City>
<d2p1:County>sample string 9</d2p1:County>
<d2p1:CustomerGUID>sample string 15</d2p1:CustomerGUID>
<d2p1:FederalPermitList xmlns:d4p1="http://schemas.datacontract.org/2004/07/SKY.Core.Customer">
<d4p1:ClsCustomer.ClsCustFedPerm>
<d4p1:CustID>sample string 1</d4p1:CustID>
<d4p1:ExpDate>sample string 4</d4p1:ExpDate>
<d4p1:LineItem>2</d4p1:LineItem>
<d4p1:Permit>sample string 3</d4p1:Permit>
</d4p1:ClsCustomer.ClsCustFedPerm>
<d4p1:ClsCustomer.ClsCustFedPerm>
<d4p1:CustID>sample string 1</d4p1:CustID>
<d4p1:ExpDate>sample string 4</d4p1:ExpDate>
<d4p1:LineItem>2</d4p1:LineItem>
<d4p1:Permit>sample string 3</d4p1:Permit>
</d4p1:ClsCustomer.ClsCustFedPerm>
</d2p1:FederalPermitList>
<d2p1:ID>sample string 1</d2p1:ID>
<d2p1:Location>sample string 14</d2p1:Location>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Notes>sample string 13</d2p1:Notes>
<d2p1:Phone1>sample string 10</d2p1:Phone1>
<d2p1:Phone2>sample string 11</d2p1:Phone2>
<d2p1:Salesperson>sample string 12</d2p1:Salesperson>
<d2p1:State>sample string 7</d2p1:State>
<d2p1:ZipCode>sample string 8</d2p1:ZipCode>
</d2p1:clsAPICustomer>
</Customers>
<Message>sample string 2</Message>
<Status>sample string 1</Status>
</AgvCustomer>