POST
/
v1
/
c
/
invoice
curl --request POST \
  --url http://127.0.0.1:8080/v1/c/invoice \
  --header 'Content-Type: application/json' \
  --header 'wb-key: <api-key>' \
  --data '{
  "contract_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
  "customer_id": "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670",
  "invoice_item_ids": [
    "Cust_c40bea18-c0c9-44b1-bd0c-43f5283e1670"
  ]
}'
This response has no body data.

Authorizations

wb-key
string
header
required

Body

application/json

Arguments for invoice(s) creation

Invoice Item identifiers are optional: if this array isn't provided, all items that can currently be attached will be attached.

The customer is optional: if not provided and if no list of items is provided, then all attachable items belonging to this wb_customer will be grouped into invoices.

contract_id
string

Unique identifier of an object. Consists of object class prefix and a UUID

customer_id
string

Unique identifier of an object. Consists of object class prefix and a UUID

invoice_item_ids
string[] | null

optional list of invoice items to gather into one or several invoices (the invoices will be consistent: same contract, and items in automatic payment won't be mixed with items in manual payement)

Unique identifier of an object. Consists of object class prefix and a UUID