> 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.

# Create Inventory

POST https://api.papertracc.com/v1/sales/inventory
Content-Type: application/json

Creates an inventory item with sales and purchase account/tax mappings.

Reference: https://api-docs.papertracc.com/papertracc/sales/inventory/create-inventory

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /sales/inventory:
    post:
      operationId: Create Inventory
      summary: Create Inventory
      description: Creates an inventory item with sales and purchase account/tax mappings.
      tags:
        - inventory
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Sales_Inventory_Create
                  Inventory_Response_201
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                type:
                  type: string
                usage:
                  type: string
                cost_prices:
                  type: array
                  items:
                    $ref: >-
                      #/components/schemas/SalesInventoryPostRequestBodyContentApplicationJsonSchemaCostPricesItems
                sales_tax_id:
                  type: string
                  format: uuid
                tax_inclusive:
                  type: boolean
                selling_prices:
                  type: array
                  items:
                    $ref: >-
                      #/components/schemas/SalesInventoryPostRequestBodyContentApplicationJsonSchemaSellingPricesItems
                purchase_tax_id:
                  type: string
                  format: uuid
                sales_account_id:
                  type: string
                  format: uuid
                sales_description:
                  type: string
                purchase_vendor_id:
                  type: string
                  format: uuid
                purchase_account_id:
                  type: string
                  format: uuid
                purchase_description:
                  type: string
              required:
                - name
                - type
                - usage
                - cost_prices
                - sales_tax_id
                - tax_inclusive
                - selling_prices
                - purchase_tax_id
                - sales_account_id
                - sales_description
                - purchase_vendor_id
                - purchase_account_id
                - purchase_description
servers:
  - url: https://api.papertracc.com/v1
    description: Production
  - url: https://api.papertracc.com/rc-1
    description: Release Candidate 1
components:
  schemas:
    SalesInventoryPostRequestBodyContentApplicationJsonSchemaCostPricesItems:
      type: object
      properties:
        rate:
          type: integer
        currency_code:
          type: string
      required:
        - rate
        - currency_code
      title: SalesInventoryPostRequestBodyContentApplicationJsonSchemaCostPricesItems
    SalesInventoryPostRequestBodyContentApplicationJsonSchemaSellingPricesItems:
      type: object
      properties:
        rate:
          type: integer
        currency_code:
          type: string
      required:
        - rate
        - currency_code
      title: >-
        SalesInventoryPostRequestBodyContentApplicationJsonSchemaSellingPricesItems
    SalesInventoryPostResponsesContentApplicationJsonSchemaDataCostPricesItems:
      type: object
      properties:
        rate:
          type: integer
        currency_code:
          type: string
      required:
        - rate
        - currency_code
      title: >-
        SalesInventoryPostResponsesContentApplicationJsonSchemaDataCostPricesItems
    SalesInventoryPostResponsesContentApplicationJsonSchemaDataSellingPricesItems:
      type: object
      properties:
        rate:
          type: integer
        currency_code:
          type: string
      required:
        - rate
        - currency_code
      title: >-
        SalesInventoryPostResponsesContentApplicationJsonSchemaDataSellingPricesItems
    SalesInventoryPostResponsesContentApplicationJsonSchemaData:
      type: object
      properties:
        id:
          type: string
          format: uuid
        sku:
          type: string
        name:
          type: string
        type:
          type: string
        usage:
          type: string
        amount:
          type: string
        created_at:
          type: string
          format: date-time
        project_id:
          type: string
        cost_prices:
          type: array
          items:
            $ref: >-
              #/components/schemas/SalesInventoryPostResponsesContentApplicationJsonSchemaDataCostPricesItems
        sales_tax_id:
          type: string
          format: uuid
        selling_prices:
          type: array
          items:
            $ref: >-
              #/components/schemas/SalesInventoryPostResponsesContentApplicationJsonSchemaDataSellingPricesItems
        purchase_tax_id:
          type: string
          format: uuid
        is_tax_inclusive:
          type: boolean
        sales_account_id:
          type: string
          format: uuid
        sales_description:
          type: string
        purchase_vendor_id:
          type: string
          format: uuid
        purchase_account_id:
          type: string
          format: uuid
        purchase_description:
          type: string
      required:
        - id
        - sku
        - name
        - type
        - usage
        - amount
        - created_at
        - project_id
        - cost_prices
        - sales_tax_id
        - selling_prices
        - purchase_tax_id
        - is_tax_inclusive
        - sales_account_id
        - sales_description
        - purchase_vendor_id
        - purchase_account_id
        - purchase_description
      title: SalesInventoryPostResponsesContentApplicationJsonSchemaData
    Sales_Inventory_Create Inventory_Response_201:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/SalesInventoryPostResponsesContentApplicationJsonSchemaData
        status:
          type: boolean
        message:
          type: string
      required:
        - data
        - status
        - message
      title: Sales_Inventory_Create Inventory_Response_201
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    identityAuth:
      type: apiKey
      in: header
      name: identity
      description: The identity for the active project.

