curl --request POST \
--url https://api.bbrands.io/api/v3/maihue/onboarding/send-email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business_unit": "home",
"dni": "12345678-5",
"type": "person",
"type_dni": "CHL_RUT"
}
'{
"data": {
"onboarding": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "enqueued",
"notification": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "type-dni-not-supported"
},
"message": "<string>",
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"data": {
"onboarding": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "enqueued",
"notification": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "type-dni-not-supported"
},
"message": "<string>",
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}Onboarding
Invite by Document
Finds the account by dni, type_dni and type, then invites its
open onboarding: the one of business_unit when given, else the
oldest open one of the recipient; one is opened when none exists.
The recipient is email when given (it must be the primary user or
legal representative), otherwise that member. force resends at
most once per minute. A document other than CHL_RUT answers
skipped with type-dni-not-supported. Requires
maihue-onboarding:invite and the portal-customer-onboarding flag
(403 when it is off).
type here is the account type (person, company), not the
business unit of the create body: home → person, horeca and
business → company; send the business unit in business_unit.
POST
/
maihue
/
onboarding
/
send-email
curl --request POST \
--url https://api.bbrands.io/api/v3/maihue/onboarding/send-email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"business_unit": "home",
"dni": "12345678-5",
"type": "person",
"type_dni": "CHL_RUT"
}
'{
"data": {
"onboarding": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "enqueued",
"notification": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "type-dni-not-supported"
},
"message": "<string>",
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"data": {
"onboarding": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "enqueued",
"notification": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "type-dni-not-supported"
},
"message": "<string>",
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}{
"error": {
"code": "<string>",
"errors": [
"<unknown>"
],
"message": "<string>",
"metadata": {}
},
"meta": {
"correlation": "<string>",
"status": 123,
"timestamp": "2023-11-07T05:31:56Z",
"version": "<string>"
}
}Authorizations
bearerAuthapiKeyAuth
Body
application/json
Was this page helpful?