Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Service API: Cannot post data (Addresses, Child Organization, Contacts) to Organization

Found in

EPiServer.Commerce 11.8.3

Fixed in

EPiServer.ServiceApi 5.3.1

(Or a related package)

Created

Apr 26, 2018

Updated

Mar 04, 2019

Area

Service API

State

Closed, Fixed and tested


Description

Steps to reproduce:

  1. Post an organization with the following data in the body (include address, child organization, contact)

    {
    	
         "PrimaryKeyId": "414eef7b-e38c-44d9-a33f-c00343544db9",
            "Addresses": [
                {
                    "AddressId": "85c338ad-e9d1-4e9d-9bc7-f1b651ac82df",
                    "Modified": "2018-04-26T15:38:18.323+07:00",
                    "Name": "Address 1",
                    "FirstName": "Doan",
                    "LastName": "Hieu",
                    "CountryName": "Viet Nam",
                    "CountryCode": "VNM",
                    "City": "Ha Noi",
                    "PostalCode": "10000",
                    "Line1": "Thai Ha",
                    "Line2": "Dong Da",
                    "RegionName": null,
                    "RegionCode": "20000",
                    "Email": "hieu.doan@episerver.com",
                    "ShippingDefault": true,
                    "BillingDefault": true,
                    "DaytimePhoneNumber": "123",
                    "EveningPhoneNumber": "456",
                    "Organization": null
                }
            ],
            "ChildOrganizations": [
                {
                    "PrimaryKeyId": "14d76ec2-320f-4234-a607-8d661cec5e50",
                    "Addresses": [],
                    "ChildOrganizations": [],
                    "Contacts": [],
                    "OrganizationType": "Organization Unit",
                    "OrgCustomerGroup": "Partner"
                }
            ],
            "Contacts": [
                {
                    "PrimaryKeyId": "73e05bfe-17ae-401e-a689-405aaafb79ae",
                    "Addresses": [],
                    "FirstName": "Order",
                    "LastName": "Manager",
                    "Email": "manager@unknowdomain.domain",
                    "RegistrationSource": null
                }
            ],
            "OrganizationType": "Organization",
            "OrgCustomerGroup": "Customer"
    }
    

Expected:
An organization with address, contact, child organization is created. Response returns all address, contact, child organization.

Actual:
Response does not include Address, Child organization, Contact.

{
    "PrimaryKeyId": "414eef7b-e38c-44d9-a33f-c00343544db9",
    "Addresses": [],
    "ChildOrganizations": [],
    "Contacts": [],
    "OrganizationType": "Organization",
    "OrgCustomerGroup": "Customer"
}