create_profile
¶
create_profile(
domain_name: name,
*,
config_overrides: Optional[CustomerProfilesClientConfig] = None,
account_number: Optional[sensitiveString1To255] = None,
additional_information: Optional[sensitiveString1To1000] = None,
party_type: Optional[PartyType] = None,
business_name: Optional[sensitiveString1To255] = None,
first_name: Optional[sensitiveString1To255] = None,
middle_name: Optional[sensitiveString1To255] = None,
last_name: Optional[sensitiveString1To255] = None,
birth_date: Optional[sensitiveString1To255] = None,
gender: Optional[Gender] = None,
phone_number: Optional[sensitiveString1To255] = None,
mobile_phone_number: Optional[sensitiveString1To255] = None,
home_phone_number: Optional[sensitiveString1To255] = None,
business_phone_number: Optional[sensitiveString1To255] = None,
email_address: Optional[sensitiveString1To255] = None,
personal_email_address: Optional[sensitiveString1To255] = None,
business_email_address: Optional[sensitiveString1To255] = None,
address: Optional[Address] = None,
shipping_address: Optional[Address] = None,
mailing_address: Optional[Address] = None,
billing_address: Optional[Address] = None,
attributes: Optional[Attributes] = None,
party_type_string: Optional[sensitiveString1To255] = None,
gender_string: Optional[sensitiveString1To255] = None,
profile_type: Optional[ProfileType] = None,
engagement_preferences: Optional[EngagementPreferences] = None,
) -> CreateProfileResponse
Creates a standard profile.
A standard profile represents the following attributes for a customer profile in a domain.
Parameters:
-
domain_name(name) –The unique name of the domain.
-
account_number(Optional[sensitiveString1To255], default:None) –An account number that you have assigned to the customer.
-
additional_information(Optional[sensitiveString1To1000], default:None) –Any additional information relevant to the customer’s profile.
-
party_type(Optional[PartyType], default:None) –The type of profile used to describe the customer.
-
business_name(Optional[sensitiveString1To255], default:None) –The name of the customer’s business.
-
first_name(Optional[sensitiveString1To255], default:None) –The customer’s first name.
-
middle_name(Optional[sensitiveString1To255], default:None) –The customer’s middle name.
-
last_name(Optional[sensitiveString1To255], default:None) –The customer’s last name.
-
birth_date(Optional[sensitiveString1To255], default:None) –The customer’s birth date.
-
gender(Optional[Gender], default:None) –The gender with which the customer identifies.
-
phone_number(Optional[sensitiveString1To255], default:None) –The customer’s phone number, which has not been specified as a mobile, home, or business number.
-
mobile_phone_number(Optional[sensitiveString1To255], default:None) –The customer’s mobile phone number.
-
home_phone_number(Optional[sensitiveString1To255], default:None) –The customer’s home phone number.
-
business_phone_number(Optional[sensitiveString1To255], default:None) –The customer’s business phone number.
-
email_address(Optional[sensitiveString1To255], default:None) –The customer’s email address, which has not been specified as a personal or business address.
-
personal_email_address(Optional[sensitiveString1To255], default:None) –The customer’s personal email address.
-
business_email_address(Optional[sensitiveString1To255], default:None) –The customer’s business email address.
-
address(Optional[Address], default:None) –A generic address associated with the customer that is not mailing, shipping, or billing.
-
shipping_address(Optional[Address], default:None) –The customer’s shipping address.
-
mailing_address(Optional[Address], default:None) –The customer’s mailing address.
-
billing_address(Optional[Address], default:None) –The customer’s billing address.
-
attributes(Optional[Attributes], default:None) –A key value pair of attributes of a customer profile.
-
party_type_string(Optional[sensitiveString1To255], default:None) –An alternative to
PartyTypewhich accepts any string as input. -
gender_string(Optional[sensitiveString1To255], default:None) –An alternative to
Genderwhich accepts any string as input. -
profile_type(Optional[ProfileType], default:None) –The type of the profile.
-
engagement_preferences(Optional[EngagementPreferences], default:None) –Object that defines the preferred methods of engagement, per channel.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
BadRequestException–The input you provided is invalid.
-
InternalServerException–An internal service error occurred.
-
ResourceNotFoundException–The requested resource does not exist, or access was denied.
-
ThrottlingException–You exceeded the maximum number of requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_customer_profiles/_services/customer_profiles.py
1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 | |