InvoiceAttachments

Send Invoice (V2).

This endpoint allows you to send an invoice v2 (json or xml format based on the Content-Type header) to the KSeF.

SecurityBearer
Request
Request Body schema:
required

The new InvoiceAttachments resource

object (Faktura)
Array of objects (Zalacznik)
Responses
201

InvoiceAttachments resource created

400

Invalid input

422

Unprocessable entity

post/invoices/v2/attachments
Request samples
{
  • "faktura": {
    },
  • "zalacznik": [
    ]
}
Response samples
application/json
{
  • "uuid": "string",
  • "filename": "string",
  • "filesize": 0
}

Retrieve the collection of InvoiceAttachments resources.

Retrieve the collection of InvoiceAttachments resources.

SecurityBearer
Request
path Parameters
invoice
required
string

Invoice uuid

query Parameters
page
integer
Default: 1

The collection page number

Responses
200

InvoiceAttachments collection

400

Bad Request

401

Unauthorized

404

Resource not Found

get/invoices/{invoice}/attachments
Request samples
Response samples
[
  • {
    }
]

Retrieve a InvoiceAttachments resource by access code.

Retrieve a InvoiceAttachments resource by access code.

SecurityBearer
Request
path Parameters
invoice
required
string

Invoice uuid

uuid
required
string

Invoice attachment uuid

access_code
required
string

Access code

Responses
200

InvoiceAttachments resource

404

Resource not found

get/invoices/{invoice}/attachments/download/{uuid}/{access_code}
Request samples
Response samples
{
  • "uuid": "string",
  • "filename": "string",
  • "filesize": 0
}

Retrieve a InvoiceAttachments resource.

Retrieve a InvoiceAttachments resource.

SecurityBearer
Request
path Parameters
invoice
required
string

Invoice uuid

uuid
required
string

Invoice attachment uuid

Responses
200

InvoiceAttachments resource

404

Resource not found

get/invoices/{invoice}/attachments/{uuid}
Request samples
Response samples
{
  • "uuid": "string",
  • "filename": "string",
  • "filesize": 0
}