diff --git a/api-reference/mandates/auto_refund/auto_refund_post_success.sh b/api-reference/mandates/auto_refund/auto_refund_post_success.sh new file mode 100644 index 000000000..0deaf5794 --- /dev/null +++ b/api-reference/mandates/auto_refund/auto_refund_post_success.sh @@ -0,0 +1,13 @@ +curl --location 'https://api.juspay.in/orders' \ +--header 'Content-Type: application/x-www-form-urlencoded' \ +--header 'Authorization: Basic MzJCNDM3QTZCNUI0OEE5O' \ +--data-urlencode 'order_id=test_1721138542' \ +--data-urlencode 'amount=2' \ +--data-urlencode 'currency=INR' \ +--data-urlencode 'return_url=https://google.com' \ +--data-urlencode 'customer_id=cth_d7bYTY1XKSFWjjTZ' \ +--data-urlencode 'customer_email=aasdkj@gmail.com' \ +--data-urlencode 'product_id=Testing' \ +--data-urlencode 'options.create_mandate=REQUIRED' \ +--data-urlencode 'mandate_max_amount=10' \ +--data-urlencode 'metadata.auto_refund_post_success=True' diff --git a/api-reference/mandates/order_txns/upi_collect_mandate.sh b/api-reference/mandates/order_txns/upi_collect_mandate.sh new file mode 100644 index 000000000..876429403 --- /dev/null +++ b/api-reference/mandates/order_txns/upi_collect_mandate.sh @@ -0,0 +1,18 @@ +curl --location 'https://api.juspay.in/txns' \ +--header 'Content-Type: application/x-www-form-urlencoded' \ +--header 'x-merchantid: mandate_juspay' \ +--data-urlencode 'order.order_id=test_123' \ +--data-urlencode 'order.amount=1' \ +--data-urlencode 'order.currency=INR' \ +--data-urlencode 'order.customer_id=cst_3uh6gumy3esndhdr' \ +--data-urlencode 'order.options.create_mandate=REQUIRED' \ +--data-urlencode 'order.mandate_max_amount=16' \ +--data-urlencode 'payment_method=UPI_COLLECT' \ +--data-urlencode 'payment_method_type=UPI' \ +--data-urlencode 'sdk_params=false' \ +--data-urlencode 'format=json' \ +--data-urlencode 'mandate_type=EMANDATE' \ +--data-urlencode 'should_create_mandate=true' \ +--data-urlencode 'redirect_after_payment=true' \ +--data-urlencode 'merchant_id=test_merchant' \ +--data-urlencode 'order_id=test_123' diff --git a/api-reference/mandates/order_txns/upi_collect_mutual_fund.sh b/api-reference/mandates/order_txns/upi_collect_mutual_fund.sh new file mode 100644 index 000000000..267bb067e --- /dev/null +++ b/api-reference/mandates/order_txns/upi_collect_mutual_fund.sh @@ -0,0 +1,19 @@ +curl --location 'https://api.juspay.in/txns' \ +--header 'Content-Type: application/x-www-form-urlencoded' \ +--header 'x-merchantid: mandate_juspay' \ +--data-urlencode 'order.order_id=test_123' \ +--data-urlencode 'order.amount=1' \ +--data-urlencode 'order.currency=INR' \ +--data-urlencode 'order.customer_id=cst_3uh6gumy3esndhdr' \ +--data-urlencode 'order.options.create_mandate=REQUIRED' \ +--data-urlencode 'order.mandate_max_amount=16' \ +--data-urlencode 'payment_method=UPI_COLLECT' \ +--data-urlencode 'payment_method_type=UPI' \ +--data-urlencode 'sdk_params=false' \ +--data-urlencode 'format=json' \ +--data-urlencode 'mandate_type=EMANDATE' \ +--data-urlencode 'should_create_mandate=true' \ +--data-urlencode 'redirect_after_payment=true' \ +--data-urlencode 'merchant_id=test_merchant' \ +--data-urlencode 'order_id=test_123' \ +--data-urlencode 'order.mutual_fund_details=[{"memberId":"ABCDE","userId":"ABCDEFGHIJ","mfPartner":"BSE","folioNumber":"190983010","orderNumber":"order_zer12345ssss","amount":"800","schemeCode":"LT","amcCode":"UYTIUI","panNumber":"TYLIO7823U","investmentType":"LUMPSUM"},{"memberId":"ABCDE","userId":"ABCDEFGHIJ","mfPartner":"BSE","folioNumber":"190983010","orderNumber":"order_zer12345sssss","amount":"800.00","schemeCode":"LT","amcCode":"UYTIUI","panNumber":"TYLIO7823U","investmentType":"LUMPSUM"}]' diff --git a/api-reference/mandates/order_txns/upi_pay_mandate.sh b/api-reference/mandates/order_txns/upi_pay_mandate.sh new file mode 100644 index 000000000..8e8a974fd --- /dev/null +++ b/api-reference/mandates/order_txns/upi_pay_mandate.sh @@ -0,0 +1,18 @@ +curl --location 'https://api.juspay.in/txns' \ +--header 'Content-Type: application/x-www-form-urlencoded' \ +--header 'x-merchantid: mandate_juspay' \ +--data-urlencode 'order.order_id=test_123' \ +--data-urlencode 'order.amount=1' \ +--data-urlencode 'order.currency=INR' \ +--data-urlencode 'order.customer_id=cst_3uh6gumy3esndhdr' \ +--data-urlencode 'order.options.create_mandate=REQUIRED' \ +--data-urlencode 'order.mandate_max_amount=16' \ +--data-urlencode 'payment_method=UPI_PAY' \ +--data-urlencode 'payment_method_type=UPI' \ +--data-urlencode 'sdk_params=true' \ +--data-urlencode 'format=json' \ +--data-urlencode 'mandate_type=EMANDATE' \ +--data-urlencode 'should_create_mandate=true' \ +--data-urlencode 'redirect_after_payment=true' \ +--data-urlencode 'merchant_id=test_merchant' \ +--data-urlencode 'order_id=test_123'