Send sales invoice to its client by email as pdf

POST /api-v1/sales-invoice/{invoiceId}/send-by-email

Headers

  • TARGET-ORGANIZATION-ID integer(int32)

    ID of organization, for which the operation must be performed

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

Path parameters

  • invoiceId integer Required

    invoiceId

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • email string
    • id integer
    • status string

      Values are OPEN, UNPAID, PAID, PARTIALLY_PAID, OVERDUE, NOT_SENT, or PRO_FORMA.

    • workflowPermissions string
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/sales-invoice/{invoiceId}/send-by-email
curl \
 --request POST 'https://wyzio.app/api-v1/sales-invoice/{invoiceId}/send-by-email' \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --header "WEAL-TOKEN: string"
Response examples (200)
{
  "email": "string",
  "id": 42,
  "status": "OPEN",
  "workflowPermissions": "string"
}