Skip to Content
AffFast

expand_invalid

The expand parameter is not valid.

HTTP status: 422. Error type: invalid_request_error.

The expand parameter is not valid.

Example

{
  "error": {
    "type": "invalid_request_error",
    "code": "expand_invalid",
    "message": "The expand parameter is not valid.",
    "param": "expand[]",
    "doc_url": "https://docs.afffast.com/errors/expand-invalid",
    "request_id": "req_3kQ9x7WmZpL2vNd8TfYb4A"
  }
}

Causes

  • A value of expand[] names a field that the object does not have, or a field that you cannot expand.
  • The path of the value is too deep.

How to fix

  • Read the message. It lists the fields that you can expand on that object.
  • Use a shorter path.
  • An event has no field that you can expand.

On this page