API - Email packing slip

Send out packing slips as PDF


Resource:
/acumulus/stable/delivery/packing_slip_mail_pdf.php
Since API:
Available for authenticated:
API invoerder
Available for authenticated:
API gebruiker
Available for authenticated:
API beheerder
Communication:
Basic submit, including below structure


Submit

<?xml version="1.0" encoding="UTF-8"?>
<myxml>
     ...
     <token>01234567890abcdef01234567890abcd</token>
     <deliverynotenotes></deliverynotenotes>
     <emailaspdf>
          <emailto></emailto>
          <emailbcc></emailbcc>
          <emailfrom></emailfrom>
          <subject></subject>
          <message></message>
     </emailaspdf>
</myxml>

token Mandatory
Unique 32-character identifier(hash) for the invoice.

deliverynotenotes non mandatory
Multiline field for additional remarks. Use \n for newlines and \t for tabs. Contents is placed in notes/comments section of the entry. Content will not appear on the actual document or associated emails.

emailaspdf mandatory
Use when sending invoice or reminder as pdf file using email.

emailto non mandatory
Mandatory when using emailaspdf. Use valid email addresses. Muliple addresses can be used when separated with a comma or semicolon. If emailto is not set, the email address from the contact of the invoice will be used. Addresses will be checked on format. Inconsistent or incorrect addresses will raise a warning and no mail will be sent.

emailbcc non mandatory
Use valid email addresses. Muliple addresses can be used when separated with a comma or semicolon. If emailto is not set, the emailbcc will be ignored and skipped. Addresses will be checked on format. Inconsistent or incorrect addresses will raise a warning and no mail will be sent. When emailto is set and emailbcc is not set the emailbcc settings from the invoice template will be used as a fall-back for emailbcc.

emailfrom non mandatory
Use a single valid emailaddress. If omitted, the email address of the invoice template, with fallback to the account owner will be used. Most pretty results are obtained when using fully configured invoice templates in Acumulus and leaving this option empty (recommended).

subject non mandatory
Currently ASCII-only allowed. If omitted or left empty a default subject suitable for an invoice or reminder will be used.

message non mandatory
Currently ASCII-only allowed. Mileage may vary when trying to submit multiple lines. Use \n when doing so. If omitted, the email text composed in the template will be used (recommended).


Alternatively you can add the gfx GET-parameter to prevent any embedded graphics from being applied to the document (gfx=0 or gfx=1)


Response

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <packingslip>
        <token>01234567890abcdef01234567890abcd</token>
    </packingslip>
    <errors>
        <count_errors>0</count_errors>
    </errors>
    <warnings>
        <count_warnings>0</count_warnings>
    </warnings>
    <status>0</status>
</response>

token Mandatory
Unique 32-character identifier(hash) for the invoice.