How to use the Simulator
For creating a new order, you can still use the standard endpoint for doing so, which is "Orders: Create Order".
Here's an example of how to do it using cURL.
- Creating the order
curl --request POST \
--url https://sandbox[id].azify.io/api/v1.0/Partner/Orders/df20db8c-f09f-4207-806f-05f56a0e971b \
--header 'Accept: application/json' \
--header 'Authorization: Basic ...' \
--header 'Content-Type: application/json' \
--data '{"currencyCode":"BRL","method":"BankAccount","orderType":"deposit","userData":[{"cpfCnpj":"803.899.110-97","fullName":"John Doe"}],"userEmail":"[email protected]","userNotify":false,"userPhone":"+5511987654321","userType":"personal","value":"10.00"}'- Defining the order as identified
curl --request POST \
--url https://sandbox[id].azify.io/api/v1.0/Simulator/df20db8c-f09f-4207-806f-05f56a0e971b/Identify \
--header 'Authorization: Basic ...'
- Now we can set it as complete:
curl --request POST \
--url https://sandbox[id].azify.io/api/v1.0/Simulator/df20db8c-f09f-4207-806f-05f56a0e971b/Complete \
--header 'Authorization: Basic ...'Updated 9 months ago