diff --git a/src/MyParcelComApi.php b/src/MyParcelComApi.php index da1f3c45..664cd2d3 100644 --- a/src/MyParcelComApi.php +++ b/src/MyParcelComApi.php @@ -621,7 +621,9 @@ protected function postResource(ResourceInterface $resource) 'post', $this->getResourceUri($resource->getType()), [ - RequestOptions::HEADERS => $this->authenticator->getAuthorizationHeader(), + RequestOptions::HEADERS => $this->authenticator->getAuthorizationHeader() + [ + AuthenticatorInterface::HEADER_ACCEPT => AuthenticatorInterface::MIME_TYPE_JSONAPI, + ], RequestOptions::JSON => ['data' => $resource], ] )->then(function (ResponseInterface $response) {