Postman is an API client used to develop, create, test, share and document APIs.
1. Open Postman and click on Create New > HTTP Request
2. You will see the Startup Screen.
3. Set your HTTP request to POST.
4. In the URL field insert (Orders API): https://api.planet.com/compute/ops/orders/v2
5. Switch to the Authorization tab and select
a. Type: Basic Auth
b. Username: API_KEY
c. Note: Leave the Password field empty
6. Switch to the Body tab and insert the request body. Select Body > raw > select JSON
JSON body: Here, you can use Tools & Toolchains.
{
"name":"simple order",
"products":[
{
"item_ids":[
"20200922_183724_23_106a",
"20200922_183722_17_106a",
"20200922_183720_11_106a"
],
"item_type":"PSScene4Band",
"product_bundle":"analytic"
}
]
}
7. Click Send button
8. You will see 202 Accepted status.
9. A successful response will give the order id and status of the order.
Comments
Please sign in to leave a comment.