POST
/
invoices
/
items
/
v1
curl --request POST \
  --url https://api.spacebring.com/invoices/items/v1 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "invoiceItem": {
    "unitAmount": 123,
    "invoiceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "description": "<string>",
    "quantity": 123,
    "tax": {
      "rate": 123
    }
  }
}'
{
  "invoiceItem": {
    "amount": 123,
    "booking": {
      "endDate": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "resource": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "title": "<string>",
        "type": "dedicatedDesk"
      },
      "startDate": "2023-11-07T05:31:56Z"
    },
    "createDate": "2023-11-07T05:31:56Z",
    "creditPackage": {
      "amount": 123
    },
    "currencyCode": "<string>",
    "description": "<string>",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "invoiceRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "netAmount": 123,
    "order": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "option": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      },
      "product": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "title": "<string>"
      }
    },
    "plan": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>"
    },
    "quantity": 123,
    "tax": {
      "inclusive": true,
      "rate": 123
    },
    "taxAmount": 123,
    "ticket": {
      "createDate": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "event": {
        "endDate": "2023-11-07T05:31:56Z",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "startDate": "2023-11-07T05:31:56Z",
        "title": "<string>"
      }
    },
    "type": "booking",
    "unitAmount": 123
  }
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Headers

spacebring-network-id
string

The id of the network. Required when using bearer token authentication

Body

application/json
invoiceItem
object
required

Response

201
application/json
Created
invoiceItem
object