v1/appPriceSchedules 409

BASE_TERRITORY="USA"

app_id = "*******" # your app id
app_price_points_id = "eyJzIjoiNjc1MTMwOTAyNiIsInQiOiJVU0EiLCJwIjoiMTAwMTEifQ" # query and get
manual_price_id = "manualPrice-0"

update_app_price_url = "https://api.appstoreconnect.apple.com/v1/appPriceSchedules"
update_app_price_payload = {
    "data": {
        "type": "appPriceSchedules",
        "relationships": {
            "app": {
                "data": {"type": "apps", "id": app_id}
            },
            "baseTerritory": {
                "data": {"type": "territories", "id": BASE_TERRITORY}
            },
            "manualPrices": {
                "data": [{"id": manual_price_id, "type": "appPrices"}]
            }
        }
    },
    "included": [
        {
            "type": "appPrices",
            "id": manual_price_id,
            "attributes": {"startDate": None},
            "relationships": {
                "appPricePoint": {
                    "data": {"type": "appPricePoints", "id": app_price_points_id}
                }
            }
        }
    ]
}

update_app_price_resp = requests.post(update_app_price_url, headers=headers, data=json.dumps(update_app_price_payload))
if update_app_price_resp.status_code == 201:
    update_app_price_id = update_app_price_resp.json()["data"]["id"]
    print(f"✅ Success : {update_app_price_id}")
else:
    print(f"❌ Failed  : {update_app_price_resp.status_code} {update_app_price_resp.text}")
    sys.exit(1)

There was no problem a week ago, but now it reports an error

❌ Failed  : 409 {
  "errors" : [ {
    "id" : "69a6e006-b99c-4d58-880c-0225c1eff581",
    "status" : "409",
    "code" : "ENTITY_ERROR.INCLUDED.INVALID_ID",
    "title" : "The provided entity id is invalid",
    "detail" : "The provided included entity id 'USA-1.0' has invalid format",
    "source" : {
      "pointer" : "/included/0/id"
    }
  } ]
}
❌ Failed  : 409 {
  "errors" : [ {
    "id" : "dde84fa5-3bcc-47f1-a181-6e530d137b9d",
    "status" : "409",
    "code" : "ENTITY_ERROR.INCLUDED.INVALID_ID",
    "title" : "The provided entity id is invalid",
    "detail" : "The provided included entity id 'manualPrice-0' has invalid format",
    "source" : {
      "pointer" : "/included/0/id"
    }
  } ]
}

I'm having the same issue, any updates on this?

  "data": {
    "type": "subscriptionPromotionalOffers",
    "attributes": {
      "name": "Tier2 50% off",
      "offerCode": "appoffTest01",
      "duration": "ONE_WEEK",
      "offerMode": "PAY_AS_YOU_GO",
      "numberOfPeriods": 1
    },
    "relationships": {
      "subscription": {
        "data": {
          "type": "subscriptions",
          "id": "6751863227"
        }
      },
      "prices": {
        "data": [
          {
            "type": "subscriptionPromotionalOfferPrices",
            "id": "1701cff0-c38d-4460-9845-43601292edbd"
          }
        ]
      }
    }
  },
  "included": [
    {
      "type": "subscriptionPromotionalOfferPrices",
      "id": "1701cff0-c38d-4460-9845-43601292edbd",
      "relationships": {
        "subscriptionPricePoint": {
          "data": {
            "type": "subscriptionPricePoints",
            "id": "eyJzIjoiNjc1MTg2MzIyNyIsInQiOiJBRkciLCJwIjoiMTAxMzIifQ"
          }
        }
      }
    }
  ]
}
  "errors": [
    {
      "id": "659be9c5-3a02-4a78-bf51-e40bf5c96138",
      "status": "409",
      "code": "ENTITY_ERROR.INCLUDED.INVALID_ID",
      "title": "The provided entity id is invalid",
      "detail": "The provided included entity id '1701cff0-c38d-4460-9845-43601292edbd' has invalid format",
      "source": {
        "pointer": "/included/0/id"
      }
    }
  ]
}

The correct format for the id is ${any-string}

Incorrect example: "id": "1701cff0-c38d-4460-9845-43601292edbd"

Correct example: "id": "${1701cff0-c38d-4460-9845-43601292edbd}"

v1/appPriceSchedules 409
 
 
Q