# createBusinessUserAccount

Creates a new Amazon Business user account with a name and email you specified, and an autogenerated password. Adds the account holder to the specified group with an specified role. The account holder will receive an email message to update the account password.

**Usage Plan:**

| Rate (requests per second) | Burst |
| ---- | ---- |
| 1 | 5 |

The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation. The preceding table indicates the default rate and burst values for this operation. For questions about your usage plan, reach out to your Amazon Business technical contact.

> 📘
>
> To test this API, use any of the following sample request bodies. You can either populate the input fields below with values from these samples, or select the **Edit JSON body** field (`{ }`) in the request code box on the right and provide any of the following sample request payloads.
>
> <details>
>   <summary>Example #1 - Click to expand</summary>
>
> ```json
>   {
>       "accountHolder": {
>           "email": "testuser1@dummy.com",
>           "givenName": "Test",
>           "familyName": "User"
>       },
>       "groupId": {
>           "idType": "GroupId",
>           "id": "AYPNISUBADXXX"
>       },
>       "role": "PunchoutUser",
>       "region": "DE",
>       "notificationTypesToSuppress": [
>           "EMAIL"
>       ]
>   }
> ```
>
> </details>
>
> <details>
>   <summary>Example #2 - Click to expand</summary>
>
> ```json
> {
>   "accountHolder": {
>       "email": "testuser2@dummy.com",
>       "givenName": "Test",
>       "familyName": "User 2"
>   },
>   "groupId": {
>       "idType": "GroupTag",
>       "id": "111"
>   },
>   "role": "Administrator",
>   "region": "US",
>   "notificationTypesToSuppress": [
>       "EMAIL"
>   ]
> }
> ```
>
> </details>
>
> <details>
>   <summary>Example #3 - Click to expand</summary>
>
> ```json
> {
>   "accountHolder": {
>       "email": "testuser3@dummy.com",
>       "givenName": "Test",
>       "familyName": "User 3"
>   },
>   "groupId": {
>       "idType": "GroupId",
>       "id": "AGXNISUBVHXXX"
>   },
>   "role": "Requisitioner",
>   "region": "US",
>   "notificationTypesToSuppress": [
>       "EMAIL"
>   ]
> }
> ```
>
> </details>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Amazon Business API for Managing Accounts.",
    "description": "An API for managing Amazon Business accounts.",
    "version": "2021-08-30",
    "license": {
      "name": "Amazon Software License",
      "url": "https://aws.amazon.com/asl/"
    }
  },
  "externalDocs": {
    "description": "Learn more about Amazon Business.",
    "url": "https://business.amazon.com"
  },
  "paths": {
    "/businessAccounts/2021-08-30/businessUserAccount": {
      "post": {
        "description": "Creates a new Amazon Business user account with a name and email you specified, and an autogenerated password. Adds the account holder to the specified group with an specified role. The account holder will receive an email message to update the account password.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 1 | 5 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation. The preceding table indicates the default rate and burst values for this operation. For questions about your usage plan, reach out to your Amazon Business technical contact.",
        "operationId": "createBusinessUserAccount",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBusinessUserAccountRequest"
              }
            }
          },
          "description": "A request for creating a business user account.",
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created an Amazon Business user account with the specified email, group, and role. Sent an email to the account holder for password reset.",
            "headers": {
              "x-amzn-RateLimit-Limit": {
                "description": "The rate limit (requests per second) for this operation.",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "x-amzn-api-sandbox": {
              "static": [
                {
                  "request": {
                    "parameters": {
                      "body": {
                        "value": {
                          "accountHolder": {
                            "email": "[Email]",
                            "givenName": "[Given_name]",
                            "familyName": "[Family_name]"
                          },
                          "groupId": {
                            "idType": "GroupId",
                            "id": "[Id]"
                          },
                          "role": "Requisitioner",
                          "region": "US",
                          "notificationTypesToSuppress": [
                            "EMAIL"
                          ]
                        }
                      }
                    }
                  },
                  "response": {}
                }
              ]
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateBusinessUserAccountResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request has missing or invalid parameters and can't be parsed.",
            "headers": {
              "x-amzn-RateLimit-Limit": {
                "description": "The rate limit (requests per second) for this operation.",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "x-amzn-api-sandbox": {
              "static": [
                {
                  "request": {
                    "parameters": {
                      "body": {
                        "value": {
                          "role": "PunchoutUser",
                          "region": "US"
                        }
                      }
                    }
                  },
                  "response": {
                    "errors": [
                      {
                        "code": "INVALID_REQUEST_PARAMETER",
                        "message": "The required request parameter is missing: accountHolder.",
                        "details": ""
                      }
                    ]
                  }
                }
              ]
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          },
          "403": {
            "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.",
            "headers": {
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          },
          "404": {
            "description": "The resource specified doesn't exist.",
            "headers": {
              "x-amzn-RateLimit-Limit": {
                "description": "The rate limit (requests per second) for this operation.",
                "schema": {
                  "type": "string"
                }
              },
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          },
          "413": {
            "description": "The request size exceeded the maximum accepted size.",
            "headers": {
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          },
          "415": {
            "description": "The request payload is in an unsupported format.",
            "headers": {
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          },
          "429": {
            "description": "The frequency of requests was greater than allowed.",
            "headers": {
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          },
          "500": {
            "description": "An unexpected condition occurred that prevented the server from fulfilling the request.",
            "headers": {
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          },
          "503": {
            "description": "Temporary overloading or maintenance of the server.",
            "headers": {
              "x-amzn-RequestId": {
                "description": "A unique request reference identifier.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorList"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://na.business-api.amazon.com"
    }
  ],
  "components": {
    "schemas": {
      "CreateBusinessUserAccountRequest": {
        "description": "A request to create a business user account.",
        "type": "object",
        "required": [
          "accountHolder",
          "groupId",
          "role",
          "region"
        ],
        "properties": {
          "accountHolder": {
            "$ref": "#/components/schemas/AccountHolder"
          },
          "groupId": {
            "$ref": "#/components/schemas/BusinessGroupIdentifier"
          },
          "role": {
            "$ref": "#/components/schemas/BusinessRole"
          },
          "region": {
            "$ref": "#/components/schemas/Region"
          },
          "notificationTypesToSuppress": {
            "description": "A list of enums that specifies the types of notification to suppress.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NotificationType"
            }
          }
        }
      },
      "CreateBusinessUserAccountResponse": {
        "description": "A response indicating that a business user account was created.",
        "type": "object"
      },
      "AccountHolder": {
        "description": "An Amazon Business user account holder.",
        "type": "object",
        "required": [
          "email",
          "givenName",
          "familyName"
        ],
        "properties": {
          "email": {
            "description": "The email address of the account holder.",
            "type": "string"
          },
          "givenName": {
            "description": "The given name of the account holder.",
            "type": "string"
          },
          "familyName": {
            "description": "The family name of the account holder.",
            "type": "string"
          }
        }
      },
      "BusinessGroupIdentifier": {
        "description": "An Amazon Business group identifier",
        "type": "object",
        "properties": {
          "idType": {
            "type": "string",
            "description": "The type of group identifier.",
            "enum": [
              "GroupId",
              "GroupTag"
            ],
            "x-docgen-enum-table-extension": [
              {
                "value": "GroupId",
                "description": "An Amazon Business auto-generated unique identifier for a group."
              },
              {
                "value": "GroupTag",
                "description": "A value that identifies which group, within the Amazon Business account, a customer belongs to. Customer sets this in Amazon Business account information. GroupTag is necessary only if the customer account belongs to more than one group."
              }
            ]
          },
          "id": {
            "type": "string",
            "description": "The value of the identifier."
          }
        },
        "required": [
          "idType",
          "id"
        ]
      },
      "BusinessRole": {
        "description": "An Amazon Business user role.",
        "type": "string",
        "enum": [
          "Requisitioner",
          "PunchoutUser",
          "Administrator",
          "Finance",
          "Tech"
        ],
        "x-docgen-enum-table-extension": [
          {
            "value": "Requisitioner",
            "description": "Buyer role."
          },
          {
            "value": "PunchoutUser",
            "description": "Punchout catalog user buying role."
          },
          {
            "value": "Administrator",
            "description": "Administrator role."
          },
          {
            "value": "Finance",
            "description": "Finance role."
          },
          {
            "value": "Tech",
            "description": "Tech role."
          }
        ]
      },
      "Region": {
        "description": "A country or region where an Amazon Business user account will be created.",
        "type": "string",
        "enum": [
          "DE",
          "FR",
          "UK",
          "IT",
          "ES",
          "US",
          "CA",
          "JP"
        ],
        "x-docgen-enum-table-extension": [
          {
            "value": "DE",
            "description": "amazon.de"
          },
          {
            "value": "FR",
            "description": "amazon.fr"
          },
          {
            "value": "UK",
            "description": "amazon.co.uk"
          },
          {
            "value": "IT",
            "description": "amazon.it"
          },
          {
            "value": "ES",
            "description": "amazon.es"
          },
          {
            "value": "US",
            "description": "amazon.com"
          },
          {
            "value": "CA",
            "description": "amazon.ca"
          },
          {
            "value": "JP",
            "description": "amazon.co.jp"
          }
        ]
      },
      "NotificationType": {
        "description": "The type of notification to suppress.",
        "type": "string",
        "enum": [
          "EMAIL"
        ],
        "x-docgen-enum-table-extension": [
          {
            "value": "EMAIL",
            "description": "Email notifications."
          }
        ]
      },
      "ErrorList": {
        "type": "object",
        "description": "A list of error responses returned when a request is unsuccessful.",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "description": "The list of errors.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error": {
        "description": "An error response that's returned when the request is unsuccessful.",
        "properties": {
          "code": {
            "description": "An error code that identifies the type of error that occurred.",
            "type": "string"
          },
          "message": {
            "description": "A message that describes the error condition.",
            "type": "string"
          },
          "details": {
            "description": "Additional details to help the customer understand or fix the issue.",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 104,
      "1": 187,
      "2": 93,
      "3": 158,
      "4": 139,
      "5": 109,
      "6": 234,
      "7": 33,
      "8": 180,
      "9": 232,
      "10": 140,
      "11": 182
    }
  }
}
```