Affiliation
NAF affiliation

NAF affiliation

Registration of an affiliation number. This method is in beta.

Parameters

  • dni (string) : National identity document.
  • identificacion (integer) : Identification number. Possible values:
    • 1: DNI
    • 2: Passport
    • 6: NIE
  • name (string) : First name.
  • surname (string) : First surname.
  • lastSurname (string) : Second surname, if any.
  • country (integer) : Nationality. Possible values:
  • sexo (string) : Sex. Possible values:
    • M: Male
    • F: Female
  • fnacimiento (date) : Date of birth. Format YYYY-MM-DD.
  • fatherName (string) : Father's name.
  • motherName (string) : Mother's name.
  • phoneCode (integer) : Dialling code. Example: 34
  • phone (integer) : Phone number.
  • streetType (string) : Street type. Possible values:
    • CL: Street
  • streetName (string) : Street name.
  • streetNumber (string) : Street number.
  • bis (string) : Bis.
  • block (string) : Block.
  • stairs (string) : Stairway.
  • floor (string) : Floor.
  • door (string) : Door.
  • postalCode (string) : Postal code, maximum 5 digits.
  • city (integer) : City. Possible values:
POST /assignment-nss
{
  "dni": "12345678A",
  "identificacion": 1,
  "name": "Juan",
  "surname": "Perez",
  "lastSurname": "Garcia",
  "country": 724,
  "sexo": "M",
  "fnacimiento": "2023-01-01",
  "fatherName": "Juan",
  "motherName": "Perez",
  "phoneCode": 34,
  "phone": 123456789,
  "streetType": "CL",
  "streetName": "Calle 1",
  "streetNumber": "1",
  "bis": "",
  "block": "",
  "stairs": "",
  "floor": "4",
  "door": "A",
  "postalCode": "13044",
  "city": 13044
}

Response

Respuesta
{
  "success": true,
  "message": "OK",
  "data": {
    "nss": "123456789012",
    "identity": "1",
    "dni": "12345678A"
  }
}