```

## Examples



**Request**

```json
{
  "name": "Office Desk",
  "type": "GOODS",
  "usage": "SALE_AND_PURCHASE",
  "cost_prices": [
    {
      "rate": 100000,
      "currency_code": "NGN"
    }
  ],
  "sales_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
  "tax_inclusive": true,
  "selling_prices": [
    {
      "rate": 150000,
      "currency_code": "NGN"
    }
  ],
  "purchase_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
  "sales_account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
  "sales_description": "Office desk sold to customers",
  "purchase_vendor_id": "0cb2d1a5-2f50-43a1-8c3f-df06f998ef51",
  "purchase_account_id": "e35f42b4-a6e2-4664-96df-d2cf3f1a6f33",
  "purchase_description": "Office desk purchased from vendors"
}
```

**Response**

```json
{
  "data": {
    "id": "55a40b4d-a23a-49aa-a417-828913e9a5c8",
    "sku": "SKU-1001",
    "name": "Office Desk",
    "type": "GOODS",
    "usage": "SALE_AND_PURCHASE",
    "amount": "150000.00",
    "created_at": "2026-06-18T10:00:00Z",
    "project_id": "spruce-demo",
    "cost_prices": [
      {
        "rate": 100000,
        "currency_code": "NGN"
      }
    ],
    "sales_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
    "selling_prices": [
      {
        "rate": 150000,
        "currency_code": "NGN"
      }
    ],
    "purchase_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
    "is_tax_inclusive": true,
    "sales_account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
    "sales_description": "Office desk sold to customers",
    "purchase_vendor_id": "0cb2d1a5-2f50-43a1-8c3f-df06f998ef51",
    "purchase_account_id": "e35f42b4-a6e2-4664-96df-d2cf3f1a6f33",
    "purchase_description": "Office desk purchased from vendors"
  },
  "status": true,
  "message": "Successfully created inventory"
}
```

**SDK Code**

```python Sales_Inventory_Create Inventory_example
import requests

url = "https://api.papertracc.com/v1/sales/inventory"

payload = {
    "name": "Office Desk",
    "type": "GOODS",
    "usage": "SALE_AND_PURCHASE",
    "cost_prices": [
        {
            "rate": 100000,
            "currency_code": "NGN"
        }
    ],
    "sales_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
    "tax_inclusive": True,
    "selling_prices": [
        {
            "rate": 150000,
            "currency_code": "NGN"
        }
    ],
    "purchase_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
    "sales_account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
    "sales_description": "Office desk sold to customers",
    "purchase_vendor_id": "0cb2d1a5-2f50-43a1-8c3f-df06f998ef51",
    "purchase_account_id": "e35f42b4-a6e2-4664-96df-d2cf3f1a6f33",
    "purchase_description": "Office desk purchased from vendors"
}
headers = {
    "Authorization": "Bearer <apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Sales_Inventory_Create Inventory_example
const url = 'https://api.papertracc.com/v1/sales/inventory';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <apiKey>', 'Content-Type': 'application/json'},
  body: '{"name":"Office Desk","type":"GOODS","usage":"SALE_AND_PURCHASE","cost_prices":[{"rate":100000,"currency_code":"NGN"}],"sales_tax_id":"78c68f6d-d734-4822-9a6c-73f517a0e5c1","tax_inclusive":true,"selling_prices":[{"rate":150000,"currency_code":"NGN"}],"purchase_tax_id":"78c68f6d-d734-4822-9a6c-73f517a0e5c1","sales_account_id":"d037d299-3029-4dc7-8e72-172f80f23c4f","sales_description":"Office desk sold to customers","purchase_vendor_id":"0cb2d1a5-2f50-43a1-8c3f-df06f998ef51","purchase_account_id":"e35f42b4-a6e2-4664-96df-d2cf3f1a6f33","purchase_description":"Office desk purchased from vendors"}'
};

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

