User Story
As a program manager,
I want my developer to create an API Callout to add an account along with its related contacts, opportunities, cases, and contracts into Salesforce,
so that I can seamlessly upload and organize account data with all associated child records in one operation, ensuring proper relationships are established.
JSON
{
"AccountName": "Acme Corporation",
"Industry": "Technology",
"AnnualRevenue": 5000000,
"ShippingAddress": {
"Street": "789 Global St",
"City": "New York",
"State": "NY",
"PostalCode": "10001",
"Country": "USA"
},
"BillingAddress": {
"Street": "456 Corporate Ave",
"City": "Boston",
"State": "MA",
"PostalCode": "02108",
"Country": "USA"
},
"Contacts": [
{
"FirstName": "John",
"LastName": "Doe",
"Email": "john.doe@example.com",
"Phone": "123-456-7890",
"MailingAddress": {
"Street": "123 Main St",
"City": "Springfield",
"State": "IL",
"PostalCode": "62704",
"Country": "USA"
},
"OtherAddress": {
"Street": "456 Elm St",
"City": "Chicago",
"State": "IL",
"PostalCode": "60601",
"Country": "USA"
}
},
{
"FirstName": "Jane",
"LastName": "Smith",
"Email": "jane.smith@example.com",
"Phone": "234-567-8901",
"MailingAddress": {
"Street": "789 Oak St",
"City": "Houston",
"State": "TX",
"PostalCode": "77002",
"Country": "USA"
},
"OtherAddress": {
"Street": "321 Pine St",
"City": "Dallas",
"State": "TX",
"PostalCode": "75201",
"Country": "USA"
}
},
{
"FirstName": "Michael",
"LastName": "Johnson",
"Email": "michael.johnson@example.com",
"Phone": "345-678-9012",
"MailingAddress": {
"Street": "101 Maple St",
"City": "Seattle",
"State": "WA",
"PostalCode": "98101",
"Country": "USA"
},
"OtherAddress": {
"Street": "202 Birch St",
"City": "Tacoma",
"State": "WA",
"PostalCode": "98402",
"Country": "USA"
}
},
{
"FirstName": "Emily",
"LastName": "Davis",
"Email": "emily.davis@example.com",
"Phone": "456-789-0123",
"MailingAddress": {
"Street": "303 Cherry St",
"City": "Los Angeles",
"State": "CA",
"PostalCode": "90001",
"Country": "USA"
},
"OtherAddress": {
"Street": "404 Walnut St",
"City": "San Francisco",
"State": "CA",
"PostalCode": "94102",
"Country": "USA"
}
},
{
"FirstName": "David",
"LastName": "Brown",
"Email": "david.brown@example.com",
"Phone": "567-890-1234",
"MailingAddress": {
"Street": "505 Cedar St",
"City": "Miami",
"State": "FL",
"PostalCode": "33101",
"Country": "USA"
},
"OtherAddress": {
"Street": "606 Palm St",
"City": "Orlando",
"State": "FL",
"PostalCode": "32801",
"Country": "USA"
}
}
],
"Opportunities": [
{
"Name": "Website Redesign",
"StageName": "Proposal/Price Quote",
"Amount": 20000
},
{
"Name": "Cloud Migration",
"StageName": "Negotiation/Review",
"Amount": 50000
},
{
"Name": "Security Enhancement",
"StageName": "Closed Won",
"Amount": 15000
}
],
"Cases": [
{
"Subject": "Login Issue",
"Status": "Open",
"Priority": "High"
},
{
"Subject": "Software Bug",
"Status": "Working",
"Priority": "Medium"
},
{
"Subject": "Account Access Issue",
"Status": "Closed",
"Priority": "Low"
},
{
"Subject": "Payment Error",
"Status": "Escalated",
"Priority": "High"
},
{
"Subject": "Product Inquiry",
"Status": "New",
"Priority": "Low"
},
{
"Subject": "Update Request",
"Status": "Working",
"Priority": "Medium"
},
{
"Subject": "Feature Suggestion",
"Status": "New",
"Priority": "Low"
},
{
"Subject": "Contract Issue",
"Status": "Escalated",
"Priority": "High"
},
{
"Subject": "Refund Request",
"Status": "Closed",
"Priority": "Medium"
},
{
"Subject": "Billing Question",
"Status": "Working",
"Priority": "Low"
}
],
"Contracts": [
{
"ContractName": "Enterprise License Agreement",
"Contract Start Date": "2024-01-01",
"Contract End Date": "2024-12-31",
"Status": "Active"
},
{
"ContractName": "Maintenance Agreement",
"Contract Start Date": "2023-06-01",
"Contract End Date": "2024-05-31",
"Status": "Active"
},
{
"ContractName": "Consulting Services Agreement",
"Contract Start Date": "2024-03-01",
"Contract End Date": "2024-09-30",
"Status": "Pending"
}
]
}