diff --git a/README.md b/README.md index a1a018a..5fa5938 100644 --- a/README.md +++ b/README.md @@ -75,4 +75,6 @@ For more detailed documentation please visit: https://ecomailczv2.docs.apiary.io ### createNewTransaction +### createBulkTransactions + ### triggerAutomation diff --git a/src/Ecomail.php b/src/Ecomail.php index cc2484b..ac04af8 100644 --- a/src/Ecomail.php +++ b/src/Ecomail.php @@ -389,6 +389,17 @@ public function createNewTransaction(array $data) } + /** + * @param array $data Data + * @return array|stdClass|string + */ + public function createBulkTransactions(array $data) + { + $url = $this->joinString('tracker/transaction-bulk'); + return $this->post($url, $data); + } + + /** * @param string $transaction_id ID transakce * @param array $data Data @@ -399,7 +410,7 @@ public function updateTransaction($transaction_id, array $data) $url = $this->joinString('tracker/transaction/', $transaction_id); return $this->put($url, $data); } - + /** * @param string $transaction_id ID transakce * @return array