Downloading a mandate in PDF format

In order to download a mandate in PDF format:

  1. Specify the desired action on the first line: https://secure.lyra.com/sdd/mandates/[id]'

    Note:

    [id] allows to identify the exact mandate that you want to download.

  2. Build your http header (see chapter Identifying yourself when exchanging with the payment gateway).

Example of a cURL request:

$ curl'https://.../mandates/12345678-DE98ZZZ09999999999-20140827onGTun' -H 
'Authorization:Basic MTIzNDU2Nzg6MTIzNDU2Nzg5MDEyMzQ1Ng==' -H'
Content-Type:application/json' -H 
'Accept: application/octet-stream' -i
Response:
HTTP/1.1 200 OK
Date: Wed, 27 Aug 2014 10:45:45 GMT
Content-Type:application/octet-stream
Content-Length:2109
Connection: close 

+ PDF contents...