Hi drewdan! I'm having the same issue. Did you ever discover a resolution?
Thanks!
Marco
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey Guys,
Has anyone had any experience with the Eposnow API? I am trying to post request too it, but the documentation is just naff, and I can't get anything thats not a post request to work in the V4 API. The older v2 api works a treat, but given that its deprecated, I feel like I should be trying to use the V4, for example.
I absolutely expect this to fail given that I am only providing a forename, but:
protected $client;
protected $endPoint;
/**
* summary
*/
public function __construct() {
$this->endPoint = 'https://api.eposnowhq.com/api/v4/';
$this->client = new Client([
'base_uri' => $this->endPoint,
'auth' => [
config('epos.key'), config('epos.secret'),
],
]);
}
public function parseResponse($response) {
return collect(json_decode($response->getBody()->getContents(), true));
}
public function addCustomer(array $array) {
try {
return $this->parseResponse($this->client->post(
'Customer',
[
'form_params' => [
'Forename' => 'Fooo',
],
],
));
} catch (\GuzzleHttp\Exception\RequestException $e) {
throw $e;
}
}
I get a 200 back from the server, no error messages, as if nothing has actually happened. I check the user list and no user has been added. The url for the api is here: https://developer.eposnowhq.com/Docs/v4/index#!/Customer/CustomerPOSTByitems
Any tips anyone could provide would be amazing.
Thanks in advance.
Andrew
Please or to participate in this conversation.