Digito

Destinatario

Contrato de respuesta: destinatario.

Este esquema conserva los nombres técnicos, tipos y restricciones de la API. Las propiedades incluidas en required son obligatorias; nullable admite null. oneOf requiere una variante, anyOf admite las variantes indicadas y allOf combina sus restricciones.

Propiedades principales

PropiedadTipoObligatoriaRestricciones
envelopeIdstringSíSin restricciones adicionales en este nivel.
rolestringSíValores: "CC", "SIGNER", "VIEWER", "APPROVER", "ASSISTANT"
readStatusstringSíValores: "NOT_OPENED", "OPENED"
signingStatusstringSíValores: "NOT_SIGNED", "SIGNED", "REJECTED"
sendStatusstringSíValores: "NOT_SENT", "SENT"
idnumberSíSin restricciones adicionales en este nivel.
emailstringSíSin restricciones adicionales en este nivel.
namestringSíSin restricciones adicionales en este nivel.
tokenstringSíSin restricciones adicionales en este nivel.
documentDeletedAtstring o nullSíSin restricciones adicionales en este nivel.
expiredstring o nullSíSin restricciones adicionales en este nivel.
expiresAtstring o nullSíSin restricciones adicionales en este nivel.
expirationNotifiedAtstring o nullSíSin restricciones adicionales en este nivel.
signedAtstring o nullSíSin restricciones adicionales en este nivel.
authOptionsobject o nullSíSin restricciones adicionales en este nivel.
signingOrdernumber o nullSíSin restricciones adicionales en este nivel.
signerCedulastring o nullSíSin restricciones adicionales en este nivel.
rejectionReasonstring o nullSíSin restricciones adicionales en este nivel.
fieldsarray de objectSíSin restricciones adicionales en este nivel.

En esta respuesta, el contrato deja positionX, positionY, width y height sin un tipo explícito. Los números del ejemplo son valores sintéticos; conserva la representación que devuelve la API y no deduzcas un tipo de respuesta a partir del ejemplo.

Ejemplo de la estructura

Este objeto es una muestra sintética de la estructura. Los identificadores, fechas, estados y tokens sirven como ejemplos de formato; no describen una operación real ni valores predeterminados.

{
  "envelopeId": "sobre_de_ejemplo",
  "role": "SIGNER",
  "readStatus": "NOT_OPENED",
  "signingStatus": "NOT_SIGNED",
  "sendStatus": "NOT_SENT",
  "id": 501,
  "email": "ana@example.com",
  "name": "Ana Ejemplo",
  "token": "token_de_destinatario_ejemplo",
  "documentDeletedAt": null,
  "expired": null,
  "expiresAt": null,
  "expirationNotifiedAt": null,
  "signedAt": null,
  "authOptions": null,
  "signingOrder": null,
  "signerCedula": null,
  "rejectionReason": null,
  "fields": [
    {
      "envelopeId": "sobre_de_ejemplo",
      "envelopeItemId": "archivo_de_ejemplo",
      "type": "SIGNATURE",
      "id": 701,
      "secondaryId": "field_secundario_de_ejemplo",
      "recipientId": 501,
      "page": 1,
      "positionX": 60,
      "positionY": 75,
      "width": 25,
      "height": 8,
      "customText": "valor_de_ejemplo",
      "inserted": false,
      "fieldMeta": null
    }
  ]
}
Ver el esquema JSON completo
{
  "type": "object",
  "properties": {
    "envelopeId": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "CC",
        "SIGNER",
        "VIEWER",
        "APPROVER",
        "ASSISTANT"
      ]
    },
    "readStatus": {
      "type": "string",
      "enum": [
        "NOT_OPENED",
        "OPENED"
      ]
    },
    "signingStatus": {
      "type": "string",
      "enum": [
        "NOT_SIGNED",
        "SIGNED",
        "REJECTED"
      ]
    },
    "sendStatus": {
      "type": "string",
      "enum": [
        "NOT_SENT",
        "SENT"
      ]
    },
    "id": {
      "type": "number"
    },
    "email": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "token": {
      "type": "string"
    },
    "documentDeletedAt": {
      "type": "string",
      "nullable": true
    },
    "expired": {
      "type": "string",
      "nullable": true
    },
    "expiresAt": {
      "type": "string",
      "nullable": true
    },
    "expirationNotifiedAt": {
      "type": "string",
      "nullable": true
    },
    "signedAt": {
      "type": "string",
      "nullable": true
    },
    "authOptions": {
      "type": "object",
      "nullable": true,
      "properties": {
        "accessAuth": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ACCOUNT",
              "TWO_FACTOR_AUTH"
            ]
          }
        },
        "actionAuth": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ACCOUNT",
              "PASSKEY",
              "TWO_FACTOR_AUTH",
              "PASSWORD",
              "EXPLICIT_NONE"
            ]
          }
        }
      },
      "required": [
        "accessAuth",
        "actionAuth"
      ]
    },
    "signingOrder": {
      "type": "number",
      "nullable": true
    },
    "signerCedula": {
      "type": "string",
      "nullable": true
    },
    "rejectionReason": {
      "type": "string",
      "nullable": true
    },
    "fields": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "envelopeId": {
            "type": "string"
          },
          "envelopeItemId": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "SIGNATURE",
              "FREE_SIGNATURE",
              "INITIALS",
              "NAME",
              "EMAIL",
              "DATE",
              "TEXT",
              "NUMBER",
              "RADIO",
              "CHECKBOX",
              "DROPDOWN"
            ]
          },
          "id": {
            "type": "number"
          },
          "secondaryId": {
            "type": "string"
          },
          "recipientId": {
            "type": "number"
          },
          "page": {
            "type": "number"
          },
          "positionX": {},
          "positionY": {},
          "width": {},
          "height": {},
          "customText": {
            "type": "string"
          },
          "inserted": {
            "type": "boolean"
          },
          "fieldMeta": {
            "nullable": true,
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ],
                    "default": "auto"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "signature"
                    ]
                  }
                },
                "required": [
                  "overflow",
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "initials"
                    ]
                  },
                  "textAlign": {
                    "type": "string",
                    "enum": [
                      "left",
                      "center",
                      "right"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "name"
                    ]
                  },
                  "textAlign": {
                    "type": "string",
                    "enum": [
                      "left",
                      "center",
                      "right"
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ],
                    "default": "auto"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "email"
                    ]
                  },
                  "textAlign": {
                    "type": "string",
                    "enum": [
                      "left",
                      "center",
                      "right"
                    ]
                  }
                },
                "required": [
                  "overflow",
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ],
                    "default": "auto"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "date"
                    ]
                  },
                  "textAlign": {
                    "type": "string",
                    "enum": [
                      "left",
                      "center",
                      "right"
                    ]
                  }
                },
                "required": [
                  "overflow",
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "text"
                    ]
                  },
                  "text": {
                    "type": "string"
                  },
                  "characterLimit": {
                    "type": "number",
                    "minimum": 0
                  },
                  "textAlign": {
                    "type": "string",
                    "enum": [
                      "left",
                      "center",
                      "right"
                    ]
                  },
                  "lineHeight": {
                    "type": "number",
                    "nullable": true,
                    "minimum": 1,
                    "maximum": 10
                  },
                  "letterSpacing": {
                    "type": "number",
                    "nullable": true,
                    "minimum": 0,
                    "maximum": 100
                  },
                  "verticalAlign": {
                    "type": "string",
                    "nullable": true,
                    "enum": [
                      "top",
                      "middle",
                      "bottom",
                      null
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "number"
                    ]
                  },
                  "numberFormat": {
                    "type": "string",
                    "nullable": true
                  },
                  "value": {
                    "type": "string"
                  },
                  "minValue": {
                    "type": "number",
                    "nullable": true
                  },
                  "maxValue": {
                    "type": "number",
                    "nullable": true
                  },
                  "textAlign": {
                    "type": "string",
                    "enum": [
                      "left",
                      "center",
                      "right"
                    ]
                  },
                  "lineHeight": {
                    "type": "number",
                    "nullable": true,
                    "minimum": 1,
                    "maximum": 10
                  },
                  "letterSpacing": {
                    "type": "number",
                    "nullable": true,
                    "minimum": 0,
                    "maximum": 100
                  },
                  "verticalAlign": {
                    "type": "string",
                    "nullable": true,
                    "enum": [
                      "top",
                      "middle",
                      "bottom",
                      null
                    ]
                  }
                },
                "required": [
                  "type"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "radio"
                    ]
                  },
                  "values": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "checked": {
                          "type": "boolean"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "checked",
                        "value"
                      ]
                    }
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "vertical",
                      "horizontal"
                    ],
                    "default": "vertical"
                  }
                },
                "required": [
                  "type",
                  "direction"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "checkbox"
                    ]
                  },
                  "values": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "checked": {
                          "type": "boolean"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "checked",
                        "value"
                      ]
                    }
                  },
                  "validationRule": {
                    "type": "string"
                  },
                  "validationLength": {
                    "type": "number"
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "vertical",
                      "horizontal"
                    ],
                    "default": "vertical"
                  }
                },
                "required": [
                  "type",
                  "direction"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "placeholder": {
                    "type": "string"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "readOnly": {
                    "type": "boolean"
                  },
                  "fontSize": {
                    "type": "number",
                    "minimum": 8,
                    "maximum": 96,
                    "default": 12
                  },
                  "overflow": {
                    "type": "string",
                    "enum": [
                      "auto",
                      "horizontal",
                      "vertical",
                      "crop"
                    ]
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "dropdown"
                    ]
                  },
                  "values": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "value"
                      ]
                    }
                  },
                  "defaultValue": {
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ]
              }
            ]
          },
          "documentId": {
            "type": "number",
            "nullable": true
          },
          "templateId": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "envelopeId",
          "envelopeItemId",
          "type",
          "id",
          "secondaryId",
          "recipientId",
          "page",
          "positionX",
          "positionY",
          "width",
          "height",
          "customText",
          "inserted",
          "fieldMeta"
        ]
      }
    }
  },
  "required": [
    "envelopeId",
    "role",
    "readStatus",
    "signingStatus",
    "sendStatus",
    "id",
    "email",
    "name",
    "token",
    "documentDeletedAt",
    "expired",
    "expiresAt",
    "expirationNotifiedAt",
    "signedAt",
    "authOptions",
    "signingOrder",
    "signerCedula",
    "rejectionReason",
    "fields"
  ]
}

Operaciones que utilizan este esquema