To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
GET /customers/{customerId}/invoiceterms HTTP/1.1
Host: api.paylock.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CustomerInvoiceTerm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel">
<CashPaymentsOwnedByPaylock>false</CashPaymentsOwnedByPaylock>
<ContactAddressLine1>String</ContactAddressLine1>
<ContactAddressLine2>String</ContactAddressLine2>
<ContactCity>String</ContactCity>
<ContactCompany>String</ContactCompany>
<ContactEmail>String</ContactEmail>
<ContactName>String</ContactName>
<ContactPhone>String</ContactPhone>
<ContactState>String</ContactState>
<ContactZip>String</ContactZip>
<CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
<EndDate>0001-01-01T00:00:00</EndDate>
<FieldCrewFlatRate>0</FieldCrewFlatRate>
<FieldCrewHourlyRate>0</FieldCrewHourlyRate>
<FieldCrewShow>0</FieldCrewShow>
<FlatServiceFee>0</FlatServiceFee>
<FlatServiceFeeShow>0</FlatServiceFeeShow>
<GracePeriod>0</GracePeriod>
<Id>00000000-0000-0000-0000-000000000000</Id>
<InvoiceConvenienceFees>false</InvoiceConvenienceFees>
<InvoiceMerchantFees>0</InvoiceMerchantFees>
<InvoicePaylockFees>0</InvoicePaylockFees>
<InvoiceSalesTax>false</InvoiceSalesTax>
<IsNetRemit>false</IsNetRemit>
<NoticeContingencyAmountShow>false</NoticeContingencyAmountShow>
<NoticeContingencyPercent>0</NoticeContingencyPercent>
<NoticeContingencyPercentShow>false</NoticeContingencyPercentShow>
<PaylockContact>String</PaylockContact>
<PaymentDueDateDesc>String</PaymentDueDateDesc>
<PaymentTerms>String</PaymentTerms>
<PerBootAppliedFee>0</PerBootAppliedFee>
<PerBootAppliedShow>0</PerBootAppliedShow>
<PerBootFeePaidShow>0</PerBootFeePaidShow>
<PerBootPaidFee>0</PerBootPaidFee>
<PerBootPaidShow>0</PerBootPaidShow>
<PerBootReleaseFeePaidShow>0</PerBootReleaseFeePaidShow>
<PerNoticeAppliedFee>0</PerNoticeAppliedFee>
<PerNoticeAppliedShow>0</PerNoticeAppliedShow>
<PerNoticeFeePaidShow>0</PerNoticeFeePaidShow>
<PerNoticePaidFee>0</PerNoticePaidFee>
<PerNoticePaidShow>0</PerNoticePaidShow>
<PerTowFee>0</PerTowFee>
<PerTowPaid>0</PerTowPaid>
<PerTowPaidShow>0</PerTowPaidShow>
<PerTowShow>0</PerTowShow>
<ProrateRevenueAdjustments>false</ProrateRevenueAdjustments>
<RedLightContingencyPercent>0</RedLightContingencyPercent>
<StartDate>0001-01-01T00:00:00</StartDate>
<TicketContingencyPercent>0</TicketContingencyPercent>
<TicketContingencyShow>0</TicketContingencyShow>
<TicketContingencySlidingScaleShow>false</TicketContingencySlidingScaleShow>
<TieredPaymentShow>0</TieredPaymentShow>
</CustomerInvoiceTerm>