POST
/
consumers
/
{consumer_id}
/
invoicing
/
invoices
curl --request POST \
  --url https://api.chift.eu/consumers/{consumer_id}/invoicing/invoices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "currency": "<string>",
  "invoice_type": "customer_invoice",
  "status": "cancelled",
  "invoice_date": "2023-12-25",
  "tax_amount": 123,
  "untaxed_amount": 123,
  "total": 123,
  "lines": [],
  "partner_id": "<string>",
  "invoice_number": "<string>",
  "due_date": "2023-12-25",
  "reference": "<string>",
  "payment_communication": "<string>",
  "customer_memo": "<string>",
  "journal_ref": {
    "id": "<string>",
    "model": "<string>",
    "name": "<string>"
  },
  "italian_specificities": {
    "stamp_duty_amount": 123,
    "withholding_tax": {
      "rate": 123,
      "amount": 123,
      "reason": "RT01",
      "payment_reason": "A"
    },
    "welfare_fund": {
      "rate": 123,
      "amount": 123,
      "type": "TC01"
    },
    "payment_reporting": {
      "method": "MP01",
      "conditions": "TP01"
    }
  }
}'
{
  "id": "<string>",
  "source_ref": {
    "id": "<string>",
    "model": "<string>"
  },
  "currency": "<string>",
  "invoice_type": "customer_invoice",
  "status": "cancelled",
  "invoice_date": "2023-12-25",
  "tax_amount": 123,
  "untaxed_amount": 123,
  "total": 123,
  "lines": [],
  "partner_id": "<string>",
  "invoice_number": "<string>",
  "due_date": "2023-12-25",
  "reference": "<string>",
  "payment_communication": "<string>",
  "customer_memo": "<string>",
  "journal_ref": {
    "id": "<string>",
    "model": "<string>",
    "name": "<string>"
  },
  "italian_specificities": {
    "stamp_duty_amount": 123,
    "withholding_tax": {
      "rate": 123,
      "amount": 123,
      "reason": "RT01",
      "payment_reason": "A"
    },
    "welfare_fund": {
      "rate": 123,
      "amount": 123,
      "type": "TC01"
    },
    "payment_reporting": {
      "method": "MP01",
      "conditions": "TP01"
    }
  },
  "last_updated_on": "2023-11-07T05:31:56Z",
  "outstanding_amount": 123,
  "accounting_date": "2023-12-25",
  "payment_method_id": "<string>",
  "currency_exchange_rate": 123
}

Authorizations

Authorization
string
header
required

This access token needs to be included in each of your request to the Chift API.

Path Parameters

consumer_id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.