# Invalid object type with line items api

**URL:** <https://community.hubspot.com/t/invalid-object-type-with-line-items-api/74994>\
**Category:** APIs & Integrations\
**Created:** [February 10, 2023, 8:31pm UTC](https://community.hubspot.com/t/invalid-object-type-with-line-items-api/74994 "2023-02-10T20:31:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VernBriggs](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@VernBriggs](https://community.hubspot.com/u/VernBriggs)\
**Post date:** [February 10, 2023, 8:31pm UTC](https://community.hubspot.com/t/invalid-object-type-with-line-items-api/74994/1 "2023-02-10T20:31:40Z")

</div>

I keep getting this error and it feels, well, cryptic. Does anyone have any explanations for this?

```lia-code-sample
{
	"status": "error",
	"message": "invalid from object type 0-8 for associations to be created. expected: 0-3",
	"correlationId": "e1066c02-e76c-4e19-89c8-15aa2af2a1bc",
	"category": "VALIDATION_ERROR"
}

```

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [February 13, 2023, 10:48pm UTC](https://community.hubspot.com/t/invalid-object-type-with-line-items-api/74994/2 "2023-02-13T22:48:53Z")

</div>

Hey, @VernBriggs 👋 Can you share an example request? It helps to give the community context.

Best,

Jaycee
