I am attempting to create an Advanced Intercompany...
# suitetalkapi
m
I am attempting to create an Advanced Intercompany Journal Entry via a
POST
to the
{{REST_SERVICES}}/record/v1/advIntercompanyJournalEntry
endpoint as shown in the docs here. After working through some errors around permissions I am now only getting a very non-descript
INVALID_CONTENT
error. I validated that I have all the required fields by creating a record in the UI and setting all of the same data in my request body below:
Copy code
{
  "trandate": "2025-01-16",
  "subsidiary": {
    "id": "1"
  },
  "currency": {
    "id": "1"
  },
  "memo": "testmemo",
  "lines": [
    {
      "account": {
        "id": "552"
      },
      "entity": {
        "id": "322"
      },
      "debit": 10,
      "eliminate": true,
      "lineSubsidiary": {
        "id": "3"
      },
      "department": {
        "id": "1"
      }
    },
    {
      "account": {
        "id": "482"
      },
      "entity": {
        "id": "1440"
      },
      "credit": 1000,
      "eliminate": true,
      "lineSubsidiary": {
        "id": "3"
      },
      "department": {
        "id": "1"
      }
    },
    {
      "account": {
        "id": "111"
      },
      "entity": {
        "id": "1440"
      },
      "debit": 1000,
      "eliminate": true,
      "lineSubsidiary": {
        "id": "6"
      },
      "department": {
        "id": "1"
      }
    },
    {
      "account": {
        "id": "551"
      },
      "entity": {
        "id": "319"
      },
      "credit": 1000,
      "eliminate": true,
      "lineSubsidiary": {
        "id": "6"
      },
      "department": {
        "id": "1"
      }
    }
  ]
}
I am receiving this error:
Copy code
{
  "type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>",
  "title": "Bad Request",
  "status": 400,
  "o:errorDetails": [
    {
      "detail": "Invalid content in the request body.",
      "o:errorCode": "INVALID_CONTENT"
    }
  ]
}
I don’t think there is any issue in my json formatting although I could be wrong. I also tested by removing the entire
lines
array and then I get the below error so I do not think is is a permissions issue:
Copy code
{
  "type": "<https://www.rfc-editor.org/rfc/rfc9110.html#section-15.5.1>",
  "title": "Bad Request",
  "status": 400,
  "o:errorDetails": [
    {
      "detail": "Error while accessing a resource. You must enter at least one line item for this transaction.",
      "o:errorCode": "USER_ERROR"
    }
  ]
}
Does anyone know of a good way to get a more descriptive error message to figure out which fields I might be missing? I verified that this is all the data that is being returned by viewing my integration record’s Execution Logs as well
g
what request headers are you sending