createProformaInvoicePayment function
Future<ApiResponse<Object?> >
createProformaInvoicePayment(
- ExsitedClient client,
- Object proformaId,
- Object payload, {
- bool? raiseOnError,
- String? responseFormat,
POST /api/{api_version}/proforma_invoices/{proforma_id}/payments
Pay a pro-forma invoice, wrapped in payment; 201, answering the new
payment's code as payment.payment_id.
No typed view. Read response.map.
Implementation
Future<ApiResponse<Object?>> createProformaInvoicePayment(
ExsitedClient client,
Object proformaId,
Object payload, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendPostRequest(ProformaInvoicesUrls.proformaInvoicePayments,
pathParams: {'proforma_id': proformaId},
jsonBody: payload,
raiseOnError: raiseOnError,
responseFormat: responseFormat);