Sends a copy of an invoice document.

Sends a copy of the printed invoice (PDF) to the specified email address.

PATH:

/v1/clients/{clientId}/invoices/{invoiceNumber}/copies

PATH PARAMETERS:

clientId
required

integer

Your assigned clientId.

invoiceNumber
required

string

The invoice number.

HYPERMEDIA CONTROL

AVAILABLE IN:

REQUEST BODY SCHEMA:

recipient

recipient object

no description in swagger file

email

string

Email of recipient of invoice.

RESPONSES:

202 Returned when the request has been acknowledged.
400 Returned when the request is malformed.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

401 Returned when the request has a missing or invalid "Authorization" header.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

403 Returned when the requester is lacking permissions.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

404 Returned when the invoice is not found.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

422 Returned when the request could not be processed.

RESPONSE SCHEMA:

type

string

no description in swagger file

title

string

no description in swagger file

status

integer int32

no description in swagger file

detail

string

no description in swagger file

instance

string

no description in swagger file

500 Returned when some internal error happens.

RESPONSE SCHEMA:

type

string

no description in swagger file

category

string

Enum: BusinessError TechnicalError

no description in swagger file

title

string

no description in swagger file

message

string

no description in swagger file

detail

string

There is an error message.

customerFacingMessage

string

no description in swagger file

Path

post

/v1/clients/{clientId}/invoices/{invoiceNumber}/copies

Request samples

  • {
    • "recipient": { ...
      • "email": "string"
      }
  • }

Response samples

400401403404422500
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }
  • {
    • "type": "string",
    • "title": "string",
    • "status": 1,
    • "detail": "string",
    • "instance": "string"
    }
  • {
    • "type": "string",
    • "category": "string",
    • "title": "string",
    • "message": "string",
    • "detail": "string",
    • "customerFacingMessage": "string"
    }