Not ready to start coding and would love to see how the API works? Follow the following steps. In this test API request, we will create a customer by calling the
Create Customer endpoint.
Click on API Reference on the left navbar, or copy and paste this link in your browser: https://docs.blochq.io/reference. The API reference is a template setup for you to be able to quickly simulate API calls on your account and see how they work.
As you can see, to create a new customer, you need six required variables. Use the example below to fill in the required fields:
Important to Note
Do not change the sample data inputted for
customer_type. However, you can input anything you want for other parameters.
Copy your Secret Key on Test Mode, and paste in the field above the code snippet on the right side of your screen.
Once you are done, click on the "Try It! button at the bottom right section of the code snippet. You should see an API response below.
You can also go to your Dashboard, go to your Customers page, and you'll see your newly created Customer in your table.
Updated 10 months ago