question

vladimiralekseev avatar image
vladimiralekseev asked

401 Unauthorized if try to create a customer

I get 401 Unauthorized when try to create a customer. I have updated `access_token` but any way have error 401 Unauthorized.
My request is:

$client = new \GuzzleHttp\Client();
$response = $client->request('POST', 'https://sandbox.dev.clover.com/v3/merchants/XXXXXXX/customers', [
  'body' => '{"firstName":"1","lastName":"2"}',
  'headers' => [
    'Authorization' => 'Bearer xxxxxxxxxxxxxxxx',
    'Content-Type' => 'application/json',
  ],
]);	

Are there any changes that I have should done?

Config of my app is:

1660638596123.png

OAuth
1660638596123.png (52.9 KiB)
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community