```go Sales_Inventory_Create Inventory_example
package main

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

func main() {

	url := "https://api.papertracc.com/v1/sales/inventory"

	payload := strings.NewReader("{\n  \"name\": \"Office Desk\",\n  \"type\": \"GOODS\",\n  \"usage\": \"SALE_AND_PURCHASE\",\n  \"cost_prices\": [\n    {\n      \"rate\": 100000,\n      \"currency_code\": \"NGN\"\n    }\n  ],\n  \"sales_tax_id\": \"78c68f6d-d734-4822-9a6c-73f517a0e5c1\",\n  \"tax_inclusive\": true,\n  \"selling_prices\": [\n    {\n      \"rate\": 150000,\n      \"currency_code\": \"NGN\"\n    }\n  ],\n  \"purchase_tax_id\": \"78c68f6d-d734-4822-9a6c-73f517a0e5c1\",\n  \"sales_account_id\": \"d037d299-3029-4dc7-8e72-172f80f23c4f\",\n  \"sales_description\": \"Office desk sold to customers\",\n  \"purchase_vendor_id\": \"0cb2d1a5-2f50-43a1-8c3f-df06f998ef51\",\n  \"purchase_account_id\": \"e35f42b4-a6e2-4664-96df-d2cf3f1a6f33\",\n  \"purchase_description\": \"Office desk purchased from vendors\"\n}")

	req, _ := http.NewRequest("POST", 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_Inventory_Create Inventory_example
require 'uri'
require 'net/http'

url = URI("https://api.papertracc.com/v1/sales/inventory")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"Office Desk\",\n  \"type\": \"GOODS\",\n  \"usage\": \"SALE_AND_PURCHASE\",\n  \"cost_prices\": [\n    {\n      \"rate\": 100000,\n      \"currency_code\": \"NGN\"\n    }\n  ],\n  \"sales_tax_id\": \"78c68f6d-d734-4822-9a6c-73f517a0e5c1\",\n  \"tax_inclusive\": true,\n  \"selling_prices\": [\n    {\n      \"rate\": 150000,\n      \"currency_code\": \"NGN\"\n    }\n  ],\n  \"purchase_tax_id\": \"78c68f6d-d734-4822-9a6c-73f517a0e5c1\",\n  \"sales_account_id\": \"d037d299-3029-4dc7-8e72-172f80f23c4f\",\n  \"sales_description\": \"Office desk sold to customers\",\n  \"purchase_vendor_id\": \"0cb2d1a5-2f50-43a1-8c3f-df06f998ef51\",\n  \"purchase_account_id\": \"e35f42b4-a6e2-4664-96df-d2cf3f1a6f33\",\n  \"purchase_description\": \"Office desk purchased from vendors\"\n}"

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

```java Sales_Inventory_Create Inventory_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.papertracc.com/v1/sales/inventory")
  .header("Authorization", "Bearer <apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"Office Desk\",\n  \"type\": \"GOODS\",\n  \"usage\": \"SALE_AND_PURCHASE\",\n  \"cost_prices\": [\n    {\n      \"rate\": 100000,\n      \"currency_code\": \"NGN\"\n    }\n  ],\n  \"sales_tax_id\": \"78c68f6d-d734-4822-9a6c-73f517a0e5c1\",\n  \"tax_inclusive\": true,\n  \"selling_prices\": [\n    {\n      \"rate\": 150000,\n      \"currency_code\": \"NGN\"\n    }\n  ],\n  \"purchase_tax_id\": \"78c68f6d-d734-4822-9a6c-73f517a0e5c1\",\n  \"sales_account_id\": \"d037d299-3029-4dc7-8e72-172f80f23c4f\",\n  \"sales_description\": \"Office desk sold to customers\",\n  \"purchase_vendor_id\": \"0cb2d1a5-2f50-43a1-8c3f-df06f998ef51\",\n  \"purchase_account_id\": \"e35f42b4-a6e2-4664-96df-d2cf3f1a6f33\",\n  \"purchase_description\": \"Office desk purchased from vendors\"\n}")
  .asString();
