Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 5

apt update && apt install -y curl

# Empty topic & channel


curl -X POST 'http://service-dp-nsq-server:4151/topic/empty?
topic=lendingapp_digisign_download_document'
curl -X POST 'http://service-dp-nsq-server:4151/channel/empty?
topic=lendingapp_digisign_download_document&channel=download'
curl -X POST 'http://service-dp-nsq-server:4151/topic/empty?
topic=lendingapp_digisign_send_notifier'
curl -X POST 'http://service-dp-nsq-server:4151/channel/empty?
topic=lendingapp_digisign_send_notifier&channel=1st_contract_signing'
curl -X POST 'http://service-dp-nsq-server:4151/topic/empty?
topic=lendingapp_process_va_callback'
curl -X POST 'http://service-dp-nsq-server:4151/channel/empty?
topic=lendingapp_process_va_callback&channel=process_va_callback'
curl -X POST 'http://service-dp-nsq-server:4151/topic/empty?
topic=lendingapp_tokopedia_mcl_transactions'
curl -X POST 'http://service-dp-nsq-server:4151/channel/empty?
topic=lendingapp_tokopedia_mcl_transactions&channel=update_loan'

# Create topic & channel


curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_disbursement_loan'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_disbursement_loan&channel=create_loan'

curl -X POST 'http://service-dp-nsq-server:4151/topic/create?topic=dol_strategy'


curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_external_partner_event'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_digisign_send_document'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_privy_upload_document'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_privy_download_document'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_tokopedia_mcl_transactions'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_tokopedia_mcl_notify'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_borrowing_partner_submit_application'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_pusdafil_report'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_tokopedia_mcl_repayment'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_partner_image_upload'
curl -X POST 'http://service-dp-nsq-server:4151/topic/create?
topic=lendingapp_send_notifier'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=dol_strategy&channel=prelim_1'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=dol_strategy&channel=prelim_2'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=dol_strategy&channel=main_1'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=dol_strategy&channel=main_2'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=dol_strategy&channel=post_1'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_external_partner_event&channel=log'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_external_partner_event&channel=summarize_daily'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_digisign_send_document&channel=lender_borrower'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_digisign_send_document&channel=lender_organizer'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_privy_upload_document&channel=lender_borrower'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_privy_upload_document&channel=lender_organizer'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_privy_download_document&channel=download'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_privy_download_document&channel=notify'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_transactions&channel=create_loan'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_transactions&channel=update_loan'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_transactions&channel=disbursement'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_transactions&channel=disbursement_new_flow'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_notify&channel=expired'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_notify&channel=disbursement_completed'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_borrowing_partner_submit_application&channel=create_borrower'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_borrowing_partner_submit_application&channel=create_cif'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_borrowing_partner_submit_application&channel=upload_document'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_borrowing_partner_submit_application&channel=create_application'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=disbursement'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=lender_registration'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=borrower_repayment'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=partner_repayment'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=late_repayment'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=all'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_repayment&channel=repayment_to_lender'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_repayment&channel=repayment_to_sgr'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_tokopedia_mcl_repayment&channel=repayment_to_borrower'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_partner_image_upload&channel=ktp'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_partner_image_upload&channel=selfie'
curl -X POST 'http://service-dp-nsq-server:4151/channel/create?
topic=lendingapp_send_notifier&channel=notifier'

# Publish disbursement rdl escrow


select payload from cron_queue where payload like '%4790%';
curl -d '{"reference_request_uuid":"d47145f0-ea01-448e-a621-
e4a63e49e668","application_id":6731,"application_lender_id":3457,"loan_id":4557}'
'http://147.139.182.206:4151/pub?topic=lendingapp_disbursement_rdl_escrow'

# Disbursement VA Callback
Latest_transaction_id is in table application_lenders
escrow_movement_id is in table escrow_movements
curl -d
'{"latest_transaction_id":"7803CF3FDD714A5F","escrow_movement_id":18634,"datetime_p
ayment":"2022-05-24 09:50:27"}' 'http://147.139.182.206:4151/pub?
topic=lendingapp_process_va_callback'
curl -d
'{"latest_transaction_id":"7A1A405E768D4632","escrow_movement_id":13377,"datetime_p
ayment":"2021-04-30 09:50:27"}' 'http://147.139.182.206:4151/pub?
topic=lendingapp_process_va_callback'

docToken ~ documents.vendor_document_id

curl -d '{"task":"notify_disbursement_completed","external_loan_id":1349}'
'http://nsqd.service.consul:4151/pub?topic=lendingapp_tokopedia_mcl_notify'
curl -d '{"task":"notify_disbursement_completed","external_loan_id":1349}'
'http://service-dp-nsq-server:4151/pub?topic=lendingapp_tokopedia_mcl_notify'
curl -d '{"task":"notify_disbursement_completed","external_loan_id":1349}'
'http://147.139.182.206:4151/pub?topic=lendingapp_tokopedia_mcl_notify'

