Create customer, addresses, and contacts for usage on sales orders
post
/fscmRestApi/fom/11.13.18.05/customerForSalesOrders/createCustomer
Create customer, addresses, and contacts for usage on sales orders.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Values that describe the create customer service.
Show Source
-
billTo: object
billTo
Values that describe the Bill-to-account. It is applicable when billing accounts or invoice recipients are being created or managed separately. For schema, refer section BillToRequest.
-
caseSensitiveSearch: boolean
Searches are case-insensitive by default (false). To enable a case-sensitive search, set this option to true.
-
considerNulls: boolean
This option, applicable to Person, Contact, and Address fields, controls whether null values are included in searches. By default (false), they are not; set it to true to enable their inclusion.
-
createCustomerRelationships: boolean
This flag, enables the creation of relationships between sold-to and ship-to parties. By default (false), relationship is not created; set it to true to enable relationship creation.
-
manualCustomerNumberingFlag: boolean
To enable custom numbering for parties, party sites, and accounts, set it to true. By default (false), the system will auto-generate these numbers for you.
-
shipTo: object
shipTo
Values that describe the Ship-to-party. It is useful in cases where shipping destinations need to be defined independently of the primary customer record. For schema, refer section ShipToRequest.
-
soldTo: object
soldTo
Values that describe the Sold-to-party. It is typically used when establishing a primary customer entity without immediate need for billing or shipping details or contact detail. For schema, refer section SoldToRequest.
Nested Schema : billTo
Type:
object
Values that describe the Bill-to-account. It is applicable when billing accounts or invoice recipients are being created or managed separately. For schema, refer section BillToRequest.
Show Source
-
Array of:
object BillToRequest
Values that describe the bill-to-account.
Nested Schema : shipTo
Type:
object
Values that describe the Ship-to-party. It is useful in cases where shipping destinations need to be defined independently of the primary customer record. For schema, refer section ShipToRequest.
Show Source
-
Array of:
object ShipToRequest
Values that describe the ship-to-party.
Nested Schema : soldTo
Type:
object
Values that describe the Sold-to-party. It is typically used when establishing a primary customer entity without immediate need for billing or shipping details or contact detail. For schema, refer section SoldToRequest.
Show Source
-
Array of:
object SoldToRequest
Values that describe the sold-to-party.
Nested Schema : BillToRequest
Type:
object
Values that describe the bill-to-account.
Show Source
-
address: object
address
Address of the party. For schema, refer section AddressRequest.
-
contact: object
contact
Contact of the party. For schema, refer section PersonRequest.
-
organizationAccount: object
organizationAccount
Organization account details. For schema, refer section OrganizationAccountRequest.
-
partyType: string
The type of party account being created. It can only be ORGANIZATION or PERSON.
-
personAccount: object
personAccount
Person account details. For schema, refer section PersonAccountRequest.
Nested Schema : address
Type:
object
Address of the party. For schema, refer section AddressRequest.
Show Source
-
Array of:
object AddressRequest
Values that describe the address.
Nested Schema : contact
Type:
object
Contact of the party. For schema, refer section PersonRequest.
Show Source
-
Array of:
object PersonRequest
Values that describe the person.
Nested Schema : organizationAccount
Type:
object
Organization account details. For schema, refer section OrganizationAccountRequest.
Show Source
-
Array of:
object OrganizationAccountRequest
Values that describe the organization account.
Nested Schema : personAccount
Type:
object
Person account details. For schema, refer section PersonAccountRequest.
Show Source
-
Array of:
object PersonAccountRequest
Values that describe the Person
Nested Schema : AddressRequest
Type:
object
Values that describe the address.
Show Source
-
addressLine1: string
First line for address.
-
addressLine2: string
Second line for address.
-
addressLine3: string
Third line for address.
-
addressLine4: string
Fourth line for address.
-
city: string
The name of the city or locality in which the address is located.
-
country: string
The name or ISO code of the country. This is a required field and drives address validation logic and country-specific formatting rules.
-
county: string
A sub-region within a state or province, applicable in some countries for more granular geographic segmentation. This field may be optional depending on the country.
-
partySiteNumber: string
Party site number of the associated address.
-
province: string
Used primarily for countries where the term province is used instead of or in addition to state (e.g., Canada, China). This can be used in conjunction with or instead of the State field depending on the country.
-
state: string
The state, province, or region applicable to the address. This field is typically used in countries where states are standard (e.g., the United States, India, Australia).
-
zipCode: string
A postal or zip code used for mail sorting and delivery. This is often required for validating the address and enabling accurate shipping and billing.
Nested Schema : PersonRequest
Type:
object
Values that describe the person.
Show Source
-
email: string
Email address of the person party.
-
firstName: string
The first name of the individual.
-
lastName: string
The last name (or surname) of the individual.
-
middleName: string
The middle name of the individual.
-
nameSuffix: string
Indicates the place in a family structure. Any suffix that might follow the individual???s name, such as Jr. or III.
-
partyNumber: string
Unique identification number for the person party.
-
title: string
A professional or family title of the individual, such as Mr., Dr., or Ms.
Nested Schema : OrganizationAccountRequest
Type:
object
Values that describe the organization account.
Show Source
-
accountDescription: string
Account description chosen for the organization party.
-
accountNumber: string
Account number of the organization party.
-
email: string
E-mail address of the organization party.
-
name: string
Name of the organization.
-
partyNumber: string
Unique identification number for the organization party.
Nested Schema : PersonAccountRequest
Type:
object
Values that describe the Person
Show Source
-
accountDescription: string
Account description chosen for the person party.
-
accountNumber: string
Account Number of the organization party.
-
email: string
E-mail address of the person party.
-
firstName: string
The first name of the individual.
-
lastName: string
The last name (or surname) of the individual.
-
middleName: string
The middle name of the individual.
-
nameSuffix: string
Indicates the place in a family structure. Any suffix that might follow the individual???s name, such as Jr. or III.
-
partyNumber: string
Unique identification number for the person party.
-
title: string
A professional or family title of the individual, such as Mr., Dr., or Ms.
Nested Schema : ShipToRequest
Type:
object
Values that describe the ship-to-party.
Show Source
-
address: object
address
Address of the party. For schema, refer section AddressRequest.
-
contact: object
contact
Contact of the party. For schema, refer section PersonRequest.
-
organizationParty: object
organizationParty
Organization party details. For schema, refer section OrganizationRequest.
-
partyType: string
The type of party being created. It can only be ORGANIZATION or PERSON.
-
personParty: object
personParty
Person party details. For schema, refer section PersonRequest.
Nested Schema : address
Type:
object
Address of the party. For schema, refer section AddressRequest.
Show Source
-
Array of:
object AddressRequest
Values that describe the address.
Nested Schema : contact
Type:
object
Contact of the party. For schema, refer section PersonRequest.
Show Source
-
Array of:
object PersonRequest
Values that describe the person.
Nested Schema : organizationParty
Type:
object
Organization party details. For schema, refer section OrganizationRequest.
Show Source
-
Array of:
object OrganizationRequest
Values that describe the organization.
Nested Schema : personParty
Type:
object
Person party details. For schema, refer section PersonRequest.
Show Source
-
Array of:
object PersonRequest
Values that describe the person.
Nested Schema : OrganizationRequest
Type:
object
Values that describe the organization.
Show Source
-
email: string
E-mail address of the organization party
-
name: string
Name of the organization.
-
partyNumber: string
Unique identification number for the organization party.
Nested Schema : SoldToRequest
Type:
object
Values that describe the sold-to-party.
Show Source
-
contact: object
contact
Contact of the party. For schema, refer section PersonRequest.
-
organizationParty: object
organizationParty
Organization party details. For schema, refer section OrganizationRequest.
-
partyType: string
The type of party being created. It can only be ORGANIZATION or PERSON.
-
personParty: object
personParty
Person party details. For schema, refer section PersonRequest.
Nested Schema : contact
Type:
object
Contact of the party. For schema, refer section PersonRequest.
Show Source
-
Array of:
object PersonRequest
Values that describe the person.
Nested Schema : organizationParty
Type:
object
Organization party details. For schema, refer section OrganizationRequest.
Show Source
-
Array of:
object OrganizationRequest
Values that describe the organization.
Nested Schema : personParty
Type:
object
Person party details. For schema, refer section PersonRequest.
Show Source
-
Array of:
object PersonRequest
Values that describe the person.
Response
Supported Media Types
- application/json
200 Response
Customer information successfully.
Root Schema : CustomerResponse
Type:
object
Values that describe the create customer service.
Show Source
-
billTo: object
billTo
Values that describe the Bill-to-account. It is applicable when billing accounts or invoice recipients are being created or managed separately. For schema, refer section BillToResponse.
-
caseSensitiveSearch: boolean
Searches are case-insensitive by default (false). To enable a case-sensitive search, set this option to true.
-
considerNulls: boolean
This option, applicable to Person, Contact, and Address fields, controls whether null values are included in searches. By default (false), they are not; set it to true to enable their inclusion.
-
createCustomerRelationships: boolean
This flag, enables the creation of relationships between sold-to and ship-to parties. By default (false), relationship is not created; set it to true to enable relationship creation.
-
errors: array
errors
List of errors.
-
manualCustomerNumberingFlag: boolean
To enable custom numbering for parties, party sites, and accounts, set it to true. By default (false), the system will auto-generate these numbers for you.
-
shipTo: object
shipTo
Values that describe the Ship-to-party. It is useful in cases where shipping destinations need to be defined independently of the primary customer record. For schema, refer section ShipToResponse.
-
soldTo: object
soldTo
Values that describe the Sold-to-party. It is typically used when establishing a primary customer entity without immediate need for billing or shipping details or contact detail. For schema, refer section SoldToResponse.
Nested Schema : billTo
Type:
object
Values that describe the Bill-to-account. It is applicable when billing accounts or invoice recipients are being created or managed separately. For schema, refer section BillToResponse.
Show Source
-
Array of:
object BillToResponse
Values that describe the bill-to-account.
Nested Schema : shipTo
Type:
object
Values that describe the Ship-to-party. It is useful in cases where shipping destinations need to be defined independently of the primary customer record. For schema, refer section ShipToResponse.
Show Source
-
Array of:
object ShipToResponse
Values that describe the ship-to-party.
Nested Schema : soldTo
Type:
object
Values that describe the Sold-to-party. It is typically used when establishing a primary customer entity without immediate need for billing or shipping details or contact detail. For schema, refer section SoldToResponse.
Show Source
-
Array of:
object SoldToResponse
Values that describe the Sold-to-party.
Nested Schema : BillToResponse
Type:
object
Values that describe the bill-to-account.
Show Source
-
address: object
address
Address of the party. For schema, refer section AddressResponse.
-
contact: object
contact
Contact of the party. For schema, refer section ContactAccountResponse.
-
organizationAccount: object
organizationAccount
Organization account details. For schema, refer section OrganizationAccountResponse.
-
partyType: string
The type of party account being created. It can only be ORGANIZATION or PERSON.
-
personAccount: object
personAccount
Person account details. For schema, refer section PersonAccountResponse.
Nested Schema : address
Type:
object
Address of the party. For schema, refer section AddressResponse.
Show Source
-
Array of:
object AddressResponse
Values that describe the Address
Nested Schema : contact
Type:
object
Contact of the party. For schema, refer section ContactAccountResponse.
Show Source
-
Array of:
object ContactAccountResponse
Values that describe the Person
Nested Schema : organizationAccount
Type:
object
Organization account details. For schema, refer section OrganizationAccountResponse.
Show Source
-
Array of:
object OrganizationAccountResponse
Values that describe the organization account.
Nested Schema : personAccount
Type:
object
Person account details. For schema, refer section PersonAccountResponse.
Show Source
-
Array of:
object PersonAccountResponse
Values that describe the person.
Nested Schema : AddressResponse
Type:
object
Values that describe the Address
Show Source
-
addressLine1: string
First line for address.
-
addressLine2: string
Second line for address.
-
addressLine3: string
Third line for address.
-
addressLine4: string
Fourth line for address.
-
city: string
The name of the city or locality in which the address is located.
-
country: string
The name or ISO code of the country. This is a required field and drives address validation logic and country-specific formatting rules.
-
county: string
A sub-region within a state or province, applicable in some countries for more granular geographic segmentation. This field may be optional depending on the country.
-
locationId: number
Location identifier of the associated address.
-
partySiteId: number
Party site identifier of the associated address.
-
partySiteNumber: string
Party site number of the associated address.
-
province: string
Used primarily for countries where the term province is used instead of or in addition to state (e.g., Canada, China). This can be used in conjunction with or instead of the State field depending on the country.
-
state: string
The state, province, or region applicable to the address. This field is typically used in countries where states are standard (e.g., the United States, India, Australia).
-
zipCode: string
A postal or zip code used for mail sorting and delivery. This is often required for validating the address and enabling accurate shipping and billing.
Nested Schema : ContactAccountResponse
Type:
object
Values that describe the Person
Show Source
-
accountDescription: string
Account description chosen for the person party.
-
accountId: number
Account identifier of the person party.
-
accountNumber: string
Account Number of the organization party.
-
accountRoleId: number
Unique identifier for the role played by the party in the customer account.
-
email: string
Email address of the person party.
-
emailContactPointId: number
E-mail address contact point identifier of the person party.
-
firstName: string
The first name of the individual.
-
lastName: string
The last name (or surname) of the individual.
-
middleName: string
The middle name of the individual.
-
nameSuffix: string
Indicates the place in a family structure. Any suffix that might follow the individual???s name, such as Jr. or III.
-
partyId: number
Unique identifier for the person party.
-
partyNumber: string
Unique identification number for the person party.
-
relationshipId: number
Unique identifier of a relationship.
-
title: string
A professional or family title of the individual, such as Mr., Dr., or Ms.
Nested Schema : OrganizationAccountResponse
Type:
object
Values that describe the organization account.
Show Source
-
accountDescription: string
Account description chosen for the organization party.
-
accountId: number
Account identifier of the organization party.
-
accountNumber: string
Account number of the organization party.
-
email: string
E-mail address of the organization party.
-
emailContactPointId: number
E-mail address contact point identifier of the organization party.
-
name: string
Name of the organization.
-
partyId: number
Unique identifier for the organization party.
-
partyNumber: string
Unique identification number for the organization party.
Nested Schema : PersonAccountResponse
Type:
object
Values that describe the person.
Show Source
-
accountDescription: string
Account description chosen for the person party.
-
accountId: number
Account identifier of the person party.
-
accountNumber: string
Account Number of the organization party.
-
email: string
E-mail address of the person party.
-
emailContactPointId: number
E-mail address contact point identifier of the person party.
-
firstName: string
The first name of the individual.
-
lastName: string
The last name (or surname) of the individual.
-
middleName: string
The middle name of the individual.
-
nameSuffix: string
Indicates the place in a family structure. Any suffix that might follow the individual???s name, such as Jr. or III.
-
partyId: number
Unique identifier for the person party.
-
partyNumber: string
Unique identification number for the person party.
-
title: string
A professional or family title of the individual, such as Mr., Dr., or Ms.
Nested Schema : ShipToResponse
Type:
object
Values that describe the ship-to-party.
Show Source
-
address: object
address
Address of the party. For schema, refer section AddressResponse.
-
contact: object
contact
Contact of the party. For schema, refer section ContactResponse.
-
organizationParty: object
organizationParty
Organization party details. For schema, refer section OrganizationResponse.
-
partyType: string
The type of party being created. It can only be ORGANIZATION or PERSON.
-
personParty: object
personParty
Person party details. For schema, refer section PersonResponse.
Nested Schema : address
Type:
object
Address of the party. For schema, refer section AddressResponse.
Show Source
-
Array of:
object AddressResponse
Values that describe the Address
Nested Schema : contact
Type:
object
Contact of the party. For schema, refer section ContactResponse.
Show Source
-
Array of:
object ContactResponse
Values that describe the person.
Nested Schema : organizationParty
Type:
object
Organization party details. For schema, refer section OrganizationResponse.
Show Source
-
Array of:
object OrganizationResponse
Values that describe the organization.
Nested Schema : personParty
Type:
object
Person party details. For schema, refer section PersonResponse.
Show Source
-
Array of:
object PersonResponse
Values that describe the person.
Nested Schema : ContactResponse
Type:
object
Values that describe the person.
Show Source
-
email: string
E-mail address of the person party.
-
emailContactPointId: number
E-mail address contact point identifier of the person party.
-
firstName: string
The first name of the individual.
-
lastName: string
The last name (or surname) of the individual.
-
middleName: string
The middle name of the individual.
-
nameSuffix: string
Indicates the place in a family structure. Any suffix that might follow the individual???s name, such as Jr. or III.
-
partyId: number
Unique identifier for the person party.
-
partyNumber: string
Unique identification number for the person party.
-
relationshipId: number
Unique identifier of a relationship.
-
title: string
A professional or family title of the individual, such as Mr., Dr., or Ms.
Nested Schema : OrganizationResponse
Type:
object
Values that describe the organization.
Show Source
-
email: string
E-mail address of the organization party.
-
emailContactPointId: number
E-mail address contact point identifier of the organization party.
-
name: string
The official name of the organization.
-
partyId: number
Unique identifier for the organization party.
-
partyNumber: string
Unique identification number for the organization party.
Nested Schema : PersonResponse
Type:
object
Values that describe the person.
Show Source
-
email: string
Email address of the person party.
-
emailContactPointId: number
E-mail address contact point identifier of the person party.
-
firstName: string
The first name of the individual.
-
lastName: string
The last name (or surname) of the individual.
-
middleName: string
The middle name of the individual.
-
nameSuffix: string
Indicates the place in a family structure. Any suffix that might follow the individual???s name, such as Jr. or III.
-
partyId: number
Unique identifier for the person party.
-
partyNumber: string
Unique identification number for the person party.
-
title: string
A professional or family title of the individual, such as Mr., Dr., or Ms.
Nested Schema : SoldToResponse
Type:
object
Values that describe the Sold-to-party.
Show Source
-
contact: object
contact
Contact of the party. For schema, refer section ContactResponse.
-
organizationParty: object
organizationParty
Organization party details. For schema, refer section OrganizationResponse.
-
partyType: string
The type of party being created. It can only be ORGANIZATION or PERSON.
-
personParty: object
personParty
Person party details. For schema, refer section PersonResponse.
Nested Schema : contact
Type:
object
Contact of the party. For schema, refer section ContactResponse.
Show Source
-
Array of:
object ContactResponse
Values that describe the person.
Nested Schema : organizationParty
Type:
object
Organization party details. For schema, refer section OrganizationResponse.
Show Source
-
Array of:
object OrganizationResponse
Values that describe the organization.
Nested Schema : personParty
Type:
object
Person party details. For schema, refer section PersonResponse.
Show Source
-
Array of:
object PersonResponse
Values that describe the person.
400 Response
Invalid input request.