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: 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",
"source_type": "scenes",
"products":[
{
"item_ids":[
"20220304_093300_37_2430",
"20220304_093257_90_2430",
"20220304_103324_1105",
"20220304_103325_1105"
],
"item_type":"PSScene",
"product_bundle":"analytic_udm2"
}
]
}
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.
- More information about Orders API at: Ordering Scenes
- How to Download a Basic Order Using Postman
Comments
Please sign in to leave a comment.