# Add payment for an outgoing invoice Required scopes: payments:write Endpoint: POST /payments/outgoing-invoice Version: v1 Security: http, oauth2 ## Request fields (application/json): - `type` (string, required) Enum: "in", "out" - `payment_account_id` (string, required) - `reference` (string, required) - `date_of_payment` (string, required) - `customer_name` (string) - `iban` (string) - `bic` (string) - `bookings` (array, required) - `bookings.outgoing_invoice_id` (string, required) Invoice needs to be booked - `bookings.value` (number, required) ## Response 200 fields (application/json): - `id` (string, required) - `type` (string, required) - `date_of_payment` (string,null, required) - `reference` (string, required) - `iban` (string,null, required) - `bic` (string,null, required) - `value` (number, required) - `payment_account` (object, required) - `payment_account.is_default` (boolean, required) - `payment_account.title` (string, required) - `payment_account.organization` (string,null, required) - `payment_account.identifier` (string,null, required) - `payment_account.owner` (any, required) - `payment_account.updated_at` (string,null, required) - `payment_account.created_at` (string, required) - `payment_account.deleted_at` (string,null, required) - `bookings` (array, required) - `bookings.payment_type` (string, required) - `bookings.outgoing_invoice_id` (string,null, required) ## Response 401 fields (application/json): - `message` (string, required) Error overview. ## Response 422 fields (application/json): - `message` (string, required) Errors overview. - `errors` (object, required) A detailed description of each field that failed validation. ## Response 500 fields (application/json): - `message` (string, required) Error overview. Example: "Payment could not be saved"