POST
/
credit-notes-totals
Header
Body
curl --request POST \
  --url https://eu.sequencehq.com/api/credit-notes-totals \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "lineItems": [
    {
      "creditNoteId": "941272d1-f840-4e16-b698-0cd455c81e0e",
      "description": "Red",
      "externalIds": [],
      "grossTotal": "22000",
      "groupId": "06c44e52-b8f4-4588-a2a6-001169ebf80e",
      "id": "941272d1-f840-4e16-b698-0cd455c81e0e",
      "index": 1,
      "lineItemId": "3ec02846-bcf7-484c-a96e-ded9a9b96333",
      "netTotal": "200000",
      "quantity": "10",
      "rate": "200000",
      "rateDisplay": "ABSOLUTE",
      "taxRate": "0.1",
      "title": "Ferraris",
      "totalTax": "10"
    }
  ]
}'
{
  "lineItemGroupTotals": [
    {
      "id": "06c44e52-b8f4-4588-a2a6-001169ebf80e",
      "total": {
        "grossTotal": "22000",
        "netTotal": "200000",
        "totalTax": "10"
      }
    }
  ],
  "lineItemTotals": [
    {
      "id": "941272d1-f840-4e16-b698-0cd455c81e0e",
      "total": {
        "grossTotal": "22000",
        "netTotal": "200000",
        "totalTax": "10"
      }
    }
  ],
  "total": {
    "grossTotal": "22000",
    "netTotal": "200000",
    "totalTax": "10"
  }
}

Headers

Authorizationrequired
string

Your API credentials. Eg. Basic {credentials}.

Idempotency-Key
string

Specifying a unique ID for this request here lets you retry it without risk of performing the same operation twice.

Body

application/json
lineItemsrequired
object[]

Response

200 - application/json
lineItemGroupTotalsrequired
object[]
lineItemTotalsrequired
object[]
totalrequired
object