API v1 Reference

Retrieve Receipt

Retrieve a PDF receipt for a given order ID , the PDF file returns as a base64-encoded string.

REST

Request

https://api.neoncrm.com/neonws/services/api/store/retrieveReceipt?userSessionId=[session id]&orderId=55595

Response

{
    "retrieveReceiptResponse": {
        "operationResult": "SUCCESS",
        "responseDateTime": "2013-02-22T04:13:23.046-06:00",
        "receiptPDF":[base64 encrypted string]
   }
}

SOAP

Request

<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:neon="http://www.z2systems.com/schemas/neonws/">
   <soapenv:header>
       <soapenv:body>
          <neon:retrievereceiptrequest>
             <usersessionid>T1361857093088</usersessionid>
            <orderid>55460</orderid>
          </neon:retrievereceiptrequest>
       </soapenv:body>
    </soapenv:header>
</soapenv:envelope>

Response

<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:body>
      <ns2:retrievereceiptresponse xmlns:ns2="http://www.z2systems.com/schemas/neonws/">
         <operationresult>SUCCESS</operationresult>
         <responsedatetime>2013-02-26T00:05:40.546-06:00</responsedatetime>
         <receiptpdf>[Base64EncodedString]</receiptpdf>
     </ns2:retrievereceiptresponse>
   </soap:body>
</soap:envelope>

Request Parameters

Name Required Description
orderId Yes

Response Parameters

Name Required Description
receiptPDF Yes A base64-encoded binary string.

Error Codes

Code Text Description
12402 Order Id is required.
12403 Order Id is invalid.