Get Payment Document (PDF)


Retrieves a specified document from the payment.

Input (Literal)

Name Type Occurs Nillable? Description
paymentId id 1..1 No The identity of the payment.
documentName nonEmptyString 1..1 No The name of the document.

Output (Literal)

Name Type Occurs Nillable? Description
return pdf 0..* No The document.


Name Content Description
ECommerceErrorException ECommerceError   Failed to retrieve the specified payment document. See error for details


Retrieves a specified document from the payment as a pdf, for example the invoice. You can get the available document names for a payment by calling the getPaymentDocumentNames method.
When trying to get the requested document, the invoice for example, you send in the paymentId and the documentName as parameters.


This example shows request/response from the exshop account.


<soapenv:Envelope xmlns:soapenv="" xmlns:aft="">
         <documentName>INVOICE_20130702-124247_1514</documentName> <!-- a documentname wich I got from getDocuumentNames in exshop with the paymentId -->


<soap:Envelope xmlns:soap="">
      <ns2:getPaymentDocumentResponse xmlns:ns3="" xmlns:ns2="">
            <pdfData>JVBERi0xLjQKJeLjz9MKNiAwIG9iago8PC9UeXBlL1hPYmplY3QvQ29sb3JTcGFjZS9....etc</pdfData> <!-- Have shortened the response because of to the length -->

Copyright © Resurs Bank AB 2024