Expenses

Exports an expense

Changed on

Export an expense to an external accounting system.

patch/api/v2/expenses/{id}/export

Request

  • Base URL
    https://developer.productive.io (the document declares no server; this is the origin it was published from)
  • URL
    https://developer.productive.io/api/v2/expenses/{id}/export
  • Auth
    none declared

Path parameters

idstring required

ID

Request body

Example request

{
  "data": {
    "type": "expenses",
    "attributes": {
      "name": "Design software license",
      "amount": "199.00",
      "currency": "USD",
      "date": "2026-03-01",
      "billable": true
    },
    "relationships": {
      "person": {
        "data": {
          "type": "people",
          "id": "12"
        }
      },
      "deal": {
        "data": {
          "type": "deals",
          "id": "89"
        }
      }
    }
  }
}

Response

Expenses.

Example response

{
  "data": {
    "id": "345",
    "type": "expenses",
    "attributes": {
      "name": "Design software license",
      "amount": "199.00",
      "currency": "USD",
      "date": "2026-03-01",
      "billable": true,
      "status": "pending",
      "created_at": "2026-03-01T10:00:00.000+00:00",
      "updated_at": "2026-03-01T10:00:00.000+00:00",
      "note": null
    },
    "relationships": {
      "person": {
        "data": {
          "type": "people",
          "id": "12"
        }
      },
      "deal": {
        "data": {
          "type": "deals",
          "id": "89"
        }
      }
    }
  },
  "included": []
}

Changes

    • warning

      added the new project_already_exported enum value to the // response property for the response status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status