```

```php Sales_Inventory_Create Inventory_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.papertracc.com/v1/sales/inventory', [
  'body' => '{
  "name": "Office Desk",
  "type": "GOODS",
  "usage": "SALE_AND_PURCHASE",
  "cost_prices": [
    {
      "rate": 100000,
      "currency_code": "NGN"
    }
  ],
  "sales_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
  "tax_inclusive": true,
  "selling_prices": [
    {
      "rate": 150000,
      "currency_code": "NGN"
    }
  ],
  "purchase_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
  "sales_account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
  "sales_description": "Office desk sold to customers",
  "purchase_vendor_id": "0cb2d1a5-2f50-43a1-8c3f-df06f998ef51",
  "purchase_account_id": "e35f42b4-a6e2-4664-96df-d2cf3f1a6f33",
  "purchase_description": "Office desk purchased from vendors"
}',
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Sales_Inventory_Create Inventory_example
using RestSharp;

var client = new RestClient("https://api.papertracc.com/v1/sales/inventory");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"Office Desk\",\n  \"type\": \"GOODS\",\n  \"usage\": \"SALE_AND_PURCHASE\",\n  \"cost_prices\": [\n    {\n      \"rate\": 100000,\n      \"currency_code\": \"NGN\"\n    }\n  ],\n  \"sales_tax_id\": \"78c68f6d-d734-4822-9a6c-73f517a0e5c1\",\n  \"tax_inclusive\": true,\n  \"selling_prices\": [\n    {\n      \"rate\": 150000,\n      \"currency_code\": \"NGN\"\n    }\n  ],\n  \"purchase_tax_id\": \"78c68f6d-d734-4822-9a6c-73f517a0e5c1\",\n  \"sales_account_id\": \"d037d299-3029-4dc7-8e72-172f80f23c4f\",\n  \"sales_description\": \"Office desk sold to customers\",\n  \"purchase_vendor_id\": \"0cb2d1a5-2f50-43a1-8c3f-df06f998ef51\",\n  \"purchase_account_id\": \"e35f42b4-a6e2-4664-96df-d2cf3f1a6f33\",\n  \"purchase_description\": \"Office desk purchased from vendors\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Sales_Inventory_Create Inventory_example
import Foundation

let headers = [
  "Authorization": "Bearer <apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "Office Desk",
  "type": "GOODS",
  "usage": "SALE_AND_PURCHASE",
  "cost_prices": [
    [
      "rate": 100000,
      "currency_code": "NGN"
    ]
  ],
  "sales_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
  "tax_inclusive": true,
  "selling_prices": [
    [
      "rate": 150000,
      "currency_code": "NGN"
    ]
  ],
  "purchase_tax_id": "78c68f6d-d734-4822-9a6c-73f517a0e5c1",
  "sales_account_id": "d037d299-3029-4dc7-8e72-172f80f23c4f",
  "sales_description": "Office desk sold to customers",
  "purchase_vendor_id": "0cb2d1a5-2f50-43a1-8c3f-df06f998ef51",
  "purchase_account_id": "e35f42b4-a6e2-4664-96df-d2cf3f1a6f33",
  "purchase_description": "Office desk purchased from vendors"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.papertracc.com/v1/sales/inventory")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```