Article ID: 115455, created on Jan 28, 2013, last review on Sep 26, 2015

  • Applies to:
  • Odin Business Automation Standard 4.5

Symptoms

API function create_custom_invoice does not allow to create negative amount invoices.

my %h = (
 description => 'create_custom_invoice test',
 account_no => 10,
 items => [{rate => '-1000', quantity => 1, comment => 'comment'}],
 );
 my $obj = $client->ns('HSPC/API/Billing/1.0')->create_custom_invoice(%h)->result;

 Execution fails with the error:
Fault: Cannot create invoice with amount =-1000 soap:InvoiceFailed  at ./create_invoice.pl line 15.

Cause

Function create_custom_invoice accepts only positive amount for invoice items.

Resolution

It is impossible to create Credit Invoices through API in the current OBAS implementation. This functionality will be considered for inclusion in future product versions.

Credit Invoice creation is allowed from the OBAS Provider Control Center (PCC).

Search Words

Credit Invoice via API

API

invoice with negative rate

400e18f6ede9f8be5575a475d2d6b0a6 caea8340e2d186a540518d08602aa065 624ca542e40215e6f1d39170d8e7ec75 70a5401e8b9354cd1d64d0346f2c4a3e

Email subscription for changes to this article
Save as PDF