> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api-docs.papertracc.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api-docs.papertracc.com/_mcp/server.

# Amend Bill

PATCH https://api.papertracc.com/v1/bills/{id}/amend
Content-Type: application/json

Moves a bill into amendment flow. `reason` is optional unless project configuration requires it.

Reference: https://api-docs.papertracc.com/papertracc/sales/bills/amend-bill

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /bills/{id}/amend:
    patch:
      operationId: Amend Bill
      summary: Amend Bill
      description: >-
        Moves a bill into amendment flow. `reason` is optional unless project
        configuration requires it.
      tags:
        - bills
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Sales_Bills_Amend Bill_Response_200'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                reason:
                  type: string
              required:
                - reason
servers:
  - url: https://api.papertracc.com/v1
    description: Production
  - url: https://api.papertracc.com/rc-1
    description: Release Candidate 1
components:
  schemas:
    BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataItemsItems:
      type: object
      properties:
        rate:
          type: integer
        amount:
          type: integer
        detail:
          type: string
        tax_id:
          type: string
          format: uuid
        quantity:
          type: integer
        account_id:
          type: string
          format: uuid
        inventory_id:
          type: string
          format: uuid
        currency_code:
          type: string
      required:
        - rate
        - amount
        - detail
        - tax_id
        - quantity
        - account_id
        - inventory_id
        - currency_code
      title: BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataItemsItems
    BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataVendor:
      type: object
      properties:
        id:
          type: string
          format: uuid
        display_name:
          type: string
      required:
        - id
        - display_name
      title: BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataVendor
    BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataAdjustmentsItems:
      type: object
      properties:
        name:
          type: string
        type:
          type: string
        value:
          type: number
          format: double
        amount:
          type: integer
        operation:
          type: string
        account_id:
          type: string
          format: uuid
      required:
        - name
        - type
        - value
        - amount
        - operation
        - account_id
      title: >-
        BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataAdjustmentsItems
    BillsIdAmendPatchResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        id:
          type: string
          format: uuid
        items:
          type: array
          items:
            $ref: >-
              #/components/schemas/BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataItemsItems
        amount:
          type: string
        status:
          type: string
        vendor:
          $ref: >-
            #/components/schemas/BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataVendor
        approval:
          type: integer
        due_date:
          type: string
          format: date-time
        approvals:
          type: array
          items:
            description: Any type
        bill_date:
          type: string
          format: date-time
        documents:
          type: array
          items:
            description: Any type
        account_id:
          type: string
          format: uuid
        created_at:
          type: string
          format: date-time
        project_id:
          type: string
        adjustments:
          type: array
          items:
            $ref: >-
              #/components/schemas/BillsIdAmendPatchResponsesContentApplicationJsonSchemaDataAdjustmentsItems
        prepared_by:
          type: string
        currency_code:
          type: string
        exchange_rate:
          type: string
        bill_reference:
          type: string
        journal_status:
          type: string
        journal_entry_id:
          description: Any type
      required:
        - id
        - items
        - amount
        - status
        - vendor
        - approval
        - due_date
        - approvals
        - bill_date
        - documents
        - account_id
        - created_at
        - project_id
        - adjustments
        - prepared_by
        - currency_code
        - exchange_rate
        - bill_reference
        - journal_status
      title: BillsIdAmendPatchResponsesContentApplicationJsonSchemaData
    Sales_Bills_Amend Bill_Response_200:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/BillsIdAmendPatchResponsesContentApplicationJsonSchemaData
        status:
          type: boolean
        message:
          type: string
      required:
        - data
        - status
        - message
      title: Sales_Bills_Amend Bill_Response_200
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    identityAuth:
      type: apiKey
      in: header
      name: identity
      description: The identity for the active project.

```

## Examples



**Request**

```json
{
  "reason": "Need to correct due date"
}
```

**Response**

```json
{
  "data": {
    "id": "45c6e26d-e132-4548-8e2e-5bfc467cf94a",
    "items": [
      {
        "rate": 50000,
        "amount": 500000,
        "detail": "Consulting hours",
        "tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
        "quantity": 10,
        "account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
        "inventory_id": "55a40b4d-a23a-49aa-a417-828913e9a5c8",
        "currency_code": "NGN"
      }
    ],
    "amount": "250000.00",
    "status": "PENDING",
    "vendor": {
      "id": "0cb2d1a5-2f50-43a1-8c3f-df06f998ef51",
      "display_name": "Global Softworks"
    },
    "approval": 0,
    "due_date": "2026-07-18T10:00:00Z",
    "approvals": [],
    "bill_date": "2026-06-18T10:00:00Z",
    "documents": [],
    "account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
    "created_at": "2026-06-18T10:00:00Z",
    "project_id": "spruce-demo",
    "adjustments": [
      {
        "name": "VAT",
        "type": "PERCENTAGE_RATE",
        "value": 7.5,
        "amount": 37500,
        "operation": "ADDITION",
        "account_id": "2b0d1461-e52e-4a1a-a69c-11801431c2c9"
      }
    ],
    "prepared_by": "user-token-hash",
    "currency_code": "NGN",
    "exchange_rate": "1.00",
    "bill_reference": "BILL-0001",
    "journal_status": "UNPOSTED"
  },
  "status": true,
  "message": "Successfully amended bill"
}
```

**SDK Code**

```python Sales_Bills_Amend Bill_example
import requests

url = "https://api.papertracc.com/v1/bills/id/amend"

payload = { "reason": "Need to correct due date" }
headers = {
    "Authorization": "Bearer <apiKey>",
    "Content-Type": "application/json"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
```

```javascript Sales_Bills_Amend Bill_example
const url = 'https://api.papertracc.com/v1/bills/id/amend';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <apiKey>', 'Content-Type': 'application/json'},
  body: '{"reason":"Need to correct due date"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Sales_Bills_Amend Bill_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.papertracc.com/v1/bills/id/amend"

	payload := strings.NewReader("{\n  \"reason\": \"Need to correct due date\"\n}")

	req, _ := http.NewRequest("PATCH", url, payload)

	req.Header.Add("Authorization", "Bearer <apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Sales_Bills_Amend Bill_example
require 'uri'
require 'net/http'

url = URI("https://api.papertracc.com/v1/bills/id/amend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"reason\": \"Need to correct due date\"\n}"

response = http.request(request)
puts response.read_body
```

```java Sales_Bills_Amend Bill_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.patch("https://api.papertracc.com/v1/bills/id/amend")
  .header("Authorization", "Bearer <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"reason\": \"Need to correct due date\"\n}")
  .asString();
```

```php Sales_Bills_Amend Bill_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PATCH', 'https://api.papertracc.com/v1/bills/id/amend', [
  'body' => '{
  "reason": "Need to correct due date"
}',
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Sales_Bills_Amend Bill_example
using RestSharp;

var client = new RestClient("https://api.papertracc.com/v1/bills/id/amend");
var request = new RestRequest(Method.PATCH);
request.AddHeader("Authorization", "Bearer <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"reason\": \"Need to correct due date\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Sales_Bills_Amend Bill_example
import Foundation

let headers = [
  "Authorization": "Bearer <apiKey>",
  "Content-Type": "application/json"
]
let parameters = ["reason": "Need to correct due date"] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.papertracc.com/v1/bills/id/amend")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PATCH"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```