Skip to content

REST | API guest-cart returns Cart Id with quotes. #9942

@DavidLambauer

Description

@DavidLambauer

To use the Magento 2 Checkout, I am starting with getting a Cart Id. Due to that, I run the following request:

BASEURL/rest/V1/guest-carts

Preconditions

  1. Magento EE 2.1.6

Steps to reproduce

  1. Enter the following request in your terminal: curl --request POST --url BASE_URL/rest/V1/guest-carts

Expected result

  1. 9cdb1f51fdc3bfa2313dae65eb231271

Actual result

  1. "9cdb1f51fdc3bfa2313dae65eb231271"

In my opinion, there is no need to have the quotes around the result. Am I wrong?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions