Skip to main content
POST
/
account
/
create
Crear cuenta
curl --request POST \
  --url https://api.goil.com/api/v1/external/account/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountType": "<string>",
  "phone": "<string>",
  "attributesValue": [
    {
      "attributeId": "<string>",
      "value": {
        "text": "",
        "number": 0,
        "boolean": false,
        "date": "2023-11-07T05:31:56Z",
        "image": "<string>"
      },
      "tag": "<string>"
    }
  ],
  "sendSMS": true
}
'
{
  "data": {
    "account": {
      "id": "<string>",
      "accountType": "<string>",
      "username": "<string>",
      "phone": "<string>",
      "role": "<string>",
      "creationDate": "2023-11-07T05:31:56Z",
      "subscribed": true,
      "blocked": true,
      "blockedDate": "<string>",
      "validated": true,
      "expirationDate": "<string>",
      "attributesValue": [
        {
          "attributeId": "<string>",
          "value": {
            "text": "",
            "number": 0,
            "boolean": false,
            "date": "2023-11-07T05:31:56Z",
            "image": "<string>"
          },
          "tag": "<string>"
        }
      ],
      "businessId": "<string>",
      "fullname": "<string>",
      "birthday": "<string>",
      "metadata": {}
    }
  }
}

Body

application/json
accountType
string
required

ID del tipo de cuenta

phone
string
required

Teléfono en formato E.164

attributesValue
object[]
sendSMS
boolean
default:true

Si se envía SMS de bienvenida

Response

Cuenta creada

data
object