Upload a manually generated agency pay invoice.

POST /api/v1/files/agency_pay_invoices/upload

This endpoint allows internal team members to upload agency pay invoices that were generated manually outside the system.

multipart/form-data

Body

  • generation_reason string

    Reason for manual upload

  • invoice_content string

    JSON string containing invoice metadata (optional - will be stubbed if not provided)

  • invoice_file string(binary) Required

    The agency pay invoice PDF file

  • invoice_number string Required

    The invoice number

  • job_ids string Required

    JSON array of job IDs this invoice covers

  • purchase_order_id string Required

    The purchase order ID

Responses

  • 201 application/json

    Invoice uploaded successfully

    Hide response attributes Show response attributes object
    • agency_pay_invoice_id string

      The ID of the created agency pay invoice

    • invoice_pdf_url string

      The signed URL for the uploaded PDF

    • message string

      Success message

POST /api/v1/files/agency_pay_invoices/upload
curl \
 --request POST 'https://api.1099policy.com/api/v1/files/agency_pay_invoices/upload' \
 --header "Content-Type: multipart/form-data" \
 --form "generation_reason=string" \
 --form "invoice_content=string" \
 --form "invoice_file=@file" \
 --form "invoice_number=string" \
 --form "job_ids=string" \
 --form "purchase_order_id=string"
Response examples (201)
{
  "agency_pay_invoice_id": "string",
  "invoice_pdf_url": "string",
  "message": "string"
}