Hello
We have a problem creating a subscription via the https://services.sentinel-hub.com/api/v1/dataimport/subscriptions API
Here’s the request body being sent:
{
"collectionId": "13def4d0-1af4-4e69-a2d8-309f5f6d7aae",
"input": {
"provider": "PLANET",
"bounds": {
"geometry": {
"type": "MultiPolygon",
"coordinates": [...]
}
},
"data": [
{
"dataFilter": {
"timeRange": {
"from": "2025-01-01T00:00:00.000Z",
"to": "2026-01-01T00:00:00.000Z"
},
"maxCloudCoverage": 100.0
},
"itemType": "PSScene",
"productBundle": "analytic_udm2",
"harmonizeTo": "NONE"
}
],
"planetApiKey": "..."
}
}
and here’s the response we receive:
{
"error": {
"status": 400,
"reason": "Bad Request",
"message": "Band mismatch. Ordered [band 'blue' (source = 'image', bandIndex = 1 and bitDepth = 16), band 'clear' (source = 'udm2', bandIndex = 1 and bitDepth = 8), band 'cloud' (source = 'udm2', bandIndex = 6 and bitDepth = 8), band 'confidence' (source = 'udm2', bandIndex = 7 and bitDepth = 8), band 'green' (source = 'image', bandIndex = 2 and bitDepth = 16), band 'haze_heavy' (source = 'udm2', bandIndex = 5 and bitDepth = 8), band 'haze_light' (source = 'udm2', bandIndex = 4 and bitDepth = 8), band 'nir' (source = 'image', bandIndex = 4 and bitDepth = 16), band 'red' (source = 'image', bandIndex = 3 and bitDepth = 16), band 'shadow' (source = 'udm2', bandIndex = 3 and bitDepth = 8), band 'snow' (source = 'udm2', bandIndex = 2 and bitDepth = 8), band 'udm1' (source = 'udm2', bandIndex = 8 and bitDepth = 8)] but collection contains [band 'B1' (source = 'B1', bandIndex = 1 and bitDepth = 16), band 'B2' (source = 'B2', bandIndex = 1 and bitDepth = 16), band 'B3' (source = 'B3', bandIndex = 1 and bitDepth = 16), band 'B4' (source = 'B4', bandIndex = 1 and bitDepth = 16), band 'UDM' (source = 'UDM', bandIndex = 1 and bitDepth = 8), band 'UDM2_Clear' (source = 'UDM2_Clear', bandIndex = 1 and bitDepth = 8), band 'UDM2_Cloud' (source = 'UDM2_Cloud', bandIndex = 1 and bitDepth = 8), band 'UDM2_Confidence' (source = 'UDM2_Confidence', bandIndex = 1 and bitDepth = 8), band 'UDM2_HeavyHaze' (source = 'UDM2_HeavyHaze', bandIndex = 1 and bitDepth = 8), band 'UDM2_LightHaze' (source = 'UDM2_LightHaze', bandIndex = 1 and bitDepth = 8), band 'UDM2_Shadow' (source = 'UDM2_Shadow', bandIndex = 1 and bitDepth = 8), band 'UDM2_Snow' (source = 'UDM2_Snow', bandIndex = 1 and bitDepth = 8)]",
"code": "COMMON_BAD_PAYLOAD"
}
}
Any suggestions?