curl -d
'{"latest_transaction_id":"BEFAAD150DE747E6","escrow_movement_id":18992,"datetime_p
ayment":"2022-06-07 09:50:27"}' 'http://147.139.182.206:4151/pub?
topic=lendingapp_process_va_callback'

https://api-staging.tokopedia.com/merchant-credit-line/api/partner/1004/
transaction/loan_details?loan_id=1349

Apps Script Quickstart:


https://developers.google.com/apps-script/quickstart/fundamentals-codelabs
Creating Slack Bot: https://api.slack.com/bot-users#creating-bot-user
Composing Slack Messages: https://api.slack.com/messaging/composing
In Tokopedia workspace, you need IT Support to grant the bot access
https://tokopedia.atlassian.net/servicedesk/customer/portal/2/group/64
Sample code: https://notepad.pw/share/59ir281g2

curl -d
'{"user_id":4355,"assigned_limit":1234567,"enrollment_status":"ACTIVE","interest_ra
te":0,"rejection_message":"","contract_url":""}'
'http://192.168.1.9:7777/POST/application-status'

curl -d '{"reference_request_uuid":"xxx","loan_id":2950}'
'http://192.168.1.8:4151/pub?topic=lendingapp_disbursement_installment'

Loan Matching
curl -d '{"application_id":6691}' 'http://147.139.182.206:4151/pub?
topic=lendingapp_loan_matching'
curl -d '{"application_id":6460}' 'http://192.168.1.8:4151/pub?
topic=lendingapp_loan_matching'
curl -d '{"application_id":238942, "lender_id": 1}' 'nsqd.service.consul:4151/pub?
topic=lendingapp_loan_matching'
curl -d '{"reference_request_id":"xxx","application_lender_id":3419}'
'http://147.139.182.206:4151/pub?topic=lendingapp_lender_submit'
curl -X POST 'http://192.168.1.8:4151/topic/empty?topic=lendingapp_lender_submit'
curl -X POST 'http://192.168.1.8:4151/channel/empty?
topic=lendingapp_lender_submit&channel=submit_application'

TODO > In Progress > In Testing > In Review


curl -d'{"task": "notify_expired","external_loan_id": 1685}'
'http://147.139.182.206:4151/pub?topic=lendingapp_tokopedia_mcl_notify'

curl -X POST 'http://192.168.1.9:4151/topic/create?topic=dol_strategy'


curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_external_partner_event'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_digisign_send_document'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_privy_upload_document'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_privy_download_document'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_tokopedia_mcl_transactions'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_tokopedia_mcl_notify'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_borrowing_partner_submit_application'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_pusdafil_report'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_tokopedia_mcl_repayment'
curl -X POST 'http://192.168.1.9:4151/topic/create?
topic=lendingapp_partner_image_upload'
curl -X POST 'http://192.168.1.9:4151/topic/create?topic=lendingapp_send_notifier'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=dol_strategy&channel=prelim_1'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=dol_strategy&channel=prelim_2'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=dol_strategy&channel=main_1'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=dol_strategy&channel=main_2'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=dol_strategy&channel=post_1'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_external_partner_event&channel=log'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_external_partner_event&channel=summarize_daily'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_digisign_send_document&channel=lender_borrower'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_digisign_send_document&channel=lender_organizer'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_privy_upload_document&channel=lender_borrower'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_privy_upload_document&channel=lender_organizer'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_privy_download_document&channel=download'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_privy_download_document&channel=notify'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_transactions&channel=create_loan'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_transactions&channel=update_loan'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_transactions&channel=disbursement'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_transactions&channel=disbursement_new_flow'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_notify&channel=expired'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_notify&channel=disbursement_completed'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_borrowing_partner_submit_application&channel=create_borrower'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_borrowing_partner_submit_application&channel=create_cif'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_borrowing_partner_submit_application&channel=upload_document'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_borrowing_partner_submit_application&channel=create_application'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=disbursement'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=lender_registration'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=borrower_repayment'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=partner_repayment'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=late_repayment'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_pusdafil_report&channel=all'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_repayment&channel=repayment_to_lender'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_repayment&channel=repayment_to_sgr'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_tokopedia_mcl_repayment&channel=repayment_to_borrower'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_partner_image_upload&channel=ktp'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_partner_image_upload&channel=selfie'
curl -X POST 'http://192.168.1.9:4151/channel/create?
topic=lendingapp_send_notifier&channel=notifier'

You might also like