| POST | /api/SalesForce/InvoiceCollection |
|---|
export class SalesForceInvoiceReply
{
public ClassName?: string;
public UniqueId?: string;
public CreatedDateTime?: string;
public ClientId?: number;
public ErrorCode?: number;
public ErrorMessage?: string;
public InvBatchNo?: number;
public InvAmount?: number;
public constructor(init?: Partial<SalesForceInvoiceReply>) { (Object as any).assign(this, init); }
}
export class SalesForceInvoiceCollectionReply implements IHaveErrorField
{
public InvoiceReply?: SalesForceInvoiceReply[];
public IsError?: boolean;
public constructor(init?: Partial<SalesForceInvoiceCollectionReply>) { (Object as any).assign(this, init); }
}
export class SalesForceInvoiceItem
{
public ClassName?: string;
public UniqueId?: string;
public CreatedDateTime?: string;
public ClientId?: number;
public ProductName?: string;
public AmountDue?: string;
public ProductType?: string;
public ActPatternTypeId?: number;
public TermStartDate?: string;
public TermEndDate?: string;
public RecognitionPeriod?: number;
public RevenueAccount?: string;
public AccountsReceivableAccount?: string;
public LiabilityAccount?: string;
public CreditExpenseAccount?: string;
public InvoiceClearingAccount?: string;
public CostCenter?: string;
public Region?: string;
public constructor(init?: Partial<SalesForceInvoiceItem>) { (Object as any).assign(this, init); }
}
export class SalesForceInvoice
{
public ClassName?: string;
public UniqueId?: string;
public CreatedDateTime?: string;
public ClientId?: number;
public GroupId?: string;
public UserId?: string;
public OpportunityId?: string;
public InvoiceDueDate?: string;
public Installments?: number;
public Frequency?: number;
public BhUserId?: number;
public Description?: string;
public Deliver?: boolean;
public CurrencyType?: string;
public InvoiceItems?: SalesForceInvoiceItem[];
public InvoiceNo?: number;
public InvoiceAmt?: number;
public ExternalInvBatchNo?: string;
public ExemptFromLateFee?: boolean;
public constructor(init?: Partial<SalesForceInvoice>) { (Object as any).assign(this, init); }
}
export class SalesForceInvoiceCollection
{
public InvoiceCollection?: SalesForceInvoice[];
public constructor(init?: Partial<SalesForceInvoiceCollection>) { (Object as any).assign(this, init); }
}
TypeScript SalesForceInvoiceCollection DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/SalesForce/InvoiceCollection HTTP/1.1
Host: devapi.billhighway.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SalesForceInvoiceCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
<InvoiceCollection>
<SalesForceInvoice>
<BhUserId>0</BhUserId>
<ClassName>String</ClassName>
<ClientId>0</ClientId>
<CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
<CurrencyType>String</CurrencyType>
<Deliver>false</Deliver>
<Description>String</Description>
<ExemptFromLateFee>false</ExemptFromLateFee>
<ExternalInvBatchNo>String</ExternalInvBatchNo>
<Frequency>0</Frequency>
<GroupId>String</GroupId>
<Installments>0</Installments>
<InvoiceAmt>0</InvoiceAmt>
<InvoiceDueDate>0001-01-01T00:00:00</InvoiceDueDate>
<InvoiceItems>
<SalesForceInvoiceItem>
<AccountsReceivableAccount>String</AccountsReceivableAccount>
<ActPatternTypeId>0</ActPatternTypeId>
<AmountDue>String</AmountDue>
<ClassName>String</ClassName>
<ClientId>0</ClientId>
<CostCenter>String</CostCenter>
<CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
<CreditExpenseAccount>String</CreditExpenseAccount>
<InvoiceClearingAccount>String</InvoiceClearingAccount>
<LiabilityAccount>String</LiabilityAccount>
<ProductName>String</ProductName>
<ProductType>String</ProductType>
<RecognitionPeriod>0</RecognitionPeriod>
<Region>String</Region>
<RevenueAccount>String</RevenueAccount>
<TermEndDate>0001-01-01T00:00:00</TermEndDate>
<TermStartDate>0001-01-01T00:00:00</TermStartDate>
<UniqueId>String</UniqueId>
</SalesForceInvoiceItem>
</InvoiceItems>
<InvoiceNo>0</InvoiceNo>
<OpportunityId>String</OpportunityId>
<UniqueId>String</UniqueId>
<UserId>String</UserId>
</SalesForceInvoice>
</InvoiceCollection>
</SalesForceInvoiceCollection>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SalesForceInvoiceCollectionReply xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BH.CloudAPI.Common4.DTO.SalesForce">
<InvoiceReply>
<SalesForceInvoiceReply>
<ClassName>String</ClassName>
<ClientId>0</ClientId>
<CreatedDateTime>0001-01-01T00:00:00</CreatedDateTime>
<ErrorCode>0</ErrorCode>
<ErrorMessage>String</ErrorMessage>
<InvAmount>0</InvAmount>
<InvBatchNo>0</InvBatchNo>
<UniqueId>String</UniqueId>
</SalesForceInvoiceReply>
</InvoiceReply>
</SalesForceInvoiceCollectionReply>