---
title: Creates the organization.
slug: commerce-connect-15/service-api/uGeC-creates-the-organization
docTags: 
createdAt: 2026-10-09T17:33:32.660Z
---

{
  "id": "-jq9SEYj_Mqh2FTVYLcW4",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://localhost:64424/episerverapi/commerce/customers/organization",
    "servers": [
      {
        "url": "http://localhost:64424/episerverapi/commerce/customers/organization"
      },
      {
        "url": "https://localhost:64424/episerverapi/commerce/customers/organization"
      }
    ],
    "name": "Creates the organization.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "Organization model.",
          "customType": "EPiServer.ServiceApi.Commerce.Models.Order.OrganizationModel",
          "schema": [
            {
              "name": "PrimaryKeyId",
              "kind": "optional",
              "type": "string<uuid>",
              "description": "<p>Organization ID (GUID).</p>",
              "example": "00000000-0000-0000-0000-000000000000",
              "format": "uuid"
            },
            {
              "name": "Addresses",
              "kind": "optional",
              "type": "array",
              "description": "List of addresses.",
              "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.AddressModel",
              "customType": "EPiServer.ServiceApi.Commerce.Models.Order.AddressModel[]",
              "schema": [
                {
                  "name": "AddressId",
                  "kind": "optional",
                  "type": "string<uuid>",
                  "description": "<p>Address ID (GUID).</p>",
                  "example": "00000000-0000-0000-0000-000000000000",
                  "format": "uuid"
                },
                {
                  "name": "Modified",
                  "kind": "optional",
                  "type": "string<date-time>",
                  "description": "Last modified date.",
                  "format": "date-time"
                },
                {
                  "name": "Name",
                  "kind": "optional",
                  "type": "string",
                  "description": "Address name."
                },
                {
                  "name": "FirstName",
                  "kind": "optional",
                  "type": "string",
                  "description": "First name."
                },
                {
                  "name": "LastName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Last name."
                },
                {
                  "name": "CountryName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Country name."
                },
                {
                  "name": "CountryCode",
                  "kind": "optional",
                  "type": "string",
                  "description": "Country code."
                },
                {
                  "name": "City",
                  "kind": "optional",
                  "type": "string",
                  "description": "City."
                },
                {
                  "name": "PostalCode",
                  "kind": "optional",
                  "type": "string",
                  "description": "<p>Postal code (Zip code).</p>"
                },
                {
                  "name": "Line1",
                  "kind": "optional",
                  "type": "string",
                  "description": "Address line 1."
                },
                {
                  "name": "Line2",
                  "kind": "optional",
                  "type": "string",
                  "description": "Address line 2."
                },
                {
                  "name": "RegionName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Region name."
                },
                {
                  "name": "RegionCode",
                  "kind": "optional",
                  "type": "string",
                  "description": "Region code."
                },
                {
                  "name": "Email",
                  "kind": "optional",
                  "type": "string",
                  "description": "Email."
                },
                {
                  "name": "ShippingDefault",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Check if this is default shipping address. This property is misleading and has been obsolete. Use IsShippingAddress instead."
                },
                {
                  "name": "BillingDefault",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Check if this is default billing address. This property is misleading and has been obsolete. Use IsBillingAddress instead."
                },
                {
                  "name": "IsShippingAddress",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Flag to indicate if this is a shipping address or not."
                },
                {
                  "name": "IsBillingAddress",
                  "kind": "optional",
                  "type": "boolean",
                  "description": "Flag to indicate if this is a billing address or not."
                },
                {
                  "name": "DaytimePhoneNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Daytime phone number."
                },
                {
                  "name": "EveningPhoneNumber",
                  "kind": "optional",
                  "type": "string",
                  "description": "Evening phone number."
                },
                {
                  "name": "Organization",
                  "kind": "optional",
                  "type": "string",
                  "description": "Organization name."
                },
                {
                  "name": "AddressType",
                  "kind": "optional",
                  "type": "array",
                  "description": "Address type.",
                  "example": "",
                  "itemType": "integer",
                  "customType": "integer[]",
                  "itemExample": "",
                  "itemDefault": ""
                }
              ]
            },
            {
              "name": "ChildOrganizations",
              "kind": "optional",
              "type": "array",
              "description": "List of child organizations.",
              "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.OrganizationModel",
              "customType": "EPiServer.ServiceApi.Commerce.Models.Order.OrganizationModel[]",
              "schema": [
                {
                  "name": "",
                  "description": "",
                  "customType": "Circular-Reference"
                }
              ]
            },
            {
              "name": "Contacts",
              "kind": "optional",
              "type": "array",
              "description": "List of contacts.",
              "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.ContactModel",
              "customType": "EPiServer.ServiceApi.Commerce.Models.Order.ContactModel[]",
              "schema": [
                {
                  "name": "PrimaryKeyId",
                  "kind": "optional",
                  "type": "string<uuid>",
                  "description": "<p>Contact ID (GUID).</p>",
                  "example": "00000000-0000-0000-0000-000000000000",
                  "format": "uuid"
                },
                {
                  "name": "Addresses",
                  "kind": "optional",
                  "type": "array",
                  "description": "Contacts addresses.",
                  "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.AddressModel",
                  "customType": "EPiServer.ServiceApi.Commerce.Models.Order.AddressModel[]",
                  "schema": [
                    {
                      "name": "AddressId",
                      "kind": "optional",
                      "type": "string<uuid>",
                      "description": "<p>Address ID (GUID).</p>",
                      "example": "00000000-0000-0000-0000-000000000000",
                      "format": "uuid"
                    },
                    {
                      "name": "Modified",
                      "kind": "optional",
                      "type": "string<date-time>",
                      "description": "Last modified date.",
                      "format": "date-time"
                    },
                    {
                      "name": "Name",
                      "kind": "optional",
                      "type": "string",
                      "description": "Address name."
                    },
                    {
                      "name": "FirstName",
                      "kind": "optional",
                      "type": "string",
                      "description": "First name."
                    },
                    {
                      "name": "LastName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Last name."
                    },
                    {
                      "name": "CountryName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Country name."
                    },
                    {
                      "name": "CountryCode",
                      "kind": "optional",
                      "type": "string",
                      "description": "Country code."
                    },
                    {
                      "name": "City",
                      "kind": "optional",
                      "type": "string",
                      "description": "City."
                    },
                    {
                      "name": "PostalCode",
                      "kind": "optional",
                      "type": "string",
                      "description": "<p>Postal code (Zip code).</p>"
                    },
                    {
                      "name": "Line1",
                      "kind": "optional",
                      "type": "string",
                      "description": "Address line 1."
                    },
                    {
                      "name": "Line2",
                      "kind": "optional",
                      "type": "string",
                      "description": "Address line 2."
                    },
                    {
                      "name": "RegionName",
                      "kind": "optional",
                      "type": "string",
                      "description": "Region name."
                    },
                    {
                      "name": "RegionCode",
                      "kind": "optional",
                      "type": "string",
                      "description": "Region code."
                    },
                    {
                      "name": "Email",
                      "kind": "optional",
                      "type": "string",
                      "description": "Email."
                    },
                    {
                      "name": "ShippingDefault",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "Check if this is default shipping address. This property is misleading and has been obsolete. Use IsShippingAddress instead."
                    },
                    {
                      "name": "BillingDefault",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "Check if this is default billing address. This property is misleading and has been obsolete. Use IsBillingAddress instead."
                    },
                    {
                      "name": "IsShippingAddress",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "Flag to indicate if this is a shipping address or not."
                    },
                    {
                      "name": "IsBillingAddress",
                      "kind": "optional",
                      "type": "boolean",
                      "description": "Flag to indicate if this is a billing address or not."
                    },
                    {
                      "name": "DaytimePhoneNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "Daytime phone number."
                    },
                    {
                      "name": "EveningPhoneNumber",
                      "kind": "optional",
                      "type": "string",
                      "description": "Evening phone number."
                    },
                    {
                      "name": "Organization",
                      "kind": "optional",
                      "type": "string",
                      "description": "Organization name."
                    },
                    {
                      "name": "AddressType",
                      "kind": "optional",
                      "type": "array",
                      "description": "Address type.",
                      "example": "",
                      "itemType": "integer",
                      "customType": "integer[]",
                      "itemExample": "",
                      "itemDefault": ""
                    }
                  ]
                },
                {
                  "name": "FirstName",
                  "kind": "optional",
                  "type": "string",
                  "description": "First name."
                },
                {
                  "name": "LastName",
                  "kind": "optional",
                  "type": "string",
                  "description": "Last name."
                },
                {
                  "name": "Email",
                  "kind": "optional",
                  "type": "string",
                  "description": "Email."
                },
                {
                  "name": "RegistrationSource",
                  "kind": "optional",
                  "type": "string",
                  "description": "Registration source."
                }
              ]
            },
            {
              "name": "OrganizationType",
              "kind": "optional",
              "type": "string",
              "description": "Organization type."
            },
            {
              "name": "OrgCustomerGroup",
              "kind": "optional",
              "type": "string",
              "description": "Organization customer group."
            },
            {
              "name": "BusinessCategory",
              "kind": "optional",
              "type": "string",
              "description": "Business category."
            },
            {
              "name": "Name",
              "kind": "required",
              "type": "string",
              "description": "Organization name."
            },
            {
              "name": "Description",
              "kind": "optional",
              "type": "string",
              "description": "Organization description."
            },
            {
              "name": "Properties",
              "kind": "optional",
              "type": "array",
              "description": "Gets the list of key value pairs for dealing with custom properties.",
              "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
              "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
              "schema": [
                {
                  "name": "Key",
                  "kind": "optional",
                  "type": "string",
                  "description": "Key of the property."
                },
                {
                  "name": "Value",
                  "kind": "optional",
                  "type": "string",
                  "description": "Value of the property."
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.OrganizationModel",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "The organization is saved.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "Organization model.",
            "customType": "EPiServer.ServiceApi.Commerce.Models.Order.OrganizationModel",
            "schema": [
              {
                "name": "PrimaryKeyId",
                "kind": "optional",
                "type": "string<uuid>",
                "description": "<p>Organization ID (GUID).</p>",
                "example": "00000000-0000-0000-0000-000000000000",
                "format": "uuid"
              },
              {
                "name": "Addresses",
                "kind": "optional",
                "type": "array",
                "description": "List of addresses.",
                "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.AddressModel",
                "customType": "EPiServer.ServiceApi.Commerce.Models.Order.AddressModel[]",
                "schema": [
                  {
                    "name": "AddressId",
                    "kind": "optional",
                    "type": "string<uuid>",
                    "description": "<p>Address ID (GUID).</p>",
                    "example": "00000000-0000-0000-0000-000000000000",
                    "format": "uuid"
                  },
                  {
                    "name": "Modified",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "description": "Last modified date.",
                    "format": "date-time"
                  },
                  {
                    "name": "Name",
                    "kind": "optional",
                    "type": "string",
                    "description": "Address name."
                  },
                  {
                    "name": "FirstName",
                    "kind": "optional",
                    "type": "string",
                    "description": "First name."
                  },
                  {
                    "name": "LastName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Last name."
                  },
                  {
                    "name": "CountryName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country name."
                  },
                  {
                    "name": "CountryCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country code."
                  },
                  {
                    "name": "City",
                    "kind": "optional",
                    "type": "string",
                    "description": "City."
                  },
                  {
                    "name": "PostalCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "<p>Postal code (Zip code).</p>"
                  },
                  {
                    "name": "Line1",
                    "kind": "optional",
                    "type": "string",
                    "description": "Address line 1."
                  },
                  {
                    "name": "Line2",
                    "kind": "optional",
                    "type": "string",
                    "description": "Address line 2."
                  },
                  {
                    "name": "RegionName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Region name."
                  },
                  {
                    "name": "RegionCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Region code."
                  },
                  {
                    "name": "Email",
                    "kind": "optional",
                    "type": "string",
                    "description": "Email."
                  },
                  {
                    "name": "ShippingDefault",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "Check if this is default shipping address. This property is misleading and has been obsolete. Use IsShippingAddress instead."
                  },
                  {
                    "name": "BillingDefault",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "Check if this is default billing address. This property is misleading and has been obsolete. Use IsBillingAddress instead."
                  },
                  {
                    "name": "IsShippingAddress",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "Flag to indicate if this is a shipping address or not."
                  },
                  {
                    "name": "IsBillingAddress",
                    "kind": "optional",
                    "type": "boolean",
                    "description": "Flag to indicate if this is a billing address or not."
                  },
                  {
                    "name": "DaytimePhoneNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Daytime phone number."
                  },
                  {
                    "name": "EveningPhoneNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Evening phone number."
                  },
                  {
                    "name": "Organization",
                    "kind": "optional",
                    "type": "string",
                    "description": "Organization name."
                  },
                  {
                    "name": "AddressType",
                    "kind": "optional",
                    "type": "array",
                    "description": "Address type.",
                    "example": "",
                    "itemType": "integer",
                    "customType": "integer[]",
                    "itemExample": "",
                    "itemDefault": ""
                  }
                ]
              },
              {
                "name": "ChildOrganizations",
                "kind": "optional",
                "type": "array",
                "description": "List of child organizations.",
                "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.OrganizationModel",
                "customType": "EPiServer.ServiceApi.Commerce.Models.Order.OrganizationModel[]",
                "schema": [
                  {
                    "name": "",
                    "description": "",
                    "customType": "Circular-Reference"
                  }
                ]
              },
              {
                "name": "Contacts",
                "kind": "optional",
                "type": "array",
                "description": "List of contacts.",
                "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.ContactModel",
                "customType": "EPiServer.ServiceApi.Commerce.Models.Order.ContactModel[]",
                "schema": [
                  {
                    "name": "PrimaryKeyId",
                    "kind": "optional",
                    "type": "string<uuid>",
                    "description": "<p>Contact ID (GUID).</p>",
                    "example": "00000000-0000-0000-0000-000000000000",
                    "format": "uuid"
                  },
                  {
                    "name": "Addresses",
                    "kind": "optional",
                    "type": "array",
                    "description": "Contacts addresses.",
                    "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.AddressModel",
                    "customType": "EPiServer.ServiceApi.Commerce.Models.Order.AddressModel[]",
                    "schema": [
                      {
                        "name": "AddressId",
                        "kind": "optional",
                        "type": "string<uuid>",
                        "description": "<p>Address ID (GUID).</p>",
                        "example": "00000000-0000-0000-0000-000000000000",
                        "format": "uuid"
                      },
                      {
                        "name": "Modified",
                        "kind": "optional",
                        "type": "string<date-time>",
                        "description": "Last modified date.",
                        "format": "date-time"
                      },
                      {
                        "name": "Name",
                        "kind": "optional",
                        "type": "string",
                        "description": "Address name."
                      },
                      {
                        "name": "FirstName",
                        "kind": "optional",
                        "type": "string",
                        "description": "First name."
                      },
                      {
                        "name": "LastName",
                        "kind": "optional",
                        "type": "string",
                        "description": "Last name."
                      },
                      {
                        "name": "CountryName",
                        "kind": "optional",
                        "type": "string",
                        "description": "Country name."
                      },
                      {
                        "name": "CountryCode",
                        "kind": "optional",
                        "type": "string",
                        "description": "Country code."
                      },
                      {
                        "name": "City",
                        "kind": "optional",
                        "type": "string",
                        "description": "City."
                      },
                      {
                        "name": "PostalCode",
                        "kind": "optional",
                        "type": "string",
                        "description": "<p>Postal code (Zip code).</p>"
                      },
                      {
                        "name": "Line1",
                        "kind": "optional",
                        "type": "string",
                        "description": "Address line 1."
                      },
                      {
                        "name": "Line2",
                        "kind": "optional",
                        "type": "string",
                        "description": "Address line 2."
                      },
                      {
                        "name": "RegionName",
                        "kind": "optional",
                        "type": "string",
                        "description": "Region name."
                      },
                      {
                        "name": "RegionCode",
                        "kind": "optional",
                        "type": "string",
                        "description": "Region code."
                      },
                      {
                        "name": "Email",
                        "kind": "optional",
                        "type": "string",
                        "description": "Email."
                      },
                      {
                        "name": "ShippingDefault",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Check if this is default shipping address. This property is misleading and has been obsolete. Use IsShippingAddress instead."
                      },
                      {
                        "name": "BillingDefault",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Check if this is default billing address. This property is misleading and has been obsolete. Use IsBillingAddress instead."
                      },
                      {
                        "name": "IsShippingAddress",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Flag to indicate if this is a shipping address or not."
                      },
                      {
                        "name": "IsBillingAddress",
                        "kind": "optional",
                        "type": "boolean",
                        "description": "Flag to indicate if this is a billing address or not."
                      },
                      {
                        "name": "DaytimePhoneNumber",
                        "kind": "optional",
                        "type": "string",
                        "description": "Daytime phone number."
                      },
                      {
                        "name": "EveningPhoneNumber",
                        "kind": "optional",
                        "type": "string",
                        "description": "Evening phone number."
                      },
                      {
                        "name": "Organization",
                        "kind": "optional",
                        "type": "string",
                        "description": "Organization name."
                      },
                      {
                        "name": "AddressType",
                        "kind": "optional",
                        "type": "array",
                        "description": "Address type.",
                        "example": "",
                        "itemType": "integer",
                        "customType": "integer[]",
                        "itemExample": "",
                        "itemDefault": ""
                      }
                    ]
                  },
                  {
                    "name": "FirstName",
                    "kind": "optional",
                    "type": "string",
                    "description": "First name."
                  },
                  {
                    "name": "LastName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Last name."
                  },
                  {
                    "name": "Email",
                    "kind": "optional",
                    "type": "string",
                    "description": "Email."
                  },
                  {
                    "name": "RegistrationSource",
                    "kind": "optional",
                    "type": "string",
                    "description": "Registration source."
                  }
                ]
              },
              {
                "name": "OrganizationType",
                "kind": "optional",
                "type": "string",
                "description": "Organization type."
              },
              {
                "name": "OrgCustomerGroup",
                "kind": "optional",
                "type": "string",
                "description": "Organization customer group."
              },
              {
                "name": "BusinessCategory",
                "kind": "optional",
                "type": "string",
                "description": "Business category."
              },
              {
                "name": "Name",
                "kind": "required",
                "type": "string",
                "description": "Organization name."
              },
              {
                "name": "Description",
                "kind": "optional",
                "type": "string",
                "description": "Organization description."
              },
              {
                "name": "Properties",
                "kind": "optional",
                "type": "array",
                "description": "Gets the list of key value pairs for dealing with custom properties.",
                "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel",
                "customType": "EPiServer.ServiceApi.Commerce.Models.Order.PropertyItemModel[]",
                "schema": [
                  {
                    "name": "Key",
                    "kind": "optional",
                    "type": "string",
                    "description": "Key of the property."
                  },
                  {
                    "name": "Value",
                    "kind": "optional",
                    "type": "string",
                    "description": "Value of the property."
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/EPiServer.ServiceApi.Commerce.Models.Order.OrganizationModel",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "If the organization model is not valid.",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "401",
        "description": "If user does not have enough permission for this request.",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "_r9fryD2h3EFtzlVZL91h",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost:64424/episerverapi/commerce/customers/organization \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"Name\": \"\"\n     }'"
        },
        {
          "id": "ODBN1eEAJRK9be6xrKnt7",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"Name\": \"\"\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"http://localhost:64424/episerverapi/commerce/customers/organization\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "3VccnMxSx4ybVzJx-M8vz",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost:64424/episerverapi/commerce/customers/organization\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"Name\": \"\"\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "GtfRBnPGQxvT18q7mvN8N",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://localhost:64424/episerverapi/commerce/customers/organization\"\n\npayload = json.dumps({\n   \"Name\": \"\"\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "_r9fryD2h3EFtzlVZL91h"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// The organization is saved.\n{\n  \"PrimaryKeyId\": \"00000000-0000-0000-0000-000000000000\",\n  \"Addresses\": [\n    {\n      \"AddressId\": \"00000000-0000-0000-0000-000000000000\",\n      \"Modified\": \"\",\n      \"Name\": \"\",\n      \"FirstName\": \"\",\n      \"LastName\": \"\",\n      \"CountryName\": \"\",\n      \"CountryCode\": \"\",\n      \"City\": \"\",\n      \"PostalCode\": \"\",\n      \"Line1\": \"\",\n      \"Line2\": \"\",\n      \"RegionName\": \"\",\n      \"RegionCode\": \"\",\n      \"Email\": \"\",\n      \"ShippingDefault\": false,\n      \"BillingDefault\": false,\n      \"IsShippingAddress\": false,\n      \"IsBillingAddress\": false,\n      \"DaytimePhoneNumber\": \"\",\n      \"EveningPhoneNumber\": \"\",\n      \"Organization\": \"\",\n      \"AddressType\": [\n        0\n      ]\n    }\n  ],\n  \"ChildOrganizations\": [\n    {\n      \"\": \"\"\n    }\n  ],\n  \"Contacts\": [\n    {\n      \"PrimaryKeyId\": \"00000000-0000-0000-0000-000000000000\",\n      \"Addresses\": [\n        {\n          \"AddressId\": \"00000000-0000-0000-0000-000000000000\",\n          \"Modified\": \"\",\n          \"Name\": \"\",\n          \"FirstName\": \"\",\n          \"LastName\": \"\",\n          \"CountryName\": \"\",\n          \"CountryCode\": \"\",\n          \"City\": \"\",\n          \"PostalCode\": \"\",\n          \"Line1\": \"\",\n          \"Line2\": \"\",\n          \"RegionName\": \"\",\n          \"RegionCode\": \"\",\n          \"Email\": \"\",\n          \"ShippingDefault\": false,\n          \"BillingDefault\": false,\n          \"IsShippingAddress\": false,\n          \"IsBillingAddress\": false,\n          \"DaytimePhoneNumber\": \"\",\n          \"EveningPhoneNumber\": \"\",\n          \"Organization\": \"\",\n          \"AddressType\": [\n            0\n          ]\n        }\n      ],\n      \"FirstName\": \"\",\n      \"LastName\": \"\",\n      \"Email\": \"\",\n      \"RegistrationSource\": \"\"\n    }\n  ],\n  \"OrganizationType\": \"\",\n  \"OrgCustomerGroup\": \"\",\n  \"BusinessCategory\": \"\",\n  \"Name\": \"\",\n  \"Description\": \"\",\n  \"Properties\": [\n    {\n      \"Key\": \"\",\n      \"Value\": \"\"\n    }\n  ]\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// If the organization model is not valid.\n"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// If user does not have enough permission for this request.\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}