pixelletter-mcp
v1.0.3Send physical letters and faxes through the PixelLetter interface, test mode included.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
send_letter Send letter
Sends a letter through PixelLetter, either as ready made documents (absolute file paths, PDF preferred) or as plain text plus a recipient address that PixelLetter typesets. Optionally faxes the same document as well. Returns the result code and the transaction id.
| Parameter | Type | Description |
|---|---|---|
testMode * | boolean | Test mode. true runs the order exactly like a real one but PixelLetter never prints, never sends and never charges. false really sends the letter. Always required, so nothing goes out by accident. |
additionalServiceCodes | array | Raw addoption codes for services PixelLetter documents elsewhere or agrees per account. Only use numbers PixelLetter gave you. |
address | array | Recipient address, one line per array entry, country included. PixelLetter typesets it. Required when no file is sent. |
alsoSendFax | boolean | Send the same document as a fax too. Needs faxNumber. Additional services stay letter only. |
cashOnDelivery | object | Bank details for cash on delivery. Setting this block adds additional service 31. |
colorPrint | boolean | Colour print instead of black and white (addoption 33). Letters only, and not available through every dispatch centre, see error 038. |
control | string | Raw value for the control field of the interface. The only value in public use is NODUPLEX, which the duplex parameter sets for you, so only reach for this when PixelLetter gave you another token. |
destination | string | Destination country as a two letter ISO code, for example DE, AT, CH. Mandatory for letters, a wrong code leads to wrong postage. |
duplex | boolean | Print on both sides (true, the default of PixelLetter) or on one side only (false, sent as control NODUPLEX). Letters only. |
faxNumber | string | Fax number in international format, for example "+49 89 72448483". Only needed with alsoSendFax. |
files | array | Absolute paths of the documents to send, for example the PDF written by pdf-letter-mcp. Several files are converted and merged into one letter, in this order. Allowed: .pdf, .doc, .xls, .ppt, .rtf, .w… |
goGreen | boolean | GoGreen, CO2 neutral postage (addoption 44). Letters only. |
inlineFiles | array | Documents passed as base64 instead of a path. |
location | string | Dispatch centre: 1 = Munich (DE), 2 = Hausleiten near Vienna (AT), 3 = Hamburg (DE). Default of the API is 1. |
personalDelivery | boolean | Eigenhändig, personal delivery (code 29). Only together with registered. |
registered | boolean | Einschreiben, registered mail (code 27). Germany only. |
registeredDropIn | boolean | Einschreiben Einwurf, drop-in registered mail (code 30). Cannot be combined with the other registered variants. |
returnAddress | string | Raw value for the returnaddress field of the interface. Undocumented in the public handbooks. |
returnReceipt | boolean | Rückschein, return receipt (code 28). Only together with registered. |
subject | string | Subject of the letter. |
text | string | Letter text as plain text, no HTML. Long texts run onto more pages automatically, your sender address is added by PixelLetter. "%Unterschrift%" on its own line inserts the signature stored in your Pix… |
transaction | string | Your own transaction id or short note. PixelLetter returns it with the response. |
send_fax Send fax
Sends documents or plain text as a fax through PixelLetter, without posting a letter. Additional services such as registered mail do not apply to faxes.
| Parameter | Type | Description |
|---|---|---|
faxNumber * | string | Fax number in international format, for example "+49 89 72448483". |
testMode * | boolean | Test mode. true runs the order exactly like a real one but PixelLetter never prints, never sends and never charges. false really sends the letter. Always required, so nothing goes out by accident. |
address | array | Recipient address, one line per array entry, country included. PixelLetter typesets it. Required when no file is sent. |
control | string | Raw value for the control field of the interface. The only value in public use is NODUPLEX, which the duplex parameter sets for you, so only reach for this when PixelLetter gave you another token. |
files | array | Absolute paths of the documents to send, for example the PDF written by pdf-letter-mcp. Several files are converted and merged into one letter, in this order. Allowed: .pdf, .doc, .xls, .ppt, .rtf, .w… |
inlineFiles | array | Documents passed as base64 instead of a path. |
location | string | Dispatch centre: 1 = Munich (DE), 2 = Hausleiten near Vienna (AT), 3 = Hamburg (DE). Default of the API is 1. |
subject | string | Subject of the letter. |
text | string | Letter text as plain text, no HTML. Long texts run onto more pages automatically, your sender address is added by PixelLetter. "%Unterschrift%" on its own line inserts the signature stored in your Pix… |
transaction | string | Your own transaction id or short note. PixelLetter returns it with the response. |
get_account_info Get account info and balance
Reads the stored customer data and the current credit of the PixelLetter account. Use it before sending to make sure the balance covers the order, error 021 means the credit is too low.
cancel_order Cancel order
Cancels a submitted order by its PixelLetter order id, which is on the order confirmation e-mail. Only works while the order has not been printed yet, otherwise PixelLetter answers with error 055.
| Parameter | Type | Description |
|---|---|---|
orderId * | string | PixelLetter order id from the confirmation e-mail or the customer area. |
sign_invoice Sign invoice electronically
Sends documents to the PixelLetter invoice signing service (action 4) and optionally mails the signed PDF to the invoice recipient. The account needs electronic signatures enabled once in the customer area, otherwise PixelLetter answers with error 046.
| Parameter | Type | Description |
|---|---|---|
testMode * | boolean | Test mode. true signs with an advanced signature only, which is not legally sufficient, and costs nothing. false creates the qualified signature. |
files | array | Absolute paths of the documents to send, for example the PDF written by pdf-letter-mcp. Several files are converted and merged into one letter, in this order. Allowed: .pdf, .doc, .xls, .ppt, .rtf, .w… |
inlineFiles | array | Documents passed as base64 instead of a path. |
notification | object | Leave this out and nothing is mailed to the invoice recipient, you only get the signed file yourself. |
transaction | string | Your own transaction id or short note. PixelLetter returns it with the response. |
get_interface_reference Get interface reference
Returns what the PixelLetter interface documents: action values, dispatch centres, additional service codes, allowed upload types, limits and the published error codes. Offline lookup, no API call.
| Parameter | Type | Description |
|---|---|---|
errorCode | string | Look up a single error code, for example "021". |