Menu

Create new Cart

This endpoint creates a new cart.
To call any /carts endpoints, you need to use a JWT token or an intent token for authorization.

POST https://api-staging-v2.logyx.it/v1/carts/new

Body


reference required

Example

{
    "reference": "string"
}

Response

{
    "code": 201,
    "message": "Created; cart created.",
    "data": {
        "default": "boolean",
        "reference": "string",
        "cart_id": "string"
    },
    "links": {},
    "errors": []
}

Possible responses


201 Created; Cart created.

401 Bad request

403 Forbidden

Menu