JiwaAPI

<back to all web services

DebtorReceiptPOSTRequest

Requires Authentication
The following routes are available for this service:
POST/Debtors/{DebtorID}/ReceiptsRecords a debtor's card payment as an activated Cash Book receipt, allocated to the invoices named or to the oldest charges.
DebtorReceiptPOSTRequest Parameters:
NameParameterData TypeRequiredDescription
DebtorIDpathstringNo
AmountbodydecimalNo
ReferencebodystringNo
GatewayReferencebodystringNo
RemarkbodystringNo
PaymentTypeNamebodystringNo
BankLedgerAccountNobodystringNo
AllocateTobodyList<string>No
DebtorReceipt Parameters:
NameParameterData TypeRequiredDescription
DebtorIDformstringNo
ReceiptDebtorIDformstringNo
CBBatchIDformstringNo
BatchNoformstringNo
ActivatedformboolNo
TransIDformstringNo
ReferenceformstringNo
GatewayReferenceformstringNo
AmountformdecimalNo
AllocatedAmountformdecimalNo
BatchDateformDateTime?No
AllocationsformList<DebtorReceiptAllocation>No
CreatedformboolNo
SettlementBatchNoformstringNo
DebtorReceiptAllocation Parameters:
NameParameterData TypeRequiredDescription
TransIDformstringNo
InvoiceNoformstringNo
AmountformdecimalNo

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.

POST /Debtors/{DebtorID}/Receipts HTTP/1.1 
Host: testapi.redpoint.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<DebtorReceiptPOSTRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel">
  <_x003C_AllocateTo_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </_x003C_AllocateTo_x003E_k__BackingField>
  <_x003C_Amount_x003E_k__BackingField>0</_x003C_Amount_x003E_k__BackingField>
  <_x003C_BankLedgerAccountNo_x003E_k__BackingField>String</_x003C_BankLedgerAccountNo_x003E_k__BackingField>
  <_x003C_DebtorID_x003E_k__BackingField>String</_x003C_DebtorID_x003E_k__BackingField>
  <_x003C_GatewayReference_x003E_k__BackingField>String</_x003C_GatewayReference_x003E_k__BackingField>
  <_x003C_PaymentTypeName_x003E_k__BackingField>String</_x003C_PaymentTypeName_x003E_k__BackingField>
  <_x003C_Reference_x003E_k__BackingField>String</_x003C_Reference_x003E_k__BackingField>
  <_x003C_Remark_x003E_k__BackingField>String</_x003C_Remark_x003E_k__BackingField>
</DebtorReceiptPOSTRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DebtorReceipt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JiwaFinancials.Jiwa.JiwaServiceModel">
  <_x003C_Activated_x003E_k__BackingField>false</_x003C_Activated_x003E_k__BackingField>
  <_x003C_AllocatedAmount_x003E_k__BackingField>0</_x003C_AllocatedAmount_x003E_k__BackingField>
  <_x003C_Allocations_x003E_k__BackingField>
    <DebtorReceiptAllocation>
      <_x003C_Amount_x003E_k__BackingField>0</_x003C_Amount_x003E_k__BackingField>
      <_x003C_InvoiceNo_x003E_k__BackingField>String</_x003C_InvoiceNo_x003E_k__BackingField>
      <_x003C_TransID_x003E_k__BackingField>String</_x003C_TransID_x003E_k__BackingField>
    </DebtorReceiptAllocation>
  </_x003C_Allocations_x003E_k__BackingField>
  <_x003C_Amount_x003E_k__BackingField>0</_x003C_Amount_x003E_k__BackingField>
  <_x003C_BatchDate_x003E_k__BackingField>0001-01-01T00:00:00</_x003C_BatchDate_x003E_k__BackingField>
  <_x003C_BatchNo_x003E_k__BackingField>String</_x003C_BatchNo_x003E_k__BackingField>
  <_x003C_CBBatchID_x003E_k__BackingField>String</_x003C_CBBatchID_x003E_k__BackingField>
  <_x003C_Created_x003E_k__BackingField>false</_x003C_Created_x003E_k__BackingField>
  <_x003C_DebtorID_x003E_k__BackingField>String</_x003C_DebtorID_x003E_k__BackingField>
  <_x003C_GatewayReference_x003E_k__BackingField>String</_x003C_GatewayReference_x003E_k__BackingField>
  <_x003C_ReceiptDebtorID_x003E_k__BackingField>String</_x003C_ReceiptDebtorID_x003E_k__BackingField>
  <_x003C_Reference_x003E_k__BackingField>String</_x003C_Reference_x003E_k__BackingField>
  <_x003C_SettlementBatchNo_x003E_k__BackingField>String</_x003C_SettlementBatchNo_x003E_k__BackingField>
  <_x003C_TransID_x003E_k__BackingField>String</_x003C_TransID_x003E_k__BackingField>
</DebtorReceipt>