API Description
The Synastry Report API generates PDF horoscope based on the birth details provided in the request data.
The request data also has number of other options such as footer links, your brand logo and other last page details. These options can be used to customise the PDF as per your company and brand requirement.
The PDF API in response provides you with a PDF URL from where either your user can download the PDF or you can directly send the PDF horoscope on your user’s email address. The usage of PDF horoscope can be completely customised as per your requirements.
PDF API Url
Following is the complete PDF API url -
https://pdf.astrologyapi.com/v1/synastry_couple_report/tropical
Please note that all Vedic Rishi APIs use POST method for API call and so does PDF APIs.
PDF API Request Method
POST
The Synastry Report PDF Samples
Following are the The Synastry Report PDF API samples you can download. These generated PDFs are using AstrologyAPI branding and everything can be customised to suit your company branding and style.
Request Data
Following are the options you will need to pass in PDF API -
{
"p_first_name" : "Sanjay", -- Your first name
"p_last_name" : "Sharma", -- Your last name
"p_day" : 11, -- Birth date of your's
"p_month" : 5, -- Birth month of your's
"p_year" :1992, -- Birth year of your's
"p_hour" : 12, -- Birth hour of your's
"p_minute" : 30, -- Birth minute of your's
"p_latitude" : 19.231, -- Latitude of your's birth place
"p_longitude" : 72.4242, -- Longitude of your's birth place
"p_timezone" : 5.5, -- Timezone of your's birth place
"p_place" : "Mumbai,Maharashtra India", -- your's birth place
"s_first_name" : "Ajeet", -- Partner's first name
"s_last_name" : "Kanojia", -- Partner's last name
"s_day" : 13, -- Birth date of your's partner
"s_month" : 5, -- Birth month of your's partner
"s_year" :1990, -- Birth year of your's partner
"s_hour" : 12, -- Birth hour of your's partner
"s_minute" : 40, -- Birth minute of your's partner
"s_latitude" : 19.231, -- Latitude of your's partner birth place
"s_longitude" : 72.4242, -- Longitude of your's partner birth place
"s_timezone" : 5.5, -- Timezone of your's partner birth place
"s_place" : "Mumbai,Maharashtra India", -- Partner's birth place
"language" : "en", -- Pdf Language eg: en
"footer_link" : "astrologyapi.com", -- Your domain link
"logo_url" : "logo_url", -- Your company logo url
"company_name" :"Vedic Rishi Astro Solutions Pvt. Ltd.", -- Your company name
"company_info" : "Your Company Info", -- NOTE- SHOULD BE LESS THAN 500 CHARACTER
"domain_url" : "https://www.astrologyapi.com", -- Your domain full url
"company_email" : "mail@astrologyapi.com", -- Your company email
"company_landline" : "+91- 221232 22", -- Your company Landline number
"company_mobile" : "+91 1212 1212 12", -- Your company mobile number
}
Response Data
Following is the response you will get in PDF API -
{
"status" : true,
"pdf_url" : "https://s3.ap-south-1.amazonaws.com/pdfapilambda/4ec94020-d0ed-11ea-82a3-4537c4b389ce.pdf"
}