---
updatedAt: 2026-07-09T16:24:00.000Z
agentTools:
  projectIndex: https://c-vmch.readme.io/llms.txt
---

# Update Invoice

Modify an existing invoice or order details.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/api/v1/order/{id}": {
      "patch": {
        "operationId": "OrderController_update",
        "summary": "Update Invoice",
        "description": "Modify an existing invoice or order details.",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Unique identifier of the invoice",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrderDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The order has successfully been updated.",
            "content": {
              "application/json": {
                "schema": {
                  "example": {
                    "success": true,
                    "message": "The order has successfully been updated.",
                    "code": "ORDER_UPDATED",
                    "data": {
                      "createdAt": "2024-09-26T20:03:28.206Z",
                      "updatedAt": "2024-09-26T20:03:28.206Z",
                      "isLiveResource": true,
                      "associateId": "686890",
                      "tempCustomer": {
                        "name": "Damien Darhk",
                        "email": "damien.darhk@example.com"
                      },
                      "subject": "Invoice for Product Purchase",
                      "dueAt": "2024-01-21T10:51:26.968Z",
                      "issuedAt": "2024-01-21T10:51:26.968Z",
                      "items": [
                        {
                          "name": "MacBook 2016",
                          "qty": 2,
                          "price": 300
                        }
                      ],
                      "status": "unpaid"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The order requested wasn't found on our database.",
            "content": {
              "application/json": {
                "schema": {
                  "example": {
                    "success": false,
                    "message": "The order requested doesn't exist on our system.",
                    "code": "ORDER_NOT_FOUND",
                    "data": null
                  }
                }
              }
            }
          },
          "406": {
            "description": "The update was rejected because the order had already been paid for.",
            "content": {
              "application/json": {
                "schema": {
                  "example": {
                    "success": false,
                    "message": "The update was rejected because the order had already been paid for.",
                    "code": "ORDER_UPDATE_REJECTED",
                    "data": null
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Invoice/Order"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "info": {
    "title": "Centiiv Public API",
    "description": "The OpenAPI specifications for the API.",
    "version": "1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.centiiv.com",
      "description": "Production"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "ItemDto": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "MacBook 2016"
          },
          "qty": {
            "type": "number",
            "example": 2
          },
          "price": {
            "type": "number",
            "example": 300
          }
        },
        "required": [
          "name",
          "qty",
          "price"
        ]
      },
      "UpdateOrderDto": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "example": "Invoice for Damien",
            "description": "The title of the invoice."
          },
          "dueDate": {
            "type": "string",
            "example": "2024-01-21T10:51:26.968Z",
            "description": "ISO date string."
          },
          "currency": {
            "type": "string",
            "example": "NGN",
            "enum": [
              "NGN",
              "USD",
              "GBP",
              "EUR",
              "MXN",
              "BRL"
            ]
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItemDto"
            }
          }
        },
        "required": [
          "subject",
          "dueDate",
          "products"
        ]
      }
    }
  }
}
```