Update invoice status
Mark an outstanding invoice as "paid" or "void". Cannot change the status of already paid or voided invoices.
Mark an outstanding invoice as "paid" or "void". Cannot change the status of already paid or voided invoices.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
status*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/invoices/string/status" \ -H "Content-Type: application/json" \ -d '{ "status": "paid" }'{ "success": true, "data": { "id": "string", "status": "draft", "updatedAt": "2019-08-24T14:15:22Z", "object": "invoice", "livemode": true }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}