AlphaAlpha Docs
API ReferenceDebit notes

Add a row to a debit note

POST
/debit-notes/{id}/rows
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/debit-notes/string/rows" \  -H "Content-Type: application/json" \  -d '{    "quantity": 0.1,    "unitPrice": 0.1  }'
{
  "clearingEntries": [
    {
      "clearingStockSiteId": "string",
      "productId": "string",
      "quantity": 0.1
    }
  ],
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "dueDate": "2019-08-24T14:15:22Z",
  "id": "string",
  "issueDate": "2019-08-24T14:15:22Z",
  "note": "string",
  "number": "string",
  "purchaseOrderId": "string",
  "referenceNumber": "string",
  "rows": [
    {
      "description": "string",
      "glAccountId": "string",
      "id": "string",
      "productId": "string",
      "productName": "string",
      "quantity": 0.1,
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "unitPrice": 0.1
    }
  ],
  "settledDate": "2019-08-24T14:15:22Z",
  "status": "string",
  "subsidiaryId": "string",
  "subtotal": 0.1,
  "supplierEmail": "string",
  "supplierId": "string",
  "supplierName": "string",
  "taxAmount": 0.1,
  "totalAmount": 0.1,
  "updated": "2019-08-24T14:15:22Z"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}