SmartGare
API referenceEndpoints

Record a bank transfer against a fee invoice

Closes the invoice for its exact amount. A smaller amount is refused; the difference is a credit or debit note. Nothing is written to the counter register. **Required permission:** `billing.fee-invoice:record-transfer`

POST/billing/v1/fee-invoices/{id}/bank-settlements

Closes the invoice for its exact amount. A smaller amount is refused; the difference is a credit or debit note. Nothing is written to the counter register.

Required permission: billing.fee-invoice:record-transfer

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Fee invoice id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*SettleFeeInvoiceRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/billing/v1/fee-invoices/string/bank-settlements" \  -H "Content-Type: application/json" \  -d '{    "amount": 0  }'
{  "addressee": {    "address_line1": "string",    "address_line2": "string",    "city": "string",    "email": "string",    "legal_identifier": "string",    "name": "string",    "phone_number": "string",    "postal_code": "string",    "website": "string"  },  "agreement_id": "string",  "agreement_reference": "string",  "amount": 0,  "currency": "string",  "customization_id": "string",  "id": "string",  "instalment_id": "string",  "invoice_number": "string",  "issued_at": "2019-08-24T14:15:22Z",  "issuer": {    "address_line1": "string",    "address_line2": "string",    "city": "string",    "email": "string",    "legal_identifier": "string",    "name": "string",    "phone_number": "string",    "postal_code": "string",    "website": "string"  },  "line": {    "description": "string",    "fee_kind_code": "string",    "fee_kind_label": "string",    "period_end": "2019-08-24",    "period_start": "2019-08-24",    "unit_id": "string",    "unit_name": "string"  },  "occupant_id": "string",  "profile_id": "string",  "series_id": "string",  "settlement": {    "actor": "string",    "means": "string",    "movement_id": "string",    "movement_reference": "string",    "register_id": "string",    "settled_at": "2019-08-24T14:15:22Z"  },  "status": "string"}