Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 856 Bytes

Finance.md

File metadata and controls

32 lines (27 loc) · 856 Bytes

Muhasebe işlemleri


1- Init Object for Usage

use ksmylmz\hepsiburada\Hepsiburada;
......
$isTeststage = true;
$hb  = new Hepsiburada({username},{password},{merchantid},$isTestStage);


2- Faturaları listele

$getParams = new GetInvoiceRequestModel();
$getParams->offset=10;
$getParams->limit=10;
$getParams->beginDate=date("Y-m-d H:i", strtotime("-5 day"));
$getParams->endDate=date("Y-m-d H:i");
$getParams->transactiontypes=implode(",",[InvoiveTransactionType::Return,InvoiveTransactionType::Commission]);
$getParams->allowance=InvoiceAllowance::Open;
// InvoiceAllowance::Open henüz ödemesi tamamlanmamış faturalar
$getParams->allowance=InvoiceAllowance::Cleared;
//InvoiceAllowance::Cleared sadece ödemesi tamamlanmış faturalar
$hb->finance->getInvoice($getParams);