partner.getProof
POST/processing
This method enables clients to get a Proof of Account Letter in PDF format for one of their own API accounts. The letter is returned in the response as hex-encoded PDF content.
Request
accountReference is mandatory: the reference of your own API account the letter is generated for. currency is optional: the currency of the account. If you provide currency, it must be the currency of the account referenced by accountReference; a different value is treated as an unknown account and the request fails. You do not need to provide a profile identifier.
Response
On success, tasks[].result.data contains fileName (the name of the generated file, for example proof-of-account.pdf) and data (the content of the PDF file). data is not Base64: it is the PDF bytes as hexadecimal text - the prefix \x followed by lowercase hexadecimal digits, two digits per byte (for example \x25504446... - 25 50 44 46 is %PDF). To get the PDF file, strip the \x prefix and hex-decode the rest of the string into bytes. In the raw JSON text of the response the backslash is escaped, so the value appears as "\\x25504446...".
Errors
If the requested data cannot be found, the task result is returned with status Error and code 3006. Other processing errors are returned with status Error, code 1000 and the comment Processing error occurred..
Request
Responses
- 200
- 400
- 401
- 404
This code is returned if the response is successful (and a specific response is required). A Response object is returned in the response.
This code is returned if there is an issue in the request and an Error object is returned in the response.
That code is returned by system if the Signature or other partner information is incorrect.
This code is returned if the system cannot process the request now. If this code is received, a repeat request is submitted after a few seconds. If the code continues to be returned, this is escalated to the Support team. The system will return a response body with the text Sorry. Can't accept your request now..