Get Certificate of Currency
This API is REST based that fetches certificate of the purchased product.
Business Use case
The Get Currency Certificate API provides a capability to obtain the certificate of purchased product in an encrypted form. It must be preceded by Quote and Bind. Policy ID and partner code combination is used to fetch the respective policy.
Technical Overview
GET v1/policy/document?doctype=coc&policyid={policynumber}&partnercode={intermediaryId}
Note: Refer to Environment URLs page under Overview/Guidelines/Documentation for complete URL for each environment.
Authentication
HTTP requests to the API are protected with HTTP Basic authentication. To learn more about how Allianz handles authentication, please refer to our Security Model page under Overview/Guidelines/Documentation.
FIELD REFERENCE - REquest
Request fields for this API are not present as it uses GET as HTTP method. policynumber and intermediaryId are mandatory URL params to find the appropriate policy.
Note: partnercode parameter is the same value as the intermediaryId field in the createPolicyEstimateAndEmailCustomer or createPolicyEstimate API requests.
FIELD REFERENCE - RESPONSE
Field Description | Example |
|
{ "fileName":"163S360675CMP_COC.pdf", "content": "JVBERi0xLjQKJeLjz9MKNSAwIG9iaiA8PC9MZW5ndG ggMjU5Ni9GaWx0ZXIvRmxhdGVEZWNvZGUvTiAzPj5zd HJlYW0KeJydlndUU9kWh8+9N71QkhCKlNBraFICSA29 SJEuKjEJEErAkAAiNkRUcERRkaYIMijggKNDkbEiioU BUbHrBBlE1HFwFBuWSWStGd+8ee/Nm98f935rn73P3W fvfda6AJD8gwXCTFgJgAyhWBTh58WIjYtnYAcBDPAAA 2wA4HCzs0IW+EYCmQJ82IxsmRP4F726DiD5+yrTP4zB AP+flLlZIjEAUJiM5/L42VwZF8k4PVecJbdPyZi2NE3 OMErOIlmCMlaTc/IsW3z2mWUPOfMyhDwZy3PO4mXw5N wn4405Er6MkWAZF+cI+LkyviZjg3RJhkDGb+SxGXxON gAoktwu5nNTZGwtY5IoMowzWagypb27afWyuqv8gnfz XhKvuQ31t90”, "contentType": "PDF", "message": "Success" } |
ERROR ReSPONSE CODES
Refer to Overview/Guidelines/Documentation section REST Based Error Codes for details.