This API endpoint allows you to update a invoice.

Supported Formats

json

Errors

Code Description
404 Not found.
400 Invalid request.
500 Server crashed.

Examples

curl "https://app.octopi.co/api/v1/invoices/353388.json" -X PUT -d '{ "general_ledger_id" : "C8191" }' -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE"
{
   "invoice" : {
      "id" : "222",
      "number": "5",
      "general_ledger_id"; "1231",
      "created_at": "2016-11-28T19:01:41.936-05:00",
      "invoiced_at": "2016-11-28T19:01:41.936-05:00",
      "paid": false,
      "total": 1231.00
   }
}

Params

Param name Description
id
required

Validations:

  • Must be a String