![]() You should be able to run each request in order without any trouble. It has all of the calls for a standard e-commerce scenario of creating a customer, charging them, and viewing their resulting transaction. Let’s look at the First Transaction folder. Our collection has a few folders in it, each with different API calls to fulfil a different task, along with a V1 & V2 reference that contains all of the endpoints. Now it’s time to try out some API calls in Postman! Hopefully your environment looks something like this. ![]() ![]() Whenever you see a variable in double brackets like that indicates a variable that can be pulled from your environment. You will want to add a key of **access_token **with a value of your access token to handle the authentication for each endpoint. You can call the environment square or whatever your want. Clicking the *Gear icon -> Manage Environments -> Add *should open up a dialog to create a new environment. Our collection makes use of Postman’s environment variables to easily manage your API credentials. You can also find this button in the Square API documentation. Just click on the big Run in Postman button on this page and you’ll be prompted to import the collection inside of Postman. Visit and download the preferred version for your system. Before you can use Postman, you need to install it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |