Try out APIs
Last updated
Was this helpful?
Last updated
Was this helpful?
Sign up or sign in to .
Open our and switch to the . Update the value under the "current value" column for the baseUrl
variable to have the hostname and port of the locally running server (http://localhost:8080
by default).
While on the "Variables" tab, add the admin API key you configured in the application configuration under the "current value" column for the admin_api_key
variable.
If you're running Docker Compose, you can find the configuration file at , search for admin_api_key
to find the admin API key.
If you set up the dependencies locally, you can find the configuration file at , search for admin_api_key
to find the admin API key
Open the in the collection.
Open the request, switch to the "Body" tab and update any request parameters as required.
If you want to use a different connector for making payments with than the provided default, update the data
field present in the routing_algorithm
field to your liking.
Click on the "Send" button to create a merchant account (You may need to "create a fork" to fork this collection to your own workspace to send a request). You should obtain a response containing most of the data included in the request, along with some additional fields. Store the merchant ID and publishable key returned in the response.
Open the request, switch to the "Body" tab and update any request parameters as required. Click on the "Send" button to create an API key. You should obtain a response containing the data included in the request, along with the plaintext API key. Store the API key returned in the response securely.
Sign up on the payment connector's (say Stripe, Adyen, etc.) dashboard and store your connector API key (and any other necessary secrets) securely.
Open the request, switch to the "Body" tab and update any request parameters as required.
Pay special attention to the connector_name
and connector_account_details
fields and update them. You can find connector-specific details to be included in this .
Open the in the and set the connector_api_key
variable to your connector's API key.
Click on the "Send" button to create a payment connector account. You should obtain a response containing most of the data included in the request, along with some additional fields.
Follow the above steps if you'd like to add more payment connector accounts.
If the status
of the payment created was requires_confirmation
, set confirm
to true
in the request body and send the request again.
Ensure that you have and before trying to create a payment.
Open the request, switch to the "Body" tab and update any request parameters as required. Click on the "Send" button to create a payment. If all goes well and you had provided the correct connector credentials, the payment should be created successfully. You should see the status
field of the response body having a value of succeeded
in this case.
Open the request and click on the "Send" button (without modifying anything). This should return the payment object for the payment created in Step 2.
Open the request in the folder and switch to the "Body" tab. Update the amount to be refunded, if required, and click on the "Send" button. This should create a refund against the last payment made for the specified amount. Check the status
field of the response body to verify that the refund hasn't failed.
Open the request and switch to the "Params" tab. Set the id
path variable in the "Path Variables" table to the refund_id
value returned in the response during the previous step. This should return the refund object for the refund created in the previous step.
That's it! Hope you got a hang of our APIs. To explore more of our APIs, please check the remaining folders in the .