{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"b7accec9-1c93-45d1-a4ca-88892c720762","name":"Apollo Finvest: Repayment Webhooks","description":"# Repayment Webhooks\n\nWebhooks are server callbacks to your server from Apollo's System. Webhooks are event-based and are sent when specific events related to the Repayments happen.\n\n##### The list below shows the Webhook events available for repayments.\n\n1. **`repayment_status : accepted`**\n    \n\nWhen a repayment status is accepted, this means all validations including Amount and Payment details are correct. The repayments provided will be then recorded into Apollo’s system.\n\n2\\. **`repayment_status : rejected`**\n\nIf repayment status is rejected through Webhook - This means Partner Requested payment id or amount doesn’t match with the Payment gateway data.  \nPartners have to retry with the correct payment id/amount.\n\n3\\. **`repayment_status : refunded`**\n\nWhen a repayment status is refunded, this means a particular payment either part or full has been refunded due to a certain issue.\n\n## **Overview**\n\n---\n\nThe Callback URLs will help Fintech to get to know the current status of the repayments that are created in Apollo's System. Once a repayment request is hit by partner it's important to communicate the status to function smoothly and be in sync with Apollo's servers. Fintechs have to integrate a **Callback URL or Webhook** to fetch the status to avoid hitting the APIs frequently.\n\n\\*Kindly Request Apollo over mail to add/update the repayment callback URL to get the repayment statuses.\n\n### **Sample Response when Repayment is Accepted**\n\n---\n\nIf a Repayment was successfully created in Apollo's system, the following response will be provided:\n\n``` json\n{\n    \"partner_tag\": \"test\",\n    \"loan_type\": \"PL\",\n    \"partner_loan_id\": \"test123\",\n    \"customer_payback_date\": \"01/06/2023\",\n    \"amount_received_exclusive_of_charges\": 500,\n    \"penal_interest\": 0,\n    \"other_charges\": 0,\n    \"gst_on_other_charges\": 0,\n    \"order_id\": \"184045\",\n    \"payment_id\": \"19744\",\n    \"created_at\": 1993848923,\n    \"is_prepayment\": true,\n    \"repayment_status\": \"accepted\",\n    \"error_message\": \"\",    \n    \"afil_repayment_id\": \"rpy_qwerty123\",\n    \"refund_amount\": 0,\n    \"refund_id\":null\n}\n\n```\n\n### **Sample Response when Repayment is Rejected**\n\n---\n\nIf a Repayment was rejected due to certain validation error, the following response will be provided:\n\n``` json\n{\n   \"partner_tag\": \"test\",\n    \"loan_type\": \"PL\",\n    \"partner_loan_id\": \"test123\",\n    \"customer_payback_date\": \"01/06/2023\",\n    \"amount_received_exclusive_of_charges\": 500,\n    \"penal_interest\": 0,\n    \"other_charges\": 0,\n    \"gst_on_other_charges\": 0,\n    \"order_id\": \"184045\",\n    \"payment_id\": \"19744\",\n    \"created_at\": 1993848923,\n    \"is_prepayment\": true,\n    \"repayment_status\": \"rejected\",\n    \"error_message\": \"unique identifier mismatch, please check order_id and payment_id again\", \n    \"afil_repayment_id\": \"rpy_jahjhahh\",\n    \"refund_amount\": 0,\n    \"refund_id\": null,\n}\n\n```\n\n### **Sample Response when Repayment is Refunded**\n\n---\n\nIf a Repayment was refunded due to certain issue and has been captured by Apollo, the following response will be provided:\n\n``` json\n{\n   \"partner_tag\": \"test\",\n    \"loan_type\": \"PL\",\n    \"partner_loan_id\": \"test123\",\n    \"customer_payback_date\": \"01/06/2023\",\n    \"amount_received_exclusive_of_charges\": 500,\n    \"penal_interest\": 0,\n    \"other_charges\": 0,\n    \"gst_on_other_charges\": 0,\n    \"order_id\": \"184045\",\n    \"payment_id\": \"19744\",\n    \"created_at\": 1993848923,\n    \"is_prepayment\": true,\n    \"repayment_status\": \"refunded\",\n    \"error_message\": \"\",  \n    \"afil_repayment_id\": \"rpy_jahjhahh\",\n    \"refund_amount\": 300,\n    \"refund_id\": \"jsdjsjdkwj\"\n}\n\n```\n\n---\n\n# **Delivery Attempts and Retries**\n\n---\n\n1. Every event that receives a non-200 response will be considered an event delivery failure by Apollo's servers. If there is a delivery failure, we retry the delivery in exponential backoff policy for the next 15 mins after the event creation timestamp.\n2. If the partner API responds with 200, we assume that the delivery is successful and stop the notification of that particular event.\n    \n\n# **Rate Limit**\n\n---\n\n### **Throttling**\n\n:10000 requests per second.\n\n### **Quota**\n\n:Unlimited total number of API calls\n\n# **SLA breakdown**\n\n---\n\n- ### **Standard Support**\n    \n\nApollo will provide standard technical support twenty-four (24) hours per day, five (5) days per week, excluding weekends and national Indian holidays. Standard Support will be offered via email.\n\n- ### **Uptime commitment**\n    \n\nUptime is the percentage of total possible minutes API was available during a fiscal year. Our commitment is to maintain at least 99.99% uptime\n\n- ### **Scheduled downtime**\n    \n\nSometimes we need to perform maintenance to keep API working smoothly. If scheduled downtime is necessary, we’ll give you at least 48 hours advance notice. In a year, scheduled downtime won’t exceed 12 hours.\n\n# **Updates**\n\nAs our business evolves, we may change our service level agreement. Customers can review the most current version of the service level agreement at any time by visiting this page.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"16291369","team":1156724,"collectionId":"b7accec9-1c93-45d1-a4ca-88892c720762","publishedId":"2s93zB5M9s","public":true,"publicUrl":"https://documenter-api.postman.tech/view/16291369/2s93zB5M9s","privateUrl":"https://go.postman.co/documentation/16291369-b7accec9-1c93-45d1-a4ca-88892c720762","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-single-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":""}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.11.6","publishDate":"2023-06-30T06:30:06.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/87e241c84e614759761cb3ee48d6e0fc0a0562472ca2ed15e13f486c3b809bf6","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2s93zB5M9s"}