# Create Job For A Payload PDF Workflow

Create a Job for a workflow based on a PDF payload. It stores the provided payload and returns the url where to upload the PDF file to be processed. Note that the Job will be in AWAITING_FOR_FILE status for maximum 2 hours and will be deleted if no file is provided.

Endpoint: POST /jobs/payload-pdf
Version: 1.0.0
Security: api_key

## Header parameters:

  - `x-managed-company-id` (string)
    Optional: the ID of the managed company on behalf of which the request is made

## Request fields (application/json):

  - `workflowId` (string, required)
    Unique identifier of the Workflow to which the Job will be associated

  - `jobName` (string, required)
    Name of the Job to be created

  - `filename` (string, required)
    Name of the the file that will be used for the Job

  - `sendingEventExecutionDateUtc` (string)
    Datetime of the scheduled SendingEvents execution in UTC

  - `payload` (object, required)
    Payload content used to build the sending event

  - `payload.channelIdentifiers` (array, required)

  - `payload.channelIdentifiers.kind` (string, required)
    Channel identifier kind
    Enum: "ADDRESS", "ADDRESS_FIRST_NAME", "ADDRESS_LAST_NAME", "ADDRESS_COMPANY_NAME", "ADDRESS_STREET", "ADDRESS_STREET_NUMBER", "ADDRESS_BOX", "ADDRESS_PO_BOX", "ADDRESS_POSTAL_CODE", "ADDRESS_CITY", "ADDRESS_COUNTRY_CODE", "EMAIL_ADDRESS", "PHONE_NUMBER", "LAST_NAME", "FIRST_NAME", "BIRTH_DATE", "INVOICE_AMOUNT", "INVOICE_DESCRIPTION", "INVOICE_DUE_DATE", "INVOICE_PAY_LINK", "INVOICE_PAY_LINK_SHORT", "INVOICE_COMMUNICATION", "INVOICE_PAYMENT_DATE", "POM_OPT_IN_EMAIL", "COMPANY_IDENTIFICATION_NUMBER", "NATIONAL_REGISTER_NUMBER", "EBOX_RECIPIENT_PARTITION", "INVOICE_REFERENCE", "DOCCLE_TOKEN_SET_VALUE1", "DOCCLE_TOKEN_SET_VALUE2", "DOCCLE_RECEIVER_ID", "DOCCLE_TOKEN_SET_START_DATE", "DOCCLE_TOKEN_SET_END_DATE", "PEPPOL_SENDER_PARTICIPANT_ID", "PEPPOL_RECEIVER_PARTICIPANT_ID", "PEPPOL_DOCUMENT_ID", "PEPPOL_ISSUE_DATE", "PEPPOL_DOCUMENT_TYPE"

  - `payload.channelIdentifiers.value` (string, required)
    Channel identifier value

  - `payload.channelIdentifiers.isEncrypted` (boolean)
    Whether the value should be encrypted

  - `payload.extraInfoIdentifiers` (array, required)

  - `payload.extraInfoIdentifiers.name` (string, required)
    Extra info identifier name

  - `payload.extraInfoIdentifiers.value` (string, required)
    Extra info identifier value

  - `payload.extraInfoIdentifiers.isEncrypted` (boolean)
    Whether the value should be encrypted

## Response 201 fields (application/json):

  - `id` (string, required)
    Unique identifier of the created Job

  - `fileUploadUrl` (string, required)
    Presigned URL to be used to upload the file of the Job and start effectively its processing. The upload is made via an HTTP PUT request with the file attached as binary to the request.


