If you need to pay creditors, you can use our payout API
Here is a sample TEST payout request. We provide the API key
POST: https://test.peachpay.co.za/API/Payments?key= <APIPaymentsRequest> <Header> <PsVer>2.0.1</PsVer> <Client>XXX001</Client> <DueDate>20170214</DueDate> <Service>Creditors</Service> <ServiceType>1day</ServiceType> <Reference> Acme Wages w/e 11/19</Reference> <CallBackUrl>http://example.com</CallBackUrl> </Header> <Payments> <FileContents> <Surname>Worker 1</Surname> <BranchCode>250655</BranchCode> <AccountNumber>1234567</AccountNumber> <FileAmount>2500</FileAmount> <AmountMultiplier>1</AmountMultiplier> <Reference>Test234</Reference> </FileContents> </Payments> <Totals> <Records>1</Records> <Amount>2500</Amount> <BranchHash>250655</BranchHash> <AccountHash>1234567</AccountHash> </Totals> </APIPaymentsRequest> |
To Simulate a failed CDV check change the number sequence in Account Hash field.
<APIPaymentsRequest> <Header> <PsVer>2.0.1</PsVer> <Client>REN003</Client> <DueDate>20170214</DueDate> <Service>Creditors</Service> <ServiceType>SDV</ServiceType> <Reference> Acme Wages w/e 11/19</Reference> <CallBackUrl>http://example.com</CallBackUrl> </Header> <Payments> <FileContents> <Surname>Worker 1</Surname> <BranchCode>250655</BranchCode> <AccountNumber>1234568</AccountNumber> <FileAmount>2500</FileAmount> <AmountMultiplier>1</AmountMultiplier> <Reference>Test234</Reference> </FileContents> </Payments> <Totals> <Records>1</Records> <Amount>2500</Amount> <BranchHash>250655</BranchHash> <AccountHash>1234568</AccountHash> </Totals> </APIPaymentsRequest> |
Response
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <Response> <Result>Error</Result> <ResultMessage>All payments failed the CDV check</ResultMessage> <BatchCode>142130</BatchCode> </Response> |