Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

refactor(openapi): move openapi to a separate folder (#4859)

Narayan Bhat05105321cace
diff --git a/.github/workflows/validate-openapi-spec.yml b/.github/workflows/validate-openapi-spec.yml
index f14e61781d..04acc87acd 100644
--- a/.github/workflows/validate-openapi-spec.yml
+++ b/.github/workflows/validate-openapi-spec.yml
@@ -60,17 +60,17 @@ jobs:
- name: Validate the JSON file
shell: bash
- run: swagger-cli validate ./openapi/openapi_spec.json
+ run: swagger-cli validate ./api-reference/openapi_spec.json
- name: Commit the JSON file if it is not up-to-date
# PR originated from same repository
if: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}
shell: bash
run: |
- if ! git diff --quiet --exit-code -- openapi/openapi_spec.json ; then
+ if ! git diff --quiet --exit-code -- api-reference/openapi_spec.json ; then
git config --local user.name 'hyperswitch-bot[bot]'
git config --local user.email '148525504+hyperswitch-bot[bot]@users.noreply.github.com'
- git add openapi/openapi_spec.json
+ git add api-reference/openapi_spec.json
git commit --message 'docs(openapi): re-generate OpenAPI specification'
git push
fi
@@ -79,7 +79,7 @@ jobs:
if: ${{ (github.event_name == 'merge_group') || ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)) }}
shell: bash
run: |
- if ! git diff --quiet --exit-code -- openapi/openapi_spec.json ; then
+ if ! git diff --quiet --exit-code -- api-reference/openapi_spec.json ; then
echo '::error::The OpenAPI spec file is not up-to-date. Please re-generate the OpenAPI spec file using `cargo run -p openapi` and commit it.'
exit 1
fi
diff --git a/api-reference/_snippets/snippet-example.mdx b/api-reference/_snippets/snippet-example.mdx
new file mode 100644
index 0000000000..089334c54f
--- /dev/null
+++ b/api-reference/_snippets/snippet-example.mdx
@@ -0,0 +1,3 @@
+## My Snippet
+
+<Info>This is an example of a reusable snippet</Info>
diff --git a/api-reference/api-reference/api-key/api-key--create.mdx b/api-reference/api-reference/api-key/api-key--create.mdx
new file mode 100644
index 0000000000..977d4b9285
--- /dev/null
+++ b/api-reference/api-reference/api-key/api-key--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /api_keys/{merchant_id)
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/api-key/api-key--retrieve.mdx b/api-reference/api-reference/api-key/api-key--retrieve.mdx
new file mode 100644
index 0000000000..107b18073e
--- /dev/null
+++ b/api-reference/api-reference/api-key/api-key--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /api_keys/{merchant_id}/{key_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/api-key/api-key--revoke.mdx b/api-reference/api-reference/api-key/api-key--revoke.mdx
new file mode 100644
index 0000000000..d95f088533
--- /dev/null
+++ b/api-reference/api-reference/api-key/api-key--revoke.mdx
@@ -0,0 +1,3 @@
+---
+openapi: delete /api_keys/{merchant_id)/{key_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/api-key/api-key--update.mdx b/api-reference/api-reference/api-key/api-key--update.mdx
new file mode 100644
index 0000000000..939ff433ba
--- /dev/null
+++ b/api-reference/api-reference/api-key/api-key--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /api_keys/{merchant_id}/{key_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/blocklist/delete-blocklist.mdx b/api-reference/api-reference/blocklist/delete-blocklist.mdx
new file mode 100644
index 0000000000..828268859a
--- /dev/null
+++ b/api-reference/api-reference/blocklist/delete-blocklist.mdx
@@ -0,0 +1,3 @@
+---
+openapi: delete /blocklist
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/blocklist/get-blocklist.mdx b/api-reference/api-reference/blocklist/get-blocklist.mdx
new file mode 100644
index 0000000000..3d8376bbc7
--- /dev/null
+++ b/api-reference/api-reference/blocklist/get-blocklist.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /blocklist
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/blocklist/post-blocklist.mdx b/api-reference/api-reference/blocklist/post-blocklist.mdx
new file mode 100644
index 0000000000..bc459ed6bd
--- /dev/null
+++ b/api-reference/api-reference/blocklist/post-blocklist.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /blocklist
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/blocklist/post-blocklisttoggle.mdx b/api-reference/api-reference/blocklist/post-blocklisttoggle.mdx
new file mode 100644
index 0000000000..2750464d4c
--- /dev/null
+++ b/api-reference/api-reference/blocklist/post-blocklisttoggle.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /blocklist/toggle
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/business-profile/business-profile--create.mdx b/api-reference/api-reference/business-profile/business-profile--create.mdx
new file mode 100644
index 0000000000..f343d4103c
--- /dev/null
+++ b/api-reference/api-reference/business-profile/business-profile--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /account/{account_id}/business_profile
+---
diff --git a/api-reference/api-reference/business-profile/business-profile--delete.mdx b/api-reference/api-reference/business-profile/business-profile--delete.mdx
new file mode 100644
index 0000000000..13fe07d829
--- /dev/null
+++ b/api-reference/api-reference/business-profile/business-profile--delete.mdx
@@ -0,0 +1,3 @@
+---
+openapi: delete /account/{account_id}/business_profile/{profile_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/business-profile/business-profile--list.mdx b/api-reference/api-reference/business-profile/business-profile--list.mdx
new file mode 100644
index 0000000000..be46e6ed00
--- /dev/null
+++ b/api-reference/api-reference/business-profile/business-profile--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /account/{account_id}/business_profile
+---
diff --git a/api-reference/api-reference/business-profile/business-profile--retrieve.mdx b/api-reference/api-reference/business-profile/business-profile--retrieve.mdx
new file mode 100644
index 0000000000..6f609b0241
--- /dev/null
+++ b/api-reference/api-reference/business-profile/business-profile--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /account/{account_id}/business_profile/{profile_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/business-profile/business-profile--update.mdx b/api-reference/api-reference/business-profile/business-profile--update.mdx
new file mode 100644
index 0000000000..21f376e90b
--- /dev/null
+++ b/api-reference/api-reference/business-profile/business-profile--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /account/{account_id}/business_profile/{profile_id}
+---
diff --git a/api-reference/api-reference/customer-set-default-payment-method/customers--set-default-payment-method.mdx b/api-reference/api-reference/customer-set-default-payment-method/customers--set-default-payment-method.mdx
new file mode 100644
index 0000000000..03a9a0dee8
--- /dev/null
+++ b/api-reference/api-reference/customer-set-default-payment-method/customers--set-default-payment-method.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /{customer_id}/payment_methods/{payment_method_id}/default
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/customers/customers--create.mdx b/api-reference/api-reference/customers/customers--create.mdx
new file mode 100644
index 0000000000..2482c4b75c
--- /dev/null
+++ b/api-reference/api-reference/customers/customers--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /customers
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/customers/customers--delete.mdx b/api-reference/api-reference/customers/customers--delete.mdx
new file mode 100644
index 0000000000..3e226a2919
--- /dev/null
+++ b/api-reference/api-reference/customers/customers--delete.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec delete /customers/{customer_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/customers/customers--list.mdx b/api-reference/api-reference/customers/customers--list.mdx
new file mode 100644
index 0000000000..4130c64430
--- /dev/null
+++ b/api-reference/api-reference/customers/customers--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /customers/list
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/customers/customers--retrieve.mdx b/api-reference/api-reference/customers/customers--retrieve.mdx
new file mode 100644
index 0000000000..341216a1e8
--- /dev/null
+++ b/api-reference/api-reference/customers/customers--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /customers/{customer_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/customers/customers--update.mdx b/api-reference/api-reference/customers/customers--update.mdx
new file mode 100644
index 0000000000..ec11ed710d
--- /dev/null
+++ b/api-reference/api-reference/customers/customers--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /customers/{customer_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/disputes/disputes--list.mdx b/api-reference/api-reference/disputes/disputes--list.mdx
new file mode 100644
index 0000000000..254366f073
--- /dev/null
+++ b/api-reference/api-reference/disputes/disputes--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /disputes/list
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/disputes/disputes--retrieve.mdx b/api-reference/api-reference/disputes/disputes--retrieve.mdx
new file mode 100644
index 0000000000..abdbabc564
--- /dev/null
+++ b/api-reference/api-reference/disputes/disputes--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /disputes/{dispute_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/event/events--delivery-attempt-list.mdx b/api-reference/api-reference/event/events--delivery-attempt-list.mdx
new file mode 100644
index 0000000000..04cad3e5e1
--- /dev/null
+++ b/api-reference/api-reference/event/events--delivery-attempt-list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /events/{merchant_id_or_profile_id}/{event_id}/attempts
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/event/events--list.mdx b/api-reference/api-reference/event/events--list.mdx
new file mode 100644
index 0000000000..580b705052
--- /dev/null
+++ b/api-reference/api-reference/event/events--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /events/{merchant_id_or_profile_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/event/events--manual-retry.mdx b/api-reference/api-reference/event/events--manual-retry.mdx
new file mode 100644
index 0000000000..2bc2fce304
--- /dev/null
+++ b/api-reference/api-reference/event/events--manual-retry.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /events/{merchant_id_or_profile_id}/{event_id}/retry
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/gsm/gsm--create.mdx b/api-reference/api-reference/gsm/gsm--create.mdx
new file mode 100644
index 0000000000..1c610fe39d
--- /dev/null
+++ b/api-reference/api-reference/gsm/gsm--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /gsm
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/gsm/gsm--delete.mdx b/api-reference/api-reference/gsm/gsm--delete.mdx
new file mode 100644
index 0000000000..caf315c6d5
--- /dev/null
+++ b/api-reference/api-reference/gsm/gsm--delete.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /gsm/delete
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/gsm/gsm--get.mdx b/api-reference/api-reference/gsm/gsm--get.mdx
new file mode 100644
index 0000000000..8c79328343
--- /dev/null
+++ b/api-reference/api-reference/gsm/gsm--get.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /gsm/get
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/gsm/gsm--update.mdx b/api-reference/api-reference/gsm/gsm--update.mdx
new file mode 100644
index 0000000000..59dc8a77f6
--- /dev/null
+++ b/api-reference/api-reference/gsm/gsm--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /gsm/update
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/mandates/mandates--customer-mandates-list.mdx b/api-reference/api-reference/mandates/mandates--customer-mandates-list.mdx
new file mode 100644
index 0000000000..5f1a564264
--- /dev/null
+++ b/api-reference/api-reference/mandates/mandates--customer-mandates-list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /customers/{customer_id}/mandates
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/mandates/mandates--retrieve-mandate.mdx b/api-reference/api-reference/mandates/mandates--retrieve-mandate.mdx
new file mode 100644
index 0000000000..d9eca03f92
--- /dev/null
+++ b/api-reference/api-reference/mandates/mandates--retrieve-mandate.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /mandates/{mandate_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/mandates/mandates--revoke-mandate.mdx b/api-reference/api-reference/mandates/mandates--revoke-mandate.mdx
new file mode 100644
index 0000000000..daa307ecda
--- /dev/null
+++ b/api-reference/api-reference/mandates/mandates--revoke-mandate.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /mandates/revoke/{mandate_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-account/merchant-account--create.mdx b/api-reference/api-reference/merchant-account/merchant-account--create.mdx
new file mode 100644
index 0000000000..e9ba199ca6
--- /dev/null
+++ b/api-reference/api-reference/merchant-account/merchant-account--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /accounts
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-account/merchant-account--delete.mdx b/api-reference/api-reference/merchant-account/merchant-account--delete.mdx
new file mode 100644
index 0000000000..99f225bcb0
--- /dev/null
+++ b/api-reference/api-reference/merchant-account/merchant-account--delete.mdx
@@ -0,0 +1,3 @@
+---
+openapi: delete /accounts/{account_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-account/merchant-account--kv-status.mdx b/api-reference/api-reference/merchant-account/merchant-account--kv-status.mdx
new file mode 100644
index 0000000000..2cabf0d452
--- /dev/null
+++ b/api-reference/api-reference/merchant-account/merchant-account--kv-status.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /accounts/{account_id}/kv
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-account/merchant-account--retrieve.mdx b/api-reference/api-reference/merchant-account/merchant-account--retrieve.mdx
new file mode 100644
index 0000000000..75e110bf0b
--- /dev/null
+++ b/api-reference/api-reference/merchant-account/merchant-account--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /accounts/{account_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-account/merchant-account--update.mdx b/api-reference/api-reference/merchant-account/merchant-account--update.mdx
new file mode 100644
index 0000000000..f8237b5fab
--- /dev/null
+++ b/api-reference/api-reference/merchant-account/merchant-account--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /accounts/{account_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-connector-account/merchant-connector--create.mdx b/api-reference/api-reference/merchant-connector-account/merchant-connector--create.mdx
new file mode 100644
index 0000000000..14e042475c
--- /dev/null
+++ b/api-reference/api-reference/merchant-connector-account/merchant-connector--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /accounts/{account_id}/connectors
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-connector-account/merchant-connector--delete.mdx b/api-reference/api-reference/merchant-connector-account/merchant-connector--delete.mdx
new file mode 100644
index 0000000000..69947d7350
--- /dev/null
+++ b/api-reference/api-reference/merchant-connector-account/merchant-connector--delete.mdx
@@ -0,0 +1,3 @@
+---
+openapi: delete /accounts/{account_id}/connectors/{connector_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-connector-account/merchant-connector--list.mdx b/api-reference/api-reference/merchant-connector-account/merchant-connector--list.mdx
new file mode 100644
index 0000000000..52f3bcf9c9
--- /dev/null
+++ b/api-reference/api-reference/merchant-connector-account/merchant-connector--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /accounts/{account_id}/connectors
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-connector-account/merchant-connector--retrieve.mdx b/api-reference/api-reference/merchant-connector-account/merchant-connector--retrieve.mdx
new file mode 100644
index 0000000000..b4185430e2
--- /dev/null
+++ b/api-reference/api-reference/merchant-connector-account/merchant-connector--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /accounts/{account_id}/connectors/{connector_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/merchant-connector-account/merchant-connector--update.mdx b/api-reference/api-reference/merchant-connector-account/merchant-connector--update.mdx
new file mode 100644
index 0000000000..cd13d2acb2
--- /dev/null
+++ b/api-reference/api-reference/merchant-connector-account/merchant-connector--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /accounts/{account_id}/connectors/{connector_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx b/api-reference/api-reference/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx
new file mode 100644
index 0000000000..20e95ae28d
--- /dev/null
+++ b/api-reference/api-reference/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /customers/payment_methods
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payment-methods/list-payment-methods-for-a-customer.mdx b/api-reference/api-reference/payment-methods/list-payment-methods-for-a-customer.mdx
new file mode 100644
index 0000000000..f51fcd1a64
--- /dev/null
+++ b/api-reference/api-reference/payment-methods/list-payment-methods-for-a-customer.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /customers/{customer_id}/payment_methods
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payment-methods/list-payment-methods-for-a-merchant.mdx b/api-reference/api-reference/payment-methods/list-payment-methods-for-a-merchant.mdx
new file mode 100644
index 0000000000..53f9be27d0
--- /dev/null
+++ b/api-reference/api-reference/payment-methods/list-payment-methods-for-a-merchant.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /account/payment_methods
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payment-methods/payment-method--delete.mdx b/api-reference/api-reference/payment-methods/payment-method--delete.mdx
new file mode 100644
index 0000000000..c828a8b7a2
--- /dev/null
+++ b/api-reference/api-reference/payment-methods/payment-method--delete.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec delete /payment_methods/{method_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payment-methods/payment-method--retrieve.mdx b/api-reference/api-reference/payment-methods/payment-method--retrieve.mdx
new file mode 100644
index 0000000000..9183ca34a9
--- /dev/null
+++ b/api-reference/api-reference/payment-methods/payment-method--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /payment_methods/{method_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payment-methods/payment-method--set-default-payment-method-for-customer.mdx b/api-reference/api-reference/payment-methods/payment-method--set-default-payment-method-for-customer.mdx
new file mode 100644
index 0000000000..03a9a0dee8
--- /dev/null
+++ b/api-reference/api-reference/payment-methods/payment-method--set-default-payment-method-for-customer.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /{customer_id}/payment_methods/{payment_method_id}/default
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payment-methods/payment-method--update.mdx b/api-reference/api-reference/payment-methods/payment-method--update.mdx
new file mode 100644
index 0000000000..fe5db5f2b4
--- /dev/null
+++ b/api-reference/api-reference/payment-methods/payment-method--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payment_methods/{method_id}/update
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payment-methods/paymentmethods--create.mdx b/api-reference/api-reference/payment-methods/paymentmethods--create.mdx
new file mode 100644
index 0000000000..34df9e3c17
--- /dev/null
+++ b/api-reference/api-reference/payment-methods/paymentmethods--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payment_methods
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--cancel.mdx b/api-reference/api-reference/payments/payments--cancel.mdx
new file mode 100644
index 0000000000..54ce60ea3b
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--cancel.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payments/{payment_id}/cancel
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--capture.mdx b/api-reference/api-reference/payments/payments--capture.mdx
new file mode 100644
index 0000000000..1a00d84ec1
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--capture.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payments/{payment_id}/capture
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--complete-authorize.mdx b/api-reference/api-reference/payments/payments--complete-authorize.mdx
new file mode 100644
index 0000000000..46255696bf
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--complete-authorize.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /{payment_id}/complete_authorize
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--confirm.mdx b/api-reference/api-reference/payments/payments--confirm.mdx
new file mode 100644
index 0000000000..81e3e2134b
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--confirm.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payments/{payment_id}/confirm
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--create.mdx b/api-reference/api-reference/payments/payments--create.mdx
new file mode 100644
index 0000000000..0b7038a4ea
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payments
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--external-3ds-authentication.mdx b/api-reference/api-reference/payments/payments--external-3ds-authentication.mdx
new file mode 100644
index 0000000000..6a8fc57a56
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--external-3ds-authentication.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /payments/{payment_id}/3ds/authentication
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--incremental-authorization.mdx b/api-reference/api-reference/payments/payments--incremental-authorization.mdx
new file mode 100644
index 0000000000..b8eb747773
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--incremental-authorization.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /payments/{payment_id}/incremental_authorization
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--list.mdx b/api-reference/api-reference/payments/payments--list.mdx
new file mode 100644
index 0000000000..c16239788e
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /payments/list
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--retrieve.mdx b/api-reference/api-reference/payments/payments--retrieve.mdx
new file mode 100644
index 0000000000..f5de441830
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /payments/{payment_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--session-token.mdx b/api-reference/api-reference/payments/payments--session-token.mdx
new file mode 100644
index 0000000000..33d736ab36
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--session-token.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payments/session_tokens
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments--update.mdx b/api-reference/api-reference/payments/payments--update.mdx
new file mode 100644
index 0000000000..f097578a6a
--- /dev/null
+++ b/api-reference/api-reference/payments/payments--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payments/{payment_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payments/payments-link--retrieve.mdx b/api-reference/api-reference/payments/payments-link--retrieve.mdx
new file mode 100644
index 0000000000..92dca125ec
--- /dev/null
+++ b/api-reference/api-reference/payments/payments-link--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /payment_link/{payment_link_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payouts/payouts--cancel.mdx b/api-reference/api-reference/payouts/payouts--cancel.mdx
new file mode 100644
index 0000000000..66bebcc600
--- /dev/null
+++ b/api-reference/api-reference/payouts/payouts--cancel.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payouts/{payout_id}/cancel
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payouts/payouts--create.mdx b/api-reference/api-reference/payouts/payouts--create.mdx
new file mode 100644
index 0000000000..2ceea05aad
--- /dev/null
+++ b/api-reference/api-reference/payouts/payouts--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payouts/create
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payouts/payouts--filter.mdx b/api-reference/api-reference/payouts/payouts--filter.mdx
new file mode 100644
index 0000000000..a51abc194e
--- /dev/null
+++ b/api-reference/api-reference/payouts/payouts--filter.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /payouts/list
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payouts/payouts--fulfill.mdx b/api-reference/api-reference/payouts/payouts--fulfill.mdx
new file mode 100644
index 0000000000..bf41fcf29e
--- /dev/null
+++ b/api-reference/api-reference/payouts/payouts--fulfill.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payouts/{payout_id}/fulfill
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payouts/payouts--list.mdx b/api-reference/api-reference/payouts/payouts--list.mdx
new file mode 100644
index 0000000000..dba7c5b380
--- /dev/null
+++ b/api-reference/api-reference/payouts/payouts--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /payouts/list
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payouts/payouts--retrieve.mdx b/api-reference/api-reference/payouts/payouts--retrieve.mdx
new file mode 100644
index 0000000000..9e47516e91
--- /dev/null
+++ b/api-reference/api-reference/payouts/payouts--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /payouts/{payout_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/payouts/payouts--update.mdx b/api-reference/api-reference/payouts/payouts--update.mdx
new file mode 100644
index 0000000000..953b8332c2
--- /dev/null
+++ b/api-reference/api-reference/payouts/payouts--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /payouts/{payout_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/poll/poll--retrieve-poll-status.mdx b/api-reference/api-reference/poll/poll--retrieve-poll-status.mdx
new file mode 100644
index 0000000000..1510fbfa22
--- /dev/null
+++ b/api-reference/api-reference/poll/poll--retrieve-poll-status.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /poll/status/{poll_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/refunds/refunds--create.mdx b/api-reference/api-reference/refunds/refunds--create.mdx
new file mode 100644
index 0000000000..98f059244f
--- /dev/null
+++ b/api-reference/api-reference/refunds/refunds--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /refunds
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/refunds/refunds--list.mdx b/api-reference/api-reference/refunds/refunds--list.mdx
new file mode 100644
index 0000000000..5362713df9
--- /dev/null
+++ b/api-reference/api-reference/refunds/refunds--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /refunds/list
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/refunds/refunds--retrieve.mdx b/api-reference/api-reference/refunds/refunds--retrieve.mdx
new file mode 100644
index 0000000000..1ca602bfa9
--- /dev/null
+++ b/api-reference/api-reference/refunds/refunds--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec get /refunds/{refund_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/refunds/refunds--update.mdx b/api-reference/api-reference/refunds/refunds--update.mdx
new file mode 100644
index 0000000000..8ab210521b
--- /dev/null
+++ b/api-reference/api-reference/refunds/refunds--update.mdx
@@ -0,0 +1,3 @@
+---
+openapi: openapi_spec post /refunds/{refund_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--activate-config.mdx b/api-reference/api-reference/routing/routing--activate-config.mdx
new file mode 100644
index 0000000000..990723a90c
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--activate-config.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /routing/{algorithm_id}/activate
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--create.mdx b/api-reference/api-reference/routing/routing--create.mdx
new file mode 100644
index 0000000000..b7e0e3287f
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--create.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /routing
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--deactivate.mdx b/api-reference/api-reference/routing/routing--deactivate.mdx
new file mode 100644
index 0000000000..7d96bc11e3
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--deactivate.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /routing/deactivate
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--list.mdx b/api-reference/api-reference/routing/routing--list.mdx
new file mode 100644
index 0000000000..8c20f9ab22
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--list.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /routing
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--retrieve-config.mdx b/api-reference/api-reference/routing/routing--retrieve-config.mdx
new file mode 100644
index 0000000000..ecd97f383d
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--retrieve-config.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /routing/active
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--retrieve-default-config.mdx b/api-reference/api-reference/routing/routing--retrieve-default-config.mdx
new file mode 100644
index 0000000000..631fa526a2
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--retrieve-default-config.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /routing/default
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--retrieve-default-for-profile.mdx b/api-reference/api-reference/routing/routing--retrieve-default-for-profile.mdx
new file mode 100644
index 0000000000..2c6b5c76e8
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--retrieve-default-for-profile.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /routing/default/profile
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--retrieve.mdx b/api-reference/api-reference/routing/routing--retrieve.mdx
new file mode 100644
index 0000000000..f39e44c824
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--retrieve.mdx
@@ -0,0 +1,3 @@
+---
+openapi: get /routing/{algorithm_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--update-default-config.mdx b/api-reference/api-reference/routing/routing--update-default-config.mdx
new file mode 100644
index 0000000000..6192f5e944
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--update-default-config.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /routing/default
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/routing/routing--update-default-for-profile.mdx b/api-reference/api-reference/routing/routing--update-default-for-profile.mdx
new file mode 100644
index 0000000000..65e295b565
--- /dev/null
+++ b/api-reference/api-reference/routing/routing--update-default-for-profile.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /routing/default/profile/{profile_id}
+---
\ No newline at end of file
diff --git a/api-reference/api-reference/schemas/outgoing--webhook.mdx b/api-reference/api-reference/schemas/outgoing--webhook.mdx
new file mode 100644
index 0000000000..0c3b41dc6b
--- /dev/null
+++ b/api-reference/api-reference/schemas/outgoing--webhook.mdx
@@ -0,0 +1,3 @@
+---
+openapi-schema: OutgoingWebhook
+---
\ No newline at end of file
diff --git a/api-reference/assets/images/image.png b/api-reference/assets/images/image.png
new file mode 100644
index 0000000000..d13e245932
Binary files /dev/null and b/api-reference/assets/images/image.png differ
diff --git a/api-reference/essentials/error_codes.mdx b/api-reference/essentials/error_codes.mdx
new file mode 100644
index 0000000000..f3f9981292
--- /dev/null
+++ b/api-reference/essentials/error_codes.mdx
@@ -0,0 +1,60 @@
+---
+title: Error Codes
+---
+
+Hyperswitch uses Error codes, types, and messages to communicate errors during API calls. There are three types of error codes:
+
+| Error Code | Type | Description |
+| ---------- | --------------------- | ------------------------------------------------------------ |
+| IR | Invalid Request Error | Error caused due to invalid fields and values in API request |
+| CE | Connector Error | Errors originating from connector’s end |
+| HE | Hyperswitch Error | Errors originating from Hyperswitch’s end |
+
+| Error Codes | HTTP Status codes | Error Type | Error message | Error Handling |
+| ----------- | ------------------------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| IR_00 | 501 | server_not_available | This API is under development and will be made available soon | No action required. If you require this feature, please reach out to Hyperswitch support |
+| IR_01 | 401 | invalid_request_error | API key not provided or invalid API key used. Provide the API key in the Authorization header using api-key (e.g api-key: API_KEY) or create a new API key from the dashboard | Provide the API key in the Authorization header using api-key (e.g api-key: API_KEY) or create a new API key from the dashboard |
+| IR_02 | 404 | invalid_request_error | Unrecognized request URL | Please recheck and enter the correct request URL. Refer to our API documentation |
+| IR_03 | 405 | invalid_request_error | The HTTP method is not applicable for this API | Please recheck the HTTP method used in the request. Refer to our API documentation |
+| IR_04 | 400 | invalid_request_error | Missing required param: “field_name” | Please pass the missing required parameter. Refer to our API documentation |
+| IR_05 | 422 | invalid_request_error | “field_name” contains invalid data. Expected format is “expected_format” | Please pass the data in the expected format. Refer to our API documentation |
+| IR_06 | 400 | invalid_request_error | “message” | Refer to our API documentation for required fields and format |
+| IR_07 | 400 | invalid_request_error | Invalid value provided: “field_name” | Provide a valid value for the required fields in the expected format. Refer to our API documentation |
+| IR_08 | 400 | invalid_request_error | Client secret was not provided | Provide the client secret received in payments/create API response |
+| IR_09 | 400 | invalid_request_error | The client_secret provided does not match the client_secret associated with the Payment | Provide the same client secret received in payments/create API response for the corresponding payment |
+| IR_10 | 400 | invalid_request_error | Customer has an existing mandate/subscription | Cancel the active mandates/subscriptions for the customer before proceeding to delete the customer data |
+| IR_11 | 400 | invalid_request_error | Customer has already been redacted | Customer has already been redacted. No action required |
+| IR_12 | 400 | invalid_request_error | Reached the maximum refund attempts | Maximum refund attempts reached for this payment. Please contact Hyperswitch support for attempting more refunds for the same payment |
+| IR_13 | 400 | invalid_request_error | Refund amount exceeds the payment amount | Please verify and pass a refund amount equal to or less than the payment amount |
+| IR_14 | 400 | invalid_request_error | This Payment could not be “current_flow” because it has a “field_name” of “current_value”. The expected state is “states” | Please verify the status of the payment and make sure that you are performing an action that is allowed for the current status of the payment |
+| IR_15 | 400 | invalid_request_error | Invalid Ephemeral Key for the customer | Please pass the right Ephemeral key for the customer |
+| IR_16 | 400 | invalid_request_error | “message” | Typically used when information involving multiple fields or previously provided information doesn’t satisfy a condition. Refer to our API documentation for required fields and format |
+| IR_17 | 401 | invalid_request_error | Access forbidden, an invalid JWT token was used | Please provide a valid JWT token to access the APIs |
+| CE_00 | Status codes shared by the connectors | connector_error | “message” | The error code and message passed from the connectors. Refer to the respective connector’s documentation for more information on the error |
+| CE_01 | 400 | processing_error | Payment failed during authorization with the connector. Retry payment | Retry the payment again as payment failed at the connector during authorization |
+| CE_02 | 400 | processing_error | Payment failed during authentication with the connector. Retry payment | Retry the payment again as payment failed at the connector during authentication |
+| CE_03 | 400 | processing_error | Capture attempt failed while processing with the connector | Capture failed for the payment at the connector. Please retry the payment |
+| CE_04 | 400 | processing_error | The card data is invalid | Invalid card data passed. Please pass valid card data |
+| CE_05 | 400 | processing_error | The card has expired | Card expired. Please pass valid card data |
+| CE_06 | 400 | processing_error | Refund failed while processing with the connector. Retry refund | Refund failed to process at the connector. Please retry refund |
+| CE_07 | 400 | processing_error | Verification failed while processing with the connector. Retry operation | Retry the operation again as verification failed at the connector |
+| HE_00 | 500 | server_not_available | Something went wrong | Please retry the operation. If the error still persists, please reach out to Hyperswitch support |
+| HE_01 | 400 | duplicate_request | Duplicate refund request. Refund already attempted with the refund ID | Please verify the refund id and no action required if the refund is already attempted |
+| HE_01 | 400 | duplicate_request | Duplicate mandate request. Mandate already attempted with the Mandate ID | Please verify the mandate id and no action required if the mandate is already created |
+| HE_01 | 400 | duplicate_request | The merchant account with the specified details already exists in our records | Please verify the merchant account details and no action required if the merchant account is already created |
+| HE_01 | 400 | duplicate_request | The merchant connector account with the specified details already exists in our records | Please verify the merchant connector account details and no action required if the merchant connector account is already created |
+| HE_01 | 400 | duplicate_request | The payment method with the specified details already exists in our records | Please verify the mandate id and no action required if the mandate is already created |
+| HE_02 | 400 | object_not_found | Refund does not exist in our records | Please verify the refund details and enter valid details |
+| HE_02 | 400 | object_not_found | Customer does not exist in our records | Please verify the customer details and enter valid details |
+| HE_02 | 400 | object_not_found | Payment does not exist in our records | Please verify the payment details and enter valid details |
+| HE_02 | 400 | object_not_found | Payment method does not exist in our records | Please verify the payment method details and enter valid details |
+| HE_02 | 400 | object_not_found | Merchant account does not exist in our records | Please verify the merchant account details and enter valid details |
+| HE_02 | 400 | object_not_found | Merchant connector account does not exist in our records | Please verify the merchant connector details and enter valid details |
+| HE_02 | 400 | object_not_found | Resource ID does not exist in our records | Please verify the resource ID and enter valid details |
+| HE_02 | 400 | object_not_found | Mandate does not exist in our records | Please verify the mandate details and enter valid details |
+| HE_03 | 400 | validation_error | Refunds not possible through Hyperswitch. Please raise Refunds through the “connector” dashboard | Please raise refunds request from the respective connector’s dashboard as the connectors don’t provide a Refunds API for Hyperswitch to process |
+| HE_03 | 400 | validation_error | Mandate Validation Failed | Please verify the mandate details again and enter valid details |
+| HE_04 | 400 | validation_error | The payment has not succeeded yet. Please pass a successful payment to initiate refund | Please verify the request parameters and retry the payment. If the error still persists, please reach out to Hyperswitch support |
+| HE_04 | 400 | object_not_found | Successful payment not found for the given payment id | Please verify the payment details and status as you can attempt refunds only for payments with success status |
+| HE_04 | 400 | object_not_found | The connector provided in the request is incorrect or not available | Please verify your connector configuration and provide a valid connector that is enabled for your account |
+| HE_04 | 400 | object_not_found | Address does not exist in our records | Please verify the address details and pass valid address details |
diff --git a/api-reference/essentials/go-live.mdx b/api-reference/essentials/go-live.mdx
new file mode 100644
index 0000000000..80d030e4c5
--- /dev/null
+++ b/api-reference/essentials/go-live.mdx
@@ -0,0 +1,50 @@
+---
+title: Go-live Checklist
+---
+
+Refer to this checklist for a seamless transition as you prepare to go live with your integration.
+
+<Warning>
+The connector configurations set up in the sandbox need to be replicated on the Hyperswitch production account.
+</Warning>
+
+### Signing of Hyperswitch services agreement
+
+- [ ] Ensure that the Hyperswitch services agreement is signed and shared with the Hyperswitch team. In case you need any help, please drop an email to [email protected].
+
+<Warning>
+The Hyperswitch team will share your production Hyperswitch credentials once the above process is completed.
+</Warning>
+
+### Connector Configurations
+
+- [ ] Configure all the required connectors using production credentials on the Hyperswitch production dashboard and enable the required payment methods.
+- [ ] Ensure that the payment methods are enabled on the connector (payment processor) dashboard.
+- [ ] Enable raw card processing for each connector. Some connectors offer this as a dashboard toggle feature. Some processors might need you to share a PCI Attestation of Compliance over email to enable this. Drop an email to [email protected] if you need any support with PCI AOC.
+
+### Secure your api-keys
+
+- [ ] Make sure your secret key (api-key) is not exposed on the front-end (website/mobile app).
+- [ ] Ensure that your workflow avoids the duplication or storage of your API keys in multiple locations.
+
+### Set up Webhooks
+
+- [ ] [Configure your webhook endpoint](https://juspay-78.mintlify.app/essentials/webhooks#configuring-webhooks) on our dashboard to receive notifications for different events.
+- [ ] Update Hyperswitch's webhook endpoints on your connector's Dashboard. [Refer here](https://juspay-78.mintlify.app/essentials/webhooks#configuring-webhooks) for detailed instructions.
+- [ ] Update the connector secret key in our dashboard for us to authenticate webhooks sent by your connector.
+
+### Secure your Payments
+
+- [ ] Make sure you decrypt and verify the signed payload sent along with the payment status in your return URL.
+- [ ] Always verify the payment amount and payment status before fulfilling your customer's shopping cart/service request.
+
+### Error Handling
+
+- [ ] Make sure your API integration is set up to handle all the possible error scenarios (refer this [link](https://juspay-78.mintlify.app/essentials/error_codes)).
+- [ ] Ensure your Unified Checkout (SDK) integration is set up to handle all the possible error scenarios (refer this [link](https://hyperswitch.io/docs/sdkIntegrations/unifiedCheckoutWeb/errorCodes)).
+- [ ] Ensure that your integration can handle the entire payments lifecycle and test various scenarios using actual payment details.
+
+### Customize and sanity check the payment experience
+
+- [ ] Ensure the pay button is properly highlighted to the customer.
+- [ ] Ensure a blended look and feel of the payment experience using the [styling APIs](https://hyperswitch.io/docs/sdkIntegrations/unifiedCheckoutWeb/customization) of Unified Checkout.
diff --git a/api-reference/essentials/rate_limit.mdx b/api-reference/essentials/rate_limit.mdx
new file mode 100644
index 0000000000..2857271f96
--- /dev/null
+++ b/api-reference/essentials/rate_limit.mdx
@@ -0,0 +1,30 @@
+---
+title: Rate Limits
+---
+
+The Hyperswitch API has multiple checks in place to enhance its stability when faced with sudden surges of incoming traffic. Merchants who send numerous requests in rapid succession could encounter error responses indicated by the status code 429.
+
+<Warning>
+ The default rate limit for all Hyperswitch APIs is **80 requests per second**.
+ Reach out to [email protected] if you have a requirement for higher limits.
+</Warning>
+
+## How to handle rate limits
+
+Effectively handling rate limit 429 errors is crucial for maintaining a seamless user experience.
+
+- Implement retry mechanisms with progressively increasing intervals to avoid overwhelming the system with repeated requests.
+- To proactively manage these errors, monitoring tools can help track usage patterns and provide insights for adjusting rate limits as necessary.
+- Ultimately, a well-orchestrated strategy for managing 429 errors not only prevents disruption but also fosters positive user engagement by transparently addressing limitations and promoting responsible API usage.
+
+## Understanding API locking
+
+If you see a 429 error with the following error message, it is due to API locking and not due to rate limiting:
+
+```text
+At this moment, access to this object is restricted due to ongoing utilization by another API request or an ongoing Hyperswitch process. Retry after some time if this error persists.
+```
+
+API locking is a robust feature that empowers us to proactively secure and optimize access to our APIs. Our API locks objects on some operations to prevent the disruption caused by concurrent workloads that could potentially lead to inconsistent outcomes.
+
+This proactive measure not only ensures the continued integrity and performance of our APIs but also guarantees a high standard of security for our users. Once triggered, the API lock initiates a controlled pause in access, preventing any potential threats from compromising the system.
diff --git a/api-reference/essentials/webhooks.mdx b/api-reference/essentials/webhooks.mdx
new file mode 100644
index 0000000000..20ce3518ea
--- /dev/null
+++ b/api-reference/essentials/webhooks.mdx
@@ -0,0 +1,45 @@
+# Webhooks
+
+Webhooks are HTTP-based real-time push notifications that Hyperswitch would use for instant status communication to your server. Webhooks are vital in payments for the following reasons:
+
+- Preventing merchants from losing business due to delayed status communication (say, in case of flight or movie reservations where there is a need for instant payment confirmation).
+- Prevent payment reconciliation issues where payments change from “Failed” to “Succeeded”.
+- Providing the best payment experience for the end-user by instantly communicating payment status and fulfilling the purchase.
+
+## Configuring Webhooks
+<Steps>
+<Step title="Create an endpoint on your server">You would need to set up a dedicated HTTPS or HTTP endpoint on your server with a URL as a webhook listener that will receive push notifications in the form of a POST request with JSON payload from the Hyperswitch server</Step>
+<Step title="Update your webhook endpoint on Hyperswitch Dashboard"> Update the above endpoint on your Hyperswitch dashboard under Settings -> Webhooks</Step>
+<Step title= "Update Hyperswitch’s webhook endpoints on your connector Dashboard">In order for Hyperswitch to receive updates from the connectors you have selected, you would need to update Hyperswitch’s corresponding endpoints on your respective connector dashboard instead of your webhook endpoints</Step>
+</Steps>
+
+Hyperswitch’s webhook endpoint format is as follows:
+
+| Environment | Webhook Endpoint |
+| ----------- | ---------------- |
+| Sandbox | sandbox.hyperswitch.io/webhooks/`{merchant_id}`/`{connector_name}` |
+| Production | api.hyperswitch.io/webhooks/`{merchant_id}`/`{connector_name}`|
+
+## Handling Webhooks
+
+- **Select the events for Webhooks:** On the same page on the dashboard, select the events for which you would like to receive notifications. Currently, Webhooks are available on Hyperswitch for the following events:
+
+ 1. payment_succeeded
+ 2. payment_failed
+ 3. payment_processing
+ 4. action_required
+ 5. refund_succeeded
+ 6. refund_failed
+ 7. dispute_opened
+ 8. dispute_expired
+ 9. dispute_accepted
+ 10. dispute_cancelled
+ 11. dispute_challenged
+ 12. dispute_won
+ 13. dispute_lost
+
+<Info>Click [**here**](https://juspay-78.mintlify.app/api-reference/schemas/outgoing--webhook) to see the webhook payload your endpoint would need to parse for each of the above events</Info>
+
+- **Return a 2xx response:** Your server must return a successful 2xx response on successful receipt of webhooks.
+
+- **Retries:** In case of 3xx, 4xx, or 5xx response or no response from your endpoint for webhooks, Hyperswitch has a retry mechanism that tries sending the webhooks again up to 3 times before marking the event as failed.
diff --git a/api-reference/favicon.png b/api-reference/favicon.png
new file mode 100644
index 0000000000..c9a0fc50f7
Binary files /dev/null and b/api-reference/favicon.png differ
diff --git a/api-reference/introduction.mdx b/api-reference/introduction.mdx
new file mode 100644
index 0000000000..5c59dbc11e
--- /dev/null
+++ b/api-reference/introduction.mdx
@@ -0,0 +1,51 @@
+---
+tags: [Getting Started]
+stoplight-id: 3lmsk7ocvq21v
+---
+
+# 👋 Welcome to Hyperswitch API Reference
+
+Hyperswitch provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body and return standard HTTP response codes. You can consume the APIs directly using your favorite HTTP/REST library.
+
+## Environment
+
+We have a testing environment referred to "sandbox," which you can set up to test API calls without affecting production data. You can sign up on our Dashboard to get API keys to access Hyperswitch API.
+
+Use the following base URLs when making requests to the APIs:
+
+| Environment | Base URL |
+| ----------- | ------------------------------ |
+| Sandbox | https://sandbox.hyperswitch.io |
+| Production | https://api.hyperswitch.io |
+
+<Note> If you **do not hold a PCI certification** to collect and store card data on your servers, we recommend using [**Unified Checkout**](https://hyperswitch.io/docs/sdkIntegrations/unifiedCheckoutWeb/#unified-checkout) to accept card information from users. </Note>
+
+## Authentication and API keys
+
+Hyperswitch authenticates your API requests using your account’s API keys. Each account has two API keys for authentication:
+
+| Key | Example | When to Use |
+| -------------------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
+| Secret key (API-key) | `snd_c69***` | Used to authenticate API requests from your merchant server. **Don’t expose this key** on a website or embed it in a mobile application. |
+| Publishable key | `pk_snd_3b3***` | Used to authenticate API requests from your app’s client. Can be publicly-accessible in your web or mobile app’s client-side code. |
+
+<Check>
+Get your [API key](https://app.hyperswitch.io/developers?tabIndex=1) and [Publishable Key](https://app.hyperswitch.io/home)
+</Check>
+<Check>
+[Postman Collection](https://www.postman.com/hyperswitch/workspace/hyperswitch-development/collection/25176162-630b5353-7002-44d1-8ba1-ead6c230f2e3)
+</Check>
+
+## Payment Status Lifecycle
+Hyperswitch handles the complex functionality of a comprehensive payments flow through the Payments object that transitions through multiple states during its payments lifecycle. Given below are the various statuses a payment can have:
+| Payment Status | Description |
+| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| requires_payment_method | Once you create a payment through payments/create endpoint with no payment method attached to it, the payments object transitions to ‘requires_payment_method’. |
+| requires_confirmation | After attaching a payment method through payments/update endpoint, the payments object requires you to confirm the payment. |
+| requires_customer_action | Once the payment is confirmed through payments/confirm endpoint, if additional authentication is required, the payments object transitions to this state. |
+| requires_capture | If you want to do separate authorize and capture, setting capture field to ‘manual’ during payments/create or confirm call will transition the payment object to this state after customer action succeeds. |
+| processing | In case of automatic capture, the payments object transitions to processing state post confirm call and subsequent customer authentication if available. |
+| succeeded | The payments object reaches success state post confirmation of successful processing from the payment processor. |
+| failed | The payments object transitions to a failed state when the payment processor confirms the processing failure. |
+| expired | You can expire the payments object while it is in any state except when it is under ‘processing’ or ‘succeeded’ state. |
+ <img src="assets/images/image.png" />
diff --git a/api-reference/locker-api-reference/cards/add-data-in-locker.mdx b/api-reference/locker-api-reference/cards/add-data-in-locker.mdx
new file mode 100644
index 0000000000..db38e57c55
--- /dev/null
+++ b/api-reference/locker-api-reference/cards/add-data-in-locker.mdx
@@ -0,0 +1,3 @@
+---
+openapi: rust_locker_open_api_spec post /data/add
+---
\ No newline at end of file
diff --git a/api-reference/locker-api-reference/cards/delete-data-from-locker.mdx b/api-reference/locker-api-reference/cards/delete-data-from-locker.mdx
new file mode 100644
index 0000000000..725769b9c9
--- /dev/null
+++ b/api-reference/locker-api-reference/cards/delete-data-from-locker.mdx
@@ -0,0 +1,3 @@
+---
+openapi: rust_locker_open_api_spec post /data/delete
+---
\ No newline at end of file
diff --git a/api-reference/locker-api-reference/cards/get-or-insert-the-card-fingerprint.mdx b/api-reference/locker-api-reference/cards/get-or-insert-the-card-fingerprint.mdx
new file mode 100644
index 0000000000..b09e9a5f6a
--- /dev/null
+++ b/api-reference/locker-api-reference/cards/get-or-insert-the-card-fingerprint.mdx
@@ -0,0 +1,3 @@
+---
+openapi: post /data/fingerprint
+---
\ No newline at end of file
diff --git a/api-reference/locker-api-reference/cards/retrieve-data-from-locker.mdx b/api-reference/locker-api-reference/cards/retrieve-data-from-locker.mdx
new file mode 100644
index 0000000000..f525780a2f
--- /dev/null
+++ b/api-reference/locker-api-reference/cards/retrieve-data-from-locker.mdx
@@ -0,0 +1,3 @@
+---
+openapi: rust_locker_open_api_spec post /data/retrieve
+---
\ No newline at end of file
diff --git a/api-reference/locker-api-reference/key-custodian/provide-key-1.mdx b/api-reference/locker-api-reference/key-custodian/provide-key-1.mdx
new file mode 100644
index 0000000000..b04837e5e0
--- /dev/null
+++ b/api-reference/locker-api-reference/key-custodian/provide-key-1.mdx
@@ -0,0 +1,3 @@
+---
+openapi: rust_locker_open_api_spec post /custodian/key1
+---
\ No newline at end of file
diff --git a/api-reference/locker-api-reference/key-custodian/provide-key-2.mdx b/api-reference/locker-api-reference/key-custodian/provide-key-2.mdx
new file mode 100644
index 0000000000..4a0c86ef93
--- /dev/null
+++ b/api-reference/locker-api-reference/key-custodian/provide-key-2.mdx
@@ -0,0 +1,3 @@
+---
+openapi: rust_locker_open_api_spec post /custodian/key2
+---
\ No newline at end of file
diff --git a/api-reference/locker-api-reference/key-custodian/unlock-the-locker.mdx b/api-reference/locker-api-reference/key-custodian/unlock-the-locker.mdx
new file mode 100644
index 0000000000..7c425faba4
--- /dev/null
+++ b/api-reference/locker-api-reference/key-custodian/unlock-the-locker.mdx
@@ -0,0 +1,3 @@
+---
+openapi: rust_locker_open_api_spec post /custodian/decrypt
+---
\ No newline at end of file
diff --git a/api-reference/locker-api-reference/locker-health/get-health.mdx b/api-reference/locker-api-reference/locker-health/get-health.mdx
new file mode 100644
index 0000000000..095bb5992b
--- /dev/null
+++ b/api-reference/locker-api-reference/locker-health/get-health.mdx
@@ -0,0 +1,3 @@
+---
+openapi: rust_locker_open_api_spec get /health
+---
\ No newline at end of file
diff --git a/api-reference/locker-api-reference/overview.mdx b/api-reference/locker-api-reference/overview.mdx
new file mode 100644
index 0000000000..6c39dda36d
--- /dev/null
+++ b/api-reference/locker-api-reference/overview.mdx
@@ -0,0 +1,27 @@
+The Hyperswitch Card Vault is a highly performant and a secure vault to save sensitive data such as payment card details, bank account details etc.
+
+It is designed in an polymorphic manner to handle and store any type of sensitive information making it highly scalable with extensive coverage of payment methods and processors.
+
+Hyperswitch Card Vault is built with a GDPR compliant personal identifiable information (PII) storage and secure encryption algorithms to be fully compliant with PCI DSS requirements.
+
+Here's a quick guide to [Get Started](https://github.com/juspay/hyperswitch-card-vault/blob/main/docs/guides/setup.md) with setting up Hyperswitch Card Vault.
+
+## How does Hyperswitch Card Vault work?
+
+- Your application will communicate with Hyperswitch Card Vault via a middleware.
+- All requests and responses to and from the middleware are signed and encrypted with the JWS and JWE algorithms.
+- The locker supports CRD APIs on the /data and /cards endpoints -
+- Cards are stored against the combination of merchant and customer identifiers.
+- Internal hashing checks are in place to avoid data duplication.
+
+![general-block-diagram](https://raw.githubusercontent.com/juspay/hyperswitch-card-vault/45dc1e5ca168f811b9230ede9e644ccb6f03a28c/docs/imgs/general-block-diagram.png)
+
+## Key Hierarchy
+
+- Master Key - AES generated key to that is encrypted/decrypted by the custodian keys to run the locker and associated configurations.
+- Custodian Keys - AES generated key that is used to encrypt and decrypt the master key. It broken into two keys (key 1 and key 2) and available with two custodians to enhance security.
+ ![lock-key-hierarchy](https://raw.githubusercontent.com/juspay/hyperswitch-card-vault/45dc1e5ca168f811b9230ede9e644ccb6f03a28c/docs/imgs/locker-key-hierarchy.png)
+
+## Setup Guide
+
+Follow this guide to setup - [Get Started](https://github.com/juspay/hyperswitch-card-vault/blob/main/docs/guides/setup.md)
diff --git a/api-reference/logo/dark.svg b/api-reference/logo/dark.svg
new file mode 100644
index 0000000000..fbf0d89d41
--- /dev/null
+++ b/api-reference/logo/dark.svg
@@ -0,0 +1,29 @@
+<svg width="766" height="100" viewBox="0 0 766 100" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_1969_1952)">
+<path d="M370.801 53.4399C370.801 70.0799 360.581 79.9999 346.441 79.9999C338.621 79.9999 331.811 76.7899 328.701 71.4799V99.0399H317.771V27.6899H327.791L328.691 35.5099C331.801 30.1999 338.411 26.6899 346.431 26.6899C360.061 26.6899 370.791 36.2099 370.791 53.4499L370.801 53.4399ZM359.471 53.4399C359.471 42.9199 353.261 36.3999 344.231 36.3999C335.611 36.2999 329.001 42.9099 329.001 53.5399C329.001 64.1699 335.621 70.2799 344.231 70.2799C352.841 70.2799 359.471 63.9699 359.471 53.4399Z" fill="white"/>
+<path d="M428.931 56.3498H389.641C389.841 65.9698 396.151 70.9798 404.171 70.9798C410.181 70.9798 415.201 68.1698 417.301 62.5598H428.431C425.721 72.9798 416.501 79.9998 403.971 79.9998C388.631 79.9998 378.511 69.3798 378.511 53.2398C378.511 37.0998 388.631 26.5798 403.871 26.5798C419.111 26.5798 428.931 36.7998 428.931 52.2398V56.3498ZM389.741 48.7298H417.801C417.201 39.8098 411.291 35.2998 403.871 35.2998C396.451 35.2998 390.541 39.8098 389.741 48.7298Z" fill="white"/>
+<path d="M448.281 27.6899C443.181 27.6899 439.051 31.8199 439.051 36.9199V79.0099H450.081V51.6499V39.8199C450.081 38.5499 451.111 37.5099 452.391 37.5099H469.231V27.6899H448.291H448.281Z" fill="white"/>
+<path d="M300.14 27.5898L286.01 70.1898L270.77 27.6898H258.94L278.48 78.3098C279.08 79.9098 279.38 81.2198 279.38 82.5198C279.38 83.2298 279.31 83.8798 279.19 84.4798L279.16 84.5898C279.09 84.9098 279.01 85.2098 278.91 85.4998L278.17 88.2098C277.99 88.8798 277.38 89.3398 276.69 89.3398H261.14V99.0598H272.47C280.09 99.0598 286.4 97.2598 290.01 87.2298L311.56 27.6898L300.13 27.5898H300.14Z" fill="white"/>
+<path d="M206.82 78.9999H217.74V51.3399C217.74 42.7199 222.45 36.7099 231.17 36.7099C238.79 36.6099 243.5 41.1199 243.5 51.0399V78.9999H254.43V49.3299C254.43 31.7899 243.71 26.5799 233.98 26.5799C226.56 26.5799 220.75 29.4899 217.74 34.2999V6.63989H206.82V78.9999Z" fill="white"/>
+<path d="M483.66 63.4699C483.76 68.7799 488.67 71.8899 495.39 71.8899C502.11 71.8899 506.11 69.3799 506.11 64.8699C506.11 60.9599 504.11 58.8599 498.29 57.9499L487.97 56.1499C477.95 54.4499 474.04 49.2299 474.04 41.9199C474.04 32.6999 483.16 26.6899 494.79 26.6899C507.32 26.6899 516.44 32.6999 516.54 42.9299H505.72C505.62 37.7199 501.11 34.8099 494.8 34.8099C488.49 34.8099 484.98 37.3199 484.98 41.5299C484.98 45.2399 487.59 46.9399 493.3 47.9399L503.42 49.7399C512.94 51.4399 517.35 56.1499 517.35 63.8699C517.35 74.4899 507.53 80.0099 495.6 80.0099C482.07 80.0099 472.95 73.4999 472.75 63.4699H483.68H483.66Z" fill="white"/>
+<path d="M542.19 66.9799L553.82 27.6899H565.25L576.68 66.9799L586.4 27.6899H597.93L583.4 79.0099H571.07L559.44 39.9199L547.71 79.0099H535.28L520.65 27.6899H532.18L542.2 66.9799H542.19Z" fill="white"/>
+<path d="M604.34 6.63989H616.47V18.0699H604.34V6.63989ZM604.94 27.6899H615.86V79.0099H604.94V27.6899Z" fill="white"/>
+<path d="M685.32 36.1099C676.8 36.1099 670.99 42.3199 670.99 53.2499C670.99 64.7799 677 70.3899 685.02 70.3899C691.43 70.3899 696.15 66.7799 698.25 59.9699H709.88C707.27 72.3999 697.85 80.0199 685.22 80.0199C669.99 80.0199 659.76 69.3998 659.76 53.2599C659.76 37.1199 669.98 26.5999 685.32 26.5999C697.85 26.5999 707.17 33.7199 709.88 46.1399H698.05C696.25 39.7299 691.33 36.1199 685.32 36.1199V36.1099Z" fill="white"/>
+<path d="M642.87 69.2799C642.23 69.2799 641.72 68.7599 641.72 68.1299V37.41H653.65V27.69H641.72V13.95H630.8V22.87C630.8 26.08 629.8 27.68 626.59 27.68H622.18V37.4H630.8V65.0599C630.8 73.9799 635.71 78.99 644.63 78.99H653.55V69.2699H642.88L642.87 69.2799Z" fill="white"/>
+<path d="M745.22 26.5799C737.8 26.5799 731.99 29.4899 728.98 34.2999V6.63989H718.06V78.9999H728.98V51.3399C728.98 42.7199 733.69 36.7099 742.41 36.7099C750.03 36.6099 754.74 41.1199 754.74 51.0399V78.9999H765.67V49.3299C765.67 31.7899 754.95 26.5799 745.22 26.5799Z" fill="white"/>
+<g clip-path="url(#clip1_1969_1952)">
+<path d="M135.792 0H42.875C19.1958 0 0 19.1958 0 42.875C0 66.5542 19.1958 85.75 42.875 85.75H135.792C159.471 85.75 178.667 66.5542 178.667 42.875C178.667 19.1958 159.471 0 135.792 0Z" fill="#006DF9"/>
+<path d="M140.261 56.4367C147.751 56.4367 153.822 50.3649 153.822 42.8751C153.822 35.3852 147.751 29.3135 140.261 29.3135C132.771 29.3135 126.699 35.3852 126.699 42.8751C126.699 50.3649 132.771 56.4367 140.261 56.4367Z" fill="white"/>
+<path d="M53.2718 53.4511L39.0877 31.4253C38.7683 30.9299 38.0448 30.9299 37.7254 31.4253L23.5413 53.4511C23.1925 53.9888 23.5804 54.6993 24.2224 54.6993H52.5907C53.2327 54.6993 53.6206 53.9888 53.2718 53.4511Z" fill="white"/>
+<path d="M100.55 30.353H78.1172C77.3972 30.353 76.8135 30.9367 76.8135 31.6567V54.0899C76.8135 54.8099 77.3972 55.3936 78.1172 55.3936H100.55C101.27 55.3936 101.854 54.8099 101.854 54.0899V31.6567C101.854 30.9367 101.27 30.353 100.55 30.353Z" fill="white"/>
+</g>
+</g>
+<defs>
+<clipPath id="clip0_1969_1952">
+<rect width="765.66" height="99.05" fill="white"/>
+</clipPath>
+<clipPath id="clip1_1969_1952">
+<rect width="178.667" height="85.75" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/api-reference/logo/light.svg b/api-reference/logo/light.svg
new file mode 100644
index 0000000000..c951a909dd
--- /dev/null
+++ b/api-reference/logo/light.svg
@@ -0,0 +1,29 @@
+<svg width="766" height="100" viewBox="0 0 766 100" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g clip-path="url(#clip0_1969_1952)">
+<path d="M370.801 53.4399C370.801 70.0799 360.581 79.9999 346.441 79.9999C338.621 79.9999 331.811 76.7899 328.701 71.4799V99.0399H317.771V27.6899H327.791L328.691 35.5099C331.801 30.1999 338.411 26.6899 346.431 26.6899C360.061 26.6899 370.791 36.2099 370.791 53.4499L370.801 53.4399ZM359.471 53.4399C359.471 42.9199 353.261 36.3999 344.231 36.3999C335.611 36.2999 329.001 42.9099 329.001 53.5399C329.001 64.1699 335.621 70.2799 344.231 70.2799C352.841 70.2799 359.471 63.9699 359.471 53.4399Z" fill="#242628"/>
+<path d="M428.931 56.3498H389.641C389.841 65.9698 396.151 70.9798 404.171 70.9798C410.181 70.9798 415.201 68.1698 417.301 62.5598H428.431C425.721 72.9798 416.501 79.9998 403.971 79.9998C388.631 79.9998 378.511 69.3798 378.511 53.2398C378.511 37.0998 388.631 26.5798 403.871 26.5798C419.111 26.5798 428.931 36.7998 428.931 52.2398V56.3498ZM389.741 48.7298H417.801C417.201 39.8098 411.291 35.2998 403.871 35.2998C396.451 35.2998 390.541 39.8098 389.741 48.7298Z" fill="#242628"/>
+<path d="M448.281 27.6899C443.181 27.6899 439.051 31.8199 439.051 36.9199V79.0099H450.081V51.6499V39.8199C450.081 38.5499 451.111 37.5099 452.391 37.5099H469.231V27.6899H448.291H448.281Z" fill="#242628"/>
+<path d="M300.14 27.5898L286.01 70.1898L270.77 27.6898H258.94L278.48 78.3098C279.08 79.9098 279.38 81.2198 279.38 82.5198C279.38 83.2298 279.31 83.8798 279.19 84.4798L279.16 84.5898C279.09 84.9098 279.01 85.2098 278.91 85.4998L278.17 88.2098C277.99 88.8798 277.38 89.3398 276.69 89.3398H261.14V99.0598H272.47C280.09 99.0598 286.4 97.2598 290.01 87.2298L311.56 27.6898L300.13 27.5898H300.14Z" fill="#242628"/>
+<path d="M206.82 78.9999H217.74V51.3399C217.74 42.7199 222.45 36.7099 231.17 36.7099C238.79 36.6099 243.5 41.1199 243.5 51.0399V78.9999H254.43V49.3299C254.43 31.7899 243.71 26.5799 233.98 26.5799C226.56 26.5799 220.75 29.4899 217.74 34.2999V6.63989H206.82V78.9999Z" fill="#242628"/>
+<path d="M483.66 63.4699C483.76 68.7799 488.67 71.8899 495.39 71.8899C502.11 71.8899 506.11 69.3799 506.11 64.8699C506.11 60.9599 504.11 58.8599 498.29 57.9499L487.97 56.1499C477.95 54.4499 474.04 49.2299 474.04 41.9199C474.04 32.6999 483.16 26.6899 494.79 26.6899C507.32 26.6899 516.44 32.6999 516.54 42.9299H505.72C505.62 37.7199 501.11 34.8099 494.8 34.8099C488.49 34.8099 484.98 37.3199 484.98 41.5299C484.98 45.2399 487.59 46.9399 493.3 47.9399L503.42 49.7399C512.94 51.4399 517.35 56.1499 517.35 63.8699C517.35 74.4899 507.53 80.0099 495.6 80.0099C482.07 80.0099 472.95 73.4999 472.75 63.4699H483.68H483.66Z" fill="#242628"/>
+<path d="M542.19 66.9799L553.82 27.6899H565.25L576.68 66.9799L586.4 27.6899H597.93L583.4 79.0099H571.07L559.44 39.9199L547.71 79.0099H535.28L520.65 27.6899H532.18L542.2 66.9799H542.19Z" fill="#242628"/>
+<path d="M604.34 6.63989H616.47V18.0699H604.34V6.63989ZM604.94 27.6899H615.86V79.0099H604.94V27.6899Z" fill="#242628"/>
+<path d="M685.32 36.1099C676.8 36.1099 670.99 42.3199 670.99 53.2499C670.99 64.7799 677 70.3899 685.02 70.3899C691.43 70.3899 696.15 66.7799 698.25 59.9699H709.88C707.27 72.3999 697.85 80.0199 685.22 80.0199C669.99 80.0199 659.76 69.3998 659.76 53.2599C659.76 37.1199 669.98 26.5999 685.32 26.5999C697.85 26.5999 707.17 33.7199 709.88 46.1399H698.05C696.25 39.7299 691.33 36.1199 685.32 36.1199V36.1099Z" fill="#242628"/>
+<path d="M642.87 69.2799C642.23 69.2799 641.72 68.7599 641.72 68.1299V37.41H653.65V27.69H641.72V13.95H630.8V22.87C630.8 26.08 629.8 27.68 626.59 27.68H622.18V37.4H630.8V65.0599C630.8 73.9799 635.71 78.99 644.63 78.99H653.55V69.2699H642.88L642.87 69.2799Z" fill="#242628"/>
+<path d="M745.22 26.5799C737.8 26.5799 731.99 29.4899 728.98 34.2999V6.63989H718.06V78.9999H728.98V51.3399C728.98 42.7199 733.69 36.7099 742.41 36.7099C750.03 36.6099 754.74 41.1199 754.74 51.0399V78.9999H765.67V49.3299C765.67 31.7899 754.95 26.5799 745.22 26.5799Z" fill="#242628"/>
+<g clip-path="url(#clip1_1969_1952)">
+<path d="M135.792 0H42.875C19.1958 0 0 19.1958 0 42.875C0 66.5542 19.1958 85.75 42.875 85.75H135.792C159.471 85.75 178.667 66.5542 178.667 42.875C178.667 19.1958 159.471 0 135.792 0Z" fill="#006DF9"/>
+<path d="M140.261 56.4367C147.751 56.4367 153.822 50.3649 153.822 42.8751C153.822 35.3852 147.751 29.3135 140.261 29.3135C132.771 29.3135 126.699 35.3852 126.699 42.8751C126.699 50.3649 132.771 56.4367 140.261 56.4367Z" fill="white"/>
+<path d="M53.2718 53.4511L39.0877 31.4253C38.7683 30.9299 38.0448 30.9299 37.7254 31.4253L23.5413 53.4511C23.1925 53.9888 23.5804 54.6993 24.2224 54.6993H52.5907C53.2327 54.6993 53.6206 53.9888 53.2718 53.4511Z" fill="white"/>
+<path d="M100.55 30.353H78.1172C77.3972 30.353 76.8135 30.9367 76.8135 31.6567V54.0899C76.8135 54.8099 77.3972 55.3936 78.1172 55.3936H100.55C101.27 55.3936 101.854 54.8099 101.854 54.0899V31.6567C101.854 30.9367 101.27 30.353 100.55 30.353Z" fill="white"/>
+</g>
+</g>
+<defs>
+<clipPath id="clip0_1969_1952">
+<rect width="765.66" height="99.05" fill="white"/>
+</clipPath>
+<clipPath id="clip1_1969_1952">
+<rect width="178.667" height="85.75" fill="white"/>
+</clipPath>
+</defs>
+</svg>
diff --git a/api-reference/mint.json b/api-reference/mint.json
new file mode 100644
index 0000000000..6cdce62509
--- /dev/null
+++ b/api-reference/mint.json
@@ -0,0 +1,240 @@
+{
+ "$schema": "https://mintlify.com/schema.json",
+ "name": "Hyperswitch",
+ "logo": {
+ "dark": "/logo/dark.svg",
+ "light": "/logo/light.svg"
+ },
+ "favicon": "/favicon.png",
+ "colors": {
+ "primary": "#006DF9",
+ "light": "#006DF9",
+ "dark": "#006DF9",
+ "background": {
+ "dark": "#242F48"
+ }
+ },
+ "tabs": [
+ {
+ "name": "API Reference",
+ "url": "api-reference"
+ },
+ {
+ "name": "Locker API Reference",
+ "url": "locker-api-reference"
+ }
+ ],
+ "navigation": [
+ {
+ "group": "Get Started",
+ "pages": ["introduction"]
+ },
+ {
+ "group": "Essentials",
+ "pages": [
+ "essentials/webhooks",
+ "essentials/error_codes",
+ "essentials/rate_limit",
+ "essentials/go-live"
+ ]
+ },
+ {
+ "group": "Payments",
+ "pages": [
+ "api-reference/payments/payments--create",
+ "api-reference/payments/payments--update",
+ "api-reference/payments/payments--confirm",
+ "api-reference/payments/payments--retrieve",
+ "api-reference/payments/payments--cancel",
+ "api-reference/payments/payments--capture",
+ "api-reference/payments/payments--incremental-authorization",
+ "api-reference/payments/payments--session-token",
+ "api-reference/payments/payments-link--retrieve",
+ "api-reference/payments/payments--list",
+ "api-reference/payments/payments--external-3ds-authentication",
+ "api-reference/payments/payments--complete-authorize"
+ ]
+ },
+ {
+ "group": "Payment Methods",
+ "pages": [
+ "api-reference/payment-methods/paymentmethods--create",
+ "api-reference/payment-methods/payment-method--retrieve",
+ "api-reference/payment-methods/payment-method--update",
+ "api-reference/payment-methods/payment-method--delete",
+ "api-reference/payment-methods/payment-method--set-default-payment-method-for-customer",
+ "api-reference/payment-methods/list-payment-methods-for-a-merchant",
+ "api-reference/payment-methods/list-customer-saved-payment-methods-for-a-payment",
+ "api-reference/payment-methods/list-payment-methods-for-a-customer",
+ "api-reference/customer-set-default-payment-method/customers--set-default-payment-method"
+ ]
+ },
+ {
+ "group": "Customers",
+ "pages": [
+ "api-reference/customers/customers--create",
+ "api-reference/customers/customers--retrieve",
+ "api-reference/customers/customers--update",
+ "api-reference/customers/customers--delete",
+ "api-reference/customers/customers--list"
+ ]
+ },
+ {
+ "group": "Mandates",
+ "pages": [
+ "api-reference/mandates/mandates--revoke-mandate",
+ "api-reference/mandates/mandates--retrieve-mandate",
+ "api-reference/mandates/mandates--customer-mandates-list"
+ ]
+ },
+ {
+ "group": "Refunds",
+ "pages": [
+ "api-reference/refunds/refunds--create",
+ "api-reference/refunds/refunds--update",
+ "api-reference/refunds/refunds--retrieve",
+ "api-reference/refunds/refunds--list"
+ ]
+ },
+ {
+ "group": "Disputes",
+ "pages": [
+ "api-reference/disputes/disputes--retrieve",
+ "api-reference/disputes/disputes--list"
+ ]
+ },
+ {
+ "group": "Merchant Account",
+ "pages": [
+ "api-reference/merchant-account/merchant-account--create",
+ "api-reference/merchant-account/merchant-account--retrieve",
+ "api-reference/merchant-account/merchant-account--update",
+ "api-reference/merchant-account/merchant-account--delete",
+ "api-reference/merchant-account/merchant-account--kv-status"
+ ]
+ },
+ {
+ "group": "Business Profile",
+ "pages": [
+ "api-reference/business-profile/business-profile--create",
+ "api-reference/business-profile/business-profile--update",
+ "api-reference/business-profile/business-profile--retrieve",
+ "api-reference/business-profile/business-profile--delete",
+ "api-reference/business-profile/business-profile--list"
+ ]
+ },
+ {
+ "group": "API Key",
+ "pages": [
+ "api-reference/api-key/api-key--create",
+ "api-reference/api-key/api-key--retrieve",
+ "api-reference/api-key/api-key--update",
+ "api-reference/api-key/api-key--revoke"
+ ]
+ },
+ {
+ "group": "Merchant Connector Account",
+ "pages": [
+ "api-reference/merchant-connector-account/merchant-connector--create",
+ "api-reference/merchant-connector-account/merchant-connector--retrieve",
+ "api-reference/merchant-connector-account/merchant-connector--update",
+ "api-reference/merchant-connector-account/merchant-connector--delete",
+ "api-reference/merchant-connector-account/merchant-connector--list"
+ ]
+ },
+ {
+ "group": "Payouts",
+ "pages": [
+ "api-reference/payouts/payouts--create",
+ "api-reference/payouts/payouts--retrieve",
+ "api-reference/payouts/payouts--update",
+ "api-reference/payouts/payouts--cancel",
+ "api-reference/payouts/payouts--fulfill",
+ "api-reference/payouts/payouts--list",
+ "api-reference/payouts/payouts--filter"
+ ]
+ },
+ {
+ "group": "Event",
+ "pages": [
+ "api-reference/event/events--list",
+ "api-reference/event/events--delivery-attempt-list",
+ "api-reference/event/events--manual-retry"
+ ]
+ },
+ {
+ "group": "GSM (Global Status Mapping)",
+ "pages": [
+ "api-reference/gsm/gsm--create",
+ "api-reference/gsm/gsm--get",
+ "api-reference/gsm/gsm--update",
+ "api-reference/gsm/gsm--delete"
+ ]
+ },
+ {
+ "group": "Poll",
+ "pages": ["api-reference/poll/poll--retrieve-poll-status"]
+ },
+ {
+ "group": "Hyperswitch Card Vault",
+ "pages": ["locker-api-reference/overview"]
+ },
+ {
+ "group": "Locker - Health",
+ "pages": ["locker-api-reference/locker-health/get-health"]
+ },
+ {
+ "group": "Locker - Key Custodian",
+ "pages": [
+ "locker-api-reference/key-custodian/provide-key-1",
+ "locker-api-reference/key-custodian/provide-key-2",
+ "locker-api-reference/key-custodian/unlock-the-locker"
+ ]
+ },
+ {
+ "group": "Locker - Cards",
+ "pages": [
+ "locker-api-reference/cards/add-data-in-locker",
+ "locker-api-reference/cards/delete-data-from-locker",
+ "locker-api-reference/cards/retrieve-data-from-locker",
+ "locker-api-reference/cards/get-or-insert-the-card-fingerprint"
+ ]
+ },
+ {
+ "group": "Blocklist",
+ "pages": [
+ "api-reference/blocklist/get-blocklist",
+ "api-reference/blocklist/post-blocklist",
+ "api-reference/blocklist/delete-blocklist",
+ "api-reference/blocklist/post-blocklisttoggle"
+ ]
+ },
+ {
+ "group": "Routing",
+ "pages": [
+ "api-reference/routing/routing--list",
+ "api-reference/routing/routing--create",
+ "api-reference/routing/routing--retrieve-config",
+ "api-reference/routing/routing--deactivate",
+ "api-reference/routing/routing--retrieve-default-config",
+ "api-reference/routing/routing--update-default-config",
+ "api-reference/routing/routing--retrieve-default-for-profile",
+ "api-reference/routing/routing--update-default-for-profile",
+ "api-reference/routing/routing--retrieve",
+ "api-reference/routing/routing--activate-config"
+ ]
+ },
+ {
+ "group": "Schemas",
+ "pages": ["api-reference/schemas/outgoing--webhook"]
+ }
+ ],
+ "footerSocials": {
+ "github": "https://github.com/juspay/hyperswitch",
+ "linkedin": "https://www.linkedin.com/company/hyperswitch"
+ },
+ "openapi": ["openapi_spec.json", "rust_locker_open_api_spec.yml"],
+ "api": {
+ "maintainOrder": true
+ }
+}
diff --git a/openapi/openapi_spec.json b/api-reference/openapi_spec.json
similarity index 100%
rename from openapi/openapi_spec.json
rename to api-reference/openapi_spec.json
diff --git a/api-reference/rust_locker_open_api_spec.yml b/api-reference/rust_locker_open_api_spec.yml
new file mode 100644
index 0000000000..729886d9cd
--- /dev/null
+++ b/api-reference/rust_locker_open_api_spec.yml
@@ -0,0 +1,372 @@
+openapi: "3.0.2"
+info:
+ title: Tartarus - OpenAPI 3.0
+ description: |-
+ This the the open API 3.0 specification for the card locker.
+ This is used by the [hyperswitch](https://github.com/juspay/hyperswitch) for storing card information securely.
+ version: "1.0"
+tags:
+ - name: Key Custodian
+ description: API used to initialize the locker after deployment.
+ - name: Data
+ description: CRUD APIs to for working with data to be stored in the locker
+ - name: Cards
+ description: CRUD APIs to for working with cards data to be stored in the locker (deprecated)
+paths:
+ /custodian/key1:
+ post:
+ tags:
+ - Key Custodian
+ summary: Provide Key 1
+ description: Provide the first key to unlock the locker
+ operationId: setKey1
+ requestBody:
+ description: Provide key 1 to unlock the locker
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Key"
+ required: true
+ responses:
+ "200":
+ description: Key 1 provided
+ content:
+ text/plain:
+ schema:
+ $ref: "#/components/schemas/Key1Set"
+ /custodian/key2:
+ post:
+ tags:
+ - Key Custodian
+ summary: Provide Key 2
+ description: Provide the first key to unlock the locker
+ operationId: setKey2
+ requestBody:
+ description: Provide key 2 to unlock the locker
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/Key"
+ required: true
+ responses:
+ "200":
+ description: Key 2 provided
+ content:
+ text/plain:
+ schema:
+ $ref: "#/components/schemas/Key2Set"
+ /custodian/decrypt:
+ post:
+ tags:
+ - Key Custodian
+ summary: Unlock the locker
+ description: Unlock the locker with the key1 and key2 provided
+ responses:
+ "200":
+ description: Successfully Unlocked
+ content:
+ text/plain:
+ schema:
+ $ref: "#/components/schemas/Decrypt200"
+ /health:
+ get:
+ summary: Get Health
+ description: To check whether the application is up
+ responses:
+ "200":
+ description: Health is good
+ content:
+ text/plain:
+ schema:
+ $ref: "#/components/schemas/Health"
+ /data/add:
+ post:
+ tags:
+ - Cards
+ - Data
+ summary: Add Data in Locker
+ description: Add sensitive data in the locker
+ requestBody:
+ description: The request body might be JWE + JWS encrypted when using middleware
+ content:
+ application/json:
+ schema:
+ oneOf:
+ - $ref: "#/components/schemas/StoreDataReq"
+ - $ref: "#/components/schemas/JWEReq"
+ required: true
+ responses:
+ "200":
+ description: Store Data Response
+ content:
+ application/json:
+ schema:
+ oneOf:
+ - $ref: "#/components/schemas/StoreDataRes"
+ - $ref: "#/components/schemas/JWERes"
+ /data/delete:
+ post:
+ tags:
+ - Cards
+ - Data
+ summary: Delete Data from Locker
+ description: Delete sensitive data from the locker
+ requestBody:
+ description: The request body might be JWE + JWS encrypted when using middleware
+ content:
+ application/json:
+ schema:
+ oneOf:
+ - $ref: "#/components/schemas/DeleteDataReq"
+ - $ref: "#/components/schemas/JWEReq"
+ required: true
+ responses:
+ "200":
+ description: Delete Data Response
+ content:
+ application/json:
+ schema:
+ oneOf:
+ - $ref: "#/components/schemas/DeleteDataRes"
+ - $ref: "#/components/schemas/JWERes"
+ /data/retrieve:
+ post:
+ tags:
+ - Cards
+ - Data
+ summary: Retrieve Data from Locker
+ description: Retrieve sensitive data from the locker
+ requestBody:
+ description: The request body might be JWE + JWS encrypted when using middleware
+ content:
+ application/json:
+ schema:
+ oneOf:
+ - $ref: "#/components/schemas/RetrieveDataReq"
+ - $ref: "#/components/schemas/JWEReq"
+ required: true
+ responses:
+ "200":
+ description: Retrieve Data Response
+ content:
+ application/json:
+ schema:
+ oneOf:
+ - $ref: "#/components/schemas/RetrieveDataRes"
+ - $ref: "#/components/schemas/JWERes"
+ /data/fingerprint:
+ post:
+ tags:
+ - Cards
+ - Data
+ summary: Get or insert the card fingerprint
+ description: Get or insert the card fingerprint
+ requestBody:
+ description: Provide card number and hash key
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/FingerprintReq"
+ required: true
+ responses:
+ "200":
+ description: Fingerprint Response
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/FingerprintRes"
+components:
+ schemas:
+ Key:
+ type: object
+ properties:
+ key:
+ type: string
+ example: 801bb63c1bd51820acbc8ac20c674675
+ required:
+ - key
+ StoreDataReq:
+ title: StoreDataReq
+ type: object
+ properties:
+ merchant_id:
+ type: string
+ example: m0100
+ merchant_customer_id:
+ type: string
+ example: HsCustomer1
+ requester_card_reference:
+ type: string
+ example: 3ffdf1e5-7f38-4f26-936f-c66a6f4296fa
+ card:
+ $ref: "#/components/schemas/Card"
+ enc_card_data:
+ type: string
+ example: "qwe4tyusdfg"
+ RetrieveDataReq:
+ title: RetrieveDataReq
+ type: object
+ properties:
+ merchant_id:
+ type: string
+ example: m0100
+ merchant_customer_id:
+ type: string
+ example: HsCustomer1
+ card_reference:
+ type: string
+ example: 3ffdf1e5-7f38-4f26-936f-c66a6f4296fa
+ DeleteDataReq:
+ title: DeleteDataReq
+ type: object
+ properties:
+ merchant_id:
+ type: string
+ example: m0100
+ merchant_customer_id:
+ type: string
+ example: HsCustomer1
+ card_reference:
+ type: string
+ example: 3ffdf1e5-7f38-4f26-936f-c66a6f4296fa
+ FingerprintReq:
+ type: object
+ properties:
+ card:
+ $ref: "#/components/schemas/FingerprintCardData"
+ hash_key:
+ type: string
+ example: Hash1
+ JWEReq:
+ title: JWEReq
+ type: object
+ properties:
+ header:
+ type: string
+ iv:
+ type: string
+ encrypted_payload:
+ type: string
+ tag:
+ type: string
+ encrypted_key:
+ type: string
+ RetrieveRes:
+ title: RetrieveRes
+ oneOf:
+ - type: object
+ properties:
+ card:
+ $ref: "#/components/schemas/Card"
+ - type: object
+ properties:
+ enc_card_data:
+ type: string
+ Card:
+ title: Card
+ type: object
+ required:
+ - card_number
+ properties:
+ card_number:
+ type: string
+ name_on_card:
+ type: string
+ card_exp_month:
+ type: string
+ card_exp_year:
+ type: string
+ card_brand:
+ type: string
+ card_isin:
+ type: string
+ nick_name:
+ type: string
+ FingerprintCardData:
+ type: object
+ properties:
+ card_number:
+ type: string
+ example: 4242424242424242
+ Key1Set:
+ title: Key1Set
+ type: string
+ # summary: Response after setting key1
+ description: Received Key1
+ example: Received Key1
+ Key2Set:
+ title: Key2Set
+ type: string
+ # description: Response after setting key2
+ description: Received Key2
+ example: Received Key2
+ Decrypt200:
+ title: Decrypt200
+ type: string
+ # description: Response if the locker key custodian decryption was successful
+ description: Decryption successful
+ example: Decryption successful
+ Health:
+ title: Health
+ type: string
+ # description: Response when the health is good
+ description: health is good
+ example: health is good
+ StoreDataRes:
+ title: StoreDataRes
+ type: object
+ description: Response received if the data was stored successfully
+ properties:
+ status:
+ type: string
+ enum: [Ok]
+ payload:
+ type: object
+ properties:
+ card_reference:
+ type: string
+ RetrieveDataRes:
+ title: RetrieveDataRes
+ type: object
+ description: Response received with the sensitive data, associated to the card reference
+ properties:
+ status:
+ type: string
+ enum: [Ok]
+ payload:
+ $ref: "#/components/schemas/RetrieveRes"
+ DeleteDataRes:
+ title: DeleteDataRes
+ type: object
+ description: Response received if the data deletion was successful
+ properties:
+ status:
+ type: string
+ enum: [Ok]
+ FingerprintRes:
+ type: object
+ description: Response received if the fingerprint insertion or retrieval was successful
+ properties:
+ status:
+ type: string
+ enum: [Ok]
+ payload:
+ type: object
+ properties:
+ fingerprint:
+ type: string
+ JWERes:
+ title: JWERes
+ type: object
+ description: JWE encrypted response equivalent
+ properties:
+ header:
+ type: string
+ iv:
+ type: string
+ encrypted_payload:
+ type: string
+ tag:
+ type: string
+ encrypted_key:
+ type: string
\ No newline at end of file
diff --git a/crates/openapi/src/main.rs b/crates/openapi/src/main.rs
index 88bcb8896b..e626b4fad9 100644
--- a/crates/openapi/src/main.rs
+++ b/crates/openapi/src/main.rs
@@ -2,7 +2,7 @@ mod openapi;
mod routes;
fn main() {
- let file_path = "openapi/openapi_spec.json";
+ let file_path = "api-reference/openapi_spec.json";
#[allow(clippy::expect_used)]
std::fs::write(
file_path,
diff --git a/openapi/README.md b/openapi/README.md
deleted file mode 100644
index 034be0cbe6..0000000000
--- a/openapi/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-## OpenAPI Specifications
-
-[open_api_spec.yaml](./open_api_spec.yaml) contains the [OpenAPI](https://github.com/OAI/OpenAPI-Specification) specification for this project.
\ No newline at end of file
diff --git a/openapi/open_api_spec.yaml b/openapi/open_api_spec.yaml
deleted file mode 100644
index 8b7b4fd2b6..0000000000
--- a/openapi/open_api_spec.yaml
+++ /dev/null
@@ -1,4620 +0,0 @@
-openapi: "3.0.1"
-info:
- version: "0.2"
- title: Juspay Router - API Documentation
- x-logo:
- url: "https://fresheropenings.com/wp-content/uploads/2019/09/Juspay-off-campus-drive-2019.png"
- altText: "Juspay logo"
- contact:
- name: Juspay Support
- url: "https://juspay.io"
- termsOfService: "https://www.juspay.io/terms"
- description: >
- ## Get started
-
- Juspay Router provides a collection of APIs that enable you to process and manage payments. Our APIs accept and return JSON in the HTTP body, and return standard HTTP response codes</a>.
-
- You can consume the APIs directly using your favorite HTTP/REST library.
-
- We have a testing environment referred to "sandbox", which you can setup to test API calls without affecting production data.
-
- ### Base URLs
-
- Use the following base URLs when making requests to the APIs:
-
- | Environment | Base URL |
- |---------------|------------------------------------------------------|
- | Sandbox | <https://sandbox.hyperswitch.io> |
- | Production | <https://router.juspay.io> |
-
- # Authentication
-
- When you sign up on our [dashboard](https://app.hyperswitch.io) and create a merchant account, you are given a secret key (also referred as api-key). You may authenticate all API requests with Juspay server by providing the appropriate key in the request Authorization header.
-
- Never share your secret api keys. Keep them guarded and secure.
-
-servers:
- - url: https://sandbox.hyperswitch.io
- description: Sandbox Environment
- - url: https://router.juspay.io
- description: Production Environment
-tags:
- - name: QuickStart
- description: Quickly get started with our API suite.
- - name: Payments
- description: Process and manage payments across wide range of payment processors using the Unified Payments API.
- - name: Customers
- description: Create a Customer entity which you can use to store and retrieve specific customers' data and payment methods.
- # TODO: Add descriptions for each of these tags
- - name: PaymentMethods
- - name: Refunds
- - name: Mandates
- - name: MerchantAccounts
- - name: PaymentConnectors
-x-tagGroups:
- - name: Quick Start
- tags:
- - QuickStart
- - name: Payments
- tags:
- - Payments
- - name: Customers
- tags:
- - Customers
- - name: Payment Methods
- tags:
- - PaymentMethods
- - name: Refunds
- tags:
- - Refunds
- - name: Mandates
- tags:
- - Mandates
- - name: Merchant Accounts
- tags:
- - MerchantAccounts
- - name: Payment Connectors
- tags:
- - PaymentConnectors
-
-security:
- - ApiSecretKey: []
-
-paths:
- /accounts:
- post:
- tags:
- - MerchantAccounts
- - QuickStart
- summary: Merchant Account - Create
- operationId: createMerchantAccount
- description: "Create a new account for a merchant. The merchant could be a seller or retailer or client who likes to receive and send payments."
- security:
- - AdminSecretKey: []
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MerchantAccountCreateRequest"
- responses:
- "200":
- description: Merchant Account Created
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MerchantAccountResponse"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "merchant_name can't be empty or null"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /accounts/{id}:
- get:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: The unique identifier for the merchant account
- tags:
- - MerchantAccounts
- summary: Merchant Account - Retrieve
- operationId: retrieveMerchantAccount
- description: Retrieve a merchant account details.
- security:
- - AdminSecretKey: []
- responses:
- "200":
- description: Merchant Account retrieved successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MerchantAccountResponse"
- "404":
- description: Merchant Account does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "merchant_account_not_found"
- message: "Merchant Account does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: The unique identifier for the merchant account
- tags:
- - MerchantAccounts
- summary: Merchant Account - Update
- operationId: updateMerchantAccount
- description: "To update an existing merchant account. Helpful in updating merchant details such as email, contact details, or other configuration details like webhook, routing algorithm etc"
- security:
- - AdminSecretKey: []
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MerchantAccountUpdateRequest"
- responses:
- "200":
- description: Merchant Account Updated
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MerchantAccountResponse"
- "404":
- description: Merchant Account does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "merchant_account_not_found"
- message: "Merchant Account does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "Update Field can't be empty"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- delete:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: The unique identifier for the merchant account
- tags:
- - MerchantAccounts
- summary: Merchant Account - Delete
- operationId: deleteMerchantAccount
- description: Delete a Merchant Account
- security:
- - AdminSecretKey: []
- responses:
- "200":
- description: Merchant Account deleted successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MerchantAccountDeleteResponse"
- "404":
- description: Merchant Account does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "merchant_account_not_found"
- message: "Merchant Account does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /customers/{customer_id}/mandates:
- get:
- parameters:
- - in: path
- name: customer_id
- schema:
- type: string
- required: true
- description: Unique customer id for which the list of mandates to be retrieved.
- tags:
- - Mandates
- summary: Mandate - List all mandates against a customer id
- operationId: listMandateDetails
- description: "To list the all the mandates for a customer"
- responses:
- "200":
- description: Customer's mandates retrieved successfully
- content:
- application/json:
- schema:
- type: array
- items:
- type: object
- $ref: "#/components/schemas/MandateListResponse"
- "404":
- description: Payment does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_not_found"
- message: "Payment does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "Amount shall be passed as: <expected_data_type>"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /customers/{customer_id}/payment_methods:
- get:
- parameters:
- # - in: path
- # name: customer_id
- # schema:
- # type: string
- # required: true
- # description: The unique ID for the Customer.
- - in: query
- name: accepted_country
- schema:
- type: array
- items:
- type: string
- description: |
- The two-letter ISO currency code
- example: ["US", "UK", "IN"]
- maxLength: 2
- minLength: 2
- - in: query
- name: accepted_currency
- schema:
- type: array
- items:
- type: string
- description: |
- The three-letter ISO currency code
- example: ["USD", "EUR"]
- - in: query
- name: minimum_amount
- schema:
- type: integer
- description: |
- The minimum amount accepted for processing by the particular payment method.
- example: 100
- - in: query
- name: maximum_amount
- schema:
- type: integer
- description: |
- The minimum amount accepted for processing by the particular payment method.
- example: 10000000
- - in: query
- name: recurring_payment_enabled
- schema:
- type: boolean
- description: Indicates whether the payment method is eligible for recurring payments
- example: true
- - in: query
- name: installment_payment_enabled
- schema:
- type: boolean
- description: Indicates whether the payment method is eligible for installment payments
- example: true
- security:
- - ApiSecretKey: []
- tags:
- - PaymentMethods
- summary: List payment methods for a Customer
- operationId: listPaymentMethodsByCustomerId
- description: "To filter and list the applicable payment methods for a particular Customer ID"
- responses:
- "200":
- description: Payment Methods retrieved
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CustomerPaymentMethods"
- "404":
- description: Payment Methods does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_method_not_found"
- message: "Payment Methods does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "accepted_currency shall be passed as: <expected_data_type>"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /mandates/{id}:
- get:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: Unique mandate id
- tags:
- - Mandates
- summary: Mandate - List details of a mandate
- operationId: listMandateDetails
- description: "To list the details of a mandate"
- # requestBody:
- # content:
- # application/json:
- # schema:
- # $ref: "#/components/schemas/MandateListResponse"
- responses:
- "200":
- description: Mandate retrieved successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/MandateListResponse"
- "404":
- description: Mandate does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_not_found"
- message: "Payment does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /mandates/{id}/revoke:
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: Unique mandate id
- tags:
- - Mandates
- summary: Mandate - Revoke a mandate
- operationId: revokeMandateDetails
- description: "To revoke a mandate registered against a customer"
- # requestBody:
- # content:
- # application/json:
- # schema:
- # type: object
- # properties:
- # command:
- # type: string
- # description: The command for revoking a mandate.
- # example: "revoke"
- responses:
- "200":
- description: Mandate Revoked
- content:
- application/json:
- schema:
- type: object
- properties:
- mandate_id:
- type: string
- description: |
- The unique id corresponding to the mandate.
- example: "mandate_end38934n12s923d0"
- status:
- type: string
- description: The status of the mandate.
- example: "revoked"
- "404":
- description: Mandate does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_not_found"
- message: "Payment does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "command shall be passed as: <expected_data_type>"
- # "400":
- # description: Invalid parameter
- # content:
- # application/json:
- # schema:
- # $ref: "#/components/responses/BadRequestError"
- # example:
- # error:
- # type: "invalid_request_error"
- # code: "invalid_parameter"
- # message: "The return_url cannot be passed unless confirm is set to true"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
-
- /account/{account_id}/connectors:
- post:
- parameters:
- - in: path
- name: account_id
- schema:
- type: string
- required: true
- description: The unique identifier for the merchant account
- tags:
- - PaymentConnectors
- - QuickStart
- summary: Payment Connector - Create
- operationId: createPaymentConnector
- description: "Create a new Payment Connector for the merchant account. The connector could be a payment processor / facilitator / acquirer or specialized services like Fraud / Accounting etc."
- security:
- - AdminSecretKey: []
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentConnectorCreateRequest"
- responses:
- "200":
- description: Payment Connector Created
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentConnectorResponse"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "connector_name can't be empty or null"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /account/{account_id}/connectors/{connector_id}:
- get:
- parameters:
- - in: path
- name: account_id
- schema:
- type: string
- required: true
- description: The unique identifier for the merchant account
- - in: path
- name: connector_id
- schema:
- type: string
- required: true
- description: The unique identifier for the payment connector
- tags:
- - PaymentConnectors
- summary: Payment Connector - Retrieve
- operationId: retrievePaymentConnector
- description: Retrieve Payment Connector details.
- security:
- - AdminSecretKey: []
- responses:
- "200":
- description: Payment Connector retrieved successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentConnectorResponse"
- "404":
- description: Payment Connector does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_connector_not_found"
- message: "Payment Connector does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- post:
- parameters:
- - in: path
- name: id1
- schema:
- type: string
- required: true
- description: The unique identifier for the merchant account
- - in: path
- name: id2
- schema:
- type: string
- required: true
- description: The unique identifier for the payment connector
- tags:
- - PaymentConnectors
- summary: Payment Connector - Update
- operationId: updatePaymentConnector
- description: "To update an existing Payment Connector. Helpful in enabling / disabling different payment methods and other settings for the connector etc"
- security:
- - AdminSecretKey: []
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentConnectorUpdateRequest"
- responses:
- "200":
- description: Payment Connector Updated
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentConnectorResponse"
- "404":
- description: Payment Connector does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_connector_not_found"
- message: "Payment Connector does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "Update Field can't be empty"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- delete:
- parameters:
- - in: path
- name: id1
- schema:
- type: string
- required: true
- description: The unique identifier for the merchant account
- - in: path
- name: id2
- schema:
- type: string
- required: true
- description: The unique identifier for the payment connector
- tags:
- - PaymentConnectors
- summary: Payment Connector - Delete
- operationId: deletePaymentConnector
- description: Delete or Detach a Payment Connector from Merchant Account
- security:
- - AdminSecretKey: []
- responses:
- "200":
- description: Payment Connector detached successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentConnectorDeleteResponse"
- "404":
- description: Payment Connector does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_connector_not_found"
- message: "Payment Connector does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
-
- /customers:
- post:
- tags:
- - Customers
- summary: Create Customer
- operationId: createCustomer
- description: Create a customer object and store the customer details to be reused for future payments. Incase the customer already exists in the system, this API will respond with the customer details.
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CustomerCreateRequest"
- example:
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "First customer"
- address:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- responses:
- "200":
- description: Customer created successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CustomerCreateResponse"
- example:
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "First customer"
- address:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- "401":
- description: Bad request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
-
- /customers/{id}:
- get:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique customer id
- tags:
- - Customers
- summary: Retrieve Customer
- operationId: retrieveCustomer
- description: Retrieve a customer's details.
- responses:
- "200":
- description: Customer retrieved successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CustomerCreateResponse"
- example:
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "First customer"
- address:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- "404":
- description: Customer does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "customer_not_found"
- message: "Customer does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique customer id
- tags:
- - Customers
- summary: Update Customer
- operationId: updateCustomer
- description: Updates the customer's details in a customer object.
- requestBody:
- required: true
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CustomerUpdateRequest"
- responses:
- "200":
- description: Customer created successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CustomerCreateResponse"
- "404":
- description: Customer does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "customer_not_found"
- message: "Customer does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- delete:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique customer id
- tags:
- - Customers
- summary: Delete Customer
- operationId: deleteCustomer
- description: Delete a customer record.
- responses:
- "200":
- description: Customer deleted successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/CustomerDeleteResponse"
- "404":
- description: Customer does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "customer_not_found"
- message: "Customer does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /payments:
- post:
- tags:
- - Payments
- - QuickStart
- summary: Payments - Create
- operationId: createPayment
- description: "To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture"
- requestBody:
- content:
- application/json:
- schema:
- oneOf:
- - $ref: "#/components/schemas/PaymentsCreateRequest"
- responses:
- "200":
- description: Payment created
- content:
- application/json:
- schema:
- oneOf:
- - $ref: "#/components/schemas/PaymentsCreateResponse"
- "400":
- description: Missing Mandatory fields
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "parameter_missing"
- message: "Missing required param: <parameter_name>"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
-
- /payments/{id}:
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique payment id
- tags:
- - Payments
- summary: Payments - Update
- operationId: updatePayment
- description: "To update the properties of a PaymentIntent object. This may include attaching a payment method, or attaching customer object or metadata fields after the Payment is created "
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsUpdateRequest"
- example:
- amount: 6540
- currency: "USD"
- capture_method: "automatic"
- capture_on: "2022-09-10T10:11:12Z"
- amount_to_capture: 6540
- amount_capturable: 6540
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "Its my first payment request"
- setup_future_usage: "optional"
- authentication_type: "no_three_ds"
- payment_method: "card"
- save_payment_method: true
- payment_method_data:
- card:
- card_number: "4242424242424242"
- card_exp_month: "10"
- card_exp_year: "35"
- card_holder_name: "John Doe"
- card_cvc: "123"
- statement_descriptor_name: "Juspay"
- statement_descriptor_suffix: "Router"
- shipping:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- billing:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- responses:
- "200":
- description: Payment updated
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsCreateResponse"
- example:
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- amount: 6540
- currency: "USD"
- status: "requires_customer_action"
- merchant_id: "juspay_merchant"
- capture_method: "automatic"
- capture_on: "2022-09-10T10:11:12Z"
- amount_to_capture: 6540
- amount_capturable: 6540
- amount_received: 0
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "Its my first payment request"
- return_url: "http://example.com/payments"
- setup_future_usage: "optional"
- authentication_type: "no_three_ds"
- shipping:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- billing:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- next_action:
- type: "redirect_to_url"
- redirect_to_url: "https://pg-redirect-page.com"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- "404":
- description: Payment does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_not_found"
- message: "Payment does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "Amount shall be passed as: <expected_data_type>"
-
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- get:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique payment id
- tags:
- - Payments
- - QuickStart
- summary: Payments - Retrieve
- operationId: retrievePayment
- description: "To retrieve the properties of a Payment. This may be used to get the status of a previously initiated payment or next action for an ongoing payment"
- responses:
- "200":
- description: Payment retrieved successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsCreateResponse"
- example:
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- amount: 6540
- currency: "USD"
- status: "requires_customer_action"
- merchant_id: "juspay_merchant"
- capture_method: "automatic"
- capture_on: "2022-09-10T10:11:12Z"
- amount_to_capture: 6540
- amount_capturable: 6540
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "Its my first payment request"
- return_url: "http://example.com/payments"
- setup_future_usage: "optional"
- authentication_type: "no_three_ds"
- shipping:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- billing:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- next_action:
- type: "redirect_to_url"
- redirect_to_url: "https://pg-redirect-page.com"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- "404":
- description: Payment does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_not_found"
- message: "Payment does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /payments/{id}/capture:
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique payment id
- tags:
- - Payments
- summary: Payments - Capture
- operationId: capturePayment
- description: "To capture the funds for an uncaptured payment"
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsCaptureRequest"
- example:
- amount_to_capture: 6540
- statement_descriptor_name: "Juspay"
- statement_descriptor_suffix: "Router"
- responses:
- "200":
- description: Payment captured
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsCreateResponse"
- example:
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- amount: 6540
- currency: "USD"
- status: "succeeded"
- merchant_id: "juspay_merchant"
- capture_method: "automatic"
- capture_on: "2022-09-10T10:11:12Z"
- amount_to_capture: 6540
- amount_capturable: 0
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "Its my first payment request"
- return_url: "http://example.com/payments"
- setup_future_usage: "optional"
- authentication_type: "no_three_ds"
- shipping:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- billing:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- next_action: null
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- "404":
- description: Payment does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_not_found"
- message: "Payment does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "Amount shall be passed as: <expected_data_type>"
-
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /payments/{id}/confirm:
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique payment id
- tags:
- - Payments
- summary: Payments - Confirm
- operationId: confirmPayment
- description: "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsConfirmRequest"
- example:
- return_url: "http://example.com/payments"
- setup_future_usage: "optional"
- authentication_type: "no_three_ds"
- payment_method: "card"
- save_payment_method: true
- payment_method_data:
- card:
- card_number: "4242424242424242"
- card_exp_month: "10"
- card_exp_year: "35"
- card_holder_name: "John Doe"
- card_cvc: "123"
- shipping:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- billing:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- responses:
- "200":
- description: Payment confirmed
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsCreateResponse"
- example:
- amount: 6540
- currency: "USD"
- confirm: true
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- merchant_id: "juspay_merchant"
- capture_method: "automatic"
- capture_on: "2022-09-10T10:11:12Z"
- amount_to_capture: 6540
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "Its my first payment request"
- return_url: "http://example.com/payments"
- setup_future_usage: "optional"
- authentication_type: "no_three_ds"
- payment_method: "card"
- save_payment_method: true
- payment_method_data:
- card:
- card_number: "4242424242424242"
- card_exp_month: "10"
- card_exp_year: "35"
- card_holder_name: "John Doe"
- card_cvc: "123"
- statement_descriptor_name: "Juspay"
- statement_descriptor_suffix: "Router"
- shipping:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- billing:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- "404":
- description: Payment does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_not_found"
- message: "Payment does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "cancellation_reason shall be passed as: <expected_data_type>"
-
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /payments/{id}/cancel:
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique payment id
- tags:
- - Payments
- summary: Payments - Cancel
- operationId: cancelPayment
- description: "A Payment could can be cancelled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_customer_action"
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsCancelRequest"
- example:
- cancellation_reason: "Payment attempt expired"
- responses:
- "200":
- description: Payment cancelled
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentsCreateResponse"
- example:
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- amount: 6540
- currency: "USD"
- cancellation_reason: "Payment attempt expired"
- status: "cancelled"
- merchant_id: "juspay_merchant"
- capture_method: "automatic"
- capture_on: "2022-09-10T10:11:12Z"
- amount_to_capture: 6540
- amount_capturable: 0
- customer_id: "cus_udst2tfldj6upmye2reztkmm4i"
- name: "John Doe"
- phone: "999999999"
- phone_country_code: "+65"
- description: "Its my first payment request"
- return_url: "http://example.com/payments"
- setup_future_usage: "optional"
- authentication_type: "no_three_ds"
- shipping:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- billing:
- city: "Bangalore"
- country: "IN"
- line1: "Juspay router"
- line2: "Koramangala"
- line3: "Stallion"
- state: "Karnataka"
- zip: "560095"
- first_name: "John"
- last_name: "Doe"
- next_action: null
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- "404":
- description: Payment does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_not_found"
- message: "Payment does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "cancellation_reason shall be passed as: <expected_data_type>"
-
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /refunds:
- post:
- tags:
- - Refunds
- - QuickStart
- summary: Refunds - Create
- operationId: createRefunds
- description: "To create a refund against an already processed payment"
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/RefundsCreateRequest"
- example:
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- refund_id: "a8537066-2569-4ac4-a7d3-87453387b09b"
- amount: 100
- currency: "USD"
- reason: "Customer returned product"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- responses:
- "200":
- description: Refund created
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/RefundsObject"
- example:
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- refund_id: "a8537066-2569-4ac4-a7d3-87453387b09b"
- amount: 100
- status: "pending"
- currency: "USD"
- reason: "Customer returned product"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- created_at: "2022-09-10T10:11:12Z"
- "400":
- description: Missing Mandatory fields
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "parameter_missing"
- message: "Missing required param: <parameter_name>"
-
- /refunds/{id}:
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique refund id
- tags:
- - Refunds
- summary: Refunds - Update
- operationId: updateRefund
- description: "To update the properties of a Refund object. This may include attaching a reason for the refund or metadata fields"
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/RefundsUpdateRequest"
- example:
- reason: "Customer returned product"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- responses:
- "200":
- description: Refund updated
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/RefundsObject"
- example:
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- refund_id: "a8537066-2569-4ac4-a7d3-87453387b09b"
- amount: 100
- status: "pending"
- currency: "USD"
- reason: "Customer returned product"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- created_at: "2022-09-10T10:11:12Z"
- "404":
- description: Refund does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "refund_not_found"
- message: "Refund does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "Amount shall be passed as: <expected_data_type>"
-
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- get:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: unique refund id
- tags:
- - Refunds
- - QuickStart
- summary: Refunds - Retrieve
- operationId: retrieveRefund
- description: "To retrieve the properties of a Refund. This may be used to get the status of a previously initiated payment or next action for an ongoing payment"
- responses:
- "200":
- description: Refund retrieved successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/RefundsObject"
- example:
- payment_id: "pay_mbabizu24mvu3mela5njyhpit4"
- refund_id: "a8537066-2569-4ac4-a7d3-87453387b09b"
- amount: 100
- status: "pending"
- currency: "USD"
- reason: "Customer returned product"
- metadata:
- udf1: "value1"
- new_customer: "true"
- login_date: "2019-09-10T10:11:12Z"
- created_at: "2022-09-10T10:11:12Z"
- "404":
- description: Refund does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "refund_not_found"
- message: "Refund does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
-
- /payment_methods:
- post:
- tags:
- - PaymentMethods
- summary: PaymentMethods - Create
- operationId: createPaymentMethodForCustomer
- description: "To create a payment method against a customer object. In case of cards, this API could be used only by PCI compliant merchants"
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentMethodsCreateRequest"
- responses:
- "200":
- description: Payment Method Created
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentMethodsResponseObject"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "accepted_country shall be passed as: <expected_data_type>"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /payment_methods/{id}:
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: The unique identifier for the payment method
- tags:
- - PaymentMethods
- summary: PaymentMethods - Update
- operationId: updatePaymentMethodForCustomer
- description: "To update an existing a payment method attached to a customer object. This API is useful for use cases such as updating the card number for expired cards, to prevent discontinuity in recurring payments"
- requestBody:
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentMethodsUpdateRequest"
- responses:
- "200":
- description: Payment Method Updated
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentMethodsResponseObject"
- "404":
- description: Payment Method does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_method_not_found"
- message: "Payment Method does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "accepted_country shall be passed as: <expected_data_type>"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /payment_methods/{id}/detach:
- post:
- parameters:
- - in: path
- name: id
- schema:
- type: string
- required: true
- description: The unique identifier for the payment method
- tags:
- - PaymentMethods
- summary: Delete PaymentMethods
- operationId: deletePaymentMethods
- description: Detaches a PaymentMethod object from a Customer.
- responses:
- "200":
- description: Payment Method detached successfully
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/PaymentMethodDeleteResponse"
- "404":
- description: Payment Method does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_method_not_found"
- message: "Payment Method does not exist in records"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
- /payment_methods/{merchant_id}:
- get:
- parameters:
- - in: query
- name: accepted_country
- schema:
- type: array
- items:
- type: string
- description: |
- The two-letter ISO currency code
- example: [US, UK, IN]
- maxLength: 2
- minLength: 2
- - in: query
- name: accepted_currency
- schema:
- type: array
- items:
- type: string
- description: |
- The three-letter ISO currency code
- example: [USD, EUR]
- - in: query
- name: minimum_amount
- schema:
- type: integer
- description: The minimum amount accepted for processing by the particular payment method.
- example: 100
- - in: query
- name: maximum_amount
- schema:
- type: integer
- description: The minimum amount accepted for processing by the particular payment method.
- example: 10000000
- - in: query
- name: recurring_payment_enabled
- schema:
- type: boolean
- description: Indicates whether the payment method is eligible for recurring payments
- example: true
- - in: query
- name: installment_payment_enabled
- schema:
- type: boolean
- description: Indicates whether the payment method is eligible for installment payments
- example: true
- tags:
- - PaymentMethods
- summary: List payment methods for a Merchant
- operationId: listPaymentMethodsByMerchantId
- description: "To filter and list the applicable payment methods for a particular merchant id."
- responses:
- "200":
- description: Payment Methods retrieved
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/ArrayOfMerchantPaymentMethods"
- "404":
- description: Payment Methods does not exist in records
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "object_not_found"
- code: "payment_method_not_found"
- message: "Payment Methods does not exist in records"
- "400":
- description: Invalid data
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_data"
- message: "accepted_currency shall be passed as: <expected_data_type>"
- "401":
- description: Unauthorized request
- content:
- application/json:
- schema:
- $ref: "#/components/schemas/Error"
- example:
- error:
- type: "invalid_request_error"
- code: "invalid_api_authentication"
- message: "Access forbidden, invalid api-key was used"
-
-components:
- schemas:
- ArrayOfMerchantPaymentMethods:
- type: array
- items:
- properties:
- payment_method:
- type: string
- $ref: "#/components/schemas/PaymentMethod"
- example: card
- payment_method_types:
- type: array
- items:
- $ref: "#/components/schemas/PaymentMethodType"
- example: [CREDIT]
- payment_method_issuers:
- type: array
- description: List of payment method issuers to be enabled for this payment method
- items:
- type: string
- example: [CHASE, WELLS_FARGO]
- payment_method_issuer_codes:
- type: string
- description: |
- A standard code representing the issuer of payment method
- example: [PM_CHASE, PM_WELLS]
- payment_schemes:
- type: array
- description: List of payment schemes accepted or has the processing capabilities of the processor
- items:
- $ref: "#/components/schemas/PaymentSchemes"
- example: [MASTER, VISA, DINERS]
- accepted_currencies:
- type: array
- description: List of currencies accepted or has the processing capabilities of the processor
- items:
- $ref: "#/components/schemas/CurrencyISO"
- example: [USD, EUR, AED]
- accepted_countries:
- type: array
- description: List of Countries accepted or has the processing capabilities of the processor
- items:
- $ref: "#/components/schemas/CountryISO"
- example: [US, IN]
- minimum_amount:
- type: integer
- description: Minimum amount supported by the processor. To be represented in the lowest denomination of the target currency (For example, for USD it should be in cents)
- example: 1
- maximum_amount:
- type: integer
- description: Maximum amount supported by the processor. To be represented in the lowest denomination of the target currency (For example, for USD it should be in cents)
- example: null
- recurring_enabled:
- type: boolean
- description: Boolean to enable recurring payments / mandates. Default is true.
- example: true
- installment_payment_enabled:
- type: boolean
- description: Boolean to enable installment / EMI / BNPL payments. Default is true.
- example: true
- payment_experience:
- type: array
- description: Type of payment experience enabled with the connector
- items:
- $ref: "#/components/schemas/NextAction"
- example: ["redirect_to_url"]
- # payment_method:
- # type: string
- # description: |
- # The type of payment method use for the payment.
- # enum:
- # - card
- # - payment_container
- # - bank_transfer
- # - bank_debit
- # - pay_later
- # - upi
- # - netbanking
- # example: card
- # payment_method_type:
- # type: string
- # description: |
- # This is a sub-category of payment method.
- # enum:
- # - credit_card
- # - debit_card
- # - upi_intent
- # - upi_collect
- # - credit_card_installments
- # - pay_later_installments
- # example: credit_card
- # payment_method_issuer:
- # type: string
- # description: |
- # The name of the bank/ provider issuing the payment method to the end user
- # example: Citibank
- # payment_method_issuer_code:
- # type: string
- # description: |
- # A standard code representing the issuer of payment method
- # example: PM_CHASE
- # accepted_country:
- # type: array
- # items:
- # type: string
- # description: |
- # The two-letter ISO currency code
- # example: [US, UK, IN]
- # maxLength: 2
- # minLength: 2
- # accepted_currency:
- # type: array
- # items:
- # type: string
- # description: |
- # The three-letter ISO currency code
- # example: [USD, EUR]
- # minimum_amount:
- # type: integer
- # description: |
- # The minimum amount accepted for processing by the particular payment method.
- # example: 100
- # maximum_amount:
- # type: integer
- # description: |
- # The minimum amount accepted for processing by the particular payment method.
- # example: 10000000
- # recurring_payment_enabled:
- # type: boolean
- # description: Indicates whether the payment method is eligible for recurring payments
- # example: true
- # installment_payment_enabled:
- # type: boolean
- # description: Indicates whether the payment method is eligible for installment payments
- # example: true
- # payment_experience:
- # type: array
- # items:
- # type: string
- # description: "This indicates type of next_action (refer the response of Payment Create ) that is required in order to complete the payment with inputs from the user. This may involve actions such as redirecting the user to a URL, displaying a QR code, invoking the SDK client"
- # enum:
- # - redirect_to_url
- # - display_qr_code
- # - invoke_sdk_client
- # example: ["redirect_to_url", "display_qr_code"]
-
- CustomerPaymentMethods:
- type: object
- properties:
- enabled_payment_methods:
- type: array
- items:
- type: object
- $ref: "#/components/schemas/PaymentMethodsEnabled"
- customer_payment_methods:
- type: array
- items:
- type: object
- description: Refers to the Parent Merchant ID if the merchant being created is a sub-merchant
- $ref: "#/components/schemas/PaymentMethodsResponseObject"
-
- # ArrayOfCustomerPaymentMethods:
- # type: array
- # items:
- # type: object
- # properties:
- # payment_method_id:
- # type: string
- # description: |
- # The id corresponding to the payment method.
- # example: "pm_end38934n12s923d0"
- # payment_method:
- # type: string
- # description: |
- # The type of payment method use for the payment.
- # enum:
- # - card
- # - payment_container
- # - bank_transfer
- # - bank_debit
- # - pay_later
- # - upi
- # - netbanking
- # example: card
- # payment_method_type:
- # type: string
- # description: |
- # This is a sub-category of payment method.
- # enum:
- # - credit_card
- # - debit_card
- # - upi_intent
- # - upi_collect
- # - credit_card_installments
- # - pay_later_installments
- # example: credit_card
- # payment_method_issuer:
- # type: string
- # description: |
- # The name of the bank/ provider issuing the payment method to the end user
- # example: Citibank
- # payment_method_issuer_code:
- # type: string
- # description: |
- # A standard code representing the issuer of payment method
- # example: PM_CHASE
- # payment_scheme:
- # type: array
- # items:
- # type: string
- # description: |
- # The network scheme to which the payment method belongs
- # example: [MASTER, VISA]
- # accepted_country:
- # type: array
- # items:
- # type: string
- # description: |
- # The two-letter ISO currency code
- # example: [US, UK, IN]
- # maxLength: 2
- # minLength: 2
- # accepted_currency:
- # type: array
- # items:
- # type: string
- # description: |
- # The three-letter ISO currency code
- # example: [USD, EUR]
- # minimum_amount:
- # type: integer
- # description: |
- # The minimum amount accepted for processing by the particular payment method.
- # example: 100
- # maximum_amount:
- # type: integer
- # description: |
- # The minimum amount accepted for processing by the particular payment method.
- # example: 10000000
- # recurring_payment_enabled:
- # type: boolean
- # description: Indicates whether the payment method is eligible for recurring payments
- # example: true
- # installment_payment_enabled:
- # type: boolean
- # description: Indicates whether the payment method is eligible for installment payments
- # example: true
- # payment_experience:
- # type: array
- # items:
- # type: string
- # description: "This indicates type of next_action (refer the response of Payment Create ) that is required in order to complete the payment with inputs from the user. This may involve actions such as redirecting the user to a URL, displaying a QR code, invoking the SDK client"
- # enum:
- # - redirect_to_url
- # - display_qr_code
- # - invoke_sdk_client
- # example: ["redirect_to_url", "display_qr_code"]
- # card:
- # description: The card identifier information to be displayed on the user interface
- # $ref: "#/components/schemas/CardPaymentMethodResponse"
- # metadata:
- # type: object
- # description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- # maxLength: 255
- # example: { "city": "NY", "unit": "245" }
- Address:
- type: object
- properties:
- line1:
- type: string
- description: The first line of the address
- maxLength: 200
- example: Juspay Router
- line2:
- type: string
- description: The second line of the address
- maxLength: 200
- example: Koramangala
- line3:
- type: string
- description: The second line of the address
- maxLength: 200
- example: Stallion
- city:
- type: string
- description: The address city
- maxLength: 50
- example: Bangalore
- state:
- type: string
- description: The address state
- maxLength: 50
- example: Karnataka
- zip:
- type: string
- description: The address zip/postal code
- maxLength: 50
- example: "560095"
- country:
- type: string
- description: The two-letter ISO country code
- example: IN
- maxLength: 2
- minLength: 2
- CustomerCreateRequest:
- type: object
- description: The customer details
- properties:
- customer_id:
- type: string
- description: The identifier for the customer object. If not provided the customer ID will be autogenerated.
- maxLength: 255
- example: cus_y3oqhf46pyzuxjbcn2giaqnb44
- email:
- type: string
- format: email
- description: The customer's email address
- maxLength: 255
- name:
- type: string
- description: The customer's name
- maxLength: 255
- example: John Test
- phone_country_code:
- type: string
- description: The country code for the customer phone number
- maxLength: 255
- example: "+65"
- phone:
- type: string
- description: The customer's phone number
- maxLength: 255
- example: 9999999999
- description:
- type: string
- description: An arbitrary string that you can attach to a customer object.
- maxLength: 255
- example: First customer
- address:
- type: object
- description: The address for the customer
- $ref: "#/components/schemas/Address"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- CustomerUpdateRequest:
- type: object
- description: The customer details to be updated
- properties:
- email:
- type: string
- format: email
- description: The customer's email address
- maxLength: 255
- name:
- type: string
- description: The customer's name
- maxLength: 255
- example: John Test
- phone_country_code:
- type: string
- description: The country code for the customer phone number
- maxLength: 255
- example: "+65"
- phone:
- type: string
- description: The customer's phone number
- maxLength: 255
- example: 9999999999
- address:
- type: object
- description: The address for the customer
- $ref: "#/components/schemas/Address"
- description:
- type: string
- description: An arbitrary string that you can attach to a customer object.
- maxLength: 255
- example: First customer
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- CustomerCreateResponse:
- type: object
- description: Customer
- required:
- - customer_id
- properties:
- customer_id:
- type: string
- description: The identifier for the customer object. If not provided the customer ID will be autogenerated.
- maxLength: 255
- example: cus_y3oqhf46pyzuxjbcn2giaqnb44
- email:
- type: string
- format: email
- description: The customer's email address
- maxLength: 255
- name:
- type: string
- description: The customer's name
- maxLength: 255
- example: John Test
- phone_country_code:
- type: object
- description: The country code for the customer phone number
- maxLength: 255
- example: +65
- phone:
- type: object
- description: The customer's phone number
- maxLength: 255
- example: 9999999999
- address:
- type: object
- description: The address for the customer
- $ref: "#/components/schemas/Address"
- description:
- type: object
- description: An arbitrary string that you can attach to a customer object.
- maxLength: 255
- example: First customer
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- CustomerDeleteResponse:
- type: object
- description: Customer
- required:
- - customer_id
- - deleted
- properties:
- customer_id:
- type: string
- description: The identifier for the customer object. If not provided the customer ID will be autogenerated.
- maxLength: 255
- example: cus_y3oqhf46pyzuxjbcn2giaqnb44
- deleted:
- type: boolean
- description: Indicates the deletion status of the customer object.
- example: true
- UpdateCustomerRequest:
- type: object
- description: The customer attached to the instrument
- properties:
- email:
- description: The email address of the customer
- type: string
- name:
- description: The name of the customer
- type: string
- example: John Test
- default:
- description: The instrument ID for this customer’s default instrument
- type: string
- example: src_imu3wifxfvlebpqqq5usjrze6y
- phone:
- type: object
- description: The customer's phone number
- example: "9999999999"
- address:
- type: object
- description: The address for the customer
- $ref: "#/components/schemas/Address"
- metadata:
- type: object
- description: Allows you to store additional information about a customer. You can include a maximum of 10 key-value pairs. Each key and value can be up to 100 characters long.
- example:
- coupon_code: "NY2018"
- partner_id: 123989
- PaymentsCreateRequest:
- type: object
- required:
- - amount
- - currency
- properties:
- amount:
- type: integer
- description: |
- The payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- minimum: 100
- example: 6540
- currency:
- type: string
- description: |
- The three-letter ISO currency code
- example: USD
- maxLength: 3
- minLength: 3
- payment_id:
- type: string
- description: |
- Unique Identifier for the Payment. It is always recommended to provide this ID while creating a payment.
- If the identifiers in not provided in the Payment Request, this filed shall be auto generated and provide in the API response. It is suggested to keep the payment_id length as a maximum of 30 alphanumeric characters irrespective of payment methods and gateways.
- Sequential and only numeric characters are not recommended.
- maxLength: 30
- minLength: 30
- example: "pay_mbabizu24mvu3mela5njyhpit4"
- confirm:
- type: boolean
- description: Whether to confirm the payment (if applicable)
- default: false
- example: true
- capture_method:
- type: string
- description: "This is the instruction for capture/ debit the money from the users' card. On the other hand authorization refers to blocking the amount on the users' payment method. Capture request may happen in three types: (1) AUTOMATIC: Post the payment authorization, the capture will be executed on the full amount immediately, (2) MANUAL: The capture will happen only if the merchant triggers a Capture API request, (3) SCHEDULED: The capture can be scheduled to automatically get triggered at a specific date & time"
- enum:
- - automatic
- - manual
- - scheduled
- default: automatic
- example: automatic
- capture_on:
- description: |
- A timestamp (ISO 8601 code) that determines when the payment should be captured.
- Providing this field will automatically set `capture` to true
- allOf:
- - $ref: "#/components/schemas/Timestamp"
- amount_to_capture:
- type: integer
- description: |
- The Amount to be captured/ debited from the users payment method. It shall be in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- If not provided, the default amount_to_capture will be the payment amount.
- minimum: 100
- example: 6540
- customer_id:
- type: string
- description: The identifier for the customer object. If not provided the customer ID will be autogenerated.
- maxLength: 255
- example: cus_y3oqhf46pyzuxjbcn2giaqnb44
- description:
- type: string
- description: A description of the payment
- maxLength: 255
- example: "Its my first payment request"
- email:
- type: string
- format: email
- description: The customer's email address
- maxLength: 255
- name:
- type: string
- description: The customer's name
- maxLength: 255
- example: John Test
- phone:
- type: string
- description: The customer's phone number
- maxLength: 255
- example: 9999999999
- phone_country_code:
- type: string
- description: The country code for the customer phone number
- maxLength: 255
- example: "+65"
- return_url:
- type: string
- description: The URL to redirect after the completion of the operation
- maxLength: 255
- example: "https://juspay.io/"
- setup_future_usage:
- type: string
- description: "Indicates that you intend to make future payments with this Payment’s payment method. Providing this parameter will attach the payment method to the Customer, if present, after the Payment is confirmed and any required actions from the user are complete."
- enum:
- - on_session
- - off_session
- example: off_session
- off_session:
- type: boolean
- description: "Set to true to indicate that the customer is not in your checkout flow during this payment, and therefore is unable to authenticate. This parameter is intended for scenarios where you collect card details and charge them later. This parameter can only be used with confirm=true."
- example: true
- mandate_data:
- type: object
- description: This hash contains details about the Mandate to create. This parameter can only be used with confirm=true.
- properties:
- customer_acceptance:
- type: object
- description: Details about the customer’s acceptance.
- $ref: "#/components/schemas/CustomerAcceptance"
- mandate_id:
- type: string
- description: ID of the mandate to be used for this payment. This parameter can only be used with confirm = true. This parameter should be passed for Merchant Initiated Transaction scenarios where the user has already registered for a mandate and raw payment method details are not available.
- example: "mandate_iwer89rnjef349dni3"
- authentication_type:
- type: string
- description: "The transaction authentication can be set to undergo payer authentication. Possible values are: (i) THREE_DS: If the card is enrolled for 3DS authentication, the 3DS based authentication will be activated. The liability of chargeback shift to the issuer, (ii) NO_THREE_DS: 3DS based authentication will not be activated. The liability of chargeback stays with the merchant. By default, the authentication will be marked as NO_THREE_DS"
- enum:
- - three_ds
- - three_ds_2
- - no_three_ds
- default: no_three_ds
- example: no_three_ds
- payment_method:
- type: string
- description: "The payment method"
- enum:
- - card
- - bank_transfer
- - netbanking
- - upi
- - open_banking
- - consumer_finance
- - wallet
- example: card
- payment_method_data:
- type: object
- description: The payment method information
- properties:
- card:
- type: object
- description: payment card
- oneOf:
- - $ref: "#/components/schemas/CardData"
- # save_payment_method:
- # type: boolean
- # description: Enable this flag as true, if the user has consented for saving the payment method information
- # default: false
- # example: true
- billing:
- type: object
- description: The billing address for the payment
- $ref: "#/components/schemas/Address"
- shipping:
- type: object
- description: The shipping address for the payment
- $ref: "#/components/schemas/Address"
- statement_descriptor_name:
- type: string
- description: For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.
- maxLength: 255
- example: "Juspay Router"
- statement_descriptor_suffix:
- type: string
- description: Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
- maxLength: 255
- example: "Payment for shoes purchase"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
-
- PaymentsConfirmRequest:
- type: object
- properties:
- return_url:
- type: string
- description: The URL to redirect after the completion of the operation
- maxLength: 255
- example: "www.example.com/success"
- setup_future_usage:
- type: string
- description: "Indicates that you intend to make future payments with this Payment’s payment method. Possible values are: (i) REQUIRED: The payment will be processed only with payment methods eligible for recurring payments (ii) OPTIONAL: The payment may/ may not be processed with payment methods eligible for recurring payments"
- enum:
- - required
- - optional
- example: required
- authentication_type:
- type: string
- description: "The transaction authentication can be set to undergo payer authentication. Possible values are: (i) THREE_DS: If the card is enrolled for 3DS authentication, the 3DS based authentication will be activated. The liability of chargeback shift to the issuer, (ii) NO_THREE_DS: 3DS based authentication will not be activated. The liability of chargeback stays with the merchant. By default, the authentication will be marked as NO_THREE_DS"
- enum:
- - three_ds
- - no_three_ds
- default: no_three_ds
- payment_method:
- type: string
- description: "The payment method"
- enum:
- - card
- - bank_transfer
- - netbanking
- - upi
- - open_banking
- - consumer_finance
- - wallet
- default: three_ds
- example: automatic
- payment_method_data:
- type: object
- description: The payment method information
- oneOf:
- - $ref: "#/components/schemas/CardData"
- save_payment_method:
- type: boolean
- description: Enable this flag as true, if the user has consented for saving the payment method information
- default: false
- example: true
- billing:
- type: object
- description: The billing address for the payment
- $ref: "#/components/schemas/Address"
- shipping:
- type: object
- description: The shipping address for the payment
- $ref: "#/components/schemas/Address"
- PaymentsUpdateRequest:
- type: object
- properties:
- amount:
- type: integer
- description: |
- The payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- minimum: 100
- example: 6540
- currency:
- type: string
- description: |
- The three-letter ISO currency code
- example: USD
- maxLength: 3
- minLength: 3
- capture_method:
- type: string
- description: "This is the instruction for capture/ debit the money from the users' card. On the other hand authorization refers to blocking the amount on the users' payment method. Capture request may happen in three types: (1) AUTOMATIC: Post the payment authorization, the capture will be executed on the full amount immediately, (2) MANUAL: The capture will happen only if the merchant triggers a Capture API request, (3) SCHEDULED: The capture can be scheduled to automatically get triggered at a specific date & time"
- enum:
- - automatic
- - manual
- - scheduled
- default: automatic
- example: automatic
- capture_on:
- description: |
- A timestamp (ISO 8601 code) that determines when the payment should be captured.
- Providing this field will automatically set `capture` to true
- allOf:
- - $ref: "#/components/schemas/Timestamp"
- amount_to_capture:
- type: integer
- description: |
- The Amount to be captured/ debited from the users payment method. It shall be in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- If not provided, the default amount_to_capture will be the payment amount.
- minimum: 100
- example: 6540
- customer_id:
- type: string
- description: The identifier for the customer object. If not provided the customer ID will be autogenerated.
- maxLength: 255
- example: cus_y3oqhf46pyzuxjbcn2giaqnb44
- description:
- type: string
- description: A description of the payment
- maxLength: 255
- example: "Its my first payment request"
- email:
- type: string
- format: email
- description: The customer's email address
- maxLength: 255
- name:
- type: string
- description: The customer's name
- maxLength: 255
- example: John Test
- phone:
- type: string
- description: The customer's phone number
- maxLength: 255
- example: 9999999999
- phone_country_code:
- type: string
- description: The country code for the customer phone number
- maxLength: 255
- example: "+65"
- setup_future_usage:
- type: string
- description: "Indicates that you intend to make future payments with this Payment’s payment method. Possible values are: (i) REQUIRED: The payment will be processed only with payment methods eligible for recurring payments (ii) OPTIONAL: The payment may/ may not be processed with payment methods eligible for recurring payments"
- enum:
- - required
- - optional
- example: required
- authentication_type:
- type: string
- description: "The transaction authentication can be set to undergo payer authentication. Possible values are: (i) THREE_DS: If the card is enrolled for 3DS authentication, the 3DS based authentication will be activated. The liability of chargeback shift to the issuer, (ii) NO_THREE_DS: 3DS based authentication will not be activated. The liability of chargeback stays with the merchant. By default, the authentication will be marked as NO_THREE_DS"
- enum:
- - three_ds
- - no_three_ds
- default: no_three_ds
- payment_method:
- type: string
- description: The payment method
- enum:
- - card
- - bank_transfer
- - netbanking
- - upi
- - open_banking
- - consumer_finance
- - wallet
- default: three_ds
- example: automatic
- payment_method_data:
- type: object
- description: The payment method information
- oneOf:
- - $ref: "#/components/schemas/CardData"
- save_payment_method:
- type: boolean
- description: Enable this flag as true, if the user has consented for saving the payment method information
- default: false
- example: true
- billing:
- type: object
- description: The billing address for the payment
- $ref: "#/components/schemas/Address"
- shipping:
- type: object
- description: The shipping address for the payment
- $ref: "#/components/schemas/Address"
- statement_descriptor_name:
- type: string
- description: For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.
- maxLength: 255
- example: "Juspay Router"
- statement_descriptor_suffix:
- type: string
- description: Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
- maxLength: 255
- example: "Payment for shoes purchase"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- PaymentsCaptureRequest:
- type: object
- properties:
- amount_to_capture:
- type: integer
- description: |
- The Amount to be captured/ debited from the users payment method. It shall be in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- If not provided, the default amount_to_capture will be the payment amount.
- minimum: 100
- example: 6540
- statement_descriptor_name:
- type: string
- description: For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.
- maxLength: 255
- example: "Juspay Router"
- statement_descriptor_suffix:
- type: string
- description: Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
- maxLength: 255
- example: "Payment for shoes purchase"
- PaymentsCancelRequest:
- type: object
- properties:
- cancellation_reason:
- type: string
- description: Provides information on the reason for cancellation
- maxLength: 255
- example: "Timeout for payment completion"
- PaymentsCreateResponse:
- type: object
- required:
- - payment_id
- - status
- - amount
- - currency
- - mandate_id
-
- description: Payment Response
- properties:
- payment_id:
- type: string
- description: |
- Unique Identifier for the Payment. It is always recommended to provide this ID while creating a payment.
- If the identifiers in not provided in the Payment Request, this filed shall be auto generated and provide in the API response. It is suggested to keep the payment_id length as a maximum of 30 alphanumeric characters irrespective of payment methods and gateways.
- Sequential and only numeric characters are not recommended.
- maxLength: 30
- example: "pay_mbabizu24mvu3mela5njyhpit4"
- status:
- type: string
- description: The status of the payment
- enum:
- - succeeded
- - failed
- - processing
- - requires_customer_action
- - requires_payment_method
- - requires_confirmation
- - required_capture
- example: succeeded
- amount:
- type: integer
- description: |
- The payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- minimum: 100
- example: 6540
- currency:
- type: string
- description: |
- The three-letter ISO currency code
- example: USD
- maxLength: 3
- minLength: 3
- cancellation_reason:
- type: string
- description: The reason for cancelling the payment
- maxLength: 255
- example: "Payment attempt expired"
- nullable: true
- capture_method:
- type: string
- description: "This is the instruction for capture/ debit the money from the users' card. On the other hand authorization refers to blocking the amount on the users' payment method. Capture request may happen in three types: (1) AUTOMATIC: Post the payment authorization, the capture will be executed on the full amount immediately, (2) MANUAL: The capture will happen only if the merchant triggers a Capture API request, (3) SCHEDULED: The capture can be scheduled to automatically get triggered at a specific date & time"
- enum:
- - automatic
- - manual
- - scheduled
- default: automatic
- example: automatic
- capture_on:
- description: |
- A timestamp (ISO 8601 code) that determines when the payment should be captured.
- Providing this field will automatically set `capture` to true
- allOf:
- - $ref: "#/components/schemas/Timestamp"
- amount_to_capture:
- type: integer
- description: |
- The Amount to be captured/ debited from the users payment method. It shall be in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- If not provided, the default amount_to_capture will be the payment amount.
- minimum: 100
- example: 6540
- nullable: true
- amount_capturable:
- type: integer
- description: The maximum amount that could be captured from the payment
- minimum: 100
- example: 6540
- nullable: true
- amount_received:
- type: integer
- description: The amount which is already captured from the payment
- minimum: 100
- example: 6540
- nullable: true
- customer_id:
- type: string
- description: The identifier for the customer object. If not provided the customer ID will be autogenerated.
- maxLength: 255
- example: cus_y3oqhf46pyzuxjbcn2giaqnb44
- nullable: true
- email:
- type: string
- format: email
- description: The customer's email address
- maxLength: 255
- nullable: true
- name:
- type: string
- description: The customer's name
- maxLength: 255
- example: John Test
- nullable: true
- phone:
- type: string
- description: The customer's phone number
- maxLength: 255
- example: 9999999999
- nullable: true
- phone_country_code:
- type: string
- description: The country code for the customer phone number
- maxLength: 255
- example: "+65"
- nullable: true
- client_secret:
- type: string
- description: This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK
- example: "secret_k2uj3he2893ein2d"
- maxLength: 30
- minLength: 30
- nullable: true
- description:
- type: string
- description: A description of the payment
- maxLength: 255
- example: "Its my first payment request"
- nullable: true
- setup_future_usage:
- type: string
- description: "Indicates that you intend to make future payments with this Payment’s payment method. Providing this parameter will attach the payment method to the Customer, if present, after the Payment is confirmed and any required actions from the user are complete."
- enum:
- - on_session
- - off_session
- example: off_session
- off_session:
- type: boolean
- description: "Set to true to indicate that the customer is not in your checkout flow during this payment, and therefore is unable to authenticate. This parameter is intended for scenarios where you collect card details and charge them later. This parameter can only be used with confirm=true."
- example: true
- mandate_id:
- type: string
- description: ID of the mandate used for this payment. This parameter can only be used with confirm = true. This parameter should be passed for Merchant Initiated Transaction scenarios where the user has already registered for a mandate and raw payment method details are not passed
- example: "mandate_iwer89rnjef349dni3"
- mandate_data:
- type: object
- description: This hash contains details about the Mandate to create. This parameter can only be used with confirm=true.
- properties:
- customer_acceptance:
- type: object
- description: Details about the customer’s acceptance.
- $ref: "#/components/schemas/CustomerAcceptance"
- authentication_type:
- type: string
- description: "The transaction authentication can be set to undergo payer authentication. Possible values are: (i) THREE_DS: If the card is enrolled for 3DS authentication, the 3DS based authentication will be activated. The liability of chargeback shift to the issuer, (ii) NO_THREE_DS: 3DS based authentication will not be activated. The liability of chargeback stays with the merchant. By default, the authentication will be marked as NO_THREE_DS"
- enum:
- - three_ds
- - no_three_ds
- default: no_three_ds
- example: no_three_ds
- billing:
- type: object
- description: The billing address for the payment
- $ref: "#/components/schemas/Address"
- nullable: true
- shipping:
- type: object
- description: The shipping address for the payment
- $ref: "#/components/schemas/Address"
- nullable: true
- statement_descriptor_name:
- type: string
- description: For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.
- maxLength: 255
- example: "Juspay Router"
- nullable: true
- statement_descriptor_suffix:
- type: string
- description: Provides information about a card payment that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
- maxLength: 255
- example: "Payment for shoes purchase"
- nullable: true
- next_action:
- type: object
- description: Provides information about the user action required to complete the payment.
- $ref: "#/components/schemas/NextAction"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- nullable: true
-
- MandateListResponse:
- type: object
- description: Mandate Payment Create Response
- required:
- - mandate_id
- - status
- - payment_method_id
- properties:
- mandate_id:
- type: string
- description: |
- The unique id corresponding to the mandate.
- example: "mandate_end38934n12s923d0"
- status:
- type: string
- description: The status of the mandate, which indicates whether it can be used to initiate a payment.
- enum:
- - active
- - inactive
- - pending
- - revoked
- example: "active"
- type:
- type: string
- description: The type of the mandate. (i) single_use refers to one-time mandates and (ii) multi-user refers to multiple payments.
- enum:
- - multi_use
- - single_use
- default: "multi_use"
- example: "multi_use"
-
- payment_method_id:
- type: string
- description: The id corresponding to the payment method.
- example: "pm_end38934n12s923d0"
- payment_method:
- type: string
- description: |
- The type of payment method use for the payment.
- enum:
- - card
- - payment_container
- - bank_transfer
- - bank_debit
- - pay_later
- - upi
- - netbanking
- example: card
- card:
- description: The card identifier information to be displayed on the user interface
- $ref: "#/components/schemas/CardPaymentMethodResponse"
- customer_acceptance:
- description: The card identifier information to be displayed on the user interface
- $ref: "#/components/schemas/CustomerAcceptance"
- CustomerAcceptance:
- type: object
- description: Details about the customer’s acceptance of the mandate.
- properties:
- accepted_at:
- description: A timestamp (ISO 8601 code) that determines when the refund was created.
- $ref: "#/components/schemas/Timestamp"
- online:
- type: object
- description: If this is a Mandate accepted online, this hash contains details about the online acceptance.
- $ref: "#/components/schemas/CustomerAcceptanceOnline"
- acceptance_type:
- type: string
- description: The type of customer acceptance information included with the Mandate. One of online or offline.
- enum:
- - online
- - offline
- example: "online"
- CustomerAcceptanceOnline:
- type: object
- description: If this is a Mandate accepted online, this hash contains details about the online acceptance.
- properties:
- ip_address:
- type: string
- description: The IP address from which the Mandate was accepted by the customer.
- example: "127.0.0.1"
- user_agent:
- type: string
- description: The user agent of the browser from which the Mandate was accepted by the customer.
- example: "device"
- PaymentMethodsCreateRequest:
- type: object
- required:
- - payment_method
- properties:
- payment_method:
- type: string
- description: |
- The type of payment method use for the payment.
- enum:
- - card
- - payment_container
- - bank_transfer
- - bank_debit
- - pay_later
- - upi
- - netbanking
- example: card
- payment_method_type:
- type: string
- description: |
- This is a sub-category of payment method.
- enum:
- - credit_card
- - debit_card
- - upi_intent
- - upi_collect
- - credit_card_installments
- - pay_later_installments
- example: credit_card
- payment_method_issuer:
- type: string
- description: |
- The name of the bank/ provider issuing the payment method to the end user
- example: Citibank
- payment_method_issuer_code:
- type: string
- description: |
- A standard code representing the issuer of payment method
- example: JP_APPLEPAY
- card:
- type: object
- $ref: "#/components/schemas/CardPaymentMethodRequest"
- customer_id:
- type: string
- description: |
- The unique identifier of the Customer.
- example: "cus_mnewerunwiuwiwqw"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- example: { "city": "NY", "unit": "245" }
- PaymentMethodsUpdateRequest:
- type: object
- properties:
- card:
- type: object
- $ref: "#/components/schemas/CardPaymentMethodRequest"
- billing:
- type: object
- $ref: "#/components/schemas/Address"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- example: { "city": "NY", "unit": "245" }
- PaymentMethodsResponseObject:
- type: object
- required:
- - payment_method_id
- - payment_method
- - recurring_enabled
- - installment_enabled
- - payment_experience
- properties:
- payment_method_id:
- type: string
- description: The identifier for the payment method object.
- maxLength: 30
- example: pm_y3oqhf46pyzuxjbcn2giaqnb44
- payment_method:
- type: string
- description: |
- The type of payment method use for the payment.
- enum:
- - card
- - payment_container
- - bank_transfer
- - bank_debit
- - pay_later
- - upi
- - netbanking
- example: card
- payment_method_type:
- type: string
- description: |
- This is a sub-category of payment method.
- enum:
- - credit_card
- - debit_card
- - upi_intent
- - upi_collect
- - credit_card_installments
- - pay_later_installments
- example: credit_card
- payment_method_issuer:
- type: string
- description: |
- The name of the bank/ provider issuing the payment method to the end user
- example: Citibank
- payment_method_issuer_code:
- type: string
- description: |
- A standard code representing the issuer of payment method
- example: PM_APPLEPAY
- card:
- type: object
- $ref: "#/components/schemas/CardPaymentMethodResponse"
- payment_scheme:
- type: array
- items:
- type: string
- description: |
- The network scheme to which the payment method belongs
- example: [MASTER, VISA]
- accepted_country:
- type: array
- items:
- type: string
- description: |
- The two-letter ISO currency code
- example: [US, UK, IN]
- maxLength: 2
- minLength: 2
- accepted_currency:
- type: array
- items:
- type: string
- description: |
- The three-letter ISO currency code
- example: [USD, EUR]
- minimum_amount:
- type: integer
- description: |
- The minimum amount accepted for processing by the particular payment method.
- example: 100
- maximum_amount:
- type: integer
- description: |
- The minimum amount accepted for processing by the particular payment method.
- example: 10000000
- recurring_payment_enabled:
- type: boolean
- description: Indicates whether the payment method is eligible for recurring payments
- example: true
- installment_payment_enabled:
- type: boolean
- description: Indicates whether the payment method is eligible for installment payments
- example: true
- payment_experience:
- type: array
- items:
- type: string
- description: "This indicates type of action that is required in order to complete the payment with inputs from the user. This may involve actions such as redirecting the user to a URL, displaying a QR code, invoking the SDK client"
- enum:
- - redirect_to_url
- - display_qr_code
- - invoke_sdk_client
- example: ["redirect_to_url", "display_qr_code"]
- PaymentMethodDeleteResponse:
- type: object
- description: Payment Method deletion confirmation
- required:
- - payment_method_id
- - deleted
- properties:
- payment_method_id:
- type: string
- description: The identifier for the payment method object.
- maxLength: 30
- example: pm_y3oqhf46pyzuxjbcn2giaqnb44
- deleted:
- type: boolean
- description: Indicates the deletion status of the payment method object.
- example: true
- RefundsCreateRequest:
- type: object
- required:
- - payment_id
- properties:
- amount:
- type: integer
- description: |
- Total amount for which the refund is to be initiated. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- If not provided, this will default to the full payment amount
- minimum: 100
- example: 6540
- refund_id:
- type: string
- description: |
- Unique Identifier for the Refund. This is to ensure idempotency for multiple partial refund initiated against the same payment.
- If the identifiers is not defined by the merchant, this filed shall be auto generated and provide in the API response.
- It is recommended to generate uuid(v4) as the refund_id.
- maxLength: 30
- minLength: 30
- example: "ref_mbabizu24mvu3mela5njyhpit4"
- payment_id:
- type: string
- description: |
- Unique Identifier for the Payment. It is always recommended to provide this ID while creating a payment.
- If the identifiers in not provided in the Payment Request, this filed shall be auto generated and provide in the API response. It is suggested to keep the payment_id length as a maximum of 30 alphanumeric characters irrespective of payment methods and gateways.
- Sequential and only numeric characters are not recommended.
- maxLength: 30
- minLength: 30
- example: "pay_mbabizu24mvu3mela5njyhpit4"
- currency:
- type: string
- description: |
- The three-letter ISO currency code
- example: USD
- maxLength: 3
- minLength: 3
- reason:
- type: string
- description: An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive
- maxLength: 255
- example: "Customer returned the product"
- created_at:
- description: |
- A timestamp (ISO 8601 code) that determines when the refund was created.
- allOf:
- - $ref: "#/components/schemas/Timestamp"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- RefundsUpdateRequest:
- type: object
- required:
- - metadata
- properties:
- reason:
- type: string
- description: An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive
- maxLength: 255
- example: "Customer returned the product"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- RefundsObject:
- type: object
- required:
- - amount
- - refund_id
- - payment_id
- - currency
- - status
- properties:
- amount:
- type: integer
- description: |
- The refund amount, which should be less than or equal to the total payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- minimum: 1
- example: 6540
- refund_id:
- type: string
- description: |
- Unique Identifier for the Refund. This is to ensure idempotency for multiple partial refund initiated against the same payment.
- If the identifiers is not defined by the merchant, this filed shall be auto generated and provide in the API response.
- It is recommended to generate uuid(v4) as the refund_id.
- maxLength: 30
- minLength: 30
- example: "ref_mbabizu24mvu3mela5njyhpit4"
- payment_id:
- type: string
- description: |
- Unique Identifier for the Payment. It is always recommended to provide this ID while creating a payment.
- If the identifiers in not provided in the Payment Request, this filed shall be auto generated and provide in the API response. It is suggested to keep the payment_id length as a maximum of 30 alphanumeric characters irrespective of payment methods and gateways.
- Sequential and only numeric characters are not recommended.
- maxLength: 30
- example: "pay_mbabizu24mvu3mela5njyhpit4"
- currency:
- type: string
- description: |
- The three-letter ISO currency code
- example: USD
- maxLength: 3
- minLength: 3
- reason:
- type: string
- description: An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive
- maxLength: 255
- example: "Customer returned the product"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- RefundResponse:
- type: array
- items:
- type: object
- properties:
- amount:
- type: integer
- description: |
- The refund amount, which should be less than or equal to the total payment amount. Amount for the payment in lowest denomination of the currency. (i.e) in cents for USD denomination, in paisa for INR denomination etc.,
- minimum: 1
- example: 6540
- refund_id:
- type: string
- description: |
- Unique Identifier for the Refund. This is to ensure idempotency for multiple partial refund initiated against the same payment.
- If the identifiers is not defined by the merchant, this filed shall be auto generated and provide in the API response.
- It is recommended to generate uuid(v4) as the refund_id.
- maxLength: 30
- minLength: 30
- example: "ref_mbabizu24mvu3mela5njyhpit4"
- payment_id:
- type: string
- description: |
- Unique Identifier for the Payment. It is always recommended to provide this ID while creating a payment.
- If the identifiers in not provided in the Payment Request, this filed shall be auto generated and provide in the API response. It is suggested to keep the payment_id length as a maximum of 30 alphanumeric characters irrespective of payment methods and gateways.
- Sequential and only numeric characters are not recommended.
- maxLength: 30
- minLength: 30
- example: "pay_mbabizu24mvu3mela5njyhpit4"
- currency:
- type: string
- description: |
- The three-letter ISO currency code
- example: USD
- maxLength: 3
- minLength: 3
- reason:
- type: string
- description: An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive
- maxLength: 255
- example: "Customer returned the product"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
- CardData:
- type: object
- description: Card Data
- properties:
- card_number:
- type: string
- description: The card number
- maxLength: 30
- minLength: 30
- example: "4242424242424242"
- card_exp_month:
- type: string
- description: The expiry month for the card
- maxLength: 2
- minLength: 2
- example: "10"
- card_exp_year:
- type: string
- description: Expiry year for the card
- maxLength: 2
- minLength: 2
- example: "25"
- card_holder_name:
- type: string
- description: The name of card holder
- maxLength: 255
- minLength: 1
- example: "John Doe"
- card_cvc:
- type: string
- description: The cvc number
- maxLength: 4
- minLength: 3
- example: "123"
- card_token:
- type: string
- description: The token provided against a user's saved card. The token would be valid for 15 minutes.
- minLength: 30
- maxLength: 30
- example: "tkn_78892490hfh3r834rd"
- CardPaymentMethodRequest:
- type: object
- description: Card Payment Method Information
- properties:
- card_number:
- type: string
- description: The card number
- maxLength: 30
- minLength: 30
- example: "4242424242424242"
- card_exp_month:
- type: string
- description: The expiry month for the card
- maxLength: 2
- minLength: 2
- example: "10"
- card_exp_year:
- type: string
- description: Expiry year for the card
- maxLength: 2
- minLength: 2
- example: "25"
- card_holder_name:
- type: string
- description: The name of card holder
- maxLength: 255
- minLength: 1
- example: "John Doe"
- CardPaymentMethodResponse:
- type: object
- description: Card Payment Method object
- properties:
- last4_digits:
- type: string
- description: The last four digits of the case which could be displayed to the end user for identification.
- example: "xxxxxxxxxxxx4242"
- card_exp_month:
- type: string
- description: The expiry month for the card
- maxLength: 2
- minLength: 2
- example: "10"
- card_exp_year:
- type: string
- description: Expiry year for the card
- maxLength: 2
- minLength: 2
- example: "25"
- card_holder_name:
- type: string
- description: The name of card holder
- maxLength: 255
- example: "John Doe"
- card_token:
- type: string
- description: The token provided against a user's saved card. The token would be valid for 15 minutes.
- minLength: 30
- maxLength: 30
- example: "tkn_78892490hfh3r834rd"
- scheme:
- type: string
- description: The card scheme network for the particular card
- example: "MASTER"
- issuer_country:
- type: string
- description: The country code in in which the card was issued
- minLength: 2
- maxLength: 2
- example: "US"
- card_fingerprint:
- type: string
- description: A unique identifier alias to identify a particular card.
- minLength: 30
- maxLength: 30
- example: "fpt_78892490hfh3r834rd"
-
- MerchantAccountCreateRequest:
- type: object
- description: The Merchant Account details
- required:
- - merchant_id
- properties:
- merchant_id:
- type: string
- description: The identifier for the Merchant Account.
- maxLength: 255
- example: y3oqhf46pyzuxjbcn2giaqnb44
- # create request may not have the api_key as it is the first time the API services are invoked
- # api_key:
- # type: string
- # description: The public security key for accessing the APIs
- # maxLength: 255
- # example: xkkdf909012sdjki2dkh5sdf
- merchant_name:
- type: string
- description: Name of the merchant
- example: NewAge Retailer
- merchant_details:
- type: object
- description: Details about the merchant including contact person, email, address, website, business description etc
- $ref: "#/components/schemas/MerchantDetails"
- return_url:
- type: string
- description: The URL to redirect after the completion of the operation
- maxLength: 255
- example: "www.example.com/success"
- webhook_details:
- type: object
- description: The features for Webhook
- $ref: "#/components/schemas/WebhookDetails"
- routing_algorithm:
- type: string
- description: The routing algorithm to be used to process the incoming request from merchant to outgoing payment processor or payment method. The default is CUSTOM if
- enum:
- - round_robin
- - max_conversion
- - min_cost
- - custom
- maxLength: 255
- example: custom
- custom_routing_rules:
- type: array
- description: An array of custom routing rules
- $ref: "#/components/schemas/ArrayOfRoutingRules"
- sub_merchants_enabled:
- type: boolean
- description: A boolean value to indicate if the merchant is a sub-merchant under a master or a parent merchant. By default, its value is false.
- maxLength: 255
- example: false
- parent_merchant_id:
- type: string
- description: Refers to the Parent Merchant ID if the merchant being created is a sub-merchant
- maxLength: 255
- example: "xkkdf909012sdjki2dkh5sdf"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
-
- MerchantAccountUpdateRequest:
- type: object
- description: The Merchant Account details to be updated
- required:
- - merchant_id
- properties:
- merchant_id:
- type: string
- description: The identifier for the Merchant Account.
- maxLength: 255
- example: y3oqhf46pyzuxjbcn2giaqnb44
- # api_key:
- # type: string
- # description: The public security key for accessing the APIs
- # maxLength: 255
- # example: xkkdf909012sdjki2dkh5sdf
- merchant_name:
- type: string
- description: Name of the merchant
- example: NewAge Retailer
- merchant_details:
- type: object
- description: Details about the merchant including contact person, email, address, website, business description etc
- $ref: "#/components/schemas/MerchantDetails"
- return_url:
- type: string
- description: The URL to redirect after the completion of the operation
- maxLength: 255
- example: "www.example.com/success"
- webhook_details:
- type: object
- description: The features for Webhook
- $ref: "#/components/schemas/WebhookDetails"
- routing_algorithm:
- type: string
- description: The routing algorithm to be used to process the incoming request from merchant to outgoing payment processor or payment method. The default is CUSTOM if
- enum:
- - round_robin
- - max_conversion
- - min_cost
- - custom
- maxLength: 255
- example: custom
- custom_routing_rules:
- type: array
- description: An array of custom routing rules
- $ref: "#/components/schemas/ArrayOfRoutingRules"
- sub_merchants_enabled:
- type: boolean
- description: A boolean value to indicate if the merchant is a sub-merchant under a master or a parent merchant. By default, its value is false.
- maxLength: 255
- example: false
- parent_merchant_id:
- type: string
- description: Refers to the Parent Merchant ID if the merchant being created is a sub-merchant
- maxLength: 255
- example: "xkkdf909012sdjki2dkh5sdf"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
-
- #Standard Response for all API requests
- MerchantAccountResponse:
- type: object
- description: Merchant Account
- required:
- - merchant_id
- properties:
- merchant_id:
- type: string
- description: The identifier for the Merchant Account.
- maxLength: 255
- example: y3oqhf46pyzuxjbcn2giaqnb44
- api_key:
- type: string
- description: The public security key for accessing the APIs
- maxLength: 255
- example: xkkdf909012sdjki2dkh5sdf
- merchant_name:
- type: string
- description: Name of the merchant
- example: NewAge Retailer
- merchant_details:
- type: object
- description: Details about the merchant including contact person, email, address, website, business description etc
- $ref: "#/components/schemas/MerchantDetails"
- webhook_details:
- type: object
- description: The features for Webhook
- $ref: "#/components/schemas/WebhookDetails"
- routing_algorithm:
- type: string
- description: The routing algorithm to be used to process the incoming request from merchant to outgoing payment processor or payment method. The default is CUSTOM if
- enum:
- - round_robin
- - max_conversion
- - min_cost
- - custom
- maxLength: 255
- example: custom
- custom_routing_rules:
- type: array
- description: An array of custom routing rules
- $ref: "#/components/schemas/ArrayOfRoutingRules"
- sub_merchants_enabled:
- type: boolean
- description: A boolean value to indicate if the merchant is a sub-merchant under a master or a parent merchant. By default, its value is false.
- maxLength: 255
- example: false
- parent_merchant_id:
- type: string
- description: Refers to the Parent Merchant ID if the merchant being created is a sub-merchant
- maxLength: 255
- example: "xkkdf909012sdjki2dkh5sdf"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
-
- MerchantAccountDeleteResponse:
- type: object
- description: Merchant Account
- required:
- - merchant_id
- - deleted
- properties:
- merchant_id:
- type: string
- description: The identifier for the MerchantAccount object.
- maxLength: 255
- example: y3oqhf46pyzuxjbcn2giaqnb44
- deleted:
- type: boolean
- description: Indicates the deletion status of the Merchant Account object.
- example: true
-
- PaymentConnectorCreateRequest:
- type: object
- description: The Payment Connector details
- required:
- - merchant_id
- - connector_type
- - connector_name
- properties:
- merchant_id:
- type: string
- description: The identifier for the Merchant Account.
- maxLength: 255
- example: y3oqhf46pyzuxjbcn2giaqnb44
- connector_type:
- type: string
- description: Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking.
- $ref: "#/components/schemas/ConnectorType"
- connector_name:
- type: string
- description: Name of the Connector
- $ref: "#/components/schemas/PaymentConnector"
- # connector_id:
- # type: integer
- # description: Unique ID of the connector. It is returned in the Response.
- connector_account_details:
- type: object
- description: Account details of the Connector. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Useful for storing additional, structured information on an object.
- example: { "api_key": "Basic MyVerySecretApiKey" }
- # $ref: "#/components/schemas/ConnectorAccountDetails"
-
- test_mode:
- type: boolean
- description: A boolean value to indicate if the connector is in Test mode. By default, its value is false.
- example: false
- disabled:
- type: boolean
- description: A boolean value to indicate if the connector is disabled. By default, its value is false.
- example: false
- payment_methods_enabled:
- type: array
- description: Refers to the Parent Merchant ID if the merchant being created is a sub-merchant
- $ref: "#/components/schemas/PaymentMethodsEnabled"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
-
- PaymentConnectorUpdateRequest:
- type: object
- description: The Payment Connector Update Request
- required:
- - merchant_id
- - connector_type
- - connector_name
- - connector_id
- properties:
- merchant_id:
- type: string
- description: The identifier for the Merchant Account.
- maxLength: 255
- example: y3oqhf46pyzuxjbcn2giaqnb44
- connector_type:
- type: string
- description: Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking.
- $ref: "#/components/schemas/ConnectorType"
- connector_name:
- type: string
- description: Name of the Connector
- $ref: "#/components/schemas/PaymentConnector"
- connector_id:
- type: integer
- description: Unique ID of the connector
- connector_account_details:
- type: object
- description: Account details of the Connector. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Useful for storing additional, structured information on an object.
- example: { "processing_fee": "2.0%", "billing_currency": "USD" }
- # $ref: "#/components/schemas/ConnectorAccountDetails"
- test_mode:
- type: boolean
- description: A boolean value to indicate if the connector is in Test mode. By default, its value is false.
- example: false
- disabled:
- type: boolean
- description: A boolean value to indicate if the connector is disabled. By default, its value is false.
- example: false
- payment_methods:
- type: array
- description: Refers to the Parent Merchant ID if the merchant being created is a sub-merchant
- $ref: "#/components/schemas/PaymentMethodsEnabled"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
-
- PaymentConnectorResponse:
- type: object
- description: The Payment Connector Response details
- required:
- - merchant_id
- - connector_type
- - connector_name
- - connector_id
- properties:
- merchant_id:
- type: string
- description: The identifier for the Merchant Account.
- maxLength: 255
- example: y3oqhf46pyzuxjbcn2giaqnb44
- connector_type:
- type: string
- description: Type of the Connector for the financial use case. Could range from Payments to Accounting to Banking.
- $ref: "#/components/schemas/ConnectorType"
- connector_name:
- type: string
- description: Name of the Connector
- $ref: "#/components/schemas/PaymentConnector"
- connector_id:
- type: integer
- description: Unique ID of the connector
- example: 12
- connector_account_details:
- type: object
- description: Account details of the Connector. You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Useful for storing additional, structured information on an object.
- example: { "processing_fee": "2.0%", "billing_currency": "USD" }
- # $ref: "#/components/schemas/ConnectorAccountDetails"
- test_mode:
- type: boolean
- description: A boolean value to indicate if the connector is in Test mode. By default, its value is false.
- example: false
- disabled:
- type: boolean
- description: A boolean value to indicate if the connector is disabled. By default, its value is false.
- example: false
- payment_methods:
- type: array
- description: Refers to the Parent Merchant ID if the merchant being created is a sub-merchant
- $ref: "#/components/schemas/PaymentMethodsEnabled"
- metadata:
- type: object
- description: You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
- maxLength: 255
- example: { "city": "NY", "unit": "245" }
-
- PaymentConnectorDeleteResponse:
- type: object
- description: Payment Connector Delete Response
- required:
- - merchant_id
- - connector_id
- - deleted
- properties:
- merchant_id:
- type: string
- description: The identifier for the Merchant Account
- maxLength: 255
- example: y3oqhf46pyzuxjbcn2giaqnb44
- connector_id:
- type: integer
- description: The identifier for the Payment Connector
- example: 10
- deleted:
- type: boolean
- description: Indicates the deletion status of the Merchant Account object.
- example: true
-
- ConnectorType:
- type: string
- description: Type of the connector
- enum:
- - payment_processor #PayFacs, Acquirers, Gateways, BNPL etc
- - payment_vas #Fraud, Currency Conversion, Crypto etc
- - fin_operations #Accounting, Billing, Invoicing, Tax etc
- - fiz_operations #Inventory, ERP, CRM, KYC etc
- - networks #Payment Networks like Visa, MasterCard etc
- - banking_entities #All types of banks including corporate / commercial / personal / neo banks
- - non_banking_finance #All types of non-banking financial institutions including Insurance, Credit / Lending etc
-
- #INCOMPLETE. NEEDS MORE THINKING!
- #QUESTION: Should we bring all elements of costs / conversion rates / supported payment methods etc in this object?
- # ConnectorAccountDetails:
- # type: object
- # description: Account details of the Connector
- # properties:
- # processing_cost:
- # type: string
- # description: Description on the processing cost
- # example: "2.0% of processed amount"
- # conversion_rates:
- # type: string
- # description: Description on the Conversion Rates
- # example: "85% Conversion Rates"
-
- PaymentMethodsEnabled:
- type: array
- description: Details of all the payment methods enabled for the connector for the given merchant account
- items:
- properties:
- payment_method:
- type: string
- $ref: "#/components/schemas/PaymentMethod"
- example: card
- payment_method_types:
- type: array
- items:
- $ref: "#/components/schemas/PaymentMethodType"
- example: [CREDIT]
- payment_method_issuers:
- type: array
- description: List of payment method issuers to be enabled for this payment method
- items:
- type: string
- example: ["HDFC"]
- payment_schemes:
- type: array
- description: List of payment schemes accepted or has the processing capabilities of the processor
- items:
- $ref: "#/components/schemas/PaymentSchemes"
- example: [MASTER, VISA, DINERS]
- accepted_currencies:
- type: array
- description: List of currencies accepted or has the processing capabilities of the processor
- items:
- $ref: "#/components/schemas/CurrencyISO"
- example: [USD, EUR, AED]
- accepted_countries:
- type: array
- description: List of Countries accepted or has the processing capabilities of the processor
- items:
- $ref: "#/components/schemas/CountryISO"
- example: [US, IN]
- minimum_amount:
- type: integer
- description: Minimum amount supported by the processor. To be represented in the lowest denomination of the target currency (For example, for USD it should be in cents)
- example: 1
- maximum_amount:
- type: integer
- description: Maximum amount supported by the processor. To be represented in the lowest denomination of the target currency (For example, for USD it should be in cents)
- example: null
- recurring_enabled:
- type: boolean
- description: Boolean to enable recurring payments / mandates. Default is true.
- example: true
- installment_payment_enabled:
- type: boolean
- description: Boolean to enable installment / EMI / BNPL payments. Default is true.
- example: true
- payment_experience:
- type: array
- description: Type of payment experience enabled with the connector
- items:
- $ref: "#/components/schemas/NextAction"
- example: ["redirect_to_url"]
-
- PaymentSchemes:
- type: string
- description: Represent the payment schemes and networks
- enum:
- - VISA
- - MasterCard
- - Discover
- - AMEX
-
- MerchantDetails:
- type: object
- properties:
- primary_contact_person:
- type: string
- description: The merchant's primary contact name
- maxLength: 255
- example: John Test
- primary_email:
- type: string
- format: email
- description: The merchant's primary email address
- maxLength: 255
- primary_phone:
- type: string
- description: The merchant's primary phone number
- maxLength: 255
- example: 9999999999
- secondary_contact_person:
- type: string
- description: The merchant's secondary contact name
- maxLength: 255
- example: John Test2
- secondary_email:
- type: string
- format: email
- description: The merchant's secondary email address
- maxLength: 255
- secondary_phone:
- type: string
- description: The merchant's secondary phone number
- maxLength: 255
- example: 9999999998
- website:
- type: string
- description: The business website of the merchant
- maxLength: 255
- example: "www.example.com"
- about_business:
- type: string
- description: A brief description about merchant's business
- maxLength: 255
- example: Online Retail with a wide selection of organic products for North America
- address:
- type: object
- description: The address for the merchant
- $ref: "#/components/schemas/Address"
-
- WebhookDetails:
- type: object
- properties:
- webhook_version:
- type: string
- description: The version for Webhook
- maxLength: 255
- example: "1.0.1"
- webhook_username:
- type: string
- description: The user name for Webhook login
- maxLength: 255
- example: "ekart_retail"
- webhook_password:
- type: string
- description: The password for Webhook login
- maxLength: 255
- example: "password_ekart@123"
- payment_created_enabled:
- type: boolean
- description: If this property is true, a webhook message is posted whenever a new payment is created
- example: true
- payment_succeeded_enabled:
- type: boolean
- description: If this property is true, a webhook message is posted whenever a payment is successful
- example: true
- payment_failed_enabled:
- type: boolean
- description: If this property is true, a webhook message is posted whenever a payment fails
- example: true
-
- ArrayOfRoutingRules:
- type: array
- items:
- properties:
- payment_methods_incl:
- type: array
- description: The List of payment methods to include for this routing rule
- items:
- $ref: "#/components/schemas/PaymentMethod"
- example: [card, upi]
-
- payment_methods_excl:
- type: array
- description: The List of payment methods to exclude for this routing rule. If there is conflict between include and exclude lists, include list overrides the exclude list.
- items:
- $ref: "#/components/schemas/PaymentMethod"
- example: [card, upi]
-
- payment_method_types_incl:
- type: array
- description: The List of payment method types to include for this routing rule
- items:
- $ref: "#/components/schemas/PaymentMethodType"
- example: [credit_card, debit_card]
-
- payment_method_types_excl:
- type: array
- description: The List of payment method types to exclude for this routing rule. If there is conflict between include and exclude lists, include list overrides the exclude list.
- items:
- $ref: "#/components/schemas/PaymentMethodType"
- example: [credit_card, debit_card]
-
- payment_method_issuers_incl:
- type: array
- description: The List of payment method issuers to include for this routing rule
- items:
- type: string
- example: ["Citibank", "JPMorgan"]
-
- payment_method_issuers_excl:
- type: array
- description: The List of payment method issuers to exclude for this routing rule. If there is conflict between include and exclude lists, include list overrides the exclude list.
- items:
- type: string
- example: ["Citibank", "JPMorgan"]
-
- countries_incl:
- type: array
- description: The List of countries to include for this routing rule
- items:
- $ref: "#/components/schemas/CountryISO"
- example: [US, UK, IN]
-
- countries_excl:
- type: array
- description: The List of countries to exclude for this routing rule. If there is conflict between include and exclude lists, include list overrides the exclude list.
- items:
- $ref: "#/components/schemas/CountryISO"
- example: [US, UK, IN]
-
- currencies_incl:
- type: array
- description: The List of currencies to include for this routing rule
- items:
- $ref: "#/components/schemas/CurrencyISO"
- example: [USD, EUR]
-
- currencies_excl:
- type: array
- description: The List of currencies to exclude for this routing rule. If there is conflict between include and exclude lists, include list overrides the exclude list.
- items:
- $ref: "#/components/schemas/CurrencyISO"
- example: [AED, SGD]
-
- metadata_filters_keys:
- type: array
- description: List of Metadata Filters to apply for the Routing Rule. The filters are presented as 2 arrays of keys and value. This property contains all the keys.
- items:
- type: string
- example: ["payments.udf1", "payments.udf2"]
-
- metadata_filters_values:
- type: array
- description: List of Metadata Filters to apply for the Routing Rule. The filters are presented as 2 arrays of keys and value. This property contains all the keys.
- items:
- type: string
- example: ["android", "Category_Electronics"]
-
- connectors_pecking_order:
- type: array
- description: The pecking order of payment connectors (or processors) to be used for routing. The first connector in the array will be attempted for routing. If it fails, the second connector will be used till the list is exhausted.
- items:
- $ref: "#/components/schemas/PaymentConnector"
- example: ["stripe", "adyen", "brain_tree"]
-
- connectors_traffic_weightage_key:
- type: array
- description: An Array of Connectors (as Keys) with the associated percentage of traffic to be routed through the given connector (Expressed as an array of values)
- items:
- $ref: "#/components/schemas/PaymentConnector"
- example: ["stripe", "adyen", "brain_tree"]
-
- connectors_traffic_weightage_value:
- type: array
- description: An Array of Weightage (expressed in percentage) that needs to be associated with the respective connectors (Expressed as an array of keys)
- items:
- $ref: "#/components/schemas/TrafficWeightage"
- example: [50, 30, 20]
-
- example:
- [
- {
- payment_method_types_incl: [credit_card],
- connectors_pecking_order: ["stripe", "adyen", "brain_tree"],
- },
- {
- payment_method_types_incl: [debit_card],
- connectors_traffic_weightage_key:
- ["stripe", "adyen", "brain_tree"],
- connectors_traffic_weightage_value: [50, 30, 20],
- },
- ]
-
- PaymentMethod:
- type: string
- enum:
- - card # Credit Card, Debit Card, Prepaid, Gift card, Travel card etc
- - wallet # Wallets & payment containers like Apple Pay, G Pay, PayPal, Grab Pay
- # - real_time_payment # UPI, PayNow, FedNow etc //TODO Application changes needed
- # - pay_later # BNPL like Klarna, Affirm, AfterPay, Zip, SplitIt etc //TODO Application changes needed
- - bank_debit # Pull payments from bank - ACH direct debit (DD), BACS DD, SEPA DD, BECS Debt
- - bank_redirect # Redirected to online banking portal - Netbanking/India, sofort/Europe, giropay/Germany, BanContact/Belgium, Blik/Poland, EPS/Austria, FPX/Malaysia
- - bank_transfer # Push payments to an account - ACH transfer, SEPA bank transfer, Multibanco
- example: card
-
- PaymentMethodType:
- type: string
- enum:
- - credit_card
- - debit_card
- - upi_intent
- - upi_collect
- # - credit_card_installments
- # - pay_later_installments
- example: credit_card
-
- # PaymentMethod:
- # type: string
- # enum:
- # - card
- # - payment_container
- # - bank_transfer
- # - bank_debit
- # - pay_later
- # - upi
- # - netbanking
- # example: card
-
- # PaymentMethodType:
- # type: string
- # enum:
- # - credit_card
- # - debit_card
- # - upi_intent
- # - upi_collect
- # - credit_card_installments
- # - pay_later_installments
- # example: credit_card
-
- CountryISO:
- type: string
- description: The two-letter ISO currency code
- maxLength: 2
- minLength: 2
- example: US
-
- CurrencyISO:
- type: string
- description: The three-letter ISO currency code
- maxLength: 3
- minLength: 3
- example: USD
-
- PaymentConnector:
- type: string
- description: Unique name used for identifying the Connector
- enum:
- - stripe
- - adyen
- - brain_tree
- - dlocal
- - cyber_source
- example: stripe
-
- TrafficWeightage:
- type: integer
- minimum: 0
- maximum: 100
- example: 50
-
- NextAction:
- type: object
- description: States the next action to complete the payment
- properties:
- # type:
- # type: string
- # description: "This indicates type of action that is required in order to complete the payment with inputs from the user. This may involve actions such as redirecting the user to a URL, displaying a QR code, invoking the SDK client"
- # enum:
- # - redirect_to_url
- # - display_qr_code
- # - invoke_sdk_client
- # - invoke_payment_app
- # - trigger_api
- # example: "redirect_to_url"
- redirect_to_url:
- type: string
- description: The URL to which the customer needs to be redirected for completing the payment.
- example: "https://pg-redirect-page.com"
- display_qr_code:
- type: string
- description: The QR code data to be displayed to the customer.
- example: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1AQAAAADJnZ7dAAABs0lEQVR4nAGoAVf+AgFqqzCrHAACfO2eCXLx8ALIuWcFE2AgAgDMJY+7KAACAMP1N48IAAI4wJ9v8kDgAoT27OLpdxAC/g8wHJSz+ALG5FSP+HnIAt7Si9v6m+AC+hZxUPoJWAKN7C4q3rTAAi/TeN30+6ACMYHnWkM8uALzviwJR9UIAs36kzcuuqACxsgBlqjsSAJrqdLoS4QAAimoq+YS7zgCM3EsnwNXeALqzAWMrDxgAnp3ZKuU/qACbmkC+I8riALKwNCjMUMoAs3w0GTalKgCdysPb"
- invoke_payment_app:
- type: object
- description: Contains the data for invoking the sdk client for completing the payment.
- example:
- intent_uri: "upi://pay?pa=hhferf@abc&pn=merchant%20com&mc=5815&tid=pnf20200807108614390166&tr=20200807108614390166&tn=Transaction_Note&am=1&cu=INR"
- invoke_sdk_client:
- type: object
- description: Contains the data for invoking the sdk client for completing the payment.
- example:
- sdk_name: "gpay"
- sdk_params: { param1: "value", param2: "value" }
- intent_uri: "upi://pay?pa=hhferf@abc&pn=merchant%20com&mc=5815&tid=pnf20200807108614390166&tr=20200807108614390166&tn=Transaction_Note&am=1&cu=INR"
- trigger_api:
- type: object
- description: Provides the instructions on the next API to be triggered to complete the payment. This is applicable in cases wherein the merchant has to display a UI to the user for collecting information such as OTP, 2factor authentication details.
- example:
- api_name: "submit_otp"
- doc: "https://router.juspay.io/api-reference/submit_otp"
- PhoneNumber:
- type: string
- description: Phone number
- Timestamp:
- type: string
- description: ISO 8601 timestamp
- format: date-time
- ApiAuthenticationError:
- type: object
- properties:
- code:
- type: string
- description: The error code
- maxLength: 200
- example: invalid_api_request
- message:
- type: string
- description: Description of the error, with rectification steps/ reference links to docs
- maxLength: 255
- example: Access forbidden, invalid api-key was used
- type:
- type: string
- description: The category to which the error belongs
- maxLength: 200
- example: invalid_request_error
- ObjectNotFoundError:
- type: object
- properties:
- code:
- type: string
- description: The error code
- maxLength: 200
- example: object_not_found
- message:
- type: string
- description: Description of the error, with rectification steps/ reference links to docs
- maxLength: 255
- example: Customer does not exist in records
- type:
- type: string
- description: The category to which the error belongs
- maxLength: 200
- example: object_not_found
- BadRequestError:
- type: object
- properties:
- code:
- type: string
- description: The error code
- maxLength: 255
- example: parameter_missing
- message:
- type: string
- description: "Missing required param: <parameter_name>"
- maxLength: 255
- example: "Missing required param: amount"
- type:
- type: string
- description: The category to which the error belongs
- maxLength: 255
- example: invalid_request_error
- Error:
- type: object
- properties:
- code:
- type: string
- description: The error code
- maxLength: 255
- example: parameter_missing
- message:
- type: string
- description: "Missing required param: <parameter_name>"
- maxLength: 255
- example: "Missing required param: amount"
- type:
- type: string
- description: The category to which the error belongs
- maxLength: 255
- example: invalid_request_error
-
- # headers:
- # Cko-Request-Id:
- # description: The unique identifier of the request
- # schema:
- # type: string
- # Cko-Version:
- # description: The version of the API
- # schema:
- # type: string
- parameters:
- hash:
- name: hash
- in: path
- description: The token identifier string
- schema:
- type: string
- required: true
- mediaType:
- name: Accept
- in: header
- schema:
- type: string
- enum:
- - application/json
- default: application/json
- description: The response media type
- systemEventType:
- name: eventType
- in: path
- description: The event type
- schema:
- type: string
- required: true
- securitySchemes:
- ApiSecretKey:
- description: >
- Unless explicitly stated, all endpoints require authentication using your secret key.
- You may generate your API keys from the Juspay Dashboard.
-
- #### Format
-
- - Sandbox `sk_xxxxxxxxxxxxxxxxxxxxxxxxxx`
-
- - Production `pk_xxxxxxxxxxxxxxxxxxxxxxxxxx`
- name: api-key
- type: apiKey
- in: header
- x-cko-type: api-key
-
- AdminSecretKey:
- description: >
- Admin Key for managing Merchant Accounts and Payment Connectors
- In the OSS version - Developers can directly update the AdminSecretKey in the DB and start using the admin APIs to configure a new accounts and connectors
- In the Hosted version - The key can be obtained from the Dashboard or the Support team
- name: admin-api-key
- type: apiKey
- in: header
- x-cko-type: admin-api-key