How to place a basic imagery order using Postman

Postman is an API client used to develop, create, test, share and document APIs.

1. Open Postman and click on Create New > HTTP Request

Create New menu in Postman with HTTP Request

2. The startup screen opens.

Postman 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

Postman Authorization tab with Basic Auth selected

6. Switch to the Body tab and insert the request body. Select Body > raw > select JSON

Postman Body tab set to raw 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. ​​A successful response will return the order ID and a 202 Accepted status.
 

Postman response with the order ID and 202 Accepted status

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Please sign in to leave